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-bug-report-url Specify the URL where bug reports should be
1475 submitted (default=http://llvm.org/bugs/)
1476 --with-tclinclude directory where tcl headers are
1477 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1478 clang, or none; default=check)
1479 --with-udis86=<path> Use udis86 external x86 disassembler library
1480 --with-oprofile=<prefix>
1481 Tell OProfile >= 0.9.4 how to symbolize JIT output
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1491 CXX C++ compiler command
1492 CXXFLAGS C++ compiler flags
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1497 Report bugs to <llvmbugs@cs.uiuc.edu>.
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" || continue
1509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1512 # A ".." for each directory in $ac_dir_suffix.
1513 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 ac_abs_top_builddir=$ac_pwd
1520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521 # for backward compatibility:
1522 ac_top_builddir=$ac_top_build_prefix
1525 .) # We are building in place.
1527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
1530 ac_srcdir=$srcdir$ac_dir_suffix;
1531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1547 $SHELL "$ac_srcdir/configure" --help=recursive
1549 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 cd "$ac_pwd" || { ac_status=$?; break; }
1555 test -n "$ac_init_help" && exit $ac_status
1556 if $ac_init_version; then
1558 llvm configure 3.0svn
1559 generated by GNU Autoconf 2.60
1561 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1562 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1566 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1570 cat >config.log <<_ACEOF
1571 This file contains any messages produced by compilers while
1572 running configure, to aid debugging if configure makes a mistake.
1574 It was created by llvm $as_me 3.0svn, which was
1575 generated by GNU Autoconf 2.60. Invocation command line was
1587 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1593 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1596 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1597 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1598 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1599 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1600 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1601 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1602 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir=.
1611 echo "PATH: $as_dir"
1627 # Keep a trace of the command line.
1628 # Strip out --no-create and --no-recursion so they do not pile up.
1629 # Strip out --silent because we don't want to record it for future runs.
1630 # Also quote any args containing shell meta-characters.
1631 # Make two passes to allow for proper duplicate-argument suppression.
1635 ac_must_keep_next=false
1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643 | -silent | --silent | --silen | --sile | --sil)
1646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1651 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1652 if test $ac_must_keep_next = true; then
1653 ac_must_keep_next=false # Got value, back to normal.
1656 *=* | --config-cache | -C | -disable-* | --disable-* \
1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659 | -with-* | --with-* | -without-* | --without-* | --x)
1660 case "$ac_configure_args0 " in
1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1664 -* ) ac_must_keep_next=true ;;
1667 ac_configure_args="$ac_configure_args '$ac_arg'"
1672 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1675 # When interrupted or exit'd, cleanup temporary files, and complete
1676 # config.log. We remove comments because anyway the quotes in there
1677 # would cause problems or look ugly.
1678 # WARNING: Use '\'' to represent an apostrophe within the trap.
1679 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1680 trap 'exit_status=$?
1681 # Save into config.log some information that might help in debugging.
1686 ## ---------------- ##
1687 ## Cache variables. ##
1688 ## ---------------- ##
1691 # The following way of writing the cache mishandles newlines in values,
1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694 eval ac_val=\$$ac_var
1698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1702 _ | IFS | as_nl) ;; #(
1703 *) $as_unset $ac_var ;;
1708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709 *${as_nl}ac_space=\ *)
1711 "s/'\''/'\''\\\\'\'''\''/g;
1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1723 ## ----------------- ##
1724 ## Output variables. ##
1725 ## ----------------- ##
1728 for ac_var in $ac_subst_vars
1730 eval ac_val=\$$ac_var
1732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 echo "$ac_var='\''$ac_val'\''"
1738 if test -n "$ac_subst_files"; then
1740 ## ------------------- ##
1741 ## File substitutions. ##
1742 ## ------------------- ##
1745 for ac_var in $ac_subst_files
1747 eval ac_val=\$$ac_var
1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751 echo "$ac_var='\''$ac_val'\''"
1756 if test -s confdefs.h; then
1766 test "$ac_signal" != 0 &&
1767 echo "$as_me: caught signal $ac_signal"
1768 echo "$as_me: exit $exit_status"
1770 rm -f core *.core core.conftest.* &&
1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1774 for ac_signal in 1 2 13 15; do
1775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1779 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1780 rm -f -r conftest* confdefs.h
1782 # Predefined preprocessor variables.
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_NAME "$PACKAGE_NAME"
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_STRING "$PACKAGE_STRING"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1809 # Let the site file select an alternate cache file if it wants to.
1810 # Prefer explicitly selected file to automatically selected ones.
1811 if test -n "$CONFIG_SITE"; then
1812 set x "$CONFIG_SITE"
1813 elif test "x$prefix" != xNONE; then
1814 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1816 set x "$ac_default_prefix/share/config.site" \
1817 "$ac_default_prefix/etc/config.site"
1822 if test -r "$ac_site_file"; then
1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824 echo "$as_me: loading site script $ac_site_file" >&6;}
1825 sed 's/^/| /' "$ac_site_file" >&5
1830 if test -r "$cache_file"; then
1831 # Some versions of bash will fail to source /dev/null (special
1832 # files actually), so we avoid doing that.
1833 if test -f "$cache_file"; then
1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835 echo "$as_me: loading cache $cache_file" >&6;}
1837 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838 *) . "./$cache_file";;
1842 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843 echo "$as_me: creating cache $cache_file" >&6;}
1847 # Check that the precious variables saved in the cache have kept the same
1849 ac_cache_corrupted=false
1850 for ac_var in $ac_precious_vars; do
1851 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852 eval ac_new_set=\$ac_env_${ac_var}_set
1853 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854 eval ac_new_val=\$ac_env_${ac_var}_value
1855 case $ac_old_set,$ac_new_set in
1857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1859 ac_cache_corrupted=: ;;
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1866 if test "x$ac_old_val" != "x$ac_new_val"; then
1867 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1870 echo "$as_me: former value: $ac_old_val" >&2;}
1871 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1872 echo "$as_me: current value: $ac_new_val" >&2;}
1873 ac_cache_corrupted=:
1876 # Pass precious variables to config.status.
1877 if test "$ac_new_set" = set; then
1879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1880 *) ac_arg=$ac_var=$ac_new_val ;;
1882 case " $ac_configure_args " in
1883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1884 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1888 if $ac_cache_corrupted; then
1889 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893 { (exit 1); exit 1; }; }
1921 ac_cpp='$CPP $CPPFLAGS'
1922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1928 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1937 for ac_dir in autoconf "$srcdir"/autoconf; do
1938 if test -f "$ac_dir/install-sh"; then
1940 ac_install_sh="$ac_aux_dir/install-sh -c"
1942 elif test -f "$ac_dir/install.sh"; then
1944 ac_install_sh="$ac_aux_dir/install.sh -c"
1946 elif test -f "$ac_dir/shtool"; then
1948 ac_install_sh="$ac_aux_dir/shtool install -c"
1952 if test -z "$ac_aux_dir"; then
1953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955 { (exit 1); exit 1; }; }
1958 # These three variables are undocumented and unsupported,
1959 # and are intended to be withdrawn in a future Autoconf release.
1960 # They can cause serious problems if a builder's source tree is in a directory
1961 # whose full name contains unusual characters.
1962 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1963 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1964 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968 if test ${srcdir} != "." ; then
1969 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1970 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1971 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1972 { (exit 1); exit 1; }; }
1978 if test -d ${srcdir}/projects/llvm-gcc ; then
1979 subdirs="$subdirs projects/llvm-gcc"
1983 if test -d ${srcdir}/projects/test-suite ; then
1984 subdirs="$subdirs projects/test-suite"
1988 if test -d ${srcdir}/projects/llvm-test ; then
1989 subdirs="$subdirs projects/llvm-test"
1993 if test -d ${srcdir}/projects/poolalloc ; then
1994 subdirs="$subdirs projects/poolalloc"
1998 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1999 subdirs="$subdirs projects/llvm-poolalloc"
2003 for i in `ls ${srcdir}/projects`
2005 if test -d ${srcdir}/projects/${i} ; then
2007 sample) subdirs="$subdirs projects/sample"
2009 privbracket) subdirs="$subdirs projects/privbracket"
2011 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2013 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2015 llvm-java) subdirs="$subdirs projects/llvm-java"
2017 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2019 safecode) subdirs="$subdirs projects/safecode"
2021 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2029 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2030 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2036 # Check whether --enable-polly was given.
2037 if test "${enable_polly+set}" = set; then
2038 enableval=$enable_polly;
2043 case "$enableval" in
2048 default) ENABLE_POLLY=1
2050 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2051 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2052 { (exit 1); exit 1; }; } ;;
2056 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2059 subdirs="$subdirs tools/polly"
2064 # Make sure we can run config.sub.
2065 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2066 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2067 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2068 { (exit 1); exit 1; }; }
2070 { echo "$as_me:$LINENO: checking build system type" >&5
2071 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2072 if test "${ac_cv_build+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 ac_build_alias=$build_alias
2076 test "x$ac_build_alias" = x &&
2077 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2078 test "x$ac_build_alias" = x &&
2079 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2080 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2081 { (exit 1); exit 1; }; }
2082 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2083 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2084 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2085 { (exit 1); exit 1; }; }
2088 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2089 echo "${ECHO_T}$ac_cv_build" >&6; }
2090 case $ac_cv_build in
2092 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2093 echo "$as_me: error: invalid value of canonical build" >&2;}
2094 { (exit 1); exit 1; }; };;
2097 ac_save_IFS=$IFS; IFS='-'
2103 # Remember, the first character of IFS is used to create $*,
2104 # except with old shells:
2107 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2110 { echo "$as_me:$LINENO: checking host system type" >&5
2111 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2112 if test "${ac_cv_host+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 if test "x$host_alias" = x; then
2116 ac_cv_host=$ac_cv_build
2118 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2119 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2120 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2121 { (exit 1); exit 1; }; }
2125 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2126 echo "${ECHO_T}$ac_cv_host" >&6; }
2129 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2130 echo "$as_me: error: invalid value of canonical host" >&2;}
2131 { (exit 1); exit 1; }; };;
2134 ac_save_IFS=$IFS; IFS='-'
2140 # Remember, the first character of IFS is used to create $*,
2141 # except with old shells:
2144 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2147 { echo "$as_me:$LINENO: checking target system type" >&5
2148 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2149 if test "${ac_cv_target+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 if test "x$target_alias" = x; then
2153 ac_cv_target=$ac_cv_host
2155 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2156 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2157 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2158 { (exit 1); exit 1; }; }
2162 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2163 echo "${ECHO_T}$ac_cv_target" >&6; }
2164 case $ac_cv_target in
2166 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2167 echo "$as_me: error: invalid value of canonical target" >&2;}
2168 { (exit 1); exit 1; }; };;
2170 target=$ac_cv_target
2171 ac_save_IFS=$IFS; IFS='-'
2177 # Remember, the first character of IFS is used to create $*,
2178 # except with old shells:
2181 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2184 # The aliases save the names the user supplied, while $host etc.
2185 # will get canonicalized.
2186 test -n "$target_alias" &&
2187 test "$program_prefix$program_suffix$program_transform_name" = \
2189 program_prefix=${target_alias}-
2191 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2192 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2193 if test "${llvm_cv_os_type+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 llvm_cv_link_all_option="-Wl,--whole-archive"
2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2200 llvm_cv_os_type="AIX"
2201 llvm_cv_platform_type="Unix" ;;
2203 llvm_cv_link_all_option="-Wl,--whole-archive"
2204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2205 llvm_cv_os_type="IRIX"
2206 llvm_cv_platform_type="Unix" ;;
2208 llvm_cv_link_all_option="-Wl,--whole-archive"
2209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2210 llvm_cv_os_type="Cygwin"
2211 llvm_cv_platform_type="Unix" ;;
2213 llvm_cv_link_all_option="-Wl,-all_load"
2214 llvm_cv_no_link_all_option="-Wl,-noall_load"
2215 llvm_cv_os_type="Darwin"
2216 llvm_cv_platform_type="Unix" ;;
2218 llvm_cv_link_all_option="-Wl,-all_load"
2219 llvm_cv_no_link_all_option="-Wl,-noall_load"
2220 llvm_cv_os_type="Minix"
2221 llvm_cv_platform_type="Unix" ;;
2223 llvm_cv_link_all_option="-Wl,--whole-archive"
2224 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2225 llvm_cv_os_type="FreeBSD"
2226 llvm_cv_platform_type="Unix" ;;
2228 llvm_cv_link_all_option="-Wl,--whole-archive"
2229 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2230 llvm_cv_os_type="OpenBSD"
2231 llvm_cv_platform_type="Unix" ;;
2233 llvm_cv_link_all_option="-Wl,--whole-archive"
2234 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2235 llvm_cv_os_type="NetBSD"
2236 llvm_cv_platform_type="Unix" ;;
2238 llvm_cv_link_all_option="-Wl,--whole-archive"
2239 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2240 llvm_cv_os_type="DragonFly"
2241 llvm_cv_platform_type="Unix" ;;
2243 llvm_cv_link_all_option="-Wl,--whole-archive"
2244 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2245 llvm_cv_os_type="HP-UX"
2246 llvm_cv_platform_type="Unix" ;;
2248 llvm_cv_link_all_option="-Wl,--whole-archive"
2249 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2250 llvm_cv_os_type="Interix"
2251 llvm_cv_platform_type="Unix" ;;
2253 llvm_cv_link_all_option="-Wl,--whole-archive"
2254 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2255 llvm_cv_os_type="Linux"
2256 llvm_cv_platform_type="Unix" ;;
2258 llvm_cv_link_all_option="-Wl,-z,allextract"
2259 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2260 llvm_cv_os_type="SunOS"
2261 llvm_cv_platform_type="Unix" ;;
2263 llvm_cv_link_all_option="-Wl,-z,allextract"
2264 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2265 llvm_cv_os_type="AuroraUX"
2266 llvm_cv_platform_type="Unix" ;;
2268 llvm_cv_link_all_option="-Wl,--whole-archive"
2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2270 llvm_cv_os_type="Win32"
2271 llvm_cv_platform_type="Win32" ;;
2273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275 llvm_cv_os_type="MingW"
2276 llvm_cv_platform_type="Win32" ;;
2278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280 llvm_cv_os_type="Haiku"
2281 llvm_cv_platform_type="Unix" ;;
2283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285 llvm_cv_os_type="Freestanding"
2286 llvm_cv_platform_type="Unix" ;;
2288 llvm_cv_link_all_option="-Wl,--whole-archive"
2289 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290 llvm_cv_os_type="Freestanding"
2291 llvm_cv_platform_type="Unix" ;;
2293 llvm_cv_link_all_option=""
2294 llvm_cv_no_link_all_option=""
2295 llvm_cv_os_type="Unknown"
2296 llvm_cv_platform_type="Unknown" ;;
2299 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2300 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2302 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2303 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2304 if test "${llvm_cv_target_os_type+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 llvm_cv_target_os_type="AIX" ;;
2311 llvm_cv_target_os_type="IRIX" ;;
2313 llvm_cv_target_os_type="Cygwin" ;;
2315 llvm_cv_target_os_type="Darwin" ;;
2317 llvm_cv_target_os_type="Minix" ;;
2319 llvm_cv_target_os_type="FreeBSD" ;;
2321 llvm_cv_target_os_type="OpenBSD" ;;
2323 llvm_cv_target_os_type="NetBSD" ;;
2325 llvm_cv_target_os_type="DragonFly" ;;
2327 llvm_cv_target_os_type="HP-UX" ;;
2329 llvm_cv_target_os_type="Interix" ;;
2331 llvm_cv_target_os_type="Linux" ;;
2333 llvm_cv_target_os_type="SunOS" ;;
2335 llvm_cv_target_os_type="AuroraUX" ;;
2337 llvm_cv_target_os_type="Win32" ;;
2339 llvm_cv_target_os_type="MingW" ;;
2341 llvm_cv_target_os_type="Haiku" ;;
2343 llvm_cv_target_os_type="RTEMS" ;;
2345 llvm_cv_target_os_type="Freestanding" ;;
2347 llvm_cv_target_os_type="Unknown" ;;
2350 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2351 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2353 if test "$llvm_cv_os_type" = "Unknown" ; then
2354 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2355 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2356 { (exit 1); exit 1; }; }
2361 HOST_OS=$llvm_cv_os_type
2363 TARGET_OS=$llvm_cv_target_os_type
2366 LINKALL=$llvm_cv_link_all_option
2368 NOLINKALL=$llvm_cv_no_link_all_option
2371 case $llvm_cv_platform_type in
2374 cat >>confdefs.h <<\_ACEOF
2375 #define LLVM_ON_UNIX 1
2385 cat >>confdefs.h <<\_ACEOF
2386 #define LLVM_ON_WIN32 1
2396 { echo "$as_me:$LINENO: checking target architecture" >&5
2397 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2398 if test "${llvm_cv_target_arch+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 i?86-*) llvm_cv_target_arch="x86" ;;
2403 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2404 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2405 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2406 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2407 arm*-*) llvm_cv_target_arch="ARM" ;;
2408 mips-*) llvm_cv_target_arch="Mips" ;;
2409 xcore-*) llvm_cv_target_arch="XCore" ;;
2410 msp430-*) llvm_cv_target_arch="MSP430" ;;
2411 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2412 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2413 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2414 ptx-*) llvm_cv_target_arch="PTX" ;;
2415 *) llvm_cv_target_arch="Unknown" ;;
2418 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2419 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2421 if test "$llvm_cv_target_arch" = "Unknown" ; then
2422 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2423 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2426 # Determine the LLVM native architecture for the target
2427 case "$llvm_cv_target_arch" in
2428 x86) LLVM_NATIVE_ARCH="X86" ;;
2429 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2430 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2433 ARCH=$llvm_cv_target_arch
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441 if test -n "$ac_tool_prefix"; then
2442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2443 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2446 if test "${ac_cv_prog_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 if test -n "$CC"; then
2471 { echo "$as_me:$LINENO: result: $CC" >&5
2472 echo "${ECHO_T}$CC" >&6; }
2474 { echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6; }
2480 if test -z "$ac_cv_prog_CC"; then
2482 # Extract the first word of "gcc", so it can be a program name with args.
2483 set dummy gcc; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 if test -n "$ac_ct_CC"; then
2490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_ac_ct_CC="gcc"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510 if test -n "$ac_ct_CC"; then
2511 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2512 echo "${ECHO_T}$ac_ct_CC" >&6; }
2514 { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2518 if test "x$ac_ct_CC" = x; then
2521 case $cross_compiling:$ac_tool_warned in
2523 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2524 whose name does not start with the host triplet. If you think this
2525 configuration is useful to you, please write to autoconf@gnu.org." >&5
2526 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2527 whose name does not start with the host triplet. If you think this
2528 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2529 ac_tool_warned=yes ;;
2537 if test -z "$CC"; then
2538 if test -n "$ac_tool_prefix"; then
2539 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2540 set dummy ${ac_tool_prefix}cc; ac_word=$2
2541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543 if test "${ac_cv_prog_CC+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2556 ac_cv_prog_CC="${ac_tool_prefix}cc"
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 if test -n "$CC"; then
2568 { echo "$as_me:$LINENO: result: $CC" >&5
2569 echo "${ECHO_T}$CC" >&6; }
2571 { echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6; }
2578 if test -z "$CC"; then
2579 # Extract the first word of "cc", so it can be a program name with args.
2580 set dummy cc; ac_word=$2
2581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_CC+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2597 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2598 ac_prog_rejected=yes
2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 if test $ac_prog_rejected = yes; then
2610 # We found a bogon in the path, so make sure we never use it.
2611 set dummy $ac_cv_prog_CC
2613 if test $# != 0; then
2614 # We chose a different compiler from the bogus one.
2615 # However, it has the same basename, so the bogon will be chosen
2616 # first if we set CC to just the basename; use the full file name.
2618 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2624 if test -n "$CC"; then
2625 { echo "$as_me:$LINENO: result: $CC" >&5
2626 echo "${ECHO_T}$CC" >&6; }
2628 { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2634 if test -z "$CC"; then
2635 if test -n "$ac_tool_prefix"; then
2636 for ac_prog in cl.exe
2638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_CC+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 if test -n "$CC"; then
2667 { echo "$as_me:$LINENO: result: $CC" >&5
2668 echo "${ECHO_T}$CC" >&6; }
2670 { echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6; }
2675 test -n "$CC" && break
2678 if test -z "$CC"; then
2680 for ac_prog in cl.exe
2682 # Extract the first word of "$ac_prog", so it can be a program name with args.
2683 set dummy $ac_prog; ac_word=$2
2684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2686 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 if test -n "$ac_ct_CC"; then
2690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_ac_ct_CC="$ac_prog"
2700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2710 if test -n "$ac_ct_CC"; then
2711 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2712 echo "${ECHO_T}$ac_ct_CC" >&6; }
2714 { echo "$as_me:$LINENO: result: no" >&5
2715 echo "${ECHO_T}no" >&6; }
2719 test -n "$ac_ct_CC" && break
2722 if test "x$ac_ct_CC" = x; then
2725 case $cross_compiling:$ac_tool_warned in
2727 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2728 whose name does not start with the host triplet. If you think this
2729 configuration is useful to you, please write to autoconf@gnu.org." >&5
2730 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2731 whose name does not start with the host triplet. If you think this
2732 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2733 ac_tool_warned=yes ;;
2742 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2743 See \`config.log' for more details." >&5
2744 echo "$as_me: error: no acceptable C compiler found in \$PATH
2745 See \`config.log' for more details." >&2;}
2746 { (exit 1); exit 1; }; }
2748 # Provide some information about the compiler.
2749 echo "$as_me:$LINENO: checking for C compiler version" >&5
2750 ac_compiler=`set X $ac_compile; echo $2`
2751 { (ac_try="$ac_compiler --version >&5"
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_compiler --version >&5") 2>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }
2761 { (ac_try="$ac_compiler -v >&5"
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_compiler -v >&5") 2>&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }
2771 { (ac_try="$ac_compiler -V >&5"
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compiler -V >&5") 2>&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }
2782 cat >conftest.$ac_ext <<_ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2797 ac_clean_files_save=$ac_clean_files
2798 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2799 # Try to create an executable without -o first, disregard a.out.
2800 # It will help us diagnose broken compilers, and finding out an intuition
2802 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2803 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2804 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2806 # List of possible output files, starting from the most likely.
2807 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2808 # only as a last resort. b.out is created by i960 compilers.
2809 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2811 # The IRIX 6 linker writes into existing files which may not be
2812 # executable, retaining their permissions. Remove them first so a
2813 # subsequent execution test works.
2815 for ac_file in $ac_files
2818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2819 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2824 if { (ac_try="$ac_link_default"
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_link_default") 2>&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; then
2834 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2835 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2836 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2837 # so that the user can short-circuit this test for compilers unknown to
2839 for ac_file in $ac_files
2841 test -f "$ac_file" || continue
2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2846 # We found the default executable, but exeext='' is most
2850 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2854 # We set ac_cv_exeext here because the later test for it is not
2855 # safe: cross compilers may not add the suffix if given an `-o'
2856 # argument, so we may need to know it at that point already.
2857 # Even if this section looks crufty: it has the advantage of
2864 test "$ac_cv_exeext" = no && ac_cv_exeext=
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: C compiler cannot create executables
2873 See \`config.log' for more details." >&2;}
2874 { (exit 77); exit 77; }; }
2877 ac_exeext=$ac_cv_exeext
2878 { echo "$as_me:$LINENO: result: $ac_file" >&5
2879 echo "${ECHO_T}$ac_file" >&6; }
2881 # Check that the compiler produces executables we can run. If not, either
2882 # the compiler is broken, or we cross compile.
2883 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2884 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2885 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2886 # If not cross compiling, check that we can run a simple program.
2887 if test "$cross_compiling" != yes; then
2888 if { ac_try='./$ac_file'
2889 { (case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_try") 2>&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2900 if test "$cross_compiling" = maybe; then
2903 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2904 If you meant to cross compile, use \`--host'.
2905 See \`config.log' for more details." >&5
2906 echo "$as_me: error: cannot run C compiled programs.
2907 If you meant to cross compile, use \`--host'.
2908 See \`config.log' for more details." >&2;}
2909 { (exit 1); exit 1; }; }
2913 { echo "$as_me:$LINENO: result: yes" >&5
2914 echo "${ECHO_T}yes" >&6; }
2916 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2917 ac_clean_files=$ac_clean_files_save
2918 # Check that the compiler produces executables we can run. If not, either
2919 # the compiler is broken, or we cross compile.
2920 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2921 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2922 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2923 echo "${ECHO_T}$cross_compiling" >&6; }
2925 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2926 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2927 if { (ac_try="$ac_link"
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_link") 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; then
2937 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2938 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2939 # work properly (i.e., refer to `conftest.exe'), while it won't with
2941 for ac_file in conftest.exe conftest conftest.*; do
2942 test -f "$ac_file" || continue
2944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2945 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2951 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2952 See \`config.log' for more details." >&5
2953 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2954 See \`config.log' for more details." >&2;}
2955 { (exit 1); exit 1; }; }
2958 rm -f conftest$ac_cv_exeext
2959 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2960 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2962 rm -f conftest.$ac_ext
2963 EXEEXT=$ac_cv_exeext
2965 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2966 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2967 if test "${ac_cv_objext+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 cat >conftest.$ac_ext <<_ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2985 rm -f conftest.o conftest.obj
2986 if { (ac_try="$ac_compile"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compile") 2>&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; then
2996 for ac_file in conftest.o conftest.obj conftest.*; do
2997 test -f "$ac_file" || continue;
2999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3000 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3008 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3011 See \`config.log' for more details." >&2;}
3012 { (exit 1); exit 1; }; }
3015 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3017 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3018 echo "${ECHO_T}$ac_cv_objext" >&6; }
3019 OBJEXT=$ac_cv_objext
3021 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3022 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3023 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 cat >conftest.$ac_ext <<_ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3053 grep -v '^ *+' conftest.er1 >conftest.err
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3090 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3091 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3092 GCC=`test $ac_compiler_gnu = yes && echo yes`
3093 ac_test_CFLAGS=${CFLAGS+set}
3094 ac_save_CFLAGS=$CFLAGS
3095 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3096 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3097 if test "${ac_cv_prog_cc_g+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 ac_save_c_werror_flag=$ac_c_werror_flag
3101 ac_c_werror_flag=yes
3104 cat >conftest.$ac_ext <<_ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_compile") 2>conftest.er1
3128 grep -v '^ *+' conftest.er1 >conftest.err
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } &&
3133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3134 { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3183 grep -v '^ *+' conftest.er1 >conftest.err
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; } &&
3198 { ac_try='test -s conftest.$ac_objext'
3199 { (case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_try") 2>&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3213 ac_c_werror_flag=$ac_save_c_werror_flag
3215 cat >conftest.$ac_ext <<_ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compile") 2>conftest.er1
3239 grep -v '^ *+' conftest.er1 >conftest.err
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } &&
3244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3245 { (case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 (eval "$ac_try") 2>&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; } &&
3254 { ac_try='test -s conftest.$ac_objext'
3255 { (case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_try") 2>&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; }; then
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 ac_c_werror_flag=$ac_save_c_werror_flag
3281 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3282 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3283 if test "$ac_test_CFLAGS" = set; then
3284 CFLAGS=$ac_save_CFLAGS
3285 elif test $ac_cv_prog_cc_g = yes; then
3286 if test "$GCC" = yes; then
3292 if test "$GCC" = yes; then
3298 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3299 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3300 if test "${ac_cv_prog_cc_c89+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 ac_cv_prog_cc_c89=no
3305 cat >conftest.$ac_ext <<_ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3313 #include <sys/types.h>
3314 #include <sys/stat.h>
3315 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3316 struct buf { int x; };
3317 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318 static char *e (p, i)
3324 static char *f (char * (*g) (char **, int), char **p, ...)
3329 s = g (p, va_arg (v,int));
3334 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3335 function prototypes and stuff, but not '\xHH' hex character constants.
3336 These don't provoke an error unfortunately, instead are silently treated
3337 as 'x'. The following induces an error, until -std is added to get
3338 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3339 array size at least. It's necessary to write '\x00'==0 to get something
3340 that's true only with -std. */
3341 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3343 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3344 inside strings and character constants. */
3346 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3348 int test (int i, double x);
3349 struct s1 {int (*f) (int a);};
3350 struct s2 {int (*f) (double a);};
3351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3357 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3362 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3363 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3365 CC="$ac_save_CC $ac_arg"
3366 rm -f conftest.$ac_objext
3367 if { (ac_try="$ac_compile"
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 (eval "$ac_compile") 2>conftest.er1
3375 grep -v '^ *+' conftest.er1 >conftest.err
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } &&
3380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3381 { (case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_try") 2>&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; } &&
3390 { ac_try='test -s conftest.$ac_objext'
3391 { (case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_try") 2>&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 ac_cv_prog_cc_c89=$ac_arg
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3408 rm -f core conftest.err conftest.$ac_objext
3409 test "x$ac_cv_prog_cc_c89" != "xno" && break
3411 rm -f conftest.$ac_ext
3416 case "x$ac_cv_prog_cc_c89" in
3418 { echo "$as_me:$LINENO: result: none needed" >&5
3419 echo "${ECHO_T}none needed" >&6; } ;;
3421 { echo "$as_me:$LINENO: result: unsupported" >&5
3422 echo "${ECHO_T}unsupported" >&6; } ;;
3424 CC="$CC $ac_cv_prog_cc_c89"
3425 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3426 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 ac_cpp='$CPP $CPPFLAGS'
3439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3442 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3443 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3444 # On Suns, sometimes $CPP names a directory.
3445 if test -n "$CPP" && test -d "$CPP"; then
3448 if test -z "$CPP"; then
3449 if test "${ac_cv_prog_CPP+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 # Double quotes because CPP needs to be expanded
3453 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3456 for ac_c_preproc_warn_flag in '' yes
3458 # Use a header file that comes with gcc, so configuring glibc
3459 # with a fresh cross-compiler works.
3460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3461 # <limits.h> exists even on freestanding compilers.
3462 # On the NeXT, cc -E runs the code through the compiler's parser,
3463 # not just through cpp. "Syntax error" is here to catch this case.
3464 cat >conftest.$ac_ext <<_ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3471 # include <limits.h>
3473 # include <assert.h>
3477 if { (ac_try="$ac_cpp conftest.$ac_ext"
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3485 grep -v '^ *+' conftest.er1 >conftest.err
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null; then
3490 if test -s conftest.err; then
3491 ac_cpp_err=$ac_c_preproc_warn_flag
3492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3499 if test -z "$ac_cpp_err"; then
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3505 # Broken: fails on valid input.
3509 rm -f conftest.err conftest.$ac_ext
3511 # OK, works on sane cases. Now check whether nonexistent headers
3512 # can be detected and how.
3513 cat >conftest.$ac_ext <<_ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3519 #include <ac_nonexistent.h>
3521 if { (ac_try="$ac_cpp conftest.$ac_ext"
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3529 grep -v '^ *+' conftest.er1 >conftest.err
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } >/dev/null; then
3534 if test -s conftest.err; then
3535 ac_cpp_err=$ac_c_preproc_warn_flag
3536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3543 if test -z "$ac_cpp_err"; then
3544 # Broken: success on invalid input.
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3550 # Passes both tests.
3555 rm -f conftest.err conftest.$ac_ext
3558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3559 rm -f conftest.err conftest.$ac_ext
3560 if $ac_preproc_ok; then
3572 { echo "$as_me:$LINENO: result: $CPP" >&5
3573 echo "${ECHO_T}$CPP" >&6; }
3575 for ac_c_preproc_warn_flag in '' yes
3577 # Use a header file that comes with gcc, so configuring glibc
3578 # with a fresh cross-compiler works.
3579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3580 # <limits.h> exists even on freestanding compilers.
3581 # On the NeXT, cc -E runs the code through the compiler's parser,
3582 # not just through cpp. "Syntax error" is here to catch this case.
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3590 # include <limits.h>
3592 # include <assert.h>
3596 if { (ac_try="$ac_cpp conftest.$ac_ext"
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3604 grep -v '^ *+' conftest.er1 >conftest.err
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3618 if test -z "$ac_cpp_err"; then
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 # Broken: fails on valid input.
3628 rm -f conftest.err conftest.$ac_ext
3630 # OK, works on sane cases. Now check whether nonexistent headers
3631 # can be detected and how.
3632 cat >conftest.$ac_ext <<_ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3638 #include <ac_nonexistent.h>
3640 if { (ac_try="$ac_cpp conftest.$ac_ext"
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3648 grep -v '^ *+' conftest.er1 >conftest.err
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } >/dev/null; then
3653 if test -s conftest.err; then
3654 ac_cpp_err=$ac_c_preproc_warn_flag
3655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3662 if test -z "$ac_cpp_err"; then
3663 # Broken: success on invalid input.
3666 echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3669 # Passes both tests.
3674 rm -f conftest.err conftest.$ac_ext
3677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3678 rm -f conftest.err conftest.$ac_ext
3679 if $ac_preproc_ok; then
3682 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3683 See \`config.log' for more details." >&5
3684 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3685 See \`config.log' for more details." >&2;}
3686 { (exit 1); exit 1; }; }
3690 ac_cpp='$CPP $CPPFLAGS'
3691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3697 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3698 if test "${ac_cv_path_GREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 # Extract the first word of "grep ggrep" to use in msg output
3702 if test -z "$GREP"; then
3703 set dummy grep ggrep; ac_prog_name=$2
3704 if test "${ac_cv_path_GREP+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 ac_path_GREP_found=false
3708 # Loop through the user's path and test for each of PROGNAME-LIST
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3713 test -z "$as_dir" && as_dir=.
3714 for ac_prog in grep ggrep; do
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3717 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3718 # Check for GNU ac_path_GREP and select it if it is found.
3719 # Check for GNU $ac_path_GREP
3720 case `"$ac_path_GREP" --version 2>&1` in
3722 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3725 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3728 cat "conftest.in" "conftest.in" >"conftest.tmp"
3729 mv "conftest.tmp" "conftest.in"
3730 cp "conftest.in" "conftest.nl"
3731 echo 'GREP' >> "conftest.nl"
3732 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3734 ac_count=`expr $ac_count + 1`
3735 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3736 # Best one so far, save it but keep looking for a better one
3737 ac_cv_path_GREP="$ac_path_GREP"
3738 ac_path_GREP_max=$ac_count
3740 # 10*(2^10) chars as input seems more than enough
3741 test $ac_count -gt 10 && break
3743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3747 $ac_path_GREP_found && break 3
3757 GREP="$ac_cv_path_GREP"
3758 if test -z "$GREP"; then
3759 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3760 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3761 { (exit 1); exit 1; }; }
3765 ac_cv_path_GREP=$GREP
3770 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3771 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3772 GREP="$ac_cv_path_GREP"
3775 { echo "$as_me:$LINENO: checking for egrep" >&5
3776 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3777 if test "${ac_cv_path_EGREP+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3781 then ac_cv_path_EGREP="$GREP -E"
3783 # Extract the first word of "egrep" to use in msg output
3784 if test -z "$EGREP"; then
3785 set dummy egrep; ac_prog_name=$2
3786 if test "${ac_cv_path_EGREP+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 ac_path_EGREP_found=false
3790 # Loop through the user's path and test for each of PROGNAME-LIST
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3795 test -z "$as_dir" && as_dir=.
3796 for ac_prog in egrep; do
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3799 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3800 # Check for GNU ac_path_EGREP and select it if it is found.
3801 # Check for GNU $ac_path_EGREP
3802 case `"$ac_path_EGREP" --version 2>&1` in
3804 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3807 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3810 cat "conftest.in" "conftest.in" >"conftest.tmp"
3811 mv "conftest.tmp" "conftest.in"
3812 cp "conftest.in" "conftest.nl"
3813 echo 'EGREP' >> "conftest.nl"
3814 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3816 ac_count=`expr $ac_count + 1`
3817 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3818 # Best one so far, save it but keep looking for a better one
3819 ac_cv_path_EGREP="$ac_path_EGREP"
3820 ac_path_EGREP_max=$ac_count
3822 # 10*(2^10) chars as input seems more than enough
3823 test $ac_count -gt 10 && break
3825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3829 $ac_path_EGREP_found && break 3
3839 EGREP="$ac_cv_path_EGREP"
3840 if test -z "$EGREP"; then
3841 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3842 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3843 { (exit 1); exit 1; }; }
3847 ac_cv_path_EGREP=$EGREP
3853 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3854 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3855 EGREP="$ac_cv_path_EGREP"
3858 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3859 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3860 if test "${ac_cv_header_stdc+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 cat >conftest.$ac_ext <<_ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3882 rm -f conftest.$ac_objext
3883 if { (ac_try="$ac_compile"
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_compile") 2>conftest.er1
3891 grep -v '^ *+' conftest.er1 >conftest.err
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
3896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3897 { (case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_try") 2>&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; } &&
3906 { ac_try='test -s conftest.$ac_objext'
3907 { (case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912 (eval "$ac_try") 2>&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then
3916 ac_cv_header_stdc=yes
3918 echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3921 ac_cv_header_stdc=no
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 if test $ac_cv_header_stdc = yes; then
3927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3928 cat >conftest.$ac_ext <<_ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3938 $EGREP "memchr" >/dev/null 2>&1; then
3941 ac_cv_header_stdc=no
3947 if test $ac_cv_header_stdc = yes; then
3948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3949 cat >conftest.$ac_ext <<_ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3959 $EGREP "free" >/dev/null 2>&1; then
3962 ac_cv_header_stdc=no
3968 if test $ac_cv_header_stdc = yes; then
3969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3970 if test "$cross_compiling" = yes; then
3973 cat >conftest.$ac_ext <<_ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3981 #if ((' ' & 0x0FF) == 0x020)
3982 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3983 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3985 # define ISLOWER(c) \
3986 (('a' <= (c) && (c) <= 'i') \
3987 || ('j' <= (c) && (c) <= 'r') \
3988 || ('s' <= (c) && (c) <= 'z'))
3989 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3992 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3997 for (i = 0; i < 256; i++)
3998 if (XOR (islower (i), ISLOWER (i))
3999 || toupper (i) != TOUPPER (i))
4004 rm -f conftest$ac_exeext
4005 if { (ac_try="$ac_link"
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4011 (eval "$ac_link") 2>&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4015 { (case "(($ac_try" in
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020 (eval "$ac_try") 2>&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4026 echo "$as_me: program exited with status $ac_status" >&5
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4031 ac_cv_header_stdc=no
4033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4039 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4040 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4041 if test $ac_cv_header_stdc = yes; then
4043 cat >>confdefs.h <<\_ACEOF
4044 #define STDC_HEADERS 1
4049 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4059 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4060 inttypes.h stdint.h unistd.h
4062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 cat >conftest.$ac_ext <<_ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 $ac_includes_default
4076 #include <$ac_header>
4078 rm -f conftest.$ac_objext
4079 if { (ac_try="$ac_compile"
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_compile") 2>conftest.er1
4087 grep -v '^ *+' conftest.er1 >conftest.err
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4093 { (case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098 (eval "$ac_try") 2>&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; } &&
4102 { ac_try='test -s conftest.$ac_objext'
4103 { (case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_try") 2>&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 eval "$as_ac_Header=yes"
4114 echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4117 eval "$as_ac_Header=no"
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122 ac_res=`eval echo '${'$as_ac_Header'}'`
4123 { echo "$as_me:$LINENO: result: $ac_res" >&5
4124 echo "${ECHO_T}$ac_res" >&6; }
4125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4126 cat >>confdefs.h <<_ACEOF
4127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4135 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4136 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4137 if test "${ac_cv_c_bigendian+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 # See if sys/param.h defines the BYTE_ORDER macro.
4141 cat >conftest.$ac_ext <<_ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 #include <sys/types.h>
4148 #include <sys/param.h>
4153 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4161 rm -f conftest.$ac_objext
4162 if { (ac_try="$ac_compile"
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_compile") 2>conftest.er1
4170 grep -v '^ *+' conftest.er1 >conftest.err
4172 cat conftest.err >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4176 { (case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181 (eval "$ac_try") 2>&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest.$ac_objext'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 # It does; now see whether it defined to BIG_ENDIAN or not.
4196 cat >conftest.$ac_ext <<_ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 #include <sys/types.h>
4203 #include <sys/param.h>
4208 #if BYTE_ORDER != BIG_ENDIAN
4216 rm -f conftest.$ac_objext
4217 if { (ac_try="$ac_compile"
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_compile") 2>conftest.er1
4225 grep -v '^ *+' conftest.er1 >conftest.err
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4231 { (case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246 (eval "$ac_try") 2>&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4250 ac_cv_c_bigendian=yes
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 ac_cv_c_bigendian=no
4258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4263 # It does not; compile a test program.
4264 if test "$cross_compiling" = yes; then
4265 # try to guess the endianness by grepping values into an object file
4266 ac_cv_c_bigendian=unknown
4267 cat >conftest.$ac_ext <<_ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4274 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4275 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4276 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4277 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4278 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4282 _ascii (); _ebcdic ();
4287 rm -f conftest.$ac_objext
4288 if { (ac_try="$ac_compile"
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_compile") 2>conftest.er1
4296 grep -v '^ *+' conftest.er1 >conftest.err
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } &&
4301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4302 { (case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_try") 2>&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; } &&
4311 { ac_try='test -s conftest.$ac_objext'
4312 { (case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_try") 2>&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; }; then
4321 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4322 ac_cv_c_bigendian=yes
4324 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4325 if test "$ac_cv_c_bigendian" = unknown; then
4326 ac_cv_c_bigendian=no
4328 # finding both strings is unlikely to happen, but who knows?
4329 ac_cv_c_bigendian=unknown
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 $ac_includes_default
4352 /* Are we little or big endian? From Harbison&Steele. */
4356 char c[sizeof (long int)];
4359 return u.c[sizeof (long int) - 1] == 1;
4365 rm -f conftest$ac_exeext
4366 if { (ac_try="$ac_link"
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_link") 2>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4376 { (case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_try") 2>&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 ac_cv_c_bigendian=no
4387 echo "$as_me: program exited with status $ac_status" >&5
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4392 ac_cv_c_bigendian=yes
4394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4403 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4404 case $ac_cv_c_bigendian in
4412 { { echo "$as_me:$LINENO: error: unknown endianness
4413 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4414 echo "$as_me: error: unknown endianness
4415 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4416 { (exit 1); exit 1; }; } ;;
4420 if test "$cross_compiling" = yes; then
4421 LLVM_CROSS_COMPILING=1
4424 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4425 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4426 if test "${ac_cv_build_exeext+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4430 ac_cv_build_exeext=.exe
4432 ac_build_prefix=${build_alias}-
4434 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4435 set dummy ${ac_build_prefix}gcc; ac_word=$2
4436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 if test -n "$BUILD_CC"; then
4442 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4451 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 BUILD_CC=$ac_cv_prog_BUILD_CC
4462 if test -n "$BUILD_CC"; then
4463 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4464 echo "${ECHO_T}$BUILD_CC" >&6; }
4466 { echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6; }
4471 if test -z "$BUILD_CC"; then
4472 # Extract the first word of "gcc", so it can be a program name with args.
4473 set dummy gcc; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 if test -n "$BUILD_CC"; then
4480 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_prog_BUILD_CC="gcc"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 BUILD_CC=$ac_cv_prog_BUILD_CC
4500 if test -n "$BUILD_CC"; then
4501 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4502 echo "${ECHO_T}$BUILD_CC" >&6; }
4504 { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4509 if test -z "$BUILD_CC"; then
4510 # Extract the first word of "cc", so it can be a program name with args.
4511 set dummy cc; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 if test -n "$BUILD_CC"; then
4518 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4529 ac_prog_rejected=yes
4532 ac_cv_prog_BUILD_CC="cc"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 if test $ac_prog_rejected = yes; then
4541 # We found a bogon in the path, so make sure we never use it.
4542 set dummy $ac_cv_prog_BUILD_CC
4544 if test $# != 0; then
4545 # We chose a different compiler from the bogus one.
4546 # However, it has the same basename, so the bogon will be chosen
4547 # first if we set BUILD_CC to just the basename; use the full file name.
4549 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4554 BUILD_CC=$ac_cv_prog_BUILD_CC
4555 if test -n "$BUILD_CC"; then
4556 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4557 echo "${ECHO_T}$BUILD_CC" >&6; }
4559 { echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6; }
4566 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4567 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4568 { (exit 1); exit 1; }; }
4569 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4571 echo 'int main () { return 0; }' > conftest.$ac_ext
4573 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4574 (eval $ac_build_link) 2>&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; then
4578 for file in conftest.*; do
4580 *.c | *.o | *.obj | *.dSYM) ;;
4581 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4585 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4586 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4587 { (exit 1); exit 1; }; }
4590 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4595 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4596 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4597 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4598 ac_build_exeext=$BUILD_EXEEXT
4600 ac_build_prefix=${build_alias}-
4601 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4602 set dummy ${ac_build_prefix}g++; ac_word=$2
4603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4605 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 if test -n "$BUILD_CXX"; then
4609 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4629 if test -n "$BUILD_CXX"; then
4630 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4631 echo "${ECHO_T}$BUILD_CXX" >&6; }
4633 { echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6; }
4638 if test -z "$BUILD_CXX"; then
4639 # Extract the first word of "g++", so it can be a program name with args.
4640 set dummy g++; ac_word=$2
4641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 if test -n "$BUILD_CXX"; then
4647 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_BUILD_CXX="g++"
4657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4667 if test -n "$BUILD_CXX"; then
4668 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4669 echo "${ECHO_T}$BUILD_CXX" >&6; }
4671 { echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6; }
4676 if test -z "$BUILD_CXX"; then
4677 # Extract the first word of "c++", so it can be a program name with args.
4678 set dummy c++; ac_word=$2
4679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4681 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 if test -n "$BUILD_CXX"; then
4685 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4696 ac_prog_rejected=yes
4699 ac_cv_prog_BUILD_CXX="c++"
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 if test $ac_prog_rejected = yes; then
4708 # We found a bogon in the path, so make sure we never use it.
4709 set dummy $ac_cv_prog_BUILD_CXX
4711 if test $# != 0; then
4712 # We chose a different compiler from the bogus one.
4713 # However, it has the same basename, so the bogon will be chosen
4714 # first if we set BUILD_CXX to just the basename; use the full file name.
4716 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4721 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4722 if test -n "$BUILD_CXX"; then
4723 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4724 echo "${ECHO_T}$BUILD_CXX" >&6; }
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4734 LLVM_CROSS_COMPILING=0
4738 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4749 # Check whether --enable-optimized was given.
4750 if test "${enable_optimized+set}" = set; then
4751 enableval=$enable_optimized;
4756 if test ${enableval} = "no" ; then
4760 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4764 # Check whether --enable-profiling was given.
4765 if test "${enable_profiling+set}" = set; then
4766 enableval=$enable_profiling;
4771 if test ${enableval} = "no" ; then
4775 ENABLE_PROFILING=ENABLE_PROFILING=1
4779 # Check whether --enable-assertions was given.
4780 if test "${enable_assertions+set}" = set; then
4781 enableval=$enable_assertions;
4786 if test ${enableval} = "yes" ; then
4790 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4794 # Check whether --enable-expensive-checks was given.
4795 if test "${enable_expensive_checks+set}" = set; then
4796 enableval=$enable_expensive_checks;
4801 if test ${enableval} = "yes" ; then
4802 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4804 EXPENSIVE_CHECKS=yes
4807 ENABLE_EXPENSIVE_CHECKS=
4813 # Check whether --enable-debug-runtime was given.
4814 if test "${enable_debug_runtime+set}" = set; then
4815 enableval=$enable_debug_runtime;
4820 if test ${enableval} = "no" ; then
4824 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4828 # Check whether --enable-debug-symbols was given.
4829 if test "${enable_debug_symbols+set}" = set; then
4830 enableval=$enable_debug_symbols;
4835 if test ${enableval} = "no" ; then
4839 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4843 # Check whether --enable-jit was given.
4844 if test "${enable_jit+set}" = set; then
4845 enableval=$enable_jit;
4850 if test ${enableval} = "no"
4855 case "$llvm_cv_target_arch" in
4856 x86) TARGET_HAS_JIT=1
4858 Sparc) TARGET_HAS_JIT=0
4860 PowerPC) TARGET_HAS_JIT=1
4862 x86_64) TARGET_HAS_JIT=1
4864 Alpha) TARGET_HAS_JIT=0
4866 ARM) TARGET_HAS_JIT=1
4868 Mips) TARGET_HAS_JIT=1
4870 XCore) TARGET_HAS_JIT=0
4872 MSP430) TARGET_HAS_JIT=0
4874 SystemZ) TARGET_HAS_JIT=0
4876 Blackfin) TARGET_HAS_JIT=0
4878 MBlaze) TARGET_HAS_JIT=0
4880 PTX) TARGET_HAS_JIT=0
4887 # Check whether --enable-docs was given.
4888 if test "${enable_docs+set}" = set; then
4889 enableval=$enable_docs;
4894 case "$enableval" in
4899 default) ENABLE_DOCS=1
4901 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4902 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4903 { (exit 1); exit 1; }; } ;;
4906 # Check whether --enable-doxygen was given.
4907 if test "${enable_doxygen+set}" = set; then
4908 enableval=$enable_doxygen;
4913 case "$enableval" in
4914 yes) ENABLE_DOXYGEN=1
4916 no) ENABLE_DOXYGEN=0
4918 default) ENABLE_DOXYGEN=0
4920 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4921 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4922 { (exit 1); exit 1; }; } ;;
4925 # Check whether --enable-threads was given.
4926 if test "${enable_threads+set}" = set; then
4927 enableval=$enable_threads;
4932 case "$enableval" in
4933 yes) ENABLE_THREADS=1
4935 no) ENABLE_THREADS=0
4937 default) ENABLE_THREADS=1
4939 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4940 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4941 { (exit 1); exit 1; }; } ;;
4944 cat >>confdefs.h <<_ACEOF
4945 #define ENABLE_THREADS $ENABLE_THREADS
4949 # Check whether --enable-pthreads was given.
4950 if test "${enable_pthreads+set}" = set; then
4951 enableval=$enable_pthreads;
4956 case "$enableval" in
4957 yes) ENABLE_PTHREADS=1
4959 no) ENABLE_PTHREADS=0
4961 default) ENABLE_PTHREADS=1
4963 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4964 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4965 { (exit 1); exit 1; }; } ;;
4968 # Check whether --enable-pic was given.
4969 if test "${enable_pic+set}" = set; then
4970 enableval=$enable_pic;
4975 case "$enableval" in
4980 default) ENABLE_PIC=1
4982 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4983 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4984 { (exit 1); exit 1; }; } ;;
4987 cat >>confdefs.h <<_ACEOF
4988 #define ENABLE_PIC $ENABLE_PIC
4992 # Check whether --enable-shared was given.
4993 if test "${enable_shared+set}" = set; then
4994 enableval=$enable_shared;
4999 case "$enableval" in
5000 yes) ENABLE_SHARED=1
5004 default) ENABLE_SHARED=0
5006 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5007 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5008 { (exit 1); exit 1; }; } ;;
5011 # Check whether --enable-embed-stdcxx was given.
5012 if test "${enable_embed_stdcxx+set}" = set; then
5013 enableval=$enable_embed_stdcxx;
5018 case "$enableval" in
5019 yes) ENABLE_EMBED_STDCXX=1
5021 no) ENABLE_EMBED_STDCXX=0
5023 default) ENABLE_EMBED_STDCXX=1
5025 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5026 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5027 { (exit 1); exit 1; }; } ;;
5030 # Check whether --enable-timestamps was given.
5031 if test "${enable_timestamps+set}" = set; then
5032 enableval=$enable_timestamps;
5037 case "$enableval" in
5038 yes) ENABLE_TIMESTAMPS=1
5040 no) ENABLE_TIMESTAMPS=0
5042 default) ENABLE_TIMESTAMPS=1
5044 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5045 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5046 { (exit 1); exit 1; }; } ;;
5049 cat >>confdefs.h <<_ACEOF
5050 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5055 # Check whether --enable-targets was given.
5056 if test "${enable_targets+set}" = set; then
5057 enableval=$enable_targets;
5062 if test "$enableval" = host-only ; then
5065 case "$enableval" in
5066 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5067 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5069 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5070 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5071 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5072 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5073 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5074 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5075 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5076 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5077 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5078 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5079 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5080 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5081 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5082 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5083 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5084 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5085 host) case "$llvm_cv_target_arch" in
5086 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5087 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5088 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5089 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5090 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5091 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5092 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5093 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5094 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5095 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5096 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5097 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5098 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5099 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5100 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5101 echo "$as_me: error: Can not set target to build" >&2;}
5102 { (exit 1); exit 1; }; } ;;
5104 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5105 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5106 { (exit 1); exit 1; }; } ;;
5111 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5114 # Determine whether we are building LLVM support for the native architecture.
5115 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5116 for a_target in $TARGETS_TO_BUILD; do
5117 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5119 cat >>confdefs.h <<_ACEOF
5120 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5123 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5124 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5125 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5126 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5127 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5128 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5131 cat >>confdefs.h <<_ACEOF
5132 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5136 cat >>confdefs.h <<_ACEOF
5137 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5141 cat >>confdefs.h <<_ACEOF
5142 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5146 cat >>confdefs.h <<_ACEOF
5147 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5150 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5152 cat >>confdefs.h <<_ACEOF
5153 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5160 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5161 # target feature def files.
5162 LLVM_ENUM_TARGETS=""
5163 LLVM_ENUM_ASM_PRINTERS=""
5164 LLVM_ENUM_ASM_PARSERS=""
5165 LLVM_ENUM_DISASSEMBLERS=""
5166 for target_to_build in $TARGETS_TO_BUILD; do
5167 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5168 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5169 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5171 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5172 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5174 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5175 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5183 # Check whether --enable-cbe-printf-a was given.
5184 if test "${enable_cbe_printf_a+set}" = set; then
5185 enableval=$enable_cbe_printf_a;
5190 case "$enableval" in
5191 yes) ENABLE_CBE_PRINTF_A=1
5193 no) ENABLE_CBE_PRINTF_A=0
5195 default) ENABLE_CBE_PRINTF_A=1
5197 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5198 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5199 { (exit 1); exit 1; }; } ;;
5202 cat >>confdefs.h <<_ACEOF
5203 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5208 # Check whether --with-llvmgccdir was given.
5209 if test "${with_llvmgccdir+set}" = set; then
5210 withval=$with_llvmgccdir;
5216 default) WITH_LLVMGCCDIR=default ;;
5217 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5218 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5219 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5220 { (exit 1); exit 1; }; } ;;
5224 # Check whether --with-llvmgcc was given.
5225 if test "${with_llvmgcc+set}" = set; then
5226 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5232 # Check whether --with-llvmgxx was given.
5233 if test "${with_llvmgxx+set}" = set; then
5234 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5239 if test -n "$LLVMGCC"; then
5240 LLVMGCCCOMMAND="$LLVMGCC"
5243 if test -n "$LLVMGXX"; then
5244 LLVMGXXCOMMAND="$LLVMGXX"
5247 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5248 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5249 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5250 { (exit 1); exit 1; }; };
5253 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5254 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5255 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5256 { (exit 1); exit 1; }; };
5260 # Check whether --with-clang was given.
5261 if test "${with_clang+set}" = set; then
5262 withval=$with_clang;
5269 # Check whether --with-built-clang was given.
5270 if test "${with_built_clang+set}" = set; then
5271 withval=$with_built_clang;
5273 with_built_clang=check
5277 { echo "$as_me:$LINENO: checking clang compiler" >&5
5278 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5281 if test "$with_clang" != "default"; then
5282 WITH_CLANGPATH="$with_clang"
5283 if ! test -x "$WITH_CLANGPATH"; then
5284 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5285 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5286 { (exit 1); exit 1; }; }
5288 elif test "$with_built_clang" = "yes"; then
5290 elif test "$with_built_clang" = "no"; then
5293 if test "$with_built_clang" != "check"; then
5294 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5295 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5296 { (exit 1); exit 1; }; }
5299 if test -f ${srcdir}/tools/clang/README.txt; then
5304 if ! test -z "$WITH_CLANGPATH"; then
5305 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5306 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5307 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5308 elif test "$WITH_BUILT_CLANG" = "1"; then
5309 { echo "$as_me:$LINENO: result: built" >&5
5310 echo "${ECHO_T}built" >&6; }
5312 { echo "$as_me:$LINENO: result: none" >&5
5313 echo "${ECHO_T}none" >&6; }
5315 CLANGPATH=$WITH_CLANGPATH
5317 CLANGXXPATH=$WITH_CLANGXXPATH
5319 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5323 # Check whether --with-optimize-option was given.
5324 if test "${with_optimize_option+set}" = set; then
5325 withval=$with_optimize_option;
5330 { echo "$as_me:$LINENO: checking optimization flags" >&5
5331 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5334 case "$llvm_cv_os_type" in
5335 FreeBSD) optimize_option=-O2 ;;
5336 MingW) optimize_option=-O2 ;;
5337 *) optimize_option=-O3 ;;
5339 *) optimize_option="$withval" ;;
5341 OPTIMIZE_OPTION=$optimize_option
5343 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5344 echo "${ECHO_T}$optimize_option" >&6; }
5347 # Check whether --with-extra-options was given.
5348 if test "${with_extra_options+set}" = set; then
5349 withval=$with_extra_options;
5355 default) EXTRA_OPTIONS= ;;
5356 *) EXTRA_OPTIONS=$withval ;;
5358 EXTRA_OPTIONS=$EXTRA_OPTIONS
5362 # Check whether --with-extra-ld-options was given.
5363 if test "${with_extra_ld_options+set}" = set; then
5364 withval=$with_extra_ld_options;
5370 default) EXTRA_LD_OPTIONS= ;;
5371 *) EXTRA_LD_OPTIONS=$withval ;;
5373 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5376 # Check whether --enable-bindings was given.
5377 if test "${enable_bindings+set}" = set; then
5378 enableval=$enable_bindings;
5383 BINDINGS_TO_BUILD=""
5384 case "$enableval" in
5385 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5386 all ) BINDINGS_TO_BUILD="ocaml" ;;
5387 none | no) BINDINGS_TO_BUILD="" ;;
5388 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5389 case "$a_binding" in
5390 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5391 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5392 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5393 { (exit 1); exit 1; }; } ;;
5400 # Check whether --with-ocaml-libdir was given.
5401 if test "${with_ocaml_libdir+set}" = set; then
5402 withval=$with_ocaml_libdir;
5408 auto) with_ocaml_libdir="$withval" ;;
5409 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5410 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5411 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5412 { (exit 1); exit 1; }; } ;;
5416 # Check whether --with-clang-resource-dir was given.
5417 if test "${with_clang_resource_dir+set}" = set; then
5418 withval=$with_clang_resource_dir;
5424 cat >>confdefs.h <<_ACEOF
5425 #define CLANG_RESOURCE_DIR "$withval"
5430 # Check whether --with-c-include-dirs was given.
5431 if test "${with_c_include_dirs+set}" = set; then
5432 withval=$with_c_include_dirs;
5438 cat >>confdefs.h <<_ACEOF
5439 #define C_INCLUDE_DIRS "$withval"
5444 # Check whether --with-cxx-include-root was given.
5445 if test "${with_cxx_include_root+set}" = set; then
5446 withval=$with_cxx_include_root;
5452 cat >>confdefs.h <<_ACEOF
5453 #define CXX_INCLUDE_ROOT "$withval"
5458 # Check whether --with-cxx-include-arch was given.
5459 if test "${with_cxx_include_arch+set}" = set; then
5460 withval=$with_cxx_include_arch;
5466 cat >>confdefs.h <<_ACEOF
5467 #define CXX_INCLUDE_ARCH "$withval"
5472 # Check whether --with-cxx-include-32bit-dir was given.
5473 if test "${with_cxx_include_32bit_dir+set}" = set; then
5474 withval=$with_cxx_include_32bit_dir;
5480 cat >>confdefs.h <<_ACEOF
5481 #define CXX_INCLUDE_32BIT_DIR "$withval"
5486 # Check whether --with-cxx-include-64bit-dir was given.
5487 if test "${with_cxx_include_64bit_dir+set}" = set; then
5488 withval=$with_cxx_include_64bit_dir;
5494 cat >>confdefs.h <<_ACEOF
5495 #define CXX_INCLUDE_64BIT_DIR "$withval"
5500 # Check whether --with-binutils-include was given.
5501 if test "${with_binutils_include+set}" = set; then
5502 withval=$with_binutils_include;
5508 default) WITH_BINUTILS_INCDIR=default ;;
5509 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5510 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5511 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5512 { (exit 1); exit 1; }; } ;;
5514 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5515 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5517 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5518 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5519 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5520 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5521 { (exit 1); exit 1; }; };
5526 # Check whether --with-bug-report-url was given.
5527 if test "${with_bug_report_url+set}" = set; then
5528 withval=$with_bug_report_url;
5530 withval="http://llvm.org/bugs/"
5534 cat >>confdefs.h <<_ACEOF
5535 #define BUG_REPORT_URL "$withval"
5539 # Check whether --enable-libffi was given.
5540 if test "${enable_libffi+set}" = set; then
5541 enableval=$enable_libffi; case "$enableval" in
5542 yes) llvm_cv_enable_libffi="yes" ;;
5543 no) llvm_cv_enable_libffi="no" ;;
5544 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5545 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5546 { (exit 1); exit 1; }; } ;;
5549 llvm_cv_enable_libffi=no
5555 ac_cpp='$CPP $CPPFLAGS'
5556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5559 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5560 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5561 # On Suns, sometimes $CPP names a directory.
5562 if test -n "$CPP" && test -d "$CPP"; then
5565 if test -z "$CPP"; then
5566 if test "${ac_cv_prog_CPP+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 # Double quotes because CPP needs to be expanded
5570 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5573 for ac_c_preproc_warn_flag in '' yes
5575 # Use a header file that comes with gcc, so configuring glibc
5576 # with a fresh cross-compiler works.
5577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5578 # <limits.h> exists even on freestanding compilers.
5579 # On the NeXT, cc -E runs the code through the compiler's parser,
5580 # not just through cpp. "Syntax error" is here to catch this case.
5581 cat >conftest.$ac_ext <<_ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5588 # include <limits.h>
5590 # include <assert.h>
5594 if { (ac_try="$ac_cpp conftest.$ac_ext"
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5602 grep -v '^ *+' conftest.er1 >conftest.err
5604 cat conftest.err >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } >/dev/null; then
5607 if test -s conftest.err; then
5608 ac_cpp_err=$ac_c_preproc_warn_flag
5609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5616 if test -z "$ac_cpp_err"; then
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5622 # Broken: fails on valid input.
5626 rm -f conftest.err conftest.$ac_ext
5628 # OK, works on sane cases. Now check whether nonexistent headers
5629 # can be detected and how.
5630 cat >conftest.$ac_ext <<_ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5636 #include <ac_nonexistent.h>
5638 if { (ac_try="$ac_cpp conftest.$ac_ext"
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5646 grep -v '^ *+' conftest.er1 >conftest.err
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } >/dev/null; then
5651 if test -s conftest.err; then
5652 ac_cpp_err=$ac_c_preproc_warn_flag
5653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5660 if test -z "$ac_cpp_err"; then
5661 # Broken: success on invalid input.
5664 echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.$ac_ext >&5
5667 # Passes both tests.
5672 rm -f conftest.err conftest.$ac_ext
5675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5676 rm -f conftest.err conftest.$ac_ext
5677 if $ac_preproc_ok; then
5689 { echo "$as_me:$LINENO: result: $CPP" >&5
5690 echo "${ECHO_T}$CPP" >&6; }
5692 for ac_c_preproc_warn_flag in '' yes
5694 # Use a header file that comes with gcc, so configuring glibc
5695 # with a fresh cross-compiler works.
5696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5697 # <limits.h> exists even on freestanding compilers.
5698 # On the NeXT, cc -E runs the code through the compiler's parser,
5699 # not just through cpp. "Syntax error" is here to catch this case.
5700 cat >conftest.$ac_ext <<_ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5707 # include <limits.h>
5709 # include <assert.h>
5713 if { (ac_try="$ac_cpp conftest.$ac_ext"
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5721 grep -v '^ *+' conftest.er1 >conftest.err
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } >/dev/null; then
5726 if test -s conftest.err; then
5727 ac_cpp_err=$ac_c_preproc_warn_flag
5728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5735 if test -z "$ac_cpp_err"; then
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 # Broken: fails on valid input.
5745 rm -f conftest.err conftest.$ac_ext
5747 # OK, works on sane cases. Now check whether nonexistent headers
5748 # can be detected and how.
5749 cat >conftest.$ac_ext <<_ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5755 #include <ac_nonexistent.h>
5757 if { (ac_try="$ac_cpp conftest.$ac_ext"
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5765 grep -v '^ *+' conftest.er1 >conftest.err
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } >/dev/null; then
5770 if test -s conftest.err; then
5771 ac_cpp_err=$ac_c_preproc_warn_flag
5772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5779 if test -z "$ac_cpp_err"; then
5780 # Broken: success on invalid input.
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5786 # Passes both tests.
5791 rm -f conftest.err conftest.$ac_ext
5794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5795 rm -f conftest.err conftest.$ac_ext
5796 if $ac_preproc_ok; then
5799 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5800 See \`config.log' for more details." >&5
5801 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5802 See \`config.log' for more details." >&2;}
5803 { (exit 1); exit 1; }; }
5807 ac_cpp='$CPP $CPPFLAGS'
5808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5813 ac_cpp='$CPP $CPPFLAGS'
5814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5817 if test -n "$ac_tool_prefix"; then
5820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824 if test "${ac_cv_prog_CC+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 if test -n "$CC"; then
5828 ac_cv_prog_CC="$CC" # Let the user override the test.
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 if test -n "$CC"; then
5849 { echo "$as_me:$LINENO: result: $CC" >&5
5850 echo "${ECHO_T}$CC" >&6; }
5852 { echo "$as_me:$LINENO: result: no" >&5
5853 echo "${ECHO_T}no" >&6; }
5857 test -n "$CC" && break
5860 if test -z "$CC"; then
5864 # Extract the first word of "$ac_prog", so it can be a program name with args.
5865 set dummy $ac_prog; ac_word=$2
5866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 if test -n "$ac_ct_CC"; then
5872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5881 ac_cv_prog_ac_ct_CC="$ac_prog"
5882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5892 if test -n "$ac_ct_CC"; then
5893 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5894 echo "${ECHO_T}$ac_ct_CC" >&6; }
5896 { echo "$as_me:$LINENO: result: no" >&5
5897 echo "${ECHO_T}no" >&6; }
5901 test -n "$ac_ct_CC" && break
5904 if test "x$ac_ct_CC" = x; then
5907 case $cross_compiling:$ac_tool_warned in
5909 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5910 whose name does not start with the host triplet. If you think this
5911 configuration is useful to you, please write to autoconf@gnu.org." >&5
5912 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5913 whose name does not start with the host triplet. If you think this
5914 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5915 ac_tool_warned=yes ;;
5922 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5923 See \`config.log' for more details." >&5
5924 echo "$as_me: error: no acceptable C compiler found in \$PATH
5925 See \`config.log' for more details." >&2;}
5926 { (exit 1); exit 1; }; }
5928 # Provide some information about the compiler.
5929 echo "$as_me:$LINENO: checking for C compiler version" >&5
5930 ac_compiler=`set X $ac_compile; echo $2`
5931 { (ac_try="$ac_compiler --version >&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 --version >&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); }
5951 { (ac_try="$ac_compiler -V >&5"
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_compiler -V >&5") 2>&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }
5962 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5963 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5964 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 cat >conftest.$ac_ext <<_ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5985 rm -f conftest.$ac_objext
5986 if { (ac_try="$ac_compile"
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_compile") 2>conftest.er1
5994 grep -v '^ *+' conftest.er1 >conftest.err
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6009 { ac_try='test -s conftest.$ac_objext'
6010 { (case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_try") 2>&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6031 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6032 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6033 GCC=`test $ac_compiler_gnu = yes && echo yes`
6034 ac_test_CFLAGS=${CFLAGS+set}
6035 ac_save_CFLAGS=$CFLAGS
6036 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6037 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6038 if test "${ac_cv_prog_cc_g+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 ac_save_c_werror_flag=$ac_c_werror_flag
6042 ac_c_werror_flag=yes
6045 cat >conftest.$ac_ext <<_ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6060 rm -f conftest.$ac_objext
6061 if { (ac_try="$ac_compile"
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compile") 2>conftest.er1
6069 grep -v '^ *+' conftest.er1 >conftest.err
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6084 { ac_try='test -s conftest.$ac_objext'
6085 { (case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_try") 2>&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6100 cat >conftest.$ac_ext <<_ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6115 rm -f conftest.$ac_objext
6116 if { (ac_try="$ac_compile"
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_compile") 2>conftest.er1
6124 grep -v '^ *+' conftest.er1 >conftest.err
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6139 { ac_try='test -s conftest.$ac_objext'
6140 { (case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_try") 2>&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6154 ac_c_werror_flag=$ac_save_c_werror_flag
6156 cat >conftest.$ac_ext <<_ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6171 rm -f conftest.$ac_objext
6172 if { (ac_try="$ac_compile"
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_compile") 2>conftest.er1
6180 grep -v '^ *+' conftest.er1 >conftest.err
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6195 { ac_try='test -s conftest.$ac_objext'
6196 { (case "(($ac_try" in
6197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_try") 2>&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 ac_c_werror_flag=$ac_save_c_werror_flag
6222 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6223 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6224 if test "$ac_test_CFLAGS" = set; then
6225 CFLAGS=$ac_save_CFLAGS
6226 elif test $ac_cv_prog_cc_g = yes; then
6227 if test "$GCC" = yes; then
6233 if test "$GCC" = yes; then
6239 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6240 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6241 if test "${ac_cv_prog_cc_c89+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 ac_cv_prog_cc_c89=no
6246 cat >conftest.$ac_ext <<_ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6254 #include <sys/types.h>
6255 #include <sys/stat.h>
6256 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6257 struct buf { int x; };
6258 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6259 static char *e (p, i)
6265 static char *f (char * (*g) (char **, int), char **p, ...)
6270 s = g (p, va_arg (v,int));
6275 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6276 function prototypes and stuff, but not '\xHH' hex character constants.
6277 These don't provoke an error unfortunately, instead are silently treated
6278 as 'x'. The following induces an error, until -std is added to get
6279 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6280 array size at least. It's necessary to write '\x00'==0 to get something
6281 that's true only with -std. */
6282 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6284 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6285 inside strings and character constants. */
6287 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6289 int test (int i, double x);
6290 struct s1 {int (*f) (int a);};
6291 struct s2 {int (*f) (double a);};
6292 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6298 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6303 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6304 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6306 CC="$ac_save_CC $ac_arg"
6307 rm -f conftest.$ac_objext
6308 if { (ac_try="$ac_compile"
6310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6314 (eval "$ac_compile") 2>conftest.er1
6316 grep -v '^ *+' conftest.er1 >conftest.err
6318 cat conftest.err >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } &&
6321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6331 { ac_try='test -s conftest.$ac_objext'
6332 { (case "(($ac_try" in
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_try") 2>&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 ac_cv_prog_cc_c89=$ac_arg
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6349 rm -f core conftest.err conftest.$ac_objext
6350 test "x$ac_cv_prog_cc_c89" != "xno" && break
6352 rm -f conftest.$ac_ext
6357 case "x$ac_cv_prog_cc_c89" in
6359 { echo "$as_me:$LINENO: result: none needed" >&5
6360 echo "${ECHO_T}none needed" >&6; } ;;
6362 { echo "$as_me:$LINENO: result: unsupported" >&5
6363 echo "${ECHO_T}unsupported" >&6; } ;;
6365 CC="$CC $ac_cv_prog_cc_c89"
6366 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6367 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6372 ac_cpp='$CPP $CPPFLAGS'
6373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6378 ac_cpp='$CXXCPP $CPPFLAGS'
6379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6382 if test -z "$CXX"; then
6383 if test -n "$CCC"; then
6386 if test -n "$ac_tool_prefix"; then
6389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393 if test "${ac_cv_prog_CXX+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 if test -n "$CXX"; then
6397 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 if test -n "$CXX"; then
6418 { echo "$as_me:$LINENO: result: $CXX" >&5
6419 echo "${ECHO_T}$CXX" >&6; }
6421 { echo "$as_me:$LINENO: result: no" >&5
6422 echo "${ECHO_T}no" >&6; }
6426 test -n "$CXX" && break
6429 if test -z "$CXX"; then
6433 # Extract the first word of "$ac_prog", so it can be a program name with args.
6434 set dummy $ac_prog; ac_word=$2
6435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6437 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 if test -n "$ac_ct_CXX"; then
6441 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_prog_ac_ct_CXX="$ac_prog"
6451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6461 if test -n "$ac_ct_CXX"; then
6462 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6463 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6465 { echo "$as_me:$LINENO: result: no" >&5
6466 echo "${ECHO_T}no" >&6; }
6470 test -n "$ac_ct_CXX" && break
6473 if test "x$ac_ct_CXX" = x; then
6476 case $cross_compiling:$ac_tool_warned in
6478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6479 whose name does not start with the host triplet. If you think this
6480 configuration is useful to you, please write to autoconf@gnu.org." >&5
6481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6482 whose name does not start with the host triplet. If you think this
6483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6484 ac_tool_warned=yes ;;
6492 # Provide some information about the compiler.
6493 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6494 ac_compiler=`set X $ac_compile; echo $2`
6495 { (ac_try="$ac_compiler --version >&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 --version >&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); }
6515 { (ac_try="$ac_compiler -V >&5"
6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521 (eval "$ac_compiler -V >&5") 2>&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }
6526 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6527 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6528 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 cat >conftest.$ac_ext <<_ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6549 rm -f conftest.$ac_objext
6550 if { (ac_try="$ac_compile"
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_compile") 2>conftest.er1
6558 grep -v '^ *+' conftest.er1 >conftest.err
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } &&
6563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6573 { ac_try='test -s conftest.$ac_objext'
6574 { (case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_try") 2>&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6595 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6596 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6597 GXX=`test $ac_compiler_gnu = yes && echo yes`
6598 ac_test_CXXFLAGS=${CXXFLAGS+set}
6599 ac_save_CXXFLAGS=$CXXFLAGS
6600 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6601 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6602 if test "${ac_cv_prog_cxx_g+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6606 ac_cxx_werror_flag=yes
6609 cat >conftest.$ac_ext <<_ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6624 rm -f conftest.$ac_objext
6625 if { (ac_try="$ac_compile"
6627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628 *) ac_try_echo=$ac_try;;
6630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631 (eval "$ac_compile") 2>conftest.er1
6633 grep -v '^ *+' conftest.er1 >conftest.err
6635 cat conftest.err >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } &&
6638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6648 { ac_try='test -s conftest.$ac_objext'
6649 { (case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_try") 2>&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; }; then
6658 ac_cv_prog_cxx_g=yes
6660 echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6664 cat >conftest.$ac_ext <<_ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6679 rm -f conftest.$ac_objext
6680 if { (ac_try="$ac_compile"
6682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686 (eval "$ac_compile") 2>conftest.er1
6688 grep -v '^ *+' conftest.er1 >conftest.err
6690 cat conftest.err >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } &&
6693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6703 { ac_try='test -s conftest.$ac_objext'
6704 { (case "(($ac_try" in
6705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6706 *) ac_try_echo=$ac_try;;
6708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6709 (eval "$ac_try") 2>&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6718 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6720 cat >conftest.$ac_ext <<_ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6735 rm -f conftest.$ac_objext
6736 if { (ac_try="$ac_compile"
6738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6739 *) ac_try_echo=$ac_try;;
6741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6742 (eval "$ac_compile") 2>conftest.er1
6744 grep -v '^ *+' conftest.er1 >conftest.err
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6759 { ac_try='test -s conftest.$ac_objext'
6760 { (case "(($ac_try" in
6761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6762 *) ac_try_echo=$ac_try;;
6764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6765 (eval "$ac_try") 2>&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6769 ac_cv_prog_cxx_g=yes
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6786 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6787 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6788 if test "$ac_test_CXXFLAGS" = set; then
6789 CXXFLAGS=$ac_save_CXXFLAGS
6790 elif test $ac_cv_prog_cxx_g = yes; then
6791 if test "$GXX" = yes; then
6797 if test "$GXX" = yes; then
6804 ac_cpp='$CPP $CPPFLAGS'
6805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6810 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6811 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6812 if test "${lt_cv_path_NM+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 if test -n "$NM"; then
6816 # Let the user override the test.
6819 lt_nm_to_check="${ac_tool_prefix}nm"
6820 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6821 lt_nm_to_check="$lt_nm_to_check nm"
6823 for lt_tmp_nm in $lt_nm_to_check; do
6824 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6825 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6827 test -z "$ac_dir" && ac_dir=.
6828 tmp_nm="$ac_dir/$lt_tmp_nm"
6829 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6830 # Check to see if the nm accepts a BSD-compat flag.
6831 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6832 # nm: unknown option "B" ignored
6833 # Tru64's nm complains that /dev/null is an invalid object file
6834 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6835 */dev/null* | *'Invalid file or object type'*)
6836 lt_cv_path_NM="$tmp_nm -B"
6840 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6842 lt_cv_path_NM="$tmp_nm -p"
6846 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6847 continue # so that we can try to find one that supports BSD flags
6856 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6859 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6860 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6865 { echo "$as_me:$LINENO: checking for GNU make" >&5
6866 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6867 if test "${llvm_cv_gnu_make_command+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 llvm_cv_gnu_make_command=''
6871 for a in "$MAKE" make gmake gnumake ; do
6872 if test -z "$a" ; then continue ; fi ;
6873 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6875 llvm_cv_gnu_make_command=$a ;
6880 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6881 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6882 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6886 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6887 echo "${ECHO_T}\"Not found\"" >&6; };
6891 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6892 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6894 if test "$LN_S" = "ln -s"; then
6895 { echo "$as_me:$LINENO: result: yes" >&5
6896 echo "${ECHO_T}yes" >&6; }
6898 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6899 echo "${ECHO_T}no, using $LN_S" >&6; }
6902 # Extract the first word of "cmp", so it can be a program name with args.
6903 set dummy cmp; ac_word=$2
6904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906 if test "${ac_cv_path_CMP+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6921 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6934 if test -n "$CMP"; then
6935 { echo "$as_me:$LINENO: result: $CMP" >&5
6936 echo "${ECHO_T}$CMP" >&6; }
6938 { echo "$as_me:$LINENO: result: no" >&5
6939 echo "${ECHO_T}no" >&6; }
6943 # Extract the first word of "cp", so it can be a program name with args.
6944 set dummy cp; ac_word=$2
6945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947 if test "${ac_cv_path_CP+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6975 if test -n "$CP"; then
6976 { echo "$as_me:$LINENO: result: $CP" >&5
6977 echo "${ECHO_T}$CP" >&6; }
6979 { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6984 # Extract the first word of "date", so it can be a program name with args.
6985 set dummy date; ac_word=$2
6986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988 if test "${ac_cv_path_DATE+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
7015 DATE=$ac_cv_path_DATE
7016 if test -n "$DATE"; then
7017 { echo "$as_me:$LINENO: result: $DATE" >&5
7018 echo "${ECHO_T}$DATE" >&6; }
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7025 # Extract the first word of "find", so it can be a program name with args.
7026 set dummy find; ac_word=$2
7027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029 if test "${ac_cv_path_FIND+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7056 FIND=$ac_cv_path_FIND
7057 if test -n "$FIND"; then
7058 { echo "$as_me:$LINENO: result: $FIND" >&5
7059 echo "${ECHO_T}$FIND" >&6; }
7061 { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7066 # Extract the first word of "grep", so it can be a program name with args.
7067 set dummy grep; ac_word=$2
7068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7070 if test "${ac_cv_path_GREP+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7097 GREP=$ac_cv_path_GREP
7098 if test -n "$GREP"; then
7099 { echo "$as_me:$LINENO: result: $GREP" >&5
7100 echo "${ECHO_T}$GREP" >&6; }
7102 { echo "$as_me:$LINENO: result: no" >&5
7103 echo "${ECHO_T}no" >&6; }
7107 # Extract the first word of "mkdir", so it can be a program name with args.
7108 set dummy mkdir; ac_word=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_path_MKDIR+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7126 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7138 MKDIR=$ac_cv_path_MKDIR
7139 if test -n "$MKDIR"; then
7140 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7141 echo "${ECHO_T}$MKDIR" >&6; }
7143 { echo "$as_me:$LINENO: result: no" >&5
7144 echo "${ECHO_T}no" >&6; }
7148 # Extract the first word of "mv", so it can be a program name with args.
7149 set dummy mv; ac_word=$2
7150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152 if test "${ac_cv_path_MV+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7180 if test -n "$MV"; then
7181 { echo "$as_me:$LINENO: result: $MV" >&5
7182 echo "${ECHO_T}$MV" >&6; }
7184 { echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6; }
7189 if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7191 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_prog_RANLIB+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 if test -n "$RANLIB"; then
7198 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 RANLIB=$ac_cv_prog_RANLIB
7218 if test -n "$RANLIB"; then
7219 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7220 echo "${ECHO_T}$RANLIB" >&6; }
7222 { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7228 if test -z "$ac_cv_prog_RANLIB"; then
7229 ac_ct_RANLIB=$RANLIB
7230 # Extract the first word of "ranlib", so it can be a program name with args.
7231 set dummy ranlib; ac_word=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 if test -n "$ac_ct_RANLIB"; then
7238 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_ac_ct_RANLIB="ranlib"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7258 if test -n "$ac_ct_RANLIB"; then
7259 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7260 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7262 { echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6; }
7266 if test "x$ac_ct_RANLIB" = x; then
7269 case $cross_compiling:$ac_tool_warned in
7271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7272 whose name does not start with the host triplet. If you think this
7273 configuration is useful to you, please write to autoconf@gnu.org." >&5
7274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7275 whose name does not start with the host triplet. If you think this
7276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7277 ac_tool_warned=yes ;;
7279 RANLIB=$ac_ct_RANLIB
7282 RANLIB="$ac_cv_prog_RANLIB"
7285 if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}ar; ac_word=$2
7288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7290 if test "${ac_cv_prog_AR+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 if test -n "$AR"; then
7294 ac_cv_prog_AR="$AR" # Let the user override the test.
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_prog_AR="${ac_tool_prefix}ar"
7304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 if test -n "$AR"; then
7315 { echo "$as_me:$LINENO: result: $AR" >&5
7316 echo "${ECHO_T}$AR" >&6; }
7318 { echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6; }
7324 if test -z "$ac_cv_prog_AR"; then
7326 # Extract the first word of "ar", so it can be a program name with args.
7327 set dummy ar; ac_word=$2
7328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 if test -n "$ac_ct_AR"; then
7334 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7343 ac_cv_prog_ac_ct_AR="ar"
7344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7354 if test -n "$ac_ct_AR"; then
7355 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7356 echo "${ECHO_T}$ac_ct_AR" >&6; }
7358 { echo "$as_me:$LINENO: result: no" >&5
7359 echo "${ECHO_T}no" >&6; }
7362 if test "x$ac_ct_AR" = x; then
7365 case $cross_compiling:$ac_tool_warned in
7367 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7368 whose name does not start with the host triplet. If you think this
7369 configuration is useful to you, please write to autoconf@gnu.org." >&5
7370 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7371 whose name does not start with the host triplet. If you think this
7372 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7373 ac_tool_warned=yes ;;
7381 # Extract the first word of "rm", so it can be a program name with args.
7382 set dummy rm; ac_word=$2
7383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385 if test "${ac_cv_path_RM+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7400 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7413 if test -n "$RM"; then
7414 { echo "$as_me:$LINENO: result: $RM" >&5
7415 echo "${ECHO_T}$RM" >&6; }
7417 { echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6; }
7422 # Extract the first word of "sed", so it can be a program name with args.
7423 set dummy sed; ac_word=$2
7424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7426 if test "${ac_cv_path_SED+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7441 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7454 if test -n "$SED"; then
7455 { echo "$as_me:$LINENO: result: $SED" >&5
7456 echo "${ECHO_T}$SED" >&6; }
7458 { echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6; }
7463 # Extract the first word of "tar", so it can be a program name with args.
7464 set dummy tar; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_TAR+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7495 if test -n "$TAR"; then
7496 { echo "$as_me:$LINENO: result: $TAR" >&5
7497 echo "${ECHO_T}$TAR" >&6; }
7499 { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7504 # Extract the first word of "pwd", so it can be a program name with args.
7505 set dummy pwd; ac_word=$2
7506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508 if test "${ac_cv_path_BINPWD+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7535 BINPWD=$ac_cv_path_BINPWD
7536 if test -n "$BINPWD"; then
7537 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7538 echo "${ECHO_T}$BINPWD" >&6; }
7540 { echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6; }
7546 # Extract the first word of "Graphviz", so it can be a program name with args.
7547 set dummy Graphviz; ac_word=$2
7548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7550 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7565 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7577 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7578 if test -n "$GRAPHVIZ"; then
7579 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7580 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7582 { echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6; }
7587 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7589 cat >>confdefs.h <<\_ACEOF
7590 #define HAVE_GRAPHVIZ 1
7593 if test "$llvm_cv_os_type" = "MingW" ; then
7594 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7597 cat >>confdefs.h <<_ACEOF
7598 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7602 # Extract the first word of "dot", so it can be a program name with args.
7603 set dummy dot; ac_word=$2
7604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7606 if test "${ac_cv_path_DOT+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7634 if test -n "$DOT"; then
7635 { echo "$as_me:$LINENO: result: $DOT" >&5
7636 echo "${ECHO_T}$DOT" >&6; }
7638 { echo "$as_me:$LINENO: result: no" >&5
7639 echo "${ECHO_T}no" >&6; }
7643 if test "$DOT" != "echo dot" ; then
7645 cat >>confdefs.h <<\_ACEOF
7649 if test "$llvm_cv_os_type" = "MingW" ; then
7650 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7653 cat >>confdefs.h <<_ACEOF
7654 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7658 # Extract the first word of "fdp", so it can be a program name with args.
7659 set dummy fdp; ac_word=$2
7660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7662 if test "${ac_cv_path_FDP+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7677 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7690 if test -n "$FDP"; then
7691 { echo "$as_me:$LINENO: result: $FDP" >&5
7692 echo "${ECHO_T}$FDP" >&6; }
7694 { echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6; }
7699 if test "$FDP" != "echo fdp" ; then
7701 cat >>confdefs.h <<\_ACEOF
7705 if test "$llvm_cv_os_type" = "MingW" ; then
7706 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7709 cat >>confdefs.h <<_ACEOF
7710 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7714 # Extract the first word of "neato", so it can be a program name with args.
7715 set dummy neato; ac_word=$2
7716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7718 if test "${ac_cv_path_NEATO+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7733 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7745 NEATO=$ac_cv_path_NEATO
7746 if test -n "$NEATO"; then
7747 { echo "$as_me:$LINENO: result: $NEATO" >&5
7748 echo "${ECHO_T}$NEATO" >&6; }
7750 { echo "$as_me:$LINENO: result: no" >&5
7751 echo "${ECHO_T}no" >&6; }
7755 if test "$NEATO" != "echo neato" ; then
7757 cat >>confdefs.h <<\_ACEOF
7758 #define HAVE_NEATO 1
7761 if test "$llvm_cv_os_type" = "MingW" ; then
7762 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7765 cat >>confdefs.h <<_ACEOF
7766 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7770 # Extract the first word of "twopi", so it can be a program name with args.
7771 set dummy twopi; ac_word=$2
7772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774 if test "${ac_cv_path_TWOPI+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7801 TWOPI=$ac_cv_path_TWOPI
7802 if test -n "$TWOPI"; then
7803 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7804 echo "${ECHO_T}$TWOPI" >&6; }
7806 { echo "$as_me:$LINENO: result: no" >&5
7807 echo "${ECHO_T}no" >&6; }
7811 if test "$TWOPI" != "echo twopi" ; then
7813 cat >>confdefs.h <<\_ACEOF
7814 #define HAVE_TWOPI 1
7817 if test "$llvm_cv_os_type" = "MingW" ; then
7818 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7821 cat >>confdefs.h <<_ACEOF
7822 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7826 # Extract the first word of "circo", so it can be a program name with args.
7827 set dummy circo; ac_word=$2
7828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7830 if test "${ac_cv_path_CIRCO+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7845 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7857 CIRCO=$ac_cv_path_CIRCO
7858 if test -n "$CIRCO"; then
7859 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7860 echo "${ECHO_T}$CIRCO" >&6; }
7862 { echo "$as_me:$LINENO: result: no" >&5
7863 echo "${ECHO_T}no" >&6; }
7867 if test "$CIRCO" != "echo circo" ; then
7869 cat >>confdefs.h <<\_ACEOF
7870 #define HAVE_CIRCO 1
7873 if test "$llvm_cv_os_type" = "MingW" ; then
7874 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7877 cat >>confdefs.h <<_ACEOF
7878 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7882 for ac_prog in gv gsview32
7884 # Extract the first word of "$ac_prog", so it can be a program name with args.
7885 set dummy $ac_prog; ac_word=$2
7886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7888 if test "${ac_cv_path_GV+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7903 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 if test -n "$GV"; then
7916 { echo "$as_me:$LINENO: result: $GV" >&5
7917 echo "${ECHO_T}$GV" >&6; }
7919 { echo "$as_me:$LINENO: result: no" >&5
7920 echo "${ECHO_T}no" >&6; }
7924 test -n "$GV" && break
7926 test -n "$GV" || GV="echo gv"
7928 if test "$GV" != "echo gv" ; then
7930 cat >>confdefs.h <<\_ACEOF
7934 if test "$llvm_cv_os_type" = "MingW" ; then
7935 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7938 cat >>confdefs.h <<_ACEOF
7939 #define LLVM_PATH_GV "$GV${EXEEXT}"
7943 # Extract the first word of "dotty", so it can be a program name with args.
7944 set dummy dotty; ac_word=$2
7945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7947 if test "${ac_cv_path_DOTTY+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7962 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7974 DOTTY=$ac_cv_path_DOTTY
7975 if test -n "$DOTTY"; then
7976 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7977 echo "${ECHO_T}$DOTTY" >&6; }
7979 { echo "$as_me:$LINENO: result: no" >&5
7980 echo "${ECHO_T}no" >&6; }
7984 if test "$DOTTY" != "echo dotty" ; then
7986 cat >>confdefs.h <<\_ACEOF
7987 #define HAVE_DOTTY 1
7990 if test "$llvm_cv_os_type" = "MingW" ; then
7991 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7994 cat >>confdefs.h <<_ACEOF
7995 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7999 # Extract the first word of "xdot.py", so it can be a program name with args.
8000 set dummy xdot.py; ac_word=$2
8001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8003 if test "${ac_cv_path_XDOT_PY+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
8019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8030 XDOT_PY=$ac_cv_path_XDOT_PY
8031 if test -n "$XDOT_PY"; then
8032 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8033 echo "${ECHO_T}$XDOT_PY" >&6; }
8035 { echo "$as_me:$LINENO: result: no" >&5
8036 echo "${ECHO_T}no" >&6; }
8040 if test "$XDOT_PY" != "echo xdot.py" ; then
8042 cat >>confdefs.h <<\_ACEOF
8043 #define HAVE_XDOT_PY 1
8046 if test "$llvm_cv_os_type" = "MingW" ; then
8047 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8050 cat >>confdefs.h <<_ACEOF
8051 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8057 # Extract the first word of "perl", so it can be a program name with args.
8058 set dummy perl; ac_word=$2
8059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8061 if test "${ac_cv_path_PERL+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8076 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8088 PERL=$ac_cv_path_PERL
8089 if test -n "$PERL"; then
8090 { echo "$as_me:$LINENO: result: $PERL" >&5
8091 echo "${ECHO_T}$PERL" >&6; }
8093 { echo "$as_me:$LINENO: result: no" >&5
8094 echo "${ECHO_T}no" >&6; }
8098 if test "$PERL" != "none"; then
8099 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8100 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8101 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8102 { echo "$as_me:$LINENO: result: yes" >&5
8103 echo "${ECHO_T}yes" >&6; }
8106 { echo "$as_me:$LINENO: result: not found" >&5
8107 echo "${ECHO_T}not found" >&6; }
8112 if test x"$PERL" = xnone; then
8115 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8116 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8117 { (exit 1); exit 1; }; }
8123 # Find a good install program. We prefer a C program (faster),
8124 # so one script is as good as another. But avoid the broken or
8125 # incompatible versions:
8126 # SysV /etc/install, /usr/sbin/install
8127 # SunOS /usr/etc/install
8128 # IRIX /sbin/install
8130 # AmigaOS /C/install, which installs bootblocks on floppy discs
8131 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8132 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8133 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8134 # OS/2's system install, which has a completely different semantic
8135 # ./install, which can be erroneously created by make from ./install.sh.
8136 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8137 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8138 if test -z "$INSTALL"; then
8139 if test "${ac_cv_path_install+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 test -z "$as_dir" && as_dir=.
8147 # Account for people who put trailing slashes in PATH elements.
8149 ./ | .// | /cC/* | \
8150 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8151 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8154 # OSF1 and SCO ODT 3.0 have their own names for install.
8155 # Don't use installbsd from OSF since it installs stuff as root
8157 for ac_prog in ginstall scoinst install; do
8158 for ac_exec_ext in '' $ac_executable_extensions; do
8159 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8160 if test $ac_prog = install &&
8161 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8162 # AIX install. It has an incompatible calling convention.
8164 elif test $ac_prog = install &&
8165 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8166 # program-specific install script used by HP pwplus--don't use.
8169 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8182 if test "${ac_cv_path_install+set}" = set; then
8183 INSTALL=$ac_cv_path_install
8185 # As a last resort, use the slow shell script. Don't cache a
8186 # value for INSTALL within a source directory, because that will
8187 # break other packages using the cache if that directory is
8188 # removed, or if the value is a relative name.
8189 INSTALL=$ac_install_sh
8192 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8193 echo "${ECHO_T}$INSTALL" >&6; }
8195 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8196 # It thinks the first close brace ends the variable substitution.
8197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8199 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8201 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8204 [\\/$]* | ?:[\\/]* ) ;;
8205 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8208 # Extract the first word of "bzip2", so it can be a program name with args.
8209 set dummy bzip2; ac_word=$2
8210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8212 if test "${ac_cv_path_BZIP2+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8217 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8227 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8238 BZIP2=$ac_cv_path_BZIP2
8239 if test -n "$BZIP2"; then
8240 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8241 echo "${ECHO_T}$BZIP2" >&6; }
8243 { echo "$as_me:$LINENO: result: no" >&5
8244 echo "${ECHO_T}no" >&6; }
8248 # Extract the first word of "cat", so it can be a program name with args.
8249 set dummy cat; ac_word=$2
8250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8252 if test "${ac_cv_path_CAT+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 if test -n "$CAT"; then
8280 { echo "$as_me:$LINENO: result: $CAT" >&5
8281 echo "${ECHO_T}$CAT" >&6; }
8283 { echo "$as_me:$LINENO: result: no" >&5
8284 echo "${ECHO_T}no" >&6; }
8288 # Extract the first word of "doxygen", so it can be a program name with args.
8289 set dummy doxygen; ac_word=$2
8290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8292 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8307 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 DOXYGEN=$ac_cv_path_DOXYGEN
8319 if test -n "$DOXYGEN"; then
8320 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8321 echo "${ECHO_T}$DOXYGEN" >&6; }
8323 { echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6; }
8328 # Extract the first word of "groff", so it can be a program name with args.
8329 set dummy groff; ac_word=$2
8330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8332 if test "${ac_cv_path_GROFF+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 test -z "$as_dir" && as_dir=.
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8347 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 GROFF=$ac_cv_path_GROFF
8359 if test -n "$GROFF"; then
8360 { echo "$as_me:$LINENO: result: $GROFF" >&5
8361 echo "${ECHO_T}$GROFF" >&6; }
8363 { echo "$as_me:$LINENO: result: no" >&5
8364 echo "${ECHO_T}no" >&6; }
8368 # Extract the first word of "gzip", so it can be a program name with args.
8369 set dummy gzip; ac_word=$2
8370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8372 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 test -z "$as_dir" && as_dir=.
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8387 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8398 GZIPBIN=$ac_cv_path_GZIPBIN
8399 if test -n "$GZIPBIN"; then
8400 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8401 echo "${ECHO_T}$GZIPBIN" >&6; }
8403 { echo "$as_me:$LINENO: result: no" >&5
8404 echo "${ECHO_T}no" >&6; }
8408 # Extract the first word of "pod2html", so it can be a program name with args.
8409 set dummy pod2html; ac_word=$2
8410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8412 if test "${ac_cv_path_POD2HTML+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424 test -z "$as_dir" && as_dir=.
8425 for ac_exec_ext in '' $ac_executable_extensions; do
8426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8427 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8438 POD2HTML=$ac_cv_path_POD2HTML
8439 if test -n "$POD2HTML"; then
8440 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8441 echo "${ECHO_T}$POD2HTML" >&6; }
8443 { echo "$as_me:$LINENO: result: no" >&5
8444 echo "${ECHO_T}no" >&6; }
8448 # Extract the first word of "pod2man", so it can be a program name with args.
8449 set dummy pod2man; ac_word=$2
8450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8452 if test "${ac_cv_path_POD2MAN+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 test -z "$as_dir" && as_dir=.
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8467 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8478 POD2MAN=$ac_cv_path_POD2MAN
8479 if test -n "$POD2MAN"; then
8480 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8481 echo "${ECHO_T}$POD2MAN" >&6; }
8483 { echo "$as_me:$LINENO: result: no" >&5
8484 echo "${ECHO_T}no" >&6; }
8488 # Extract the first word of "pdfroff", so it can be a program name with args.
8489 set dummy pdfroff; ac_word=$2
8490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8492 if test "${ac_cv_path_PDFROFF+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8507 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8518 PDFROFF=$ac_cv_path_PDFROFF
8519 if test -n "$PDFROFF"; then
8520 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8521 echo "${ECHO_T}$PDFROFF" >&6; }
8523 { echo "$as_me:$LINENO: result: no" >&5
8524 echo "${ECHO_T}no" >&6; }
8528 # Extract the first word of "runtest", so it can be a program name with args.
8529 set dummy runtest; ac_word=$2
8530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8532 if test "${ac_cv_path_RUNTEST+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8547 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 RUNTEST=$ac_cv_path_RUNTEST
8559 if test -n "$RUNTEST"; then
8560 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8561 echo "${ECHO_T}$RUNTEST" >&6; }
8563 { echo "$as_me:$LINENO: result: no" >&5
8564 echo "${ECHO_T}no" >&6; }
8570 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8571 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8573 # Check whether --with-tclinclude was given.
8574 if test "${with_tclinclude+set}" = set; then
8575 withval=$with_tclinclude; with_tclinclude=${withval}
8580 if test "${ac_cv_path_tclsh+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 if test x"${with_tclinclude}" != x ; then
8585 if test -f ${with_tclinclude}/tclsh ; then
8586 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8587 elif test -f ${with_tclinclude}/src/tclsh ; then
8588 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8590 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8591 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8592 { (exit 1); exit 1; }; }
8598 if test x"${ac_cv_path_tclsh}" = x ; then
8599 { echo "$as_me:$LINENO: result: none" >&5
8600 echo "${ECHO_T}none" >&6; }
8601 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
8603 # Extract the first word of "$ac_prog", so it can be a program name with args.
8604 set dummy $ac_prog; ac_word=$2
8605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8607 if test "${ac_cv_path_TCLSH+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619 test -z "$as_dir" && as_dir=.
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8622 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 TCLSH=$ac_cv_path_TCLSH
8634 if test -n "$TCLSH"; then
8635 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8636 echo "${ECHO_T}$TCLSH" >&6; }
8638 { echo "$as_me:$LINENO: result: no" >&5
8639 echo "${ECHO_T}no" >&6; }
8643 test -n "$TCLSH" && break
8646 if test x"${TCLSH}" = x ; then
8647 ac_cv_path_tclsh='';
8649 ac_cv_path_tclsh="${TCLSH}";
8652 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8653 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8654 TCLSH="${ac_cv_path_tclsh}"
8658 # Extract the first word of "zip", so it can be a program name with args.
8659 set dummy zip; ac_word=$2
8660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8662 if test "${ac_cv_path_ZIP+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8667 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674 test -z "$as_dir" && as_dir=.
8675 for ac_exec_ext in '' $ac_executable_extensions; do
8676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8677 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8689 if test -n "$ZIP"; then
8690 { echo "$as_me:$LINENO: result: $ZIP" >&5
8691 echo "${ECHO_T}$ZIP" >&6; }
8693 { echo "$as_me:$LINENO: result: no" >&5
8694 echo "${ECHO_T}no" >&6; }
8698 for ac_prog in ocamlc
8700 # Extract the first word of "$ac_prog", so it can be a program name with args.
8701 set dummy $ac_prog; ac_word=$2
8702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8704 if test "${ac_cv_path_OCAMLC+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716 test -z "$as_dir" && as_dir=.
8717 for ac_exec_ext in '' $ac_executable_extensions; do
8718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8719 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8730 OCAMLC=$ac_cv_path_OCAMLC
8731 if test -n "$OCAMLC"; then
8732 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8733 echo "${ECHO_T}$OCAMLC" >&6; }
8735 { echo "$as_me:$LINENO: result: no" >&5
8736 echo "${ECHO_T}no" >&6; }
8740 test -n "$OCAMLC" && break
8743 for ac_prog in ocamlopt
8745 # Extract the first word of "$ac_prog", so it can be a program name with args.
8746 set dummy $ac_prog; ac_word=$2
8747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8749 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761 test -z "$as_dir" && as_dir=.
8762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8764 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8775 OCAMLOPT=$ac_cv_path_OCAMLOPT
8776 if test -n "$OCAMLOPT"; then
8777 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8778 echo "${ECHO_T}$OCAMLOPT" >&6; }
8780 { echo "$as_me:$LINENO: result: no" >&5
8781 echo "${ECHO_T}no" >&6; }
8785 test -n "$OCAMLOPT" && break
8788 for ac_prog in ocamldep
8790 # Extract the first word of "$ac_prog", so it can be a program name with args.
8791 set dummy $ac_prog; ac_word=$2
8792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8794 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8809 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8820 OCAMLDEP=$ac_cv_path_OCAMLDEP
8821 if test -n "$OCAMLDEP"; then
8822 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8823 echo "${ECHO_T}$OCAMLDEP" >&6; }
8825 { echo "$as_me:$LINENO: result: no" >&5
8826 echo "${ECHO_T}no" >&6; }
8830 test -n "$OCAMLDEP" && break
8833 for ac_prog in ocamldoc
8835 # Extract the first word of "$ac_prog", so it can be a program name with args.
8836 set dummy $ac_prog; ac_word=$2
8837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8839 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851 test -z "$as_dir" && as_dir=.
8852 for ac_exec_ext in '' $ac_executable_extensions; do
8853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8854 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 OCAMLDOC=$ac_cv_path_OCAMLDOC
8866 if test -n "$OCAMLDOC"; then
8867 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8868 echo "${ECHO_T}$OCAMLDOC" >&6; }
8870 { echo "$as_me:$LINENO: result: no" >&5
8871 echo "${ECHO_T}no" >&6; }
8875 test -n "$OCAMLDOC" && break
8878 for ac_prog in gas as
8880 # Extract the first word of "$ac_prog", so it can be a program name with args.
8881 set dummy $ac_prog; ac_word=$2
8882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8884 if test "${ac_cv_path_GAS+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896 test -z "$as_dir" && as_dir=.
8897 for ac_exec_ext in '' $ac_executable_extensions; do
8898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8899 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8911 if test -n "$GAS"; then
8912 { echo "$as_me:$LINENO: result: $GAS" >&5
8913 echo "${ECHO_T}$GAS" >&6; }
8915 { echo "$as_me:$LINENO: result: no" >&5
8916 echo "${ECHO_T}no" >&6; }
8920 test -n "$GAS" && break
8924 { echo "$as_me:$LINENO: checking for linker version" >&5
8925 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8926 if test "${llvm_cv_link_version+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 version_string="$(ld -v 2>&1 | head -1)"
8933 if (echo "$version_string" | grep -q "ld64"); then
8934 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8936 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8940 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8941 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8943 cat >>confdefs.h <<_ACEOF
8944 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8949 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8950 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8951 if test "${llvm_cv_link_use_r+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 ac_cpp='$CPP $CPPFLAGS'
8956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8961 CFLAGS="$CFLAGS -Wl,-R."
8962 cat >conftest.$ac_ext <<_ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978 if { (ac_try="$ac_link"
8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984 (eval "$ac_link") 2>conftest.er1
8986 grep -v '^ *+' conftest.er1 >conftest.err
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9001 { ac_try='test -s conftest$ac_exeext'
9002 { (case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_try") 2>&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
9011 llvm_cv_link_use_r=yes
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9016 llvm_cv_link_use_r=no
9019 rm -f core conftest.err conftest.$ac_objext \
9020 conftest$ac_exeext conftest.$ac_ext
9023 ac_cpp='$CPP $CPPFLAGS'
9024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9030 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9031 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
9032 if test "$llvm_cv_link_use_r" = yes ; then
9034 cat >>confdefs.h <<\_ACEOF
9035 #define HAVE_LINK_R 1
9041 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9042 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9043 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 ac_cpp='$CPP $CPPFLAGS'
9048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9053 CFLAGS="$CFLAGS -Wl,-export-dynamic"
9054 cat >conftest.$ac_ext <<_ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9069 rm -f conftest.$ac_objext conftest$ac_exeext
9070 if { (ac_try="$ac_link"
9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073 *) ac_try_echo=$ac_try;;
9075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_link") 2>conftest.er1
9078 grep -v '^ *+' conftest.er1 >conftest.err
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } &&
9083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9093 { ac_try='test -s conftest$ac_exeext'
9094 { (case "(($ac_try" in
9095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9096 *) ac_try_echo=$ac_try;;
9098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9099 (eval "$ac_try") 2>&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; }; then
9103 llvm_cv_link_use_export_dynamic=yes
9105 echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9108 llvm_cv_link_use_export_dynamic=no
9111 rm -f core conftest.err conftest.$ac_objext \
9112 conftest$ac_exeext conftest.$ac_ext
9115 ac_cpp='$CPP $CPPFLAGS'
9116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9122 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9123 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9124 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9126 cat >>confdefs.h <<\_ACEOF
9127 #define HAVE_LINK_EXPORT_DYNAMIC 1
9133 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9134 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9135 if test "${llvm_cv_link_use_version_script+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9139 ac_cpp='$CPP $CPPFLAGS'
9140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9146 # The following code is from the autoconf manual,
9147 # "11.13: Limitations of Usual Tools".
9148 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9149 # Use mktemp if possible; otherwise fall back on mkdir,
9150 # with $RANDOM to make collisions less likely.
9154 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9156 test -n "$tmp" && test -d "$tmp"
9158 tmp=$TMPDIR/foo$$-$RANDOM
9159 (umask 077 && mkdir "$tmp")
9162 echo "{" > "$tmp/export.map"
9163 echo " global: main;" >> "$tmp/export.map"
9164 echo " local: *;" >> "$tmp/export.map"
9165 echo "};" >> "$tmp/export.map"
9167 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9168 cat >conftest.$ac_ext <<_ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9183 rm -f conftest.$ac_objext conftest$ac_exeext
9184 if { (ac_try="$ac_link"
9186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9187 *) ac_try_echo=$ac_try;;
9189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9190 (eval "$ac_link") 2>conftest.er1
9192 grep -v '^ *+' conftest.er1 >conftest.err
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9207 { ac_try='test -s conftest$ac_exeext'
9208 { (case "(($ac_try" in
9209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9210 *) ac_try_echo=$ac_try;;
9212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9213 (eval "$ac_try") 2>&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; }; then
9217 llvm_cv_link_use_version_script=yes
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9222 llvm_cv_link_use_version_script=no
9225 rm -f core conftest.err conftest.$ac_objext \
9226 conftest$ac_exeext conftest.$ac_ext
9227 rm "$tmp/export.map"
9231 ac_cpp='$CPP $CPPFLAGS'
9232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9238 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9239 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9240 if test "$llvm_cv_link_use_version_script" = yes ; then
9241 HAVE_LINK_VERSION_SCRIPT=1
9248 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9249 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9250 if test "${ac_cv_c_const+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 cat >conftest.$ac_ext <<_ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9263 /* FIXME: Include the comments suggested by Paul. */
9265 /* Ultrix mips cc rejects this. */
9266 typedef int charset[2];
9268 /* SunOS 4.1.1 cc rejects this. */
9269 char const *const *ccp;
9271 /* NEC SVR4.0.2 mips cc rejects this. */
9272 struct point {int x, y;};
9273 static struct point const zero = {0,0};
9274 /* AIX XL C 1.02.0.0 rejects this.
9275 It does not let you subtract one const X* pointer from another in
9276 an arm of an if-expression whose if-part is not a constant
9278 const char *g = "string";
9279 ccp = &g + (g ? g-g : 0);
9280 /* HPUX 7.0 cc rejects these. */
9283 ccp = (char const *const *) p;
9284 { /* SCO 3.2v4 cc rejects this. */
9286 char const *s = 0 ? (char *) 0 : (char const *) 0;
9291 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9293 const int *foo = &x[0];
9296 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9297 typedef const int *iptr;
9301 { /* AIX XL C 1.02.0.0 rejects this saying
9302 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9303 struct s { int j; const int *ap[3]; };
9304 struct s *b; b->j = 5;
9306 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9310 return !x[0] && !zero.x;
9317 rm -f conftest.$ac_objext
9318 if { (ac_try="$ac_compile"
9320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9321 *) ac_try_echo=$ac_try;;
9323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9324 (eval "$ac_compile") 2>conftest.er1
9326 grep -v '^ *+' conftest.er1 >conftest.err
9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
9331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9341 { ac_try='test -s conftest.$ac_objext'
9342 { (case "(($ac_try" in
9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344 *) ac_try_echo=$ac_try;;
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347 (eval "$ac_try") 2>&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9362 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9363 if test $ac_cv_c_const = no; then
9365 cat >>confdefs.h <<\_ACEOF
9377 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9378 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9379 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9380 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 cat >conftest.$ac_ext <<_ACEOF
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h. */
9390 #include <sys/types.h>
9402 rm -f conftest.$ac_objext
9403 if { (ac_try="$ac_compile"
9405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9406 *) ac_try_echo=$ac_try;;
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_compile") 2>conftest.er1
9411 grep -v '^ *+' conftest.er1 >conftest.err
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } &&
9416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9426 { ac_try='test -s conftest.$ac_objext'
9427 { (case "(($ac_try" in
9428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429 *) ac_try_echo=$ac_try;;
9431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9432 (eval "$ac_try") 2>&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; }; then
9436 eval "$as_ac_Header=yes"
9438 echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9441 eval "$as_ac_Header=no"
9444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9446 ac_res=`eval echo '${'$as_ac_Header'}'`
9447 { echo "$as_me:$LINENO: result: $ac_res" >&5
9448 echo "${ECHO_T}$ac_res" >&6; }
9449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9450 cat >>confdefs.h <<_ACEOF
9451 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9454 ac_header_dirent=$ac_hdr; break
9458 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9459 if test $ac_header_dirent = dirent.h; then
9460 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9461 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9462 if test "${ac_cv_search_opendir+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 ac_func_search_save_LIBS=$LIBS
9466 cat >conftest.$ac_ext <<_ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9473 /* Override any GCC internal prototype to avoid an error.
9474 Use char because int might match the return type of a GCC
9475 builtin and then its argument prototype would still apply. */
9488 for ac_lib in '' dir; do
9489 if test -z "$ac_lib"; then
9490 ac_res="none required"
9493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (ac_try="$ac_link"
9498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499 *) ac_try_echo=$ac_try;;
9501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9502 (eval "$ac_link") 2>conftest.er1
9504 grep -v '^ *+' conftest.er1 >conftest.err
9506 cat conftest.err >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } &&
9509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9519 { ac_try='test -s conftest$ac_exeext'
9520 { (case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_try") 2>&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; }; then
9529 ac_cv_search_opendir=$ac_res
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9537 rm -f core conftest.err conftest.$ac_objext \
9539 if test "${ac_cv_search_opendir+set}" = set; then
9543 if test "${ac_cv_search_opendir+set}" = set; then
9546 ac_cv_search_opendir=no
9549 LIBS=$ac_func_search_save_LIBS
9551 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9552 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9553 ac_res=$ac_cv_search_opendir
9554 if test "$ac_res" != no; then
9555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9560 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9561 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9562 if test "${ac_cv_search_opendir+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 ac_func_search_save_LIBS=$LIBS
9566 cat >conftest.$ac_ext <<_ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9573 /* Override any GCC internal prototype to avoid an error.
9574 Use char because int might match the return type of a GCC
9575 builtin and then its argument prototype would still apply. */
9588 for ac_lib in '' x; do
9589 if test -z "$ac_lib"; then
9590 ac_res="none required"
9593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9595 rm -f conftest.$ac_objext conftest$ac_exeext
9596 if { (ac_try="$ac_link"
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_link") 2>conftest.er1
9604 grep -v '^ *+' conftest.er1 >conftest.err
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9619 { ac_try='test -s conftest$ac_exeext'
9620 { (case "(($ac_try" in
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_try") 2>&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; }; then
9629 ac_cv_search_opendir=$ac_res
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9637 rm -f core conftest.err conftest.$ac_objext \
9639 if test "${ac_cv_search_opendir+set}" = set; then
9643 if test "${ac_cv_search_opendir+set}" = set; then
9646 ac_cv_search_opendir=no
9649 LIBS=$ac_func_search_save_LIBS
9651 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9652 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9653 ac_res=$ac_cv_search_opendir
9654 if test "$ac_res" != no; then
9655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9662 for ac_header in dlfcn.h
9664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 ac_res=`eval echo '${'$as_ac_Header'}'`
9672 { echo "$as_me:$LINENO: result: $ac_res" >&5
9673 echo "${ECHO_T}$ac_res" >&6; }
9675 # Is the header compilable?
9676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9678 cat >conftest.$ac_ext <<_ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684 $ac_includes_default
9685 #include <$ac_header>
9687 rm -f conftest.$ac_objext
9688 if { (ac_try="$ac_compile"
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_compile") 2>conftest.er1
9696 grep -v '^ *+' conftest.er1 >conftest.err
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9711 { ac_try='test -s conftest.$ac_objext'
9712 { (case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_try") 2>&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
9721 ac_header_compiler=yes
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9726 ac_header_compiler=no
9729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9731 echo "${ECHO_T}$ac_header_compiler" >&6; }
9733 # Is the header present?
9734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9736 cat >conftest.$ac_ext <<_ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 #include <$ac_header>
9744 if { (ac_try="$ac_cpp conftest.$ac_ext"
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9752 grep -v '^ *+' conftest.er1 >conftest.err
9754 cat conftest.err >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } >/dev/null; then
9757 if test -s conftest.err; then
9758 ac_cpp_err=$ac_c_preproc_warn_flag
9759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9766 if test -z "$ac_cpp_err"; then
9767 ac_header_preproc=yes
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 ac_header_preproc=no
9775 rm -f conftest.err conftest.$ac_ext
9776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9777 echo "${ECHO_T}$ac_header_preproc" >&6; }
9779 # So? What about this header?
9780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9786 ac_header_preproc=yes
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9802 ## ----------------------------------- ##
9803 ## Report this to llvmbugs@cs.uiuc.edu ##
9804 ## ----------------------------------- ##
9806 ) | sed "s/^/$as_me: WARNING: /" >&2
9809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 eval "$as_ac_Header=\$ac_header_preproc"
9816 ac_res=`eval echo '${'$as_ac_Header'}'`
9817 { echo "$as_me:$LINENO: result: $ac_res" >&5
9818 echo "${ECHO_T}$ac_res" >&6; }
9821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9822 cat >>confdefs.h <<_ACEOF
9823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9830 # Check whether --enable-ltdl-install was given.
9831 if test "${enable_ltdl_install+set}" = set; then
9832 enableval=$enable_ltdl_install;
9838 if test x"${enable_ltdl_install-no}" != xno; then
9840 INSTALL_LTDL_FALSE='#'
9842 INSTALL_LTDL_TRUE='#'
9848 if test x"${enable_ltdl_convenience-no}" != xno; then
9849 CONVENIENCE_LTDL_TRUE=
9850 CONVENIENCE_LTDL_FALSE='#'
9852 CONVENIENCE_LTDL_TRUE='#'
9853 CONVENIENCE_LTDL_FALSE=
9857 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9858 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9860 libname_spec='lib$name'
9868 shlibpath_overrides_runpath=unknown
9870 dynamic_linker="$host_os ld.so"
9871 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9872 if test "$GCC" = yes; then
9873 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9874 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9875 # if the path contains ";" then we assume it to be the separator
9876 # otherwise default to the standard path separator (i.e. ":") - it is
9877 # assumed that no part of a normal pathname contains ";" but that should
9878 # okay in the real world where ";" in dirpaths is itself problematic.
9879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9881 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9884 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9886 need_lib_prefix=unknown
9887 hardcode_into_libs=no
9889 # when you set need_version to no, make sure it does not cause -set_version
9890 # flags to be left without arguments
9891 need_version=unknown
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9897 shlibpath_var=LIBPATH
9899 # AIX 3 has no versioning support, so we append a major version to the name.
9900 soname_spec='${libname}${release}${shared_ext}$major'
9907 hardcode_into_libs=yes
9908 if test "$host_cpu" = ia64; then
9909 # AIX 5 supports IA64
9910 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9911 shlibpath_var=LD_LIBRARY_PATH
9913 # With GCC up to 2.95.x, collect2 would create an import file
9914 # for dependence libraries. The import file would start with
9915 # the line `#! .'. This would cause the generated library to
9916 # depend on `.', always an invalid library. This was fixed in
9917 # development snapshots of GCC prior to 3.0.
9919 aix4 | aix4.[01] | aix4.[01].*)
9920 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9922 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9929 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9930 # soname into executable. Probably we can add versioning support to
9931 # collect2, so additional links can be useful in future.
9932 if test "$aix_use_runtimelinking" = yes; then
9933 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9934 # instead of lib<name>.a to let people know that these are not
9935 # typical AIX shared libraries.
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938 # We preserve .a as extension for shared libraries through AIX4.2
9939 # and later when we are not doing run time linking.
9940 library_names_spec='${libname}${release}.a $libname.a'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9943 shlibpath_var=LIBPATH
9948 library_names_spec='$libname.ixlibrary $libname.a'
9949 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9950 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'
9954 library_names_spec='${libname}${shared_ext}'
9955 dynamic_linker="$host_os ld.so"
9956 shlibpath_var=LIBRARY_PATH
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9967 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9968 # the default ld.so.conf also contains /usr/contrib/lib and
9969 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9970 # libtool to hard-code these into programs
9973 cygwin* | mingw* | pw32*)
9974 version_type=windows
9979 case $GCC,$host_os in
9980 yes,cygwin* | yes,mingw* | yes,pw32*)
9981 library_names_spec='$libname.dll.a'
9982 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9983 postinstall_cmds='base_file=`basename \${file}`~
9984 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9985 dldir=$destdir/`dirname \$dlpath`~
9986 test -d \$dldir || mkdir -p \$dldir~
9987 $install_prog $dir/$dlname \$dldir/$dlname~
9988 chmod a+x \$dldir/$dlname'
9989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9990 dlpath=$dir/\$dldll~
9992 shlibpath_overrides_runpath=yes
9996 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9997 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9998 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10001 # MinGW DLLs use traditional 'lib' prefix
10002 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10003 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10004 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10005 # It is most probably a Windows format PATH printed by
10006 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10007 # path with ; separators, and with drive letters. We can handle the
10008 # drive letters (cygwin fileutils understands them), so leave them,
10009 # especially as we might pass files found there to a mingw objdump,
10010 # which wouldn't understand a cygwinified path. Ahh.
10011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10017 # pw32 DLLs use 'pw' prefix rather than 'lib'
10018 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10024 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10027 dynamic_linker='Win32 ld.exe'
10028 # FIXME: first we should search . and the directory the executable is in
10032 darwin* | rhapsody*)
10033 dynamic_linker="$host_os dyld"
10034 version_type=darwin
10037 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10038 soname_spec='${libname}${release}${major}$shared_ext'
10039 shlibpath_overrides_runpath=yes
10040 shlibpath_var=DYLD_LIBRARY_PATH
10041 shrext_cmds='.dylib'
10042 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10043 if test "$GCC" = yes; then
10044 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"`
10046 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10048 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10056 soname_spec='${libname}${release}${shared_ext}$major'
10057 shlibpath_var=LD_LIBRARY_PATH
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10069 soname_spec='${libname}${release}${shared_ext}$major'
10070 shlibpath_var=LD_LIBRARY_PATH
10071 shlibpath_overrides_runpath=no
10072 hardcode_into_libs=yes
10073 dynamic_linker='GNU ld.so'
10076 freebsd* | dragonfly*)
10077 # DragonFly does not have aout. When/if they implement a new
10078 # versioning mechanism, adjust this.
10079 if test -x /usr/bin/objformat; then
10080 objformat=`/usr/bin/objformat`
10083 freebsd[123]*) objformat=aout ;;
10084 *) objformat=elf ;;
10087 version_type=freebsd-$objformat
10088 case $version_type in
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10099 shlibpath_var=LD_LIBRARY_PATH
10102 shlibpath_overrides_runpath=yes
10104 freebsd3.[01]* | freebsdelf3.[01]*)
10105 shlibpath_overrides_runpath=yes
10106 hardcode_into_libs=yes
10108 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10109 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10110 shlibpath_overrides_runpath=no
10111 hardcode_into_libs=yes
10113 freebsd*) # from 4.6 on
10114 shlibpath_overrides_runpath=yes
10115 hardcode_into_libs=yes
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 shlibpath_var=LD_LIBRARY_PATH
10127 hardcode_into_libs=yes
10130 hpux9* | hpux10* | hpux11*)
10131 # Give a soname corresponding to the major version so that dld.sl refuses to
10132 # link against other versions.
10139 hardcode_into_libs=yes
10140 dynamic_linker="$host_os dld.so"
10141 shlibpath_var=LD_LIBRARY_PATH
10142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 if test "X$HPUX_IA64_MODE" = X32; then
10146 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10148 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10154 hardcode_into_libs=yes
10155 dynamic_linker="$host_os dld.sl"
10156 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10157 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
10160 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10161 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10165 dynamic_linker="$host_os dld.sl"
10166 shlibpath_var=SHLIB_PATH
10167 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169 soname_spec='${libname}${release}${shared_ext}$major'
10172 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10173 postinstall_cmds='chmod 555 $lib'
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10183 shlibpath_var=LD_LIBRARY_PATH
10184 shlibpath_overrides_runpath=no
10185 hardcode_into_libs=yes
10188 irix5* | irix6* | nonstopux*)
10190 nonstopux*) version_type=nonstopux ;;
10192 if test "$lt_cv_prog_gnu_ld" = yes; then
10200 soname_spec='${libname}${release}${shared_ext}$major'
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10203 irix5* | nonstopux*)
10204 libsuff= shlibsuff=
10207 case $LD in # libtool.m4 will add one of these switches to LD
10208 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10209 libsuff= shlibsuff= libmagic=32-bit;;
10210 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10211 libsuff=32 shlibsuff=N32 libmagic=N32;;
10212 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10213 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10214 *) libsuff= shlibsuff= libmagic=never-match;;
10218 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10219 shlibpath_overrides_runpath=no
10220 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10221 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10222 hardcode_into_libs=yes
10225 # No shared lib support for Linux oldld, aout, or coff.
10226 linux*oldld* | linux*aout* | linux*coff*)
10230 # This must be Linux ELF.
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236 soname_spec='${libname}${release}${shared_ext}$major'
10237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10238 shlibpath_var=LD_LIBRARY_PATH
10239 shlibpath_overrides_runpath=no
10240 # This implies no fast_install, which is unacceptable.
10241 # Some rework will be needed to allow for fast_install
10242 # before this can be enabled.
10243 hardcode_into_libs=yes
10245 # Append ld.so.conf contents to the search path
10246 if test -f /etc/ld.so.conf; then
10247 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' ' '`
10248 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10251 # We used to test for /lib/ld.so.1 and disable shared libraries on
10252 # powerpc, because MkLinux only supported shared libraries with the
10253 # GNU dynamic linker. Since this was broken with cross compilers,
10254 # most powerpc-linux boxes support dynamic linking these days and
10255 # people can always --disable-shared, the test was removed, and we
10256 # assume the GNU/Linux dynamic linker is in use.
10257 dynamic_linker='GNU/Linux ld.so'
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 shlibpath_var=LD_LIBRARY_PATH
10267 shlibpath_overrides_runpath=no
10268 hardcode_into_libs=yes
10269 dynamic_linker='GNU ld.so'
10276 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10279 dynamic_linker='NetBSD (a.out) ld.so'
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 dynamic_linker='NetBSD ld.elf_so'
10285 shlibpath_var=LD_LIBRARY_PATH
10286 shlibpath_overrides_runpath=yes
10287 hardcode_into_libs=yes
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 shlibpath_overrides_runpath=yes
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302 soname_spec='${libname}${release}${shared_ext}$major'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 shlibpath_overrides_runpath=yes
10309 sys_lib_dlsearch_path_spec="/usr/lib"
10311 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10313 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10314 *) need_version=no ;;
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10321 openbsd2.[89] | openbsd2.[89].*)
10322 shlibpath_overrides_runpath=no
10325 shlibpath_overrides_runpath=yes
10329 shlibpath_overrides_runpath=yes
10334 libname_spec='$name'
10337 library_names_spec='$libname${shared_ext} $libname.a'
10338 dynamic_linker='OS/2 ld.exe'
10339 shlibpath_var=LIBPATH
10342 osf3* | osf4* | osf5*)
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10350 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=yes
10361 hardcode_into_libs=yes
10362 # ldd complains unless libraries are executable
10363 postinstall_cmds='chmod +x $lib'
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10369 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10372 if test "$with_gnu_ld" = yes; then
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 shlibpath_var=LD_LIBRARY_PATH
10383 case $host_vendor in
10385 shlibpath_overrides_runpath=no
10387 export_dynamic_flag_spec='${wl}-Blargedynsym'
10388 runpath_var=LD_RUN_PATH
10396 shlibpath_overrides_runpath=no
10397 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10403 if test -d /usr/nec ;then
10405 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10406 soname_spec='$libname${shared_ext}.$major'
10407 shlibpath_var=LD_LIBRARY_PATH
10411 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10412 version_type=freebsd-elf
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10416 soname_spec='${libname}${release}${shared_ext}$major'
10417 shlibpath_var=LD_LIBRARY_PATH
10418 hardcode_into_libs=yes
10419 if test "$with_gnu_ld" = yes; then
10420 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10421 shlibpath_overrides_runpath=no
10423 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10424 shlibpath_overrides_runpath=yes
10427 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10431 sys_lib_dlsearch_path_spec='/usr/lib'
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437 soname_spec='${libname}${release}${shared_ext}$major'
10438 shlibpath_var=LD_LIBRARY_PATH
10445 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10446 echo "${ECHO_T}$dynamic_linker" >&6; }
10447 test "$dynamic_linker" = no && can_build_shared=no
10449 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10450 if test "$GCC" = yes; then
10451 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10455 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10456 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10457 if test "${libltdl_cv_shlibext+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 eval libltdl_cv_shlibext=$shrext_cmds
10465 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10466 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10467 if test -n "$libltdl_cv_shlibext"; then
10469 cat >>confdefs.h <<_ACEOF
10470 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10476 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10477 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10478 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 libltdl_cv_shlibpath_var="$shlibpath_var"
10483 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10484 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10485 if test -n "$libltdl_cv_shlibpath_var"; then
10487 cat >>confdefs.h <<_ACEOF
10488 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10494 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10495 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10496 if test "${libltdl_cv_sys_search_path+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10501 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10502 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10503 if test -n "$libltdl_cv_sys_search_path"; then
10505 for dir in $libltdl_cv_sys_search_path; do
10506 if test -z "$sys_search_path"; then
10507 sys_search_path="$dir"
10509 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10513 cat >>confdefs.h <<_ACEOF
10514 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10519 { echo "$as_me:$LINENO: checking for objdir" >&5
10520 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10521 if test "${libltdl_cv_objdir+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 libltdl_cv_objdir="$objdir"
10525 if test -n "$objdir"; then
10528 rm -f .libs 2>/dev/null
10529 mkdir .libs 2>/dev/null
10530 if test -d .libs; then
10531 libltdl_cv_objdir=.libs
10533 # MS-DOS does not allow filenames that begin with a dot.
10534 libltdl_cv_objdir=_libs
10536 rmdir .libs 2>/dev/null
10540 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10541 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10543 cat >>confdefs.h <<_ACEOF
10544 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10552 # Check for command to grab the raw symbol name followed by C symbol from nm.
10553 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10554 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10555 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10559 # These are sane defaults that work on at least a few old systems.
10560 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10562 # Character class describing NM global symbol codes.
10563 symcode='[BCDEGRST]'
10565 # Regexp to match symbols that can be accessed directly from C.
10566 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10568 # Transform an extracted symbol line into a proper C declaration
10569 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10571 # Transform an extracted symbol line into symbol name and symbol address
10572 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'"
10574 # Define system-specific variables.
10579 cygwin* | mingw* | pw32*)
10580 symcode='[ABCDGISTW]'
10582 hpux*) # Its linker distinguishes data from code symbols
10583 if test "$host_cpu" = ia64; then
10584 symcode='[ABCDEGRST]'
10586 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10587 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'"
10590 if test "$host_cpu" = ia64; then
10591 symcode='[ABCDGIRSTW]'
10592 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10593 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'"
10596 irix* | nonstopux*)
10597 symcode='[BCDEGRST]'
10600 symcode='[BCDEGQRST]'
10611 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10619 # Handle CRLF in mingw tool chain
10623 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10627 # If we're using GNU nm, then use its standard symbol codes.
10628 case `$NM -V 2>&1` in
10629 *GNU* | *'with BFD'*)
10630 symcode='[ABCDGIRSTW]' ;;
10633 # Try without a prefix undercore, then with it.
10634 for ac_symprfx in "" "_"; do
10636 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10637 symxfrm="\\1 $ac_symprfx\\2 \\2"
10639 # Write the raw and C identifiers.
10640 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10642 # Check to see that the pipe works correctly.
10646 cat > conftest.$ac_ext <<EOF
10651 void nm_test_func(){}
10655 int main(){nm_test_var='a';nm_test_func();return(0);}
10658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659 (eval $ac_compile) 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; then
10663 # Now try to grab the symbols.
10665 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10666 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } && test -s "$nlist"; then
10670 # Try sorting and uniquifying the output.
10671 if sort "$nlist" | uniq > "$nlist"T; then
10672 mv -f "$nlist"T "$nlist"
10677 # Make sure that we snagged all the symbols we need.
10678 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10679 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10680 cat <<EOF > conftest.$ac_ext
10686 # Now generate the symbol file.
10687 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10689 cat <<EOF >> conftest.$ac_ext
10690 #if defined (__STDC__) && __STDC__
10691 # define lt_ptr_t void *
10693 # define lt_ptr_t char *
10697 /* The mapping between symbol names and symbols. */
10702 lt_preloaded_symbols[] =
10705 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10706 cat <<\EOF >> conftest.$ac_ext
10714 # Now try linking the two files.
10715 mv conftest.$ac_objext conftstm.$ac_objext
10716 lt_save_LIBS="$LIBS"
10717 lt_save_CFLAGS="$CFLAGS"
10718 LIBS="conftstm.$ac_objext"
10719 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10721 (eval $ac_link) 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10727 LIBS="$lt_save_LIBS"
10728 CFLAGS="$lt_save_CFLAGS"
10730 echo "cannot find nm_test_func in $nlist" >&5
10733 echo "cannot find nm_test_var in $nlist" >&5
10736 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10739 echo "$progname: failed program was:" >&5
10740 cat conftest.$ac_ext >&5
10742 rm -f conftest* conftst*
10744 # Do not use the global_symbol_pipe unless it works.
10745 if test "$pipe_works" = yes; then
10748 lt_cv_sys_global_symbol_pipe=
10754 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10755 lt_cv_sys_global_symbol_to_cdecl=
10757 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10758 { echo "$as_me:$LINENO: result: failed" >&5
10759 echo "${ECHO_T}failed" >&6; }
10761 { echo "$as_me:$LINENO: result: ok" >&5
10762 echo "${ECHO_T}ok" >&6; }
10766 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10767 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10768 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10771 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10772 libltdl_cv_preloaded_symbols=yes
10774 libltdl_cv_preloaded_symbols=no
10778 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10779 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10780 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10782 cat >>confdefs.h <<\_ACEOF
10783 #define HAVE_PRELOADED_SYMBOLS 1
10791 ac_cpp='$CPP $CPPFLAGS'
10792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10797 { echo "$as_me:$LINENO: checking for shl_load" >&5
10798 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10799 if test "${ac_cv_func_shl_load+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 cat >conftest.$ac_ext <<_ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10808 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10810 #define shl_load innocuous_shl_load
10812 /* System header to define __stub macros and hopefully few prototypes,
10813 which can conflict with char shl_load (); below.
10814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10815 <limits.h> exists even on freestanding compilers. */
10818 # include <limits.h>
10820 # include <assert.h>
10825 /* Override any GCC internal prototype to avoid an error.
10826 Use char because int might match the return type of a GCC
10827 builtin and then its argument prototype would still apply. */
10832 /* The GNU C library defines this for functions which it implements
10833 to always fail with ENOSYS. Some functions are actually named
10834 something starting with __ and the normal name is an alias. */
10835 #if defined __stub_shl_load || defined __stub___shl_load
10842 return shl_load ();
10847 rm -f conftest.$ac_objext conftest$ac_exeext
10848 if { (ac_try="$ac_link"
10849 case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_link") 2>conftest.er1
10856 grep -v '^ *+' conftest.er1 >conftest.err
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } &&
10861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10871 { ac_try='test -s conftest$ac_exeext'
10872 { (case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877 (eval "$ac_try") 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
10881 ac_cv_func_shl_load=yes
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10886 ac_cv_func_shl_load=no
10889 rm -f core conftest.err conftest.$ac_objext \
10890 conftest$ac_exeext conftest.$ac_ext
10892 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10893 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10894 if test $ac_cv_func_shl_load = yes; then
10896 cat >>confdefs.h <<\_ACEOF
10897 #define HAVE_SHL_LOAD 1
10901 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10902 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10903 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 ac_check_lib_save_LIBS=$LIBS
10908 cat >conftest.$ac_ext <<_ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10915 /* Override any GCC internal prototype to avoid an error.
10916 Use char because int might match the return type of a GCC
10917 builtin and then its argument prototype would still apply. */
10925 return shl_load ();
10930 rm -f conftest.$ac_objext conftest$ac_exeext
10931 if { (ac_try="$ac_link"
10932 case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_link") 2>conftest.er1
10939 grep -v '^ *+' conftest.er1 >conftest.err
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10954 { ac_try='test -s conftest$ac_exeext'
10955 { (case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_try") 2>&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 ac_cv_lib_dld_shl_load=yes
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969 ac_cv_lib_dld_shl_load=no
10972 rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10974 LIBS=$ac_check_lib_save_LIBS
10976 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10977 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10978 if test $ac_cv_lib_dld_shl_load = yes; then
10980 cat >>confdefs.h <<\_ACEOF
10981 #define HAVE_SHL_LOAD 1
10984 LIBADD_DL="$LIBADD_DL -ldld"
10986 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10987 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10988 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 ac_check_lib_save_LIBS=$LIBS
10993 cat >conftest.$ac_ext <<_ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
11000 /* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (ac_try="$ac_link"
11017 case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_link") 2>conftest.er1
11024 grep -v '^ *+' conftest.er1 >conftest.err
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } &&
11029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11039 { ac_try='test -s conftest$ac_exeext'
11040 { (case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_try") 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 ac_cv_lib_dl_dlopen=yes
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11054 ac_cv_lib_dl_dlopen=no
11057 rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11059 LIBS=$ac_check_lib_save_LIBS
11061 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11062 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11063 if test $ac_cv_lib_dl_dlopen = yes; then
11065 cat >>confdefs.h <<\_ACEOF
11066 #define HAVE_LIBDL 1
11069 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11071 cat >conftest.$ac_ext <<_ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11078 # include <dlfcn.h>
11089 rm -f conftest.$ac_objext conftest$ac_exeext
11090 if { (ac_try="$ac_link"
11091 case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096 (eval "$ac_link") 2>conftest.er1
11098 grep -v '^ *+' conftest.er1 >conftest.err
11100 cat conftest.err >&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
11103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11113 { ac_try='test -s conftest$ac_exeext'
11114 { (case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_try") 2>&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11124 cat >>confdefs.h <<\_ACEOF
11125 #define HAVE_LIBDL 1
11127 libltdl_cv_func_dlopen="yes"
11129 echo "$as_me: failed program was:" >&5
11130 sed 's/^/| /' conftest.$ac_ext >&5
11132 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11133 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11134 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 ac_check_lib_save_LIBS=$LIBS
11138 LIBS="-lsvld $LIBS"
11139 cat >conftest.$ac_ext <<_ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11146 /* Override any GCC internal prototype to avoid an error.
11147 Use char because int might match the return type of a GCC
11148 builtin and then its argument prototype would still apply. */
11161 rm -f conftest.$ac_objext conftest$ac_exeext
11162 if { (ac_try="$ac_link"
11163 case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_link") 2>conftest.er1
11170 grep -v '^ *+' conftest.er1 >conftest.err
11172 cat conftest.err >&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } &&
11175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11185 { ac_try='test -s conftest$ac_exeext'
11186 { (case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_try") 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_lib_svld_dlopen=yes
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11200 ac_cv_lib_svld_dlopen=no
11203 rm -f core conftest.err conftest.$ac_objext \
11204 conftest$ac_exeext conftest.$ac_ext
11205 LIBS=$ac_check_lib_save_LIBS
11207 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11208 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11209 if test $ac_cv_lib_svld_dlopen = yes; then
11211 cat >>confdefs.h <<\_ACEOF
11212 #define HAVE_LIBDL 1
11215 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11217 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11218 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11219 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 ac_check_lib_save_LIBS=$LIBS
11224 cat >conftest.$ac_ext <<_ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h. */
11231 /* Override any GCC internal prototype to avoid an error.
11232 Use char because int might match the return type of a GCC
11233 builtin and then its argument prototype would still apply. */
11241 return dld_link ();
11246 rm -f conftest.$ac_objext conftest$ac_exeext
11247 if { (ac_try="$ac_link"
11248 case "(($ac_try" in
11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253 (eval "$ac_link") 2>conftest.er1
11255 grep -v '^ *+' conftest.er1 >conftest.err
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
11260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11270 { ac_try='test -s conftest$ac_exeext'
11271 { (case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_try") 2>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_cv_lib_dld_dld_link=yes
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11285 ac_cv_lib_dld_dld_link=no
11288 rm -f core conftest.err conftest.$ac_objext \
11289 conftest$ac_exeext conftest.$ac_ext
11290 LIBS=$ac_check_lib_save_LIBS
11292 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11293 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11294 if test $ac_cv_lib_dld_dld_link = yes; then
11296 cat >>confdefs.h <<\_ACEOF
11300 LIBADD_DL="$LIBADD_DL -ldld"
11302 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11303 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11304 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 cat >conftest.$ac_ext <<_ACEOF
11310 cat confdefs.h >>conftest.$ac_ext
11311 cat >>conftest.$ac_ext <<_ACEOF
11312 /* end confdefs.h. */
11313 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11315 #define _dyld_func_lookup innocuous__dyld_func_lookup
11317 /* System header to define __stub macros and hopefully few prototypes,
11318 which can conflict with char _dyld_func_lookup (); below.
11319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11320 <limits.h> exists even on freestanding compilers. */
11323 # include <limits.h>
11325 # include <assert.h>
11328 #undef _dyld_func_lookup
11330 /* Override any GCC internal prototype to avoid an error.
11331 Use char because int might match the return type of a GCC
11332 builtin and then its argument prototype would still apply. */
11336 char _dyld_func_lookup ();
11337 /* The GNU C library defines this for functions which it implements
11338 to always fail with ENOSYS. Some functions are actually named
11339 something starting with __ and the normal name is an alias. */
11340 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11347 return _dyld_func_lookup ();
11352 rm -f conftest.$ac_objext conftest$ac_exeext
11353 if { (ac_try="$ac_link"
11354 case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_link") 2>conftest.er1
11361 grep -v '^ *+' conftest.er1 >conftest.err
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } &&
11366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11376 { ac_try='test -s conftest$ac_exeext'
11377 { (case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_try") 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 ac_cv_func__dyld_func_lookup=yes
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11391 ac_cv_func__dyld_func_lookup=no
11394 rm -f core conftest.err conftest.$ac_objext \
11395 conftest$ac_exeext conftest.$ac_ext
11397 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11398 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11399 if test $ac_cv_func__dyld_func_lookup = yes; then
11401 cat >>confdefs.h <<\_ACEOF
11402 #define HAVE_DYLD 1
11416 rm -f core conftest.err conftest.$ac_objext \
11417 conftest$ac_exeext conftest.$ac_ext
11428 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11430 lt_save_LIBS="$LIBS"
11431 LIBS="$LIBS $LIBADD_DL"
11433 for ac_func in dlerror
11435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 cat >conftest.$ac_ext <<_ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11449 #define $ac_func innocuous_$ac_func
11451 /* System header to define __stub macros and hopefully few prototypes,
11452 which can conflict with char $ac_func (); below.
11453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11454 <limits.h> exists even on freestanding compilers. */
11457 # include <limits.h>
11459 # include <assert.h>
11464 /* Override any GCC internal prototype to avoid an error.
11465 Use char because int might match the return type of a GCC
11466 builtin and then its argument prototype would still apply. */
11471 /* The GNU C library defines this for functions which it implements
11472 to always fail with ENOSYS. Some functions are actually named
11473 something starting with __ and the normal name is an alias. */
11474 #if defined __stub_$ac_func || defined __stub___$ac_func
11481 return $ac_func ();
11486 rm -f conftest.$ac_objext conftest$ac_exeext
11487 if { (ac_try="$ac_link"
11488 case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_link") 2>conftest.er1
11495 grep -v '^ *+' conftest.er1 >conftest.err
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
11500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11510 { ac_try='test -s conftest$ac_exeext'
11511 { (case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_try") 2>&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 eval "$as_ac_var=yes"
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11525 eval "$as_ac_var=no"
11528 rm -f core conftest.err conftest.$ac_objext \
11529 conftest$ac_exeext conftest.$ac_ext
11531 ac_res=`eval echo '${'$as_ac_var'}'`
11532 { echo "$as_me:$LINENO: result: $ac_res" >&5
11533 echo "${ECHO_T}$ac_res" >&6; }
11534 if test `eval echo '${'$as_ac_var'}'` = yes; then
11535 cat >>confdefs.h <<_ACEOF
11536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11542 LIBS="$lt_save_LIBS"
11545 ac_cpp='$CPP $CPPFLAGS'
11546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11552 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11553 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11554 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 ac_cv_sys_symbol_underscore=no
11558 cat > conftest.$ac_ext <<EOF
11559 void nm_test_func(){}
11560 int main(){nm_test_func;return 0;}
11562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11563 (eval $ac_compile) 2>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; then
11567 # Now try to grab the symbols.
11568 ac_nlist=conftest.nm
11569 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11570 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } && test -s "$ac_nlist"; then
11574 # See whether the symbols have a leading underscore.
11575 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11576 ac_cv_sys_symbol_underscore=yes
11578 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11581 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11585 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11588 echo "configure: failed program was:" >&5
11594 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11595 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11598 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11599 if test x"$libltdl_cv_func_dlopen" = xyes ||
11600 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11601 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11602 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11603 if test "${libltdl_cv_need_uscore+set}" = set; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 libltdl_cv_need_uscore=unknown
11608 LIBS="$LIBS $LIBADD_DL"
11609 if test "$cross_compiling" = yes; then :
11610 libltdl_cv_need_uscore=cross
11612 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11613 lt_status=$lt_dlunknown
11614 cat > conftest.$ac_ext <<EOF
11615 #line 11615 "configure"
11616 #include "confdefs.h"
11625 # define LT_DLGLOBAL RTLD_GLOBAL
11628 # define LT_DLGLOBAL DL_GLOBAL
11630 # define LT_DLGLOBAL 0
11634 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11635 find out it does not work in some platform. */
11636 #ifndef LT_DLLAZY_OR_NOW
11638 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11641 # define LT_DLLAZY_OR_NOW DL_LAZY
11644 # define LT_DLLAZY_OR_NOW RTLD_NOW
11647 # define LT_DLLAZY_OR_NOW DL_NOW
11649 # define LT_DLLAZY_OR_NOW 0
11657 extern "C" void exit (int);
11660 void fnord() { int i=42;}
11663 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11664 int status = $lt_dlunknown;
11668 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11669 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11670 /* dlclose (self); */
11678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11679 (eval $ac_link) 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11683 (./conftest; exit; ) >&5 2>/dev/null
11685 case x$lt_status in
11686 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11687 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11688 x$lt_dlunknown|x*) ;;
11691 # compilation failed
11700 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11701 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11705 if test x"$libltdl_cv_need_uscore" = xyes; then
11707 cat >>confdefs.h <<\_ACEOF
11708 #define NEED_USCORE 1
11714 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11715 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11716 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 # PORTME does your system automatically load deplibs for dlopen?
11720 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11721 # For now, we just catch OSes we know something about -- in the
11722 # future, we'll try test this programmatically.
11723 libltdl_cv_sys_dlopen_deplibs=unknown
11725 aix3*|aix4.1.*|aix4.2.*)
11726 # Unknown whether this is true for these versions of AIX, but
11727 # we want this `case' here to explicitly catch those versions.
11728 libltdl_cv_sys_dlopen_deplibs=unknown
11731 libltdl_cv_sys_dlopen_deplibs=yes
11734 # Assuming the user has installed a libdl from somewhere, this is true
11735 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11736 libltdl_cv_sys_dlopen_deplibs=yes
11738 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11739 # GNU and its variants, using gnu ld.so (Glibc)
11740 libltdl_cv_sys_dlopen_deplibs=yes
11743 libltdl_cv_sys_dlopen_deplibs=yes
11746 libltdl_cv_sys_dlopen_deplibs=yes
11748 irix[12345]*|irix6.[01]*)
11749 # Catch all versions of IRIX before 6.2, and indicate that we don't
11750 # know how it worked for any of those versions.
11751 libltdl_cv_sys_dlopen_deplibs=unknown
11754 # The case above catches anything before 6.2, and it's known that
11755 # at 6.2 and later dlopen does load deplibs.
11756 libltdl_cv_sys_dlopen_deplibs=yes
11759 libltdl_cv_sys_dlopen_deplibs=yes
11762 libltdl_cv_sys_dlopen_deplibs=yes
11765 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11766 # it did *not* use an RPATH in a shared library to find objects the
11767 # library depends on, so we explicitly say `no'.
11768 libltdl_cv_sys_dlopen_deplibs=no
11770 osf5.0|osf5.0a|osf5.1)
11771 # dlopen *does* load deplibs and with the right loader patch applied
11772 # it even uses RPATH in a shared library to search for shared objects
11773 # that the library depends on, but there's no easy way to know if that
11774 # patch is installed. Since this is the case, all we can really
11775 # say is unknown -- it depends on the patch being installed. If
11776 # it is, this changes to `yes'. Without it, it would be `no'.
11777 libltdl_cv_sys_dlopen_deplibs=unknown
11780 # the two cases above should catch all versions of osf <= 5.1. Read
11781 # the comments above for what we know about them.
11782 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11783 # is used to find them so we can finally say `yes'.
11784 libltdl_cv_sys_dlopen_deplibs=yes
11787 libltdl_cv_sys_dlopen_deplibs=yes
11789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11790 libltdl_cv_sys_dlopen_deplibs=yes
11795 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11796 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11797 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11799 cat >>confdefs.h <<\_ACEOF
11800 #define LTDL_DLOPEN_DEPLIBS 1
11806 for ac_header in argz.h
11808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 ac_res=`eval echo '${'$as_ac_Header'}'`
11816 { echo "$as_me:$LINENO: result: $ac_res" >&5
11817 echo "${ECHO_T}$ac_res" >&6; }
11819 # Is the header compilable?
11820 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11822 cat >conftest.$ac_ext <<_ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 $ac_includes_default
11829 #include <$ac_header>
11831 rm -f conftest.$ac_objext
11832 if { (ac_try="$ac_compile"
11833 case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_compile") 2>conftest.er1
11840 grep -v '^ *+' conftest.er1 >conftest.err
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } &&
11845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11855 { ac_try='test -s conftest.$ac_objext'
11856 { (case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_try") 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 ac_header_compiler=yes
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 ac_header_compiler=no
11873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11875 echo "${ECHO_T}$ac_header_compiler" >&6; }
11877 # Is the header present?
11878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11880 cat >conftest.$ac_ext <<_ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886 #include <$ac_header>
11888 if { (ac_try="$ac_cpp conftest.$ac_ext"
11889 case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11896 grep -v '^ *+' conftest.er1 >conftest.err
11898 cat conftest.err >&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } >/dev/null; then
11901 if test -s conftest.err; then
11902 ac_cpp_err=$ac_c_preproc_warn_flag
11903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11910 if test -z "$ac_cpp_err"; then
11911 ac_header_preproc=yes
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 ac_header_preproc=no
11919 rm -f conftest.err conftest.$ac_ext
11920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11921 echo "${ECHO_T}$ac_header_preproc" >&6; }
11923 # So? What about this header?
11924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11930 ac_header_preproc=yes
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11946 ## ----------------------------------- ##
11947 ## Report this to llvmbugs@cs.uiuc.edu ##
11948 ## ----------------------------------- ##
11950 ) | sed "s/^/$as_me: WARNING: /" >&2
11953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11958 eval "$as_ac_Header=\$ac_header_preproc"
11960 ac_res=`eval echo '${'$as_ac_Header'}'`
11961 { echo "$as_me:$LINENO: result: $ac_res" >&5
11962 echo "${ECHO_T}$ac_res" >&6; }
11965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11966 cat >>confdefs.h <<_ACEOF
11967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11975 { echo "$as_me:$LINENO: checking for error_t" >&5
11976 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11977 if test "${ac_cv_type_error_t+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 cat >conftest.$ac_ext <<_ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11990 typedef error_t ac__type_new_;
11994 if ((ac__type_new_ *) 0)
11996 if (sizeof (ac__type_new_))
12002 rm -f conftest.$ac_objext
12003 if { (ac_try="$ac_compile"
12004 case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_compile") 2>conftest.er1
12011 grep -v '^ *+' conftest.er1 >conftest.err
12013 cat conftest.err >&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
12016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12026 { ac_try='test -s conftest.$ac_objext'
12027 { (case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_try") 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12036 ac_cv_type_error_t=yes
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12041 ac_cv_type_error_t=no
12044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12047 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12048 if test $ac_cv_type_error_t = yes; then
12050 cat >>confdefs.h <<_ACEOF
12051 #define HAVE_ERROR_T 1
12057 cat >>confdefs.h <<\_ACEOF
12058 #define error_t int
12069 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 cat >conftest.$ac_ext <<_ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12085 #define $ac_func innocuous_$ac_func
12087 /* System header to define __stub macros and hopefully few prototypes,
12088 which can conflict with char $ac_func (); below.
12089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12090 <limits.h> exists even on freestanding compilers. */
12093 # include <limits.h>
12095 # include <assert.h>
12100 /* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
12107 /* The GNU C library defines this for functions which it implements
12108 to always fail with ENOSYS. Some functions are actually named
12109 something starting with __ and the normal name is an alias. */
12110 #if defined __stub_$ac_func || defined __stub___$ac_func
12117 return $ac_func ();
12122 rm -f conftest.$ac_objext conftest$ac_exeext
12123 if { (ac_try="$ac_link"
12124 case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_link") 2>conftest.er1
12131 grep -v '^ *+' conftest.er1 >conftest.err
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } &&
12136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12146 { ac_try='test -s conftest$ac_exeext'
12147 { (case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_try") 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 eval "$as_ac_var=yes"
12158 echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12161 eval "$as_ac_var=no"
12164 rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12167 ac_res=`eval echo '${'$as_ac_var'}'`
12168 { echo "$as_me:$LINENO: result: $ac_res" >&5
12169 echo "${ECHO_T}$ac_res" >&6; }
12170 if test `eval echo '${'$as_ac_var'}'` = yes; then
12171 cat >>confdefs.h <<_ACEOF
12172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12205 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 ac_res=`eval echo '${'$as_ac_Header'}'`
12216 { echo "$as_me:$LINENO: result: $ac_res" >&5
12217 echo "${ECHO_T}$ac_res" >&6; }
12219 # Is the header compilable?
12220 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12222 cat >conftest.$ac_ext <<_ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 $ac_includes_default
12229 #include <$ac_header>
12231 rm -f conftest.$ac_objext
12232 if { (ac_try="$ac_compile"
12233 case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_compile") 2>conftest.er1
12240 grep -v '^ *+' conftest.er1 >conftest.err
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } &&
12245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12255 { ac_try='test -s conftest.$ac_objext'
12256 { (case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_try") 2>&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; }; then
12265 ac_header_compiler=yes
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 ac_header_compiler=no
12273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12275 echo "${ECHO_T}$ac_header_compiler" >&6; }
12277 # Is the header present?
12278 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12280 cat >conftest.$ac_ext <<_ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 #include <$ac_header>
12288 if { (ac_try="$ac_cpp conftest.$ac_ext"
12289 case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12296 grep -v '^ *+' conftest.er1 >conftest.err
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } >/dev/null; then
12301 if test -s conftest.err; then
12302 ac_cpp_err=$ac_c_preproc_warn_flag
12303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12310 if test -z "$ac_cpp_err"; then
12311 ac_header_preproc=yes
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12316 ac_header_preproc=no
12319 rm -f conftest.err conftest.$ac_ext
12320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12321 echo "${ECHO_T}$ac_header_preproc" >&6; }
12323 # So? What about this header?
12324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12330 ac_header_preproc=yes
12333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12340 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12346 ## ----------------------------------- ##
12347 ## Report this to llvmbugs@cs.uiuc.edu ##
12348 ## ----------------------------------- ##
12350 ) | sed "s/^/$as_me: WARNING: /" >&2
12353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12358 eval "$as_ac_Header=\$ac_header_preproc"
12360 ac_res=`eval echo '${'$as_ac_Header'}'`
12361 { echo "$as_me:$LINENO: result: $ac_res" >&5
12362 echo "${ECHO_T}$ac_res" >&6; }
12365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12366 cat >>confdefs.h <<_ACEOF
12367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12378 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 ac_res=`eval echo '${'$as_ac_Header'}'`
12388 { echo "$as_me:$LINENO: result: $ac_res" >&5
12389 echo "${ECHO_T}$ac_res" >&6; }
12391 # Is the header compilable?
12392 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12394 cat >conftest.$ac_ext <<_ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12400 $ac_includes_default
12401 #include <$ac_header>
12403 rm -f conftest.$ac_objext
12404 if { (ac_try="$ac_compile"
12405 case "(($ac_try" in
12406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407 *) ac_try_echo=$ac_try;;
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410 (eval "$ac_compile") 2>conftest.er1
12412 grep -v '^ *+' conftest.er1 >conftest.err
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12427 { ac_try='test -s conftest.$ac_objext'
12428 { (case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_try") 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_header_compiler=yes
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12442 ac_header_compiler=no
12445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12447 echo "${ECHO_T}$ac_header_compiler" >&6; }
12449 # Is the header present?
12450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12452 cat >conftest.$ac_ext <<_ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12458 #include <$ac_header>
12460 if { (ac_try="$ac_cpp conftest.$ac_ext"
12461 case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12468 grep -v '^ *+' conftest.er1 >conftest.err
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } >/dev/null; then
12473 if test -s conftest.err; then
12474 ac_cpp_err=$ac_c_preproc_warn_flag
12475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12482 if test -z "$ac_cpp_err"; then
12483 ac_header_preproc=yes
12485 echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12488 ac_header_preproc=no
12491 rm -f conftest.err conftest.$ac_ext
12492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12493 echo "${ECHO_T}$ac_header_preproc" >&6; }
12495 # So? What about this header?
12496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12502 ac_header_preproc=yes
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12518 ## ----------------------------------- ##
12519 ## Report this to llvmbugs@cs.uiuc.edu ##
12520 ## ----------------------------------- ##
12522 ) | sed "s/^/$as_me: WARNING: /" >&2
12525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 eval "$as_ac_Header=\$ac_header_preproc"
12532 ac_res=`eval echo '${'$as_ac_Header'}'`
12533 { echo "$as_me:$LINENO: result: $ac_res" >&5
12534 echo "${ECHO_T}$ac_res" >&6; }
12537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12538 cat >>confdefs.h <<_ACEOF
12539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12548 for ac_header in string.h strings.h
12550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 ac_res=`eval echo '${'$as_ac_Header'}'`
12558 { echo "$as_me:$LINENO: result: $ac_res" >&5
12559 echo "${ECHO_T}$ac_res" >&6; }
12561 # Is the header compilable?
12562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12564 cat >conftest.$ac_ext <<_ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570 $ac_includes_default
12571 #include <$ac_header>
12573 rm -f conftest.$ac_objext
12574 if { (ac_try="$ac_compile"
12575 case "(($ac_try" in
12576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577 *) ac_try_echo=$ac_try;;
12579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580 (eval "$ac_compile") 2>conftest.er1
12582 grep -v '^ *+' conftest.er1 >conftest.err
12584 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } &&
12587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12597 { ac_try='test -s conftest.$ac_objext'
12598 { (case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_try") 2>&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12607 ac_header_compiler=yes
12609 echo "$as_me: failed program was:" >&5
12610 sed 's/^/| /' conftest.$ac_ext >&5
12612 ac_header_compiler=no
12615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12617 echo "${ECHO_T}$ac_header_compiler" >&6; }
12619 # Is the header present?
12620 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12622 cat >conftest.$ac_ext <<_ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12628 #include <$ac_header>
12630 if { (ac_try="$ac_cpp conftest.$ac_ext"
12631 case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12638 grep -v '^ *+' conftest.er1 >conftest.err
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } >/dev/null; then
12643 if test -s conftest.err; then
12644 ac_cpp_err=$ac_c_preproc_warn_flag
12645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12652 if test -z "$ac_cpp_err"; then
12653 ac_header_preproc=yes
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12658 ac_header_preproc=no
12661 rm -f conftest.err conftest.$ac_ext
12662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12663 echo "${ECHO_T}$ac_header_preproc" >&6; }
12665 # So? What about this header?
12666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12672 ac_header_preproc=yes
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12688 ## ----------------------------------- ##
12689 ## Report this to llvmbugs@cs.uiuc.edu ##
12690 ## ----------------------------------- ##
12692 ) | sed "s/^/$as_me: WARNING: /" >&2
12695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12700 eval "$as_ac_Header=\$ac_header_preproc"
12702 ac_res=`eval echo '${'$as_ac_Header'}'`
12703 { echo "$as_me:$LINENO: result: $ac_res" >&5
12704 echo "${ECHO_T}$ac_res" >&6; }
12707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12708 cat >>confdefs.h <<_ACEOF
12709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12719 for ac_func in strchr index
12721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 cat >conftest.$ac_ext <<_ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12735 #define $ac_func innocuous_$ac_func
12737 /* System header to define __stub macros and hopefully few prototypes,
12738 which can conflict with char $ac_func (); below.
12739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12740 <limits.h> exists even on freestanding compilers. */
12743 # include <limits.h>
12745 # include <assert.h>
12750 /* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12757 /* The GNU C library defines this for functions which it implements
12758 to always fail with ENOSYS. Some functions are actually named
12759 something starting with __ and the normal name is an alias. */
12760 #if defined __stub_$ac_func || defined __stub___$ac_func
12767 return $ac_func ();
12772 rm -f conftest.$ac_objext conftest$ac_exeext
12773 if { (ac_try="$ac_link"
12774 case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_link") 2>conftest.er1
12781 grep -v '^ *+' conftest.er1 >conftest.err
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (case "(($ac_try" in
12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799 *) ac_try_echo=$ac_try;;
12801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802 (eval "$ac_try") 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 eval "$as_ac_var=yes"
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12811 eval "$as_ac_var=no"
12814 rm -f core conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12817 ac_res=`eval echo '${'$as_ac_var'}'`
12818 { echo "$as_me:$LINENO: result: $ac_res" >&5
12819 echo "${ECHO_T}$ac_res" >&6; }
12820 if test `eval echo '${'$as_ac_var'}'` = yes; then
12821 cat >>confdefs.h <<_ACEOF
12822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12830 for ac_func in strrchr rindex
12832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 cat >conftest.$ac_ext <<_ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12846 #define $ac_func innocuous_$ac_func
12848 /* System header to define __stub macros and hopefully few prototypes,
12849 which can conflict with char $ac_func (); below.
12850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12851 <limits.h> exists even on freestanding compilers. */
12854 # include <limits.h>
12856 # include <assert.h>
12861 /* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12868 /* The GNU C library defines this for functions which it implements
12869 to always fail with ENOSYS. Some functions are actually named
12870 something starting with __ and the normal name is an alias. */
12871 #if defined __stub_$ac_func || defined __stub___$ac_func
12878 return $ac_func ();
12883 rm -f conftest.$ac_objext conftest$ac_exeext
12884 if { (ac_try="$ac_link"
12885 case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_link") 2>conftest.er1
12892 grep -v '^ *+' conftest.er1 >conftest.err
12894 cat conftest.err >&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
12897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12907 { ac_try='test -s conftest$ac_exeext'
12908 { (case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_try") 2>&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 eval "$as_ac_var=yes"
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12922 eval "$as_ac_var=no"
12925 rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12928 ac_res=`eval echo '${'$as_ac_var'}'`
12929 { echo "$as_me:$LINENO: result: $ac_res" >&5
12930 echo "${ECHO_T}$ac_res" >&6; }
12931 if test `eval echo '${'$as_ac_var'}'` = yes; then
12932 cat >>confdefs.h <<_ACEOF
12933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12941 for ac_func in memcpy bcopy
12943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12949 cat >conftest.$ac_ext <<_ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12957 #define $ac_func innocuous_$ac_func
12959 /* System header to define __stub macros and hopefully few prototypes,
12960 which can conflict with char $ac_func (); below.
12961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12962 <limits.h> exists even on freestanding compilers. */
12965 # include <limits.h>
12967 # include <assert.h>
12972 /* Override any GCC internal prototype to avoid an error.
12973 Use char because int might match the return type of a GCC
12974 builtin and then its argument prototype would still apply. */
12979 /* The GNU C library defines this for functions which it implements
12980 to always fail with ENOSYS. Some functions are actually named
12981 something starting with __ and the normal name is an alias. */
12982 #if defined __stub_$ac_func || defined __stub___$ac_func
12989 return $ac_func ();
12994 rm -f conftest.$ac_objext conftest$ac_exeext
12995 if { (ac_try="$ac_link"
12996 case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_link") 2>conftest.er1
13003 grep -v '^ *+' conftest.er1 >conftest.err
13005 cat conftest.err >&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } &&
13008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13018 { ac_try='test -s conftest$ac_exeext'
13019 { (case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_try") 2>&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }; then
13028 eval "$as_ac_var=yes"
13030 echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13033 eval "$as_ac_var=no"
13036 rm -f core conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13039 ac_res=`eval echo '${'$as_ac_var'}'`
13040 { echo "$as_me:$LINENO: result: $ac_res" >&5
13041 echo "${ECHO_T}$ac_res" >&6; }
13042 if test `eval echo '${'$as_ac_var'}'` = yes; then
13043 cat >>confdefs.h <<_ACEOF
13044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13052 for ac_func in memmove strcmp
13054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13060 cat >conftest.$ac_ext <<_ACEOF
13063 cat confdefs.h >>conftest.$ac_ext
13064 cat >>conftest.$ac_ext <<_ACEOF
13065 /* end confdefs.h. */
13066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13068 #define $ac_func innocuous_$ac_func
13070 /* System header to define __stub macros and hopefully few prototypes,
13071 which can conflict with char $ac_func (); below.
13072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13073 <limits.h> exists even on freestanding compilers. */
13076 # include <limits.h>
13078 # include <assert.h>
13083 /* Override any GCC internal prototype to avoid an error.
13084 Use char because int might match the return type of a GCC
13085 builtin and then its argument prototype would still apply. */
13090 /* The GNU C library defines this for functions which it implements
13091 to always fail with ENOSYS. Some functions are actually named
13092 something starting with __ and the normal name is an alias. */
13093 #if defined __stub_$ac_func || defined __stub___$ac_func
13100 return $ac_func ();
13105 rm -f conftest.$ac_objext conftest$ac_exeext
13106 if { (ac_try="$ac_link"
13107 case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_link") 2>conftest.er1
13114 grep -v '^ *+' conftest.er1 >conftest.err
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13120 { (case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_try") 2>&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; } &&
13129 { ac_try='test -s conftest$ac_exeext'
13130 { (case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_try") 2>&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 eval "$as_ac_var=yes"
13141 echo "$as_me: failed program was:" >&5
13142 sed 's/^/| /' conftest.$ac_ext >&5
13144 eval "$as_ac_var=no"
13147 rm -f core conftest.err conftest.$ac_objext \
13148 conftest$ac_exeext conftest.$ac_ext
13150 ac_res=`eval echo '${'$as_ac_var'}'`
13151 { echo "$as_me:$LINENO: result: $ac_res" >&5
13152 echo "${ECHO_T}$ac_res" >&6; }
13153 if test `eval echo '${'$as_ac_var'}'` = yes; then
13154 cat >>confdefs.h <<_ACEOF
13155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13164 for ac_func in closedir opendir readdir
13166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 cat >conftest.$ac_ext <<_ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h. */
13178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13180 #define $ac_func innocuous_$ac_func
13182 /* System header to define __stub macros and hopefully few prototypes,
13183 which can conflict with char $ac_func (); below.
13184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13185 <limits.h> exists even on freestanding compilers. */
13188 # include <limits.h>
13190 # include <assert.h>
13195 /* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
13202 /* The GNU C library defines this for functions which it implements
13203 to always fail with ENOSYS. Some functions are actually named
13204 something starting with __ and the normal name is an alias. */
13205 #if defined __stub_$ac_func || defined __stub___$ac_func
13212 return $ac_func ();
13217 rm -f conftest.$ac_objext conftest$ac_exeext
13218 if { (ac_try="$ac_link"
13219 case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_link") 2>conftest.er1
13226 grep -v '^ *+' conftest.er1 >conftest.err
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } &&
13231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13241 { ac_try='test -s conftest$ac_exeext'
13242 { (case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_try") 2>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13251 eval "$as_ac_var=yes"
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 eval "$as_ac_var=no"
13259 rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13262 ac_res=`eval echo '${'$as_ac_var'}'`
13263 { echo "$as_me:$LINENO: result: $ac_res" >&5
13264 echo "${ECHO_T}$ac_res" >&6; }
13265 if test `eval echo '${'$as_ac_var'}'` = yes; then
13266 cat >>confdefs.h <<_ACEOF
13267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13275 if test "$WITH_LLVMGCCDIR" = "default" ; then
13276 LLVMGCC="llvm-gcc${EXEEXT}"
13277 LLVMGXX="llvm-g++${EXEEXT}"
13278 LLVMGCCCOMMAND="$LLVMGCC"
13279 LLVMGXXCOMMAND="$LLVMGXX"
13280 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13282 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13284 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13285 set dummy $LLVMGCC; ac_word=$2
13286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13288 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297 for as_dir in $PATH
13300 test -z "$as_dir" && as_dir=.
13301 for ac_exec_ext in '' $ac_executable_extensions; do
13302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13303 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13314 LLVMGCC=$ac_cv_path_LLVMGCC
13315 if test -n "$LLVMGCC"; then
13316 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13317 echo "${ECHO_T}$LLVMGCC" >&6; }
13319 { echo "$as_me:$LINENO: result: no" >&5
13320 echo "${ECHO_T}no" >&6; }
13324 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13325 set dummy $LLVMGXX; ac_word=$2
13326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13328 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13333 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13340 test -z "$as_dir" && as_dir=.
13341 for ac_exec_ext in '' $ac_executable_extensions; do
13342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13343 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13354 LLVMGXX=$ac_cv_path_LLVMGXX
13355 if test -n "$LLVMGXX"; then
13356 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13357 echo "${ECHO_T}$LLVMGXX" >&6; }
13359 { echo "$as_me:$LINENO: result: no" >&5
13360 echo "${ECHO_T}no" >&6; }
13365 if test -z "$LLVMGCC"; then
13366 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13367 LLVMGCCCOMMAND="$LLVMGCC"
13369 if test -z "$LLVMGXX"; then
13370 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13371 LLVMGXXCOMMAND="$LLVMGXX"
13378 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13380 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13385 # Check whether --with-llvmcc was given.
13386 if test "${with_llvmcc+set}" = set; then
13387 withval=$with_llvmcc;
13392 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13393 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13394 if test "$with_llvmcc" != "check"; then
13395 if (test "$with_llvmcc" != "llvm-gcc" &&
13396 test "$with_llvmcc" != "clang" &&
13397 test "$with_llvmcc" != "none"); then
13398 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13399 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13400 { (exit 1); exit 1; }; }
13402 WITH_LLVMCC="$with_llvmcc"
13403 elif test -n "$LLVMGCC"; then
13404 WITH_LLVMCC=llvm-gcc
13405 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13410 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13411 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13412 LLVMCC_OPTION=$WITH_LLVMCC
13415 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13416 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13429 if test "$GCC" != "yes" && test "$ICC" != "yes"
13431 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13432 echo "$as_me: error: gcc|icc required but not found" >&2;}
13433 { (exit 1); exit 1; }; }
13436 if test "$GXX" != "yes" && test "$IXX" != "yes"
13438 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13439 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13440 { (exit 1); exit 1; }; }
13443 if test "$GCC" = "yes"
13445 cat >conftest.$ac_ext <<_ACEOF
13446 #if !defined(__GNUC__) || __GNUC__ < 3
13447 #error Unsupported GCC version
13451 rm -f conftest.$ac_objext
13452 if { (ac_try="$ac_compile"
13453 case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458 (eval "$ac_compile") 2>conftest.er1
13460 grep -v '^ *+' conftest.er1 >conftest.err
13462 cat conftest.err >&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
13465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13475 { ac_try='test -s conftest.$ac_objext'
13476 { (case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_try") 2>&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13490 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13491 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13492 { (exit 1); exit 1; }; }
13495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13498 if test -z "$llvm_cv_gnu_make_command"
13500 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13501 echo "$as_me: error: GNU Make required but not found" >&2;}
13502 { (exit 1); exit 1; }; }
13505 { echo "$as_me:$LINENO: result: ok" >&5
13506 echo "${ECHO_T}ok" >&6; }
13508 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13509 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13510 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13512 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13514 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13515 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13519 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13520 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13521 if test "${ac_cv_lib_m_sin+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13524 ac_check_lib_save_LIBS=$LIBS
13526 cat >conftest.$ac_ext <<_ACEOF
13529 cat confdefs.h >>conftest.$ac_ext
13530 cat >>conftest.$ac_ext <<_ACEOF
13531 /* end confdefs.h. */
13533 /* Override any GCC internal prototype to avoid an error.
13534 Use char because int might match the return type of a GCC
13535 builtin and then its argument prototype would still apply. */
13548 rm -f conftest.$ac_objext conftest$ac_exeext
13549 if { (ac_try="$ac_link"
13550 case "(($ac_try" in
13551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13552 *) ac_try_echo=$ac_try;;
13554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13555 (eval "$ac_link") 2>conftest.er1
13557 grep -v '^ *+' conftest.er1 >conftest.err
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } &&
13562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13572 { ac_try='test -s conftest$ac_exeext'
13573 { (case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578 (eval "$ac_try") 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
13582 ac_cv_lib_m_sin=yes
13584 echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13590 rm -f core conftest.err conftest.$ac_objext \
13591 conftest$ac_exeext conftest.$ac_ext
13592 LIBS=$ac_check_lib_save_LIBS
13594 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13595 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13596 if test $ac_cv_lib_m_sin = yes; then
13597 cat >>confdefs.h <<_ACEOF
13598 #define HAVE_LIBM 1
13605 if test "$llvm_cv_os_type" = "MingW" ; then
13607 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13608 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13609 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13612 ac_check_lib_save_LIBS=$LIBS
13613 LIBS="-limagehlp $LIBS"
13614 cat >conftest.$ac_ext <<_ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13630 rm -f conftest.$ac_objext conftest$ac_exeext
13631 if { (ac_try="$ac_link"
13632 case "(($ac_try" in
13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_link") 2>conftest.er1
13639 grep -v '^ *+' conftest.er1 >conftest.err
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13654 { ac_try='test -s conftest$ac_exeext'
13655 { (case "(($ac_try" in
13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657 *) ac_try_echo=$ac_try;;
13659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660 (eval "$ac_try") 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_cv_lib_imagehlp_main=yes
13666 echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13669 ac_cv_lib_imagehlp_main=no
13672 rm -f core conftest.err conftest.$ac_objext \
13673 conftest$ac_exeext conftest.$ac_ext
13674 LIBS=$ac_check_lib_save_LIBS
13676 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13677 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13678 if test $ac_cv_lib_imagehlp_main = yes; then
13679 cat >>confdefs.h <<_ACEOF
13680 #define HAVE_LIBIMAGEHLP 1
13683 LIBS="-limagehlp $LIBS"
13688 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13689 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13690 if test "${ac_cv_lib_psapi_main+set}" = set; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 ac_check_lib_save_LIBS=$LIBS
13694 LIBS="-lpsapi $LIBS"
13695 cat >conftest.$ac_ext <<_ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13711 rm -f conftest.$ac_objext conftest$ac_exeext
13712 if { (ac_try="$ac_link"
13713 case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718 (eval "$ac_link") 2>conftest.er1
13720 grep -v '^ *+' conftest.er1 >conftest.err
13722 cat conftest.err >&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13735 { ac_try='test -s conftest$ac_exeext'
13736 { (case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_try") 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745 ac_cv_lib_psapi_main=yes
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13750 ac_cv_lib_psapi_main=no
13753 rm -f core conftest.err conftest.$ac_objext \
13754 conftest$ac_exeext conftest.$ac_ext
13755 LIBS=$ac_check_lib_save_LIBS
13757 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13758 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13759 if test $ac_cv_lib_psapi_main = yes; then
13760 cat >>confdefs.h <<_ACEOF
13761 #define HAVE_LIBPSAPI 1
13764 LIBS="-lpsapi $LIBS"
13770 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13771 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13772 if test "${ac_cv_search_dlopen+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 ac_func_search_save_LIBS=$LIBS
13776 cat >conftest.$ac_ext <<_ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13783 /* Override any GCC internal prototype to avoid an error.
13784 Use char because int might match the return type of a GCC
13785 builtin and then its argument prototype would still apply. */
13798 for ac_lib in '' dl; do
13799 if test -z "$ac_lib"; then
13800 ac_res="none required"
13803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13805 rm -f conftest.$ac_objext conftest$ac_exeext
13806 if { (ac_try="$ac_link"
13807 case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_link") 2>conftest.er1
13814 grep -v '^ *+' conftest.er1 >conftest.err
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13829 { ac_try='test -s conftest$ac_exeext'
13830 { (case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_try") 2>&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; }; then
13839 ac_cv_search_dlopen=$ac_res
13841 echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.$ac_ext >&5
13847 rm -f core conftest.err conftest.$ac_objext \
13849 if test "${ac_cv_search_dlopen+set}" = set; then
13853 if test "${ac_cv_search_dlopen+set}" = set; then
13856 ac_cv_search_dlopen=no
13858 rm conftest.$ac_ext
13859 LIBS=$ac_func_search_save_LIBS
13861 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13862 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13863 ac_res=$ac_cv_search_dlopen
13864 if test "$ac_res" != no; then
13865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13867 cat >>confdefs.h <<\_ACEOF
13868 #define HAVE_DLOPEN 1
13872 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13873 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13877 if test "$llvm_cv_enable_libffi" = "yes" ; then
13878 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13879 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13880 if test "${ac_cv_search_ffi_call+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 ac_func_search_save_LIBS=$LIBS
13884 cat >conftest.$ac_ext <<_ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13891 /* Override any GCC internal prototype to avoid an error.
13892 Use char because int might match the return type of a GCC
13893 builtin and then its argument prototype would still apply. */
13901 return ffi_call ();
13906 for ac_lib in '' ffi; do
13907 if test -z "$ac_lib"; then
13908 ac_res="none required"
13911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13913 rm -f conftest.$ac_objext conftest$ac_exeext
13914 if { (ac_try="$ac_link"
13915 case "(($ac_try" in
13916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917 *) ac_try_echo=$ac_try;;
13919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920 (eval "$ac_link") 2>conftest.er1
13922 grep -v '^ *+' conftest.er1 >conftest.err
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
13927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13937 { ac_try='test -s conftest$ac_exeext'
13938 { (case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_try") 2>&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
13947 ac_cv_search_ffi_call=$ac_res
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13955 rm -f core conftest.err conftest.$ac_objext \
13957 if test "${ac_cv_search_ffi_call+set}" = set; then
13961 if test "${ac_cv_search_ffi_call+set}" = set; then
13964 ac_cv_search_ffi_call=no
13966 rm conftest.$ac_ext
13967 LIBS=$ac_func_search_save_LIBS
13969 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13970 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13971 ac_res=$ac_cv_search_ffi_call
13972 if test "$ac_res" != no; then
13973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13975 cat >>confdefs.h <<\_ACEOF
13976 #define HAVE_FFI_CALL 1
13980 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13981 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13982 { (exit 1); exit 1; }; }
13987 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13988 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13989 if test "${ac_cv_search_mallinfo+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 ac_func_search_save_LIBS=$LIBS
13993 cat >conftest.$ac_ext <<_ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
14000 /* Override any GCC internal prototype to avoid an error.
14001 Use char because int might match the return type of a GCC
14002 builtin and then its argument prototype would still apply. */
14010 return mallinfo ();
14015 for ac_lib in '' malloc; do
14016 if test -z "$ac_lib"; then
14017 ac_res="none required"
14020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14022 rm -f conftest.$ac_objext conftest$ac_exeext
14023 if { (ac_try="$ac_link"
14024 case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029 (eval "$ac_link") 2>conftest.er1
14031 grep -v '^ *+' conftest.er1 >conftest.err
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } &&
14036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14046 { ac_try='test -s conftest$ac_exeext'
14047 { (case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_try") 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 ac_cv_search_mallinfo=$ac_res
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14064 rm -f core conftest.err conftest.$ac_objext \
14066 if test "${ac_cv_search_mallinfo+set}" = set; then
14070 if test "${ac_cv_search_mallinfo+set}" = set; then
14073 ac_cv_search_mallinfo=no
14075 rm conftest.$ac_ext
14076 LIBS=$ac_func_search_save_LIBS
14078 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14079 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14080 ac_res=$ac_cv_search_mallinfo
14081 if test "$ac_res" != no; then
14082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14084 cat >>confdefs.h <<\_ACEOF
14085 #define HAVE_MALLINFO 1
14091 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14093 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14094 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14095 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14098 ac_check_lib_save_LIBS=$LIBS
14099 LIBS="-lpthread $LIBS"
14100 cat >conftest.$ac_ext <<_ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14107 /* Override any GCC internal prototype to avoid an error.
14108 Use char because int might match the return type of a GCC
14109 builtin and then its argument prototype would still apply. */
14113 char pthread_mutex_init ();
14117 return pthread_mutex_init ();
14122 rm -f conftest.$ac_objext conftest$ac_exeext
14123 if { (ac_try="$ac_link"
14124 case "(($ac_try" in
14125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126 *) ac_try_echo=$ac_try;;
14128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129 (eval "$ac_link") 2>conftest.er1
14131 grep -v '^ *+' conftest.er1 >conftest.err
14133 cat conftest.err >&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } &&
14136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14146 { ac_try='test -s conftest$ac_exeext'
14147 { (case "(($ac_try" in
14148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14149 *) ac_try_echo=$ac_try;;
14151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152 (eval "$ac_try") 2>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; }; then
14156 ac_cv_lib_pthread_pthread_mutex_init=yes
14158 echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14161 ac_cv_lib_pthread_pthread_mutex_init=no
14164 rm -f core conftest.err conftest.$ac_objext \
14165 conftest$ac_exeext conftest.$ac_ext
14166 LIBS=$ac_check_lib_save_LIBS
14168 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14169 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14170 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14171 cat >>confdefs.h <<_ACEOF
14172 #define HAVE_LIBPTHREAD 1
14175 LIBS="-lpthread $LIBS"
14179 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14180 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14181 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 ac_func_search_save_LIBS=$LIBS
14185 cat >conftest.$ac_ext <<_ACEOF
14188 cat confdefs.h >>conftest.$ac_ext
14189 cat >>conftest.$ac_ext <<_ACEOF
14190 /* end confdefs.h. */
14192 /* Override any GCC internal prototype to avoid an error.
14193 Use char because int might match the return type of a GCC
14194 builtin and then its argument prototype would still apply. */
14198 char pthread_mutex_lock ();
14202 return pthread_mutex_lock ();
14207 for ac_lib in '' pthread; do
14208 if test -z "$ac_lib"; then
14209 ac_res="none required"
14212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14214 rm -f conftest.$ac_objext conftest$ac_exeext
14215 if { (ac_try="$ac_link"
14216 case "(($ac_try" in
14217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218 *) ac_try_echo=$ac_try;;
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221 (eval "$ac_link") 2>conftest.er1
14223 grep -v '^ *+' conftest.er1 >conftest.err
14225 cat conftest.err >&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
14228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14229 { (case "(($ac_try" in
14230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231 *) ac_try_echo=$ac_try;;
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234 (eval "$ac_try") 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; } &&
14238 { ac_try='test -s conftest$ac_exeext'
14239 { (case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_try") 2>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; }; then
14248 ac_cv_search_pthread_mutex_lock=$ac_res
14250 echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14256 rm -f core conftest.err conftest.$ac_objext \
14258 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14262 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14265 ac_cv_search_pthread_mutex_lock=no
14267 rm conftest.$ac_ext
14268 LIBS=$ac_func_search_save_LIBS
14270 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14271 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14272 ac_res=$ac_cv_search_pthread_mutex_lock
14273 if test "$ac_res" != no; then
14274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14276 cat >>confdefs.h <<\_ACEOF
14277 #define HAVE_PTHREAD_MUTEX_LOCK 1
14282 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14283 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14284 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 ac_func_search_save_LIBS=$LIBS
14288 cat >conftest.$ac_ext <<_ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14295 /* Override any GCC internal prototype to avoid an error.
14296 Use char because int might match the return type of a GCC
14297 builtin and then its argument prototype would still apply. */
14301 char pthread_rwlock_init ();
14305 return pthread_rwlock_init ();
14310 for ac_lib in '' pthread; do
14311 if test -z "$ac_lib"; then
14312 ac_res="none required"
14315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14317 rm -f conftest.$ac_objext conftest$ac_exeext
14318 if { (ac_try="$ac_link"
14319 case "(($ac_try" in
14320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 *) ac_try_echo=$ac_try;;
14323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_link") 2>conftest.er1
14326 grep -v '^ *+' conftest.er1 >conftest.err
14328 cat conftest.err >&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } &&
14331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14341 { ac_try='test -s conftest$ac_exeext'
14342 { (case "(($ac_try" in
14343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_try") 2>&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; }; then
14351 ac_cv_search_pthread_rwlock_init=$ac_res
14353 echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14359 rm -f core conftest.err conftest.$ac_objext \
14361 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14365 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14368 ac_cv_search_pthread_rwlock_init=no
14370 rm conftest.$ac_ext
14371 LIBS=$ac_func_search_save_LIBS
14373 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14374 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14375 ac_res=$ac_cv_search_pthread_rwlock_init
14376 if test "$ac_res" != no; then
14377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14379 cat >>confdefs.h <<\_ACEOF
14380 #define HAVE_PTHREAD_RWLOCK_INIT 1
14385 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14386 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14387 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 ac_func_search_save_LIBS=$LIBS
14391 cat >conftest.$ac_ext <<_ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14398 /* Override any GCC internal prototype to avoid an error.
14399 Use char because int might match the return type of a GCC
14400 builtin and then its argument prototype would still apply. */
14404 char pthread_getspecific ();
14408 return pthread_getspecific ();
14413 for ac_lib in '' pthread; do
14414 if test -z "$ac_lib"; then
14415 ac_res="none required"
14418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14420 rm -f conftest.$ac_objext conftest$ac_exeext
14421 if { (ac_try="$ac_link"
14422 case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_link") 2>conftest.er1
14429 grep -v '^ *+' conftest.er1 >conftest.err
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14444 { ac_try='test -s conftest$ac_exeext'
14445 { (case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_try") 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_cv_search_pthread_getspecific=$ac_res
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14462 rm -f core conftest.err conftest.$ac_objext \
14464 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14468 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14471 ac_cv_search_pthread_getspecific=no
14473 rm conftest.$ac_ext
14474 LIBS=$ac_func_search_save_LIBS
14476 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14477 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14478 ac_res=$ac_cv_search_pthread_getspecific
14479 if test "$ac_res" != no; then
14480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14482 cat >>confdefs.h <<\_ACEOF
14483 #define HAVE_PTHREAD_GETSPECIFIC 1
14491 # Check whether --with-udis86 was given.
14492 if test "${with_udis86+set}" = set; then
14493 withval=$with_udis86;
14498 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14501 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14502 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14503 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 ac_check_lib_save_LIBS=$LIBS
14507 LIBS="-ludis86 $LIBS"
14508 cat >conftest.$ac_ext <<_ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14515 /* Override any GCC internal prototype to avoid an error.
14516 Use char because int might match the return type of a GCC
14517 builtin and then its argument prototype would still apply. */
14530 rm -f conftest.$ac_objext conftest$ac_exeext
14531 if { (ac_try="$ac_link"
14532 case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_link") 2>conftest.er1
14539 grep -v '^ *+' conftest.er1 >conftest.err
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } &&
14544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14554 { ac_try='test -s conftest$ac_exeext'
14555 { (case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_try") 2>&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; }; then
14564 ac_cv_lib_udis86_ud_init=yes
14566 echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14569 ac_cv_lib_udis86_ud_init=no
14572 rm -f core conftest.err conftest.$ac_objext \
14573 conftest$ac_exeext conftest.$ac_ext
14574 LIBS=$ac_check_lib_save_LIBS
14576 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14577 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14578 if test $ac_cv_lib_udis86_ud_init = yes; then
14579 cat >>confdefs.h <<_ACEOF
14580 #define HAVE_LIBUDIS86 1
14583 LIBS="-ludis86 $LIBS"
14587 echo "Error! You need to have libudis86 around."
14599 cat >>confdefs.h <<_ACEOF
14600 #define USE_UDIS86 $USE_UDIS86
14605 # Check whether --with-oprofile was given.
14606 if test "${with_oprofile+set}" = set; then
14607 withval=$with_oprofile;
14611 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14612 no) llvm_cv_oppath=
14615 *) llvm_cv_oppath="${withval}/lib/oprofile"
14616 CPPFLAGS="-I${withval}/include";;
14618 if test -n "$llvm_cv_oppath" ; then
14619 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14620 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14621 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14622 if test "${ac_cv_search_bfd_init+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 ac_func_search_save_LIBS=$LIBS
14626 cat >conftest.$ac_ext <<_ACEOF
14629 cat confdefs.h >>conftest.$ac_ext
14630 cat >>conftest.$ac_ext <<_ACEOF
14631 /* end confdefs.h. */
14633 /* Override any GCC internal prototype to avoid an error.
14634 Use char because int might match the return type of a GCC
14635 builtin and then its argument prototype would still apply. */
14643 return bfd_init ();
14648 for ac_lib in '' bfd; do
14649 if test -z "$ac_lib"; then
14650 ac_res="none required"
14653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14655 rm -f conftest.$ac_objext conftest$ac_exeext
14656 if { (ac_try="$ac_link"
14657 case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662 (eval "$ac_link") 2>conftest.er1
14664 grep -v '^ *+' conftest.er1 >conftest.err
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } &&
14669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14679 { ac_try='test -s conftest$ac_exeext'
14680 { (case "(($ac_try" in
14681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682 *) ac_try_echo=$ac_try;;
14684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14685 (eval "$ac_try") 2>&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); }; }; then
14689 ac_cv_search_bfd_init=$ac_res
14691 echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14697 rm -f core conftest.err conftest.$ac_objext \
14699 if test "${ac_cv_search_bfd_init+set}" = set; then
14703 if test "${ac_cv_search_bfd_init+set}" = set; then
14706 ac_cv_search_bfd_init=no
14708 rm conftest.$ac_ext
14709 LIBS=$ac_func_search_save_LIBS
14711 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14712 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14713 ac_res=$ac_cv_search_bfd_init
14714 if test "$ac_res" != no; then
14715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14719 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14720 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14721 if test "${ac_cv_search_op_open_agent+set}" = set; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 ac_func_search_save_LIBS=$LIBS
14725 cat >conftest.$ac_ext <<_ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14732 /* Override any GCC internal prototype to avoid an error.
14733 Use char because int might match the return type of a GCC
14734 builtin and then its argument prototype would still apply. */
14738 char op_open_agent ();
14742 return op_open_agent ();
14747 for ac_lib in '' opagent; do
14748 if test -z "$ac_lib"; then
14749 ac_res="none required"
14752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14754 rm -f conftest.$ac_objext conftest$ac_exeext
14755 if { (ac_try="$ac_link"
14756 case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_link") 2>conftest.er1
14763 grep -v '^ *+' conftest.er1 >conftest.err
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
14768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14778 { ac_try='test -s conftest$ac_exeext'
14779 { (case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_try") 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_cv_search_op_open_agent=$ac_res
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14796 rm -f core conftest.err conftest.$ac_objext \
14798 if test "${ac_cv_search_op_open_agent+set}" = set; then
14802 if test "${ac_cv_search_op_open_agent+set}" = set; then
14805 ac_cv_search_op_open_agent=no
14807 rm conftest.$ac_ext
14808 LIBS=$ac_func_search_save_LIBS
14810 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14811 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14812 ac_res=$ac_cv_search_op_open_agent
14813 if test "$ac_res" != no; then
14814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14818 echo "Error! You need to have libopagent around."
14823 if test "${ac_cv_header_opagent_h+set}" = set; then
14824 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14825 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14826 if test "${ac_cv_header_opagent_h+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14830 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14832 # Is the header compilable?
14833 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14834 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14835 cat >conftest.$ac_ext <<_ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14841 $ac_includes_default
14842 #include <opagent.h>
14844 rm -f conftest.$ac_objext
14845 if { (ac_try="$ac_compile"
14846 case "(($ac_try" in
14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848 *) ac_try_echo=$ac_try;;
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851 (eval "$ac_compile") 2>conftest.er1
14853 grep -v '^ *+' conftest.er1 >conftest.err
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } &&
14858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14868 { ac_try='test -s conftest.$ac_objext'
14869 { (case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874 (eval "$ac_try") 2>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }; then
14878 ac_header_compiler=yes
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14883 ac_header_compiler=no
14886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14888 echo "${ECHO_T}$ac_header_compiler" >&6; }
14890 # Is the header present?
14891 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14892 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14893 cat >conftest.$ac_ext <<_ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14899 #include <opagent.h>
14901 if { (ac_try="$ac_cpp conftest.$ac_ext"
14902 case "(($ac_try" in
14903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14904 *) ac_try_echo=$ac_try;;
14906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14909 grep -v '^ *+' conftest.er1 >conftest.err
14911 cat conftest.err >&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } >/dev/null; then
14914 if test -s conftest.err; then
14915 ac_cpp_err=$ac_c_preproc_warn_flag
14916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14923 if test -z "$ac_cpp_err"; then
14924 ac_header_preproc=yes
14926 echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14929 ac_header_preproc=no
14932 rm -f conftest.err conftest.$ac_ext
14933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14934 echo "${ECHO_T}$ac_header_preproc" >&6; }
14936 # So? What about this header?
14937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14939 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14940 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14942 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14943 ac_header_preproc=yes
14946 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14947 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14949 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14950 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14951 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14953 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14955 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14957 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14959 ## ----------------------------------- ##
14960 ## Report this to llvmbugs@cs.uiuc.edu ##
14961 ## ----------------------------------- ##
14963 ) | sed "s/^/$as_me: WARNING: /" >&2
14966 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14967 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14968 if test "${ac_cv_header_opagent_h+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 ac_cv_header_opagent_h=$ac_header_preproc
14973 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14974 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14977 if test $ac_cv_header_opagent_h = yes; then
14981 echo "Error! You need to have opagent.h around."
14997 cat >>confdefs.h <<_ACEOF
14998 #define USE_OPROFILE $USE_OPROFILE
15008 ac_header_dirent=no
15009 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15010 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15011 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15012 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 cat >conftest.$ac_ext <<_ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15022 #include <sys/types.h>
15034 rm -f conftest.$ac_objext
15035 if { (ac_try="$ac_compile"
15036 case "(($ac_try" in
15037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038 *) ac_try_echo=$ac_try;;
15040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041 (eval "$ac_compile") 2>conftest.er1
15043 grep -v '^ *+' conftest.er1 >conftest.err
15045 cat conftest.err >&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15058 { ac_try='test -s conftest.$ac_objext'
15059 { (case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_try") 2>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15068 eval "$as_ac_Header=yes"
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15073 eval "$as_ac_Header=no"
15076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15078 ac_res=`eval echo '${'$as_ac_Header'}'`
15079 { echo "$as_me:$LINENO: result: $ac_res" >&5
15080 echo "${ECHO_T}$ac_res" >&6; }
15081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15082 cat >>confdefs.h <<_ACEOF
15083 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15086 ac_header_dirent=$ac_hdr; break
15090 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15091 if test $ac_header_dirent = dirent.h; then
15092 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15093 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15094 if test "${ac_cv_search_opendir+set}" = set; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15097 ac_func_search_save_LIBS=$LIBS
15098 cat >conftest.$ac_ext <<_ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15105 /* Override any GCC internal prototype to avoid an error.
15106 Use char because int might match the return type of a GCC
15107 builtin and then its argument prototype would still apply. */
15120 for ac_lib in '' dir; do
15121 if test -z "$ac_lib"; then
15122 ac_res="none required"
15125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15127 rm -f conftest.$ac_objext conftest$ac_exeext
15128 if { (ac_try="$ac_link"
15129 case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_link") 2>conftest.er1
15136 grep -v '^ *+' conftest.er1 >conftest.err
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } &&
15141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15151 { ac_try='test -s conftest$ac_exeext'
15152 { (case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_try") 2>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
15161 ac_cv_search_opendir=$ac_res
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15169 rm -f core conftest.err conftest.$ac_objext \
15171 if test "${ac_cv_search_opendir+set}" = set; then
15175 if test "${ac_cv_search_opendir+set}" = set; then
15178 ac_cv_search_opendir=no
15180 rm conftest.$ac_ext
15181 LIBS=$ac_func_search_save_LIBS
15183 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15184 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15185 ac_res=$ac_cv_search_opendir
15186 if test "$ac_res" != no; then
15187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15192 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15193 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15194 if test "${ac_cv_search_opendir+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 ac_func_search_save_LIBS=$LIBS
15198 cat >conftest.$ac_ext <<_ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h. */
15205 /* Override any GCC internal prototype to avoid an error.
15206 Use char because int might match the return type of a GCC
15207 builtin and then its argument prototype would still apply. */
15220 for ac_lib in '' x; do
15221 if test -z "$ac_lib"; then
15222 ac_res="none required"
15225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15227 rm -f conftest.$ac_objext conftest$ac_exeext
15228 if { (ac_try="$ac_link"
15229 case "(($ac_try" in
15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231 *) ac_try_echo=$ac_try;;
15233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234 (eval "$ac_link") 2>conftest.er1
15236 grep -v '^ *+' conftest.er1 >conftest.err
15238 cat conftest.err >&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } &&
15241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15251 { ac_try='test -s conftest$ac_exeext'
15252 { (case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257 (eval "$ac_try") 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15261 ac_cv_search_opendir=$ac_res
15263 echo "$as_me: failed program was:" >&5
15264 sed 's/^/| /' conftest.$ac_ext >&5
15269 rm -f core conftest.err conftest.$ac_objext \
15271 if test "${ac_cv_search_opendir+set}" = set; then
15275 if test "${ac_cv_search_opendir+set}" = set; then
15278 ac_cv_search_opendir=no
15280 rm conftest.$ac_ext
15281 LIBS=$ac_func_search_save_LIBS
15283 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15284 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15285 ac_res=$ac_cv_search_opendir
15286 if test "$ac_res" != no; then
15287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15293 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15294 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15295 if test "${ac_cv_header_mmap_anon+set}" = set; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 ac_cpp='$CPP $CPPFLAGS'
15300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15304 cat >conftest.$ac_ext <<_ACEOF
15307 cat confdefs.h >>conftest.$ac_ext
15308 cat >>conftest.$ac_ext <<_ACEOF
15309 /* end confdefs.h. */
15310 #include <sys/mman.h>
15311 #include <unistd.h>
15316 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15321 rm -f conftest.$ac_objext
15322 if { (ac_try="$ac_compile"
15323 case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_compile") 2>conftest.er1
15330 grep -v '^ *+' conftest.er1 >conftest.err
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15345 { ac_try='test -s conftest.$ac_objext'
15346 { (case "(($ac_try" in
15347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348 *) ac_try_echo=$ac_try;;
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351 (eval "$ac_try") 2>&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; }; then
15355 ac_cv_header_mmap_anon=yes
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15360 ac_cv_header_mmap_anon=no
15363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15365 ac_cpp='$CPP $CPPFLAGS'
15366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15372 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15373 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15374 if test "$ac_cv_header_mmap_anon" = yes; then
15376 cat >>confdefs.h <<\_ACEOF
15377 #define HAVE_MMAP_ANONYMOUS 1
15382 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15383 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15384 if test "${ac_cv_header_stat_broken+set}" = set; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 cat >conftest.$ac_ext <<_ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15393 #include <sys/types.h>
15394 #include <sys/stat.h>
15396 #if defined S_ISBLK && defined S_IFDIR
15397 # if S_ISBLK (S_IFDIR)
15402 #if defined S_ISBLK && defined S_IFCHR
15403 # if S_ISBLK (S_IFCHR)
15408 #if defined S_ISLNK && defined S_IFREG
15409 # if S_ISLNK (S_IFREG)
15414 #if defined S_ISSOCK && defined S_IFREG
15415 # if S_ISSOCK (S_IFREG)
15421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15422 $EGREP "You lose" >/dev/null 2>&1; then
15423 ac_cv_header_stat_broken=yes
15425 ac_cv_header_stat_broken=no
15430 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15431 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15432 if test $ac_cv_header_stat_broken = yes; then
15434 cat >>confdefs.h <<\_ACEOF
15435 #define STAT_MACROS_BROKEN 1
15440 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15441 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15442 if test "${ac_cv_header_stdc+set}" = set; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15445 cat >conftest.$ac_ext <<_ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15451 #include <stdlib.h>
15452 #include <stdarg.h>
15453 #include <string.h>
15464 rm -f conftest.$ac_objext
15465 if { (ac_try="$ac_compile"
15466 case "(($ac_try" in
15467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468 *) ac_try_echo=$ac_try;;
15470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15471 (eval "$ac_compile") 2>conftest.er1
15473 grep -v '^ *+' conftest.er1 >conftest.err
15475 cat conftest.err >&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } &&
15478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15488 { ac_try='test -s conftest.$ac_objext'
15489 { (case "(($ac_try" in
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491 *) ac_try_echo=$ac_try;;
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494 (eval "$ac_try") 2>&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }; then
15498 ac_cv_header_stdc=yes
15500 echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15503 ac_cv_header_stdc=no
15506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15508 if test $ac_cv_header_stdc = yes; then
15509 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15510 cat >conftest.$ac_ext <<_ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15516 #include <string.h>
15519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15520 $EGREP "memchr" >/dev/null 2>&1; then
15523 ac_cv_header_stdc=no
15529 if test $ac_cv_header_stdc = yes; then
15530 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15531 cat >conftest.$ac_ext <<_ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 #include <stdlib.h>
15540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15541 $EGREP "free" >/dev/null 2>&1; then
15544 ac_cv_header_stdc=no
15550 if test $ac_cv_header_stdc = yes; then
15551 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15552 if test "$cross_compiling" = yes; then
15555 cat >conftest.$ac_ext <<_ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15562 #include <stdlib.h>
15563 #if ((' ' & 0x0FF) == 0x020)
15564 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15565 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15567 # define ISLOWER(c) \
15568 (('a' <= (c) && (c) <= 'i') \
15569 || ('j' <= (c) && (c) <= 'r') \
15570 || ('s' <= (c) && (c) <= 'z'))
15571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15579 for (i = 0; i < 256; i++)
15580 if (XOR (islower (i), ISLOWER (i))
15581 || toupper (i) != TOUPPER (i))
15586 rm -f conftest$ac_exeext
15587 if { (ac_try="$ac_link"
15588 case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_link") 2>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15597 { (case "(($ac_try" in
15598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599 *) ac_try_echo=$ac_try;;
15601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15602 (eval "$ac_try") 2>&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); }; }; then
15608 echo "$as_me: program exited with status $ac_status" >&5
15609 echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15612 ( exit $ac_status )
15613 ac_cv_header_stdc=no
15615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15621 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15622 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15623 if test $ac_cv_header_stdc = yes; then
15625 cat >>confdefs.h <<\_ACEOF
15626 #define STDC_HEADERS 1
15631 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15632 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15633 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 cat >conftest.$ac_ext <<_ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 #include <sys/types.h>
15643 #include <sys/wait.h>
15644 #ifndef WEXITSTATUS
15645 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15648 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15656 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15661 rm -f conftest.$ac_objext
15662 if { (ac_try="$ac_compile"
15663 case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_compile") 2>conftest.er1
15670 grep -v '^ *+' conftest.er1 >conftest.err
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } &&
15675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15685 { ac_try='test -s conftest.$ac_objext'
15686 { (case "(($ac_try" in
15687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688 *) ac_try_echo=$ac_try;;
15690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691 (eval "$ac_try") 2>&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 ac_cv_header_sys_wait_h=yes
15697 echo "$as_me: failed program was:" >&5
15698 sed 's/^/| /' conftest.$ac_ext >&5
15700 ac_cv_header_sys_wait_h=no
15703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15705 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15706 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15707 if test $ac_cv_header_sys_wait_h = yes; then
15709 cat >>confdefs.h <<\_ACEOF
15710 #define HAVE_SYS_WAIT_H 1
15715 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15716 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15717 if test "${ac_cv_header_time+set}" = set; then
15718 echo $ECHO_N "(cached) $ECHO_C" >&6
15720 cat >conftest.$ac_ext <<_ACEOF
15723 cat confdefs.h >>conftest.$ac_ext
15724 cat >>conftest.$ac_ext <<_ACEOF
15725 /* end confdefs.h. */
15726 #include <sys/types.h>
15727 #include <sys/time.h>
15733 if ((struct tm *) 0)
15739 rm -f conftest.$ac_objext
15740 if { (ac_try="$ac_compile"
15741 case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15746 (eval "$ac_compile") 2>conftest.er1
15748 grep -v '^ *+' conftest.er1 >conftest.err
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } &&
15753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15763 { ac_try='test -s conftest.$ac_objext'
15764 { (case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15769 (eval "$ac_try") 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; }; then
15773 ac_cv_header_time=yes
15775 echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15778 ac_cv_header_time=no
15781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15784 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15785 if test $ac_cv_header_time = yes; then
15787 cat >>confdefs.h <<\_ACEOF
15788 #define TIME_WITH_SYS_TIME 1
15800 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15807 echo $ECHO_N "(cached) $ECHO_C" >&6
15809 ac_res=`eval echo '${'$as_ac_Header'}'`
15810 { echo "$as_me:$LINENO: result: $ac_res" >&5
15811 echo "${ECHO_T}$ac_res" >&6; }
15813 # Is the header compilable?
15814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15816 cat >conftest.$ac_ext <<_ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15822 $ac_includes_default
15823 #include <$ac_header>
15825 rm -f conftest.$ac_objext
15826 if { (ac_try="$ac_compile"
15827 case "(($ac_try" in
15828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829 *) ac_try_echo=$ac_try;;
15831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15832 (eval "$ac_compile") 2>conftest.er1
15834 grep -v '^ *+' conftest.er1 >conftest.err
15836 cat conftest.err >&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } &&
15839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15849 { ac_try='test -s conftest.$ac_objext'
15850 { (case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855 (eval "$ac_try") 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15859 ac_header_compiler=yes
15861 echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15864 ac_header_compiler=no
15867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15869 echo "${ECHO_T}$ac_header_compiler" >&6; }
15871 # Is the header present?
15872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15874 cat >conftest.$ac_ext <<_ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15880 #include <$ac_header>
15882 if { (ac_try="$ac_cpp conftest.$ac_ext"
15883 case "(($ac_try" in
15884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15890 grep -v '^ *+' conftest.er1 >conftest.err
15892 cat conftest.err >&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } >/dev/null; then
15895 if test -s conftest.err; then
15896 ac_cpp_err=$ac_c_preproc_warn_flag
15897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15904 if test -z "$ac_cpp_err"; then
15905 ac_header_preproc=yes
15907 echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15910 ac_header_preproc=no
15913 rm -f conftest.err conftest.$ac_ext
15914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15915 echo "${ECHO_T}$ac_header_preproc" >&6; }
15917 # So? What about this header?
15918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15924 ac_header_preproc=yes
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15940 ## ----------------------------------- ##
15941 ## Report this to llvmbugs@cs.uiuc.edu ##
15942 ## ----------------------------------- ##
15944 ) | sed "s/^/$as_me: WARNING: /" >&2
15947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 eval "$as_ac_Header=\$ac_header_preproc"
15954 ac_res=`eval echo '${'$as_ac_Header'}'`
15955 { echo "$as_me:$LINENO: result: $ac_res" >&5
15956 echo "${ECHO_T}$ac_res" >&6; }
15959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15960 cat >>confdefs.h <<_ACEOF
15961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15974 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 ac_res=`eval echo '${'$as_ac_Header'}'`
15984 { echo "$as_me:$LINENO: result: $ac_res" >&5
15985 echo "${ECHO_T}$ac_res" >&6; }
15987 # Is the header compilable?
15988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15990 cat >conftest.$ac_ext <<_ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h. */
15996 $ac_includes_default
15997 #include <$ac_header>
15999 rm -f conftest.$ac_objext
16000 if { (ac_try="$ac_compile"
16001 case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006 (eval "$ac_compile") 2>conftest.er1
16008 grep -v '^ *+' conftest.er1 >conftest.err
16010 cat conftest.err >&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
16013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16023 { ac_try='test -s conftest.$ac_objext'
16024 { (case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029 (eval "$ac_try") 2>&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 ac_header_compiler=yes
16035 echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16038 ac_header_compiler=no
16041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16042 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16043 echo "${ECHO_T}$ac_header_compiler" >&6; }
16045 # Is the header present?
16046 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16048 cat >conftest.$ac_ext <<_ACEOF
16051 cat confdefs.h >>conftest.$ac_ext
16052 cat >>conftest.$ac_ext <<_ACEOF
16053 /* end confdefs.h. */
16054 #include <$ac_header>
16056 if { (ac_try="$ac_cpp conftest.$ac_ext"
16057 case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16064 grep -v '^ *+' conftest.er1 >conftest.err
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } >/dev/null; then
16069 if test -s conftest.err; then
16070 ac_cpp_err=$ac_c_preproc_warn_flag
16071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16078 if test -z "$ac_cpp_err"; then
16079 ac_header_preproc=yes
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 ac_header_preproc=no
16087 rm -f conftest.err conftest.$ac_ext
16088 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16089 echo "${ECHO_T}$ac_header_preproc" >&6; }
16091 # So? What about this header?
16092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16098 ac_header_preproc=yes
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16108 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16114 ## ----------------------------------- ##
16115 ## Report this to llvmbugs@cs.uiuc.edu ##
16116 ## ----------------------------------- ##
16118 ) | sed "s/^/$as_me: WARNING: /" >&2
16121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16124 echo $ECHO_N "(cached) $ECHO_C" >&6
16126 eval "$as_ac_Header=\$ac_header_preproc"
16128 ac_res=`eval echo '${'$as_ac_Header'}'`
16129 { echo "$as_me:$LINENO: result: $ac_res" >&5
16130 echo "${ECHO_T}$ac_res" >&6; }
16133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16134 cat >>confdefs.h <<_ACEOF
16135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16144 for ac_header in utime.h windows.h
16146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16151 echo $ECHO_N "(cached) $ECHO_C" >&6
16153 ac_res=`eval echo '${'$as_ac_Header'}'`
16154 { echo "$as_me:$LINENO: result: $ac_res" >&5
16155 echo "${ECHO_T}$ac_res" >&6; }
16157 # Is the header compilable?
16158 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16160 cat >conftest.$ac_ext <<_ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16166 $ac_includes_default
16167 #include <$ac_header>
16169 rm -f conftest.$ac_objext
16170 if { (ac_try="$ac_compile"
16171 case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176 (eval "$ac_compile") 2>conftest.er1
16178 grep -v '^ *+' conftest.er1 >conftest.err
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
16183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16193 { ac_try='test -s conftest.$ac_objext'
16194 { (case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_try") 2>&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203 ac_header_compiler=yes
16205 echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16208 ac_header_compiler=no
16211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16213 echo "${ECHO_T}$ac_header_compiler" >&6; }
16215 # Is the header present?
16216 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16218 cat >conftest.$ac_ext <<_ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224 #include <$ac_header>
16226 if { (ac_try="$ac_cpp conftest.$ac_ext"
16227 case "(($ac_try" in
16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229 *) ac_try_echo=$ac_try;;
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16234 grep -v '^ *+' conftest.er1 >conftest.err
16236 cat conftest.err >&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } >/dev/null; then
16239 if test -s conftest.err; then
16240 ac_cpp_err=$ac_c_preproc_warn_flag
16241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16248 if test -z "$ac_cpp_err"; then
16249 ac_header_preproc=yes
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16254 ac_header_preproc=no
16257 rm -f conftest.err conftest.$ac_ext
16258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16259 echo "${ECHO_T}$ac_header_preproc" >&6; }
16261 # So? What about this header?
16262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16268 ac_header_preproc=yes
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16284 ## ----------------------------------- ##
16285 ## Report this to llvmbugs@cs.uiuc.edu ##
16286 ## ----------------------------------- ##
16288 ) | sed "s/^/$as_me: WARNING: /" >&2
16291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16294 echo $ECHO_N "(cached) $ECHO_C" >&6
16296 eval "$as_ac_Header=\$ac_header_preproc"
16298 ac_res=`eval echo '${'$as_ac_Header'}'`
16299 { echo "$as_me:$LINENO: result: $ac_res" >&5
16300 echo "${ECHO_T}$ac_res" >&6; }
16303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16304 cat >>confdefs.h <<_ACEOF
16305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16317 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
16319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16326 ac_res=`eval echo '${'$as_ac_Header'}'`
16327 { echo "$as_me:$LINENO: result: $ac_res" >&5
16328 echo "${ECHO_T}$ac_res" >&6; }
16330 # Is the header compilable?
16331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16333 cat >conftest.$ac_ext <<_ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h. */
16339 $ac_includes_default
16340 #include <$ac_header>
16342 rm -f conftest.$ac_objext
16343 if { (ac_try="$ac_compile"
16344 case "(($ac_try" in
16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346 *) ac_try_echo=$ac_try;;
16348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349 (eval "$ac_compile") 2>conftest.er1
16351 grep -v '^ *+' conftest.er1 >conftest.err
16353 cat conftest.err >&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } &&
16356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16366 { ac_try='test -s conftest.$ac_objext'
16367 { (case "(($ac_try" in
16368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369 *) ac_try_echo=$ac_try;;
16371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16372 (eval "$ac_try") 2>&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; }; then
16376 ac_header_compiler=yes
16378 echo "$as_me: failed program was:" >&5
16379 sed 's/^/| /' conftest.$ac_ext >&5
16381 ac_header_compiler=no
16384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16386 echo "${ECHO_T}$ac_header_compiler" >&6; }
16388 # Is the header present?
16389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16391 cat >conftest.$ac_ext <<_ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16397 #include <$ac_header>
16399 if { (ac_try="$ac_cpp conftest.$ac_ext"
16400 case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16407 grep -v '^ *+' conftest.er1 >conftest.err
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } >/dev/null; then
16412 if test -s conftest.err; then
16413 ac_cpp_err=$ac_c_preproc_warn_flag
16414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16421 if test -z "$ac_cpp_err"; then
16422 ac_header_preproc=yes
16424 echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16427 ac_header_preproc=no
16430 rm -f conftest.err conftest.$ac_ext
16431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16432 echo "${ECHO_T}$ac_header_preproc" >&6; }
16434 # So? What about this header?
16435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16441 ac_header_preproc=yes
16444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16457 ## ----------------------------------- ##
16458 ## Report this to llvmbugs@cs.uiuc.edu ##
16459 ## ----------------------------------- ##
16461 ) | sed "s/^/$as_me: WARNING: /" >&2
16464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16467 echo $ECHO_N "(cached) $ECHO_C" >&6
16469 eval "$as_ac_Header=\$ac_header_preproc"
16471 ac_res=`eval echo '${'$as_ac_Header'}'`
16472 { echo "$as_me:$LINENO: result: $ac_res" >&5
16473 echo "${ECHO_T}$ac_res" >&6; }
16476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16477 cat >>confdefs.h <<_ACEOF
16478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16489 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 ac_res=`eval echo '${'$as_ac_Header'}'`
16499 { echo "$as_me:$LINENO: result: $ac_res" >&5
16500 echo "${ECHO_T}$ac_res" >&6; }
16502 # Is the header compilable?
16503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16505 cat >conftest.$ac_ext <<_ACEOF
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h. */
16511 $ac_includes_default
16512 #include <$ac_header>
16514 rm -f conftest.$ac_objext
16515 if { (ac_try="$ac_compile"
16516 case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_compile") 2>conftest.er1
16523 grep -v '^ *+' conftest.er1 >conftest.err
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16538 { ac_try='test -s conftest.$ac_objext'
16539 { (case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_try") 2>&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_header_compiler=yes
16550 echo "$as_me: failed program was:" >&5
16551 sed 's/^/| /' conftest.$ac_ext >&5
16553 ac_header_compiler=no
16556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16558 echo "${ECHO_T}$ac_header_compiler" >&6; }
16560 # Is the header present?
16561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16563 cat >conftest.$ac_ext <<_ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 #include <$ac_header>
16571 if { (ac_try="$ac_cpp conftest.$ac_ext"
16572 case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16579 grep -v '^ *+' conftest.er1 >conftest.err
16581 cat conftest.err >&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } >/dev/null; then
16584 if test -s conftest.err; then
16585 ac_cpp_err=$ac_c_preproc_warn_flag
16586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16593 if test -z "$ac_cpp_err"; then
16594 ac_header_preproc=yes
16596 echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16599 ac_header_preproc=no
16602 rm -f conftest.err conftest.$ac_ext
16603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16604 echo "${ECHO_T}$ac_header_preproc" >&6; }
16606 # So? What about this header?
16607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16613 ac_header_preproc=yes
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16629 ## ----------------------------------- ##
16630 ## Report this to llvmbugs@cs.uiuc.edu ##
16631 ## ----------------------------------- ##
16633 ) | sed "s/^/$as_me: WARNING: /" >&2
16636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 eval "$as_ac_Header=\$ac_header_preproc"
16643 ac_res=`eval echo '${'$as_ac_Header'}'`
16644 { echo "$as_me:$LINENO: result: $ac_res" >&5
16645 echo "${ECHO_T}$ac_res" >&6; }
16648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16649 cat >>confdefs.h <<_ACEOF
16650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16658 for ac_header in valgrind/valgrind.h
16660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16667 ac_res=`eval echo '${'$as_ac_Header'}'`
16668 { echo "$as_me:$LINENO: result: $ac_res" >&5
16669 echo "${ECHO_T}$ac_res" >&6; }
16671 # Is the header compilable?
16672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16674 cat >conftest.$ac_ext <<_ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16680 $ac_includes_default
16681 #include <$ac_header>
16683 rm -f conftest.$ac_objext
16684 if { (ac_try="$ac_compile"
16685 case "(($ac_try" in
16686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687 *) ac_try_echo=$ac_try;;
16689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690 (eval "$ac_compile") 2>conftest.er1
16692 grep -v '^ *+' conftest.er1 >conftest.err
16694 cat conftest.err >&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } &&
16697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16707 { ac_try='test -s conftest.$ac_objext'
16708 { (case "(($ac_try" in
16709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713 (eval "$ac_try") 2>&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; }; then
16717 ac_header_compiler=yes
16719 echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16722 ac_header_compiler=no
16725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16727 echo "${ECHO_T}$ac_header_compiler" >&6; }
16729 # Is the header present?
16730 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16732 cat >conftest.$ac_ext <<_ACEOF
16735 cat confdefs.h >>conftest.$ac_ext
16736 cat >>conftest.$ac_ext <<_ACEOF
16737 /* end confdefs.h. */
16738 #include <$ac_header>
16740 if { (ac_try="$ac_cpp conftest.$ac_ext"
16741 case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16748 grep -v '^ *+' conftest.er1 >conftest.err
16750 cat conftest.err >&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } >/dev/null; then
16753 if test -s conftest.err; then
16754 ac_cpp_err=$ac_c_preproc_warn_flag
16755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16762 if test -z "$ac_cpp_err"; then
16763 ac_header_preproc=yes
16765 echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16768 ac_header_preproc=no
16771 rm -f conftest.err conftest.$ac_ext
16772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16773 echo "${ECHO_T}$ac_header_preproc" >&6; }
16775 # So? What about this header?
16776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16782 ac_header_preproc=yes
16785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16788 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16792 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16798 ## ----------------------------------- ##
16799 ## Report this to llvmbugs@cs.uiuc.edu ##
16800 ## ----------------------------------- ##
16802 ) | sed "s/^/$as_me: WARNING: /" >&2
16805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16810 eval "$as_ac_Header=\$ac_header_preproc"
16812 ac_res=`eval echo '${'$as_ac_Header'}'`
16813 { echo "$as_me:$LINENO: result: $ac_res" >&5
16814 echo "${ECHO_T}$ac_res" >&6; }
16817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16818 cat >>confdefs.h <<_ACEOF
16819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16827 for ac_header in fenv.h
16829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 ac_res=`eval echo '${'$as_ac_Header'}'`
16837 { echo "$as_me:$LINENO: result: $ac_res" >&5
16838 echo "${ECHO_T}$ac_res" >&6; }
16840 # Is the header compilable?
16841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16843 cat >conftest.$ac_ext <<_ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849 $ac_includes_default
16850 #include <$ac_header>
16852 rm -f conftest.$ac_objext
16853 if { (ac_try="$ac_compile"
16854 case "(($ac_try" in
16855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856 *) ac_try_echo=$ac_try;;
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859 (eval "$ac_compile") 2>conftest.er1
16861 grep -v '^ *+' conftest.er1 >conftest.err
16863 cat conftest.err >&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } &&
16866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16876 { ac_try='test -s conftest.$ac_objext'
16877 { (case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_try") 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16886 ac_header_compiler=yes
16888 echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16891 ac_header_compiler=no
16894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16896 echo "${ECHO_T}$ac_header_compiler" >&6; }
16898 # Is the header present?
16899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16901 cat >conftest.$ac_ext <<_ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 #include <$ac_header>
16909 if { (ac_try="$ac_cpp conftest.$ac_ext"
16910 case "(($ac_try" in
16911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912 *) ac_try_echo=$ac_try;;
16914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16917 grep -v '^ *+' conftest.er1 >conftest.err
16919 cat conftest.err >&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } >/dev/null; then
16922 if test -s conftest.err; then
16923 ac_cpp_err=$ac_c_preproc_warn_flag
16924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16931 if test -z "$ac_cpp_err"; then
16932 ac_header_preproc=yes
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_header_preproc=no
16940 rm -f conftest.err conftest.$ac_ext
16941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16942 echo "${ECHO_T}$ac_header_preproc" >&6; }
16944 # So? What about this header?
16945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16951 ac_header_preproc=yes
16954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16967 ## ----------------------------------- ##
16968 ## Report this to llvmbugs@cs.uiuc.edu ##
16969 ## ----------------------------------- ##
16971 ) | sed "s/^/$as_me: WARNING: /" >&2
16974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16977 echo $ECHO_N "(cached) $ECHO_C" >&6
16979 eval "$as_ac_Header=\$ac_header_preproc"
16981 ac_res=`eval echo '${'$as_ac_Header'}'`
16982 { echo "$as_me:$LINENO: result: $ac_res" >&5
16983 echo "${ECHO_T}$ac_res" >&6; }
16986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16987 cat >>confdefs.h <<_ACEOF
16988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16995 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16997 for ac_header in pthread.h
16999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17006 ac_res=`eval echo '${'$as_ac_Header'}'`
17007 { echo "$as_me:$LINENO: result: $ac_res" >&5
17008 echo "${ECHO_T}$ac_res" >&6; }
17010 # Is the header compilable?
17011 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17013 cat >conftest.$ac_ext <<_ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17019 $ac_includes_default
17020 #include <$ac_header>
17022 rm -f conftest.$ac_objext
17023 if { (ac_try="$ac_compile"
17024 case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029 (eval "$ac_compile") 2>conftest.er1
17031 grep -v '^ *+' conftest.er1 >conftest.err
17033 cat conftest.err >&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } &&
17036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17046 { ac_try='test -s conftest.$ac_objext'
17047 { (case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052 (eval "$ac_try") 2>&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; }; then
17056 ac_header_compiler=yes
17058 echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17061 ac_header_compiler=no
17064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17066 echo "${ECHO_T}$ac_header_compiler" >&6; }
17068 # Is the header present?
17069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17071 cat >conftest.$ac_ext <<_ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h. */
17077 #include <$ac_header>
17079 if { (ac_try="$ac_cpp conftest.$ac_ext"
17080 case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17087 grep -v '^ *+' conftest.er1 >conftest.err
17089 cat conftest.err >&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } >/dev/null; then
17092 if test -s conftest.err; then
17093 ac_cpp_err=$ac_c_preproc_warn_flag
17094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17101 if test -z "$ac_cpp_err"; then
17102 ac_header_preproc=yes
17104 echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17107 ac_header_preproc=no
17110 rm -f conftest.err conftest.$ac_ext
17111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17112 echo "${ECHO_T}$ac_header_preproc" >&6; }
17114 # So? What about this header?
17115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17121 ac_header_preproc=yes
17124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17137 ## ----------------------------------- ##
17138 ## Report this to llvmbugs@cs.uiuc.edu ##
17139 ## ----------------------------------- ##
17141 ) | sed "s/^/$as_me: WARNING: /" >&2
17144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17149 eval "$as_ac_Header=\$ac_header_preproc"
17151 ac_res=`eval echo '${'$as_ac_Header'}'`
17152 { echo "$as_me:$LINENO: result: $ac_res" >&5
17153 echo "${ECHO_T}$ac_res" >&6; }
17156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17157 cat >>confdefs.h <<_ACEOF
17158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17174 if test "$llvm_cv_enable_libffi" = "yes" ; then
17177 for ac_header in ffi.h ffi/ffi.h
17179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17184 echo $ECHO_N "(cached) $ECHO_C" >&6
17186 ac_res=`eval echo '${'$as_ac_Header'}'`
17187 { echo "$as_me:$LINENO: result: $ac_res" >&5
17188 echo "${ECHO_T}$ac_res" >&6; }
17190 # Is the header compilable?
17191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17193 cat >conftest.$ac_ext <<_ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h. */
17199 $ac_includes_default
17200 #include <$ac_header>
17202 rm -f conftest.$ac_objext
17203 if { (ac_try="$ac_compile"
17204 case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_compile") 2>conftest.er1
17211 grep -v '^ *+' conftest.er1 >conftest.err
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } &&
17216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17226 { ac_try='test -s conftest.$ac_objext'
17227 { (case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_try") 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 ac_header_compiler=yes
17238 echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17241 ac_header_compiler=no
17244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17246 echo "${ECHO_T}$ac_header_compiler" >&6; }
17248 # Is the header present?
17249 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17251 cat >conftest.$ac_ext <<_ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 #include <$ac_header>
17259 if { (ac_try="$ac_cpp conftest.$ac_ext"
17260 case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17267 grep -v '^ *+' conftest.er1 >conftest.err
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } >/dev/null; then
17272 if test -s conftest.err; then
17273 ac_cpp_err=$ac_c_preproc_warn_flag
17274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17281 if test -z "$ac_cpp_err"; then
17282 ac_header_preproc=yes
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17287 ac_header_preproc=no
17290 rm -f conftest.err conftest.$ac_ext
17291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17292 echo "${ECHO_T}$ac_header_preproc" >&6; }
17294 # So? What about this header?
17295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17301 ac_header_preproc=yes
17304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17311 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17317 ## ----------------------------------- ##
17318 ## Report this to llvmbugs@cs.uiuc.edu ##
17319 ## ----------------------------------- ##
17321 ) | sed "s/^/$as_me: WARNING: /" >&2
17324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17329 eval "$as_ac_Header=\$ac_header_preproc"
17331 ac_res=`eval echo '${'$as_ac_Header'}'`
17332 { echo "$as_me:$LINENO: result: $ac_res" >&5
17333 echo "${ECHO_T}$ac_res" >&6; }
17336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17337 cat >>confdefs.h <<_ACEOF
17338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17348 for ac_header in CrashReporterClient.h
17350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17355 echo $ECHO_N "(cached) $ECHO_C" >&6
17357 ac_res=`eval echo '${'$as_ac_Header'}'`
17358 { echo "$as_me:$LINENO: result: $ac_res" >&5
17359 echo "${ECHO_T}$ac_res" >&6; }
17361 # Is the header compilable?
17362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17364 cat >conftest.$ac_ext <<_ACEOF
17367 cat confdefs.h >>conftest.$ac_ext
17368 cat >>conftest.$ac_ext <<_ACEOF
17369 /* end confdefs.h. */
17370 $ac_includes_default
17371 #include <$ac_header>
17373 rm -f conftest.$ac_objext
17374 if { (ac_try="$ac_compile"
17375 case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_compile") 2>conftest.er1
17382 grep -v '^ *+' conftest.er1 >conftest.err
17384 cat conftest.err >&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } &&
17387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17397 { ac_try='test -s conftest.$ac_objext'
17398 { (case "(($ac_try" in
17399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400 *) ac_try_echo=$ac_try;;
17402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403 (eval "$ac_try") 2>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17407 ac_header_compiler=yes
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 ac_header_compiler=no
17415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17417 echo "${ECHO_T}$ac_header_compiler" >&6; }
17419 # Is the header present?
17420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17422 cat >conftest.$ac_ext <<_ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17428 #include <$ac_header>
17430 if { (ac_try="$ac_cpp conftest.$ac_ext"
17431 case "(($ac_try" in
17432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433 *) ac_try_echo=$ac_try;;
17435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17438 grep -v '^ *+' conftest.er1 >conftest.err
17440 cat conftest.err >&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); } >/dev/null; then
17443 if test -s conftest.err; then
17444 ac_cpp_err=$ac_c_preproc_warn_flag
17445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17452 if test -z "$ac_cpp_err"; then
17453 ac_header_preproc=yes
17455 echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.$ac_ext >&5
17458 ac_header_preproc=no
17461 rm -f conftest.err conftest.$ac_ext
17462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17463 echo "${ECHO_T}$ac_header_preproc" >&6; }
17465 # So? What about this header?
17466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17472 ac_header_preproc=yes
17475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17488 ## ----------------------------------- ##
17489 ## Report this to llvmbugs@cs.uiuc.edu ##
17490 ## ----------------------------------- ##
17492 ) | sed "s/^/$as_me: WARNING: /" >&2
17495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17500 eval "$as_ac_Header=\$ac_header_preproc"
17502 ac_res=`eval echo '${'$as_ac_Header'}'`
17503 { echo "$as_me:$LINENO: result: $ac_res" >&5
17504 echo "${ECHO_T}$ac_res" >&6; }
17507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17508 cat >>confdefs.h <<_ACEOF
17509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17517 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17518 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17519 cat >conftest.$ac_ext <<_ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h. */
17525 extern const char *__crashreporter_info__;
17527 __crashreporter_info__ = "test";
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (ac_try="$ac_link"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_link") 2>conftest.er1
17541 grep -v '^ *+' conftest.er1 >conftest.err
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
17546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17556 { ac_try='test -s conftest$ac_exeext'
17557 { (case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_try") 2>&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17566 { echo "$as_me:$LINENO: result: yes" >&5
17567 echo "${ECHO_T}yes" >&6; }
17569 cat >>confdefs.h <<\_ACEOF
17570 #define HAVE_CRASHREPORTER_INFO 1
17574 echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17577 { echo "$as_me:$LINENO: result: no" >&5
17578 echo "${ECHO_T}no" >&6; }
17580 cat >>confdefs.h <<\_ACEOF
17581 #define HAVE_CRASHREPORTER_INFO 0
17586 rm -f core conftest.err conftest.$ac_objext \
17587 conftest$ac_exeext conftest.$ac_ext
17592 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17593 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17594 if test "${ac_cv_huge_val_sanity+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
17599 ac_cpp='$CXXCPP $CPPFLAGS'
17600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17604 ac_save_CXXFLAGS=$CXXFLAGS
17606 if test "$cross_compiling" = yes; then
17607 ac_cv_huge_val_sanity=yes
17609 cat >conftest.$ac_ext <<_ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17619 double x = HUGE_VAL; return x != x;
17624 rm -f conftest$ac_exeext
17625 if { (ac_try="$ac_link"
17626 case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_link") 2>&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17635 { (case "(($ac_try" in
17636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637 *) ac_try_echo=$ac_try;;
17639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640 (eval "$ac_try") 2>&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 ac_cv_huge_val_sanity=yes
17646 echo "$as_me: program exited with status $ac_status" >&5
17647 echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17650 ( exit $ac_status )
17651 ac_cv_huge_val_sanity=no
17653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17657 CXXFLAGS=$ac_save_CXXFLAGS
17659 ac_cpp='$CPP $CPPFLAGS'
17660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17666 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17667 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17668 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17671 { echo "$as_me:$LINENO: checking for pid_t" >&5
17672 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17673 if test "${ac_cv_type_pid_t+set}" = set; then
17674 echo $ECHO_N "(cached) $ECHO_C" >&6
17676 cat >conftest.$ac_ext <<_ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17682 $ac_includes_default
17683 typedef pid_t ac__type_new_;
17687 if ((ac__type_new_ *) 0)
17689 if (sizeof (ac__type_new_))
17695 rm -f conftest.$ac_objext
17696 if { (ac_try="$ac_compile"
17697 case "(($ac_try" in
17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699 *) ac_try_echo=$ac_try;;
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702 (eval "$ac_compile") 2>conftest.er1
17704 grep -v '^ *+' conftest.er1 >conftest.err
17706 cat conftest.err >&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
17709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17719 { ac_try='test -s conftest.$ac_objext'
17720 { (case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_try") 2>&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; }; then
17729 ac_cv_type_pid_t=yes
17731 echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17734 ac_cv_type_pid_t=no
17737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17739 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17740 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17741 if test $ac_cv_type_pid_t = yes; then
17745 cat >>confdefs.h <<_ACEOF
17751 { echo "$as_me:$LINENO: checking for size_t" >&5
17752 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17753 if test "${ac_cv_type_size_t+set}" = set; then
17754 echo $ECHO_N "(cached) $ECHO_C" >&6
17756 cat >conftest.$ac_ext <<_ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17762 $ac_includes_default
17763 typedef size_t ac__type_new_;
17767 if ((ac__type_new_ *) 0)
17769 if (sizeof (ac__type_new_))
17775 rm -f conftest.$ac_objext
17776 if { (ac_try="$ac_compile"
17777 case "(($ac_try" in
17778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779 *) ac_try_echo=$ac_try;;
17781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17782 (eval "$ac_compile") 2>conftest.er1
17784 grep -v '^ *+' conftest.er1 >conftest.err
17786 cat conftest.err >&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } &&
17789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17799 { ac_try='test -s conftest.$ac_objext'
17800 { (case "(($ac_try" in
17801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802 *) ac_try_echo=$ac_try;;
17804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17805 (eval "$ac_try") 2>&5
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; }; then
17809 ac_cv_type_size_t=yes
17811 echo "$as_me: failed program was:" >&5
17812 sed 's/^/| /' conftest.$ac_ext >&5
17814 ac_cv_type_size_t=no
17817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17819 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17820 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17821 if test $ac_cv_type_size_t = yes; then
17825 cat >>confdefs.h <<_ACEOF
17826 #define size_t unsigned int
17832 cat >>confdefs.h <<_ACEOF
17833 #define RETSIGTYPE void
17836 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17837 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17838 if test "${ac_cv_struct_tm+set}" = set; then
17839 echo $ECHO_N "(cached) $ECHO_C" >&6
17841 cat >conftest.$ac_ext <<_ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h. */
17847 #include <sys/types.h>
17853 struct tm *tp; tp->tm_sec;
17858 rm -f conftest.$ac_objext
17859 if { (ac_try="$ac_compile"
17860 case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_compile") 2>conftest.er1
17867 grep -v '^ *+' conftest.er1 >conftest.err
17869 cat conftest.err >&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); } &&
17872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17882 { ac_try='test -s conftest.$ac_objext'
17883 { (case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_try") 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 ac_cv_struct_tm=time.h
17894 echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17897 ac_cv_struct_tm=sys/time.h
17900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17902 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17903 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17904 if test $ac_cv_struct_tm = sys/time.h; then
17906 cat >>confdefs.h <<\_ACEOF
17907 #define TM_IN_SYS_TIME 1
17912 { echo "$as_me:$LINENO: checking for int64_t" >&5
17913 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17914 if test "${ac_cv_type_int64_t+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17917 cat >conftest.$ac_ext <<_ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17923 $ac_includes_default
17924 typedef int64_t ac__type_new_;
17928 if ((ac__type_new_ *) 0)
17930 if (sizeof (ac__type_new_))
17936 rm -f conftest.$ac_objext
17937 if { (ac_try="$ac_compile"
17938 case "(($ac_try" in
17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940 *) ac_try_echo=$ac_try;;
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943 (eval "$ac_compile") 2>conftest.er1
17945 grep -v '^ *+' conftest.er1 >conftest.err
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
17950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17960 { ac_try='test -s conftest.$ac_objext'
17961 { (case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_try") 2>&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; }; then
17970 ac_cv_type_int64_t=yes
17972 echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17975 ac_cv_type_int64_t=no
17978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17980 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17981 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17982 if test $ac_cv_type_int64_t = yes; then
17984 cat >>confdefs.h <<_ACEOF
17985 #define HAVE_INT64_T 1
17990 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17991 echo "$as_me: error: Type int64_t required but not found" >&2;}
17992 { (exit 1); exit 1; }; }
17995 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17996 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17997 if test "${ac_cv_type_uint64_t+set}" = set; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
18000 cat >conftest.$ac_ext <<_ACEOF
18003 cat confdefs.h >>conftest.$ac_ext
18004 cat >>conftest.$ac_ext <<_ACEOF
18005 /* end confdefs.h. */
18006 $ac_includes_default
18007 typedef uint64_t ac__type_new_;
18011 if ((ac__type_new_ *) 0)
18013 if (sizeof (ac__type_new_))
18019 rm -f conftest.$ac_objext
18020 if { (ac_try="$ac_compile"
18021 case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_compile") 2>conftest.er1
18028 grep -v '^ *+' conftest.er1 >conftest.err
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } &&
18033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18043 { ac_try='test -s conftest.$ac_objext'
18044 { (case "(($ac_try" in
18045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046 *) ac_try_echo=$ac_try;;
18048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049 (eval "$ac_try") 2>&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 ac_cv_type_uint64_t=yes
18055 echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 ac_cv_type_uint64_t=no
18061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18063 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18064 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18065 if test $ac_cv_type_uint64_t = yes; then
18067 cat >>confdefs.h <<_ACEOF
18068 #define HAVE_UINT64_T 1
18073 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18074 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18075 if test "${ac_cv_type_u_int64_t+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18078 cat >conftest.$ac_ext <<_ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18084 $ac_includes_default
18085 typedef u_int64_t ac__type_new_;
18089 if ((ac__type_new_ *) 0)
18091 if (sizeof (ac__type_new_))
18097 rm -f conftest.$ac_objext
18098 if { (ac_try="$ac_compile"
18099 case "(($ac_try" in
18100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101 *) ac_try_echo=$ac_try;;
18103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104 (eval "$ac_compile") 2>conftest.er1
18106 grep -v '^ *+' conftest.er1 >conftest.err
18108 cat conftest.err >&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } &&
18111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18121 { ac_try='test -s conftest.$ac_objext'
18122 { (case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_try") 2>&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131 ac_cv_type_u_int64_t=yes
18133 echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.$ac_ext >&5
18136 ac_cv_type_u_int64_t=no
18139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18141 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18142 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18143 if test $ac_cv_type_u_int64_t = yes; then
18145 cat >>confdefs.h <<_ACEOF
18146 #define HAVE_U_INT64_T 1
18151 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18152 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18153 { (exit 1); exit 1; }; }
18167 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18173 echo $ECHO_N "(cached) $ECHO_C" >&6
18175 cat >conftest.$ac_ext <<_ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18183 #define $ac_func innocuous_$ac_func
18185 /* System header to define __stub macros and hopefully few prototypes,
18186 which can conflict with char $ac_func (); below.
18187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18188 <limits.h> exists even on freestanding compilers. */
18191 # include <limits.h>
18193 # include <assert.h>
18198 /* Override any GCC internal prototype to avoid an error.
18199 Use char because int might match the return type of a GCC
18200 builtin and then its argument prototype would still apply. */
18205 /* The GNU C library defines this for functions which it implements
18206 to always fail with ENOSYS. Some functions are actually named
18207 something starting with __ and the normal name is an alias. */
18208 #if defined __stub_$ac_func || defined __stub___$ac_func
18215 return $ac_func ();
18220 rm -f conftest.$ac_objext conftest$ac_exeext
18221 if { (ac_try="$ac_link"
18222 case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_link") 2>conftest.er1
18229 grep -v '^ *+' conftest.er1 >conftest.err
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } &&
18234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18244 { ac_try='test -s conftest$ac_exeext'
18245 { (case "(($ac_try" in
18246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247 *) ac_try_echo=$ac_try;;
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250 (eval "$ac_try") 2>&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); }; }; then
18254 eval "$as_ac_var=yes"
18256 echo "$as_me: failed program was:" >&5
18257 sed 's/^/| /' conftest.$ac_ext >&5
18259 eval "$as_ac_var=no"
18262 rm -f core conftest.err conftest.$ac_objext \
18263 conftest$ac_exeext conftest.$ac_ext
18265 ac_res=`eval echo '${'$as_ac_var'}'`
18266 { echo "$as_me:$LINENO: result: $ac_res" >&5
18267 echo "${ECHO_T}$ac_res" >&6; }
18268 if test `eval echo '${'$as_ac_var'}'` = yes; then
18269 cat >>confdefs.h <<_ACEOF
18270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18280 for ac_func in powf fmodf strtof round
18282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18286 echo $ECHO_N "(cached) $ECHO_C" >&6
18288 cat >conftest.$ac_ext <<_ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18296 #define $ac_func innocuous_$ac_func
18298 /* System header to define __stub macros and hopefully few prototypes,
18299 which can conflict with char $ac_func (); below.
18300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18301 <limits.h> exists even on freestanding compilers. */
18304 # include <limits.h>
18306 # include <assert.h>
18311 /* Override any GCC internal prototype to avoid an error.
18312 Use char because int might match the return type of a GCC
18313 builtin and then its argument prototype would still apply. */
18318 /* The GNU C library defines this for functions which it implements
18319 to always fail with ENOSYS. Some functions are actually named
18320 something starting with __ and the normal name is an alias. */
18321 #if defined __stub_$ac_func || defined __stub___$ac_func
18328 return $ac_func ();
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_link") 2>conftest.er1
18342 grep -v '^ *+' conftest.er1 >conftest.err
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } &&
18347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18357 { ac_try='test -s conftest$ac_exeext'
18358 { (case "(($ac_try" in
18359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360 *) ac_try_echo=$ac_try;;
18362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18363 (eval "$ac_try") 2>&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; }; then
18367 eval "$as_ac_var=yes"
18369 echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18372 eval "$as_ac_var=no"
18375 rm -f core conftest.err conftest.$ac_objext \
18376 conftest$ac_exeext conftest.$ac_ext
18378 ac_res=`eval echo '${'$as_ac_var'}'`
18379 { echo "$as_me:$LINENO: result: $ac_res" >&5
18380 echo "${ECHO_T}$ac_res" >&6; }
18381 if test `eval echo '${'$as_ac_var'}'` = yes; then
18382 cat >>confdefs.h <<_ACEOF
18383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18394 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18397 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18399 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18400 echo $ECHO_N "(cached) $ECHO_C" >&6
18402 cat >conftest.$ac_ext <<_ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18410 #define $ac_func innocuous_$ac_func
18412 /* System header to define __stub macros and hopefully few prototypes,
18413 which can conflict with char $ac_func (); below.
18414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18415 <limits.h> exists even on freestanding compilers. */
18418 # include <limits.h>
18420 # include <assert.h>
18425 /* Override any GCC internal prototype to avoid an error.
18426 Use char because int might match the return type of a GCC
18427 builtin and then its argument prototype would still apply. */
18432 /* The GNU C library defines this for functions which it implements
18433 to always fail with ENOSYS. Some functions are actually named
18434 something starting with __ and the normal name is an alias. */
18435 #if defined __stub_$ac_func || defined __stub___$ac_func
18442 return $ac_func ();
18447 rm -f conftest.$ac_objext conftest$ac_exeext
18448 if { (ac_try="$ac_link"
18449 case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18454 (eval "$ac_link") 2>conftest.er1
18456 grep -v '^ *+' conftest.er1 >conftest.err
18458 cat conftest.err >&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } &&
18461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18471 { ac_try='test -s conftest$ac_exeext'
18472 { (case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477 (eval "$ac_try") 2>&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18481 eval "$as_ac_var=yes"
18483 echo "$as_me: failed program was:" >&5
18484 sed 's/^/| /' conftest.$ac_ext >&5
18486 eval "$as_ac_var=no"
18489 rm -f core conftest.err conftest.$ac_objext \
18490 conftest$ac_exeext conftest.$ac_ext
18492 ac_res=`eval echo '${'$as_ac_var'}'`
18493 { echo "$as_me:$LINENO: result: $ac_res" >&5
18494 echo "${ECHO_T}$ac_res" >&6; }
18495 if test `eval echo '${'$as_ac_var'}'` = yes; then
18496 cat >>confdefs.h <<_ACEOF
18497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18506 for ac_func in isatty mkdtemp mkstemp
18508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18514 cat >conftest.$ac_ext <<_ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18522 #define $ac_func innocuous_$ac_func
18524 /* System header to define __stub macros and hopefully few prototypes,
18525 which can conflict with char $ac_func (); below.
18526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18527 <limits.h> exists even on freestanding compilers. */
18530 # include <limits.h>
18532 # include <assert.h>
18537 /* Override any GCC internal prototype to avoid an error.
18538 Use char because int might match the return type of a GCC
18539 builtin and then its argument prototype would still apply. */
18544 /* The GNU C library defines this for functions which it implements
18545 to always fail with ENOSYS. Some functions are actually named
18546 something starting with __ and the normal name is an alias. */
18547 #if defined __stub_$ac_func || defined __stub___$ac_func
18554 return $ac_func ();
18559 rm -f conftest.$ac_objext conftest$ac_exeext
18560 if { (ac_try="$ac_link"
18561 case "(($ac_try" in
18562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18563 *) ac_try_echo=$ac_try;;
18565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18566 (eval "$ac_link") 2>conftest.er1
18568 grep -v '^ *+' conftest.er1 >conftest.err
18570 cat conftest.err >&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); } &&
18573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18583 { ac_try='test -s conftest$ac_exeext'
18584 { (case "(($ac_try" in
18585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18586 *) ac_try_echo=$ac_try;;
18588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18589 (eval "$ac_try") 2>&5
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; }; then
18593 eval "$as_ac_var=yes"
18595 echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18598 eval "$as_ac_var=no"
18601 rm -f core conftest.err conftest.$ac_objext \
18602 conftest$ac_exeext conftest.$ac_ext
18604 ac_res=`eval echo '${'$as_ac_var'}'`
18605 { echo "$as_me:$LINENO: result: $ac_res" >&5
18606 echo "${ECHO_T}$ac_res" >&6; }
18607 if test `eval echo '${'$as_ac_var'}'` = yes; then
18608 cat >>confdefs.h <<_ACEOF
18609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18621 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18624 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18626 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18629 cat >conftest.$ac_ext <<_ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h. */
18635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18637 #define $ac_func innocuous_$ac_func
18639 /* System header to define __stub macros and hopefully few prototypes,
18640 which can conflict with char $ac_func (); below.
18641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18642 <limits.h> exists even on freestanding compilers. */
18645 # include <limits.h>
18647 # include <assert.h>
18652 /* Override any GCC internal prototype to avoid an error.
18653 Use char because int might match the return type of a GCC
18654 builtin and then its argument prototype would still apply. */
18659 /* The GNU C library defines this for functions which it implements
18660 to always fail with ENOSYS. Some functions are actually named
18661 something starting with __ and the normal name is an alias. */
18662 #if defined __stub_$ac_func || defined __stub___$ac_func
18669 return $ac_func ();
18674 rm -f conftest.$ac_objext conftest$ac_exeext
18675 if { (ac_try="$ac_link"
18676 case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_link") 2>conftest.er1
18683 grep -v '^ *+' conftest.er1 >conftest.err
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
18688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18689 { (case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_try") 2>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try='test -s conftest$ac_exeext'
18699 { (case "(($ac_try" in
18700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18701 *) ac_try_echo=$ac_try;;
18703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18704 (eval "$ac_try") 2>&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; }; then
18708 eval "$as_ac_var=yes"
18710 echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18713 eval "$as_ac_var=no"
18716 rm -f core conftest.err conftest.$ac_objext \
18717 conftest$ac_exeext conftest.$ac_ext
18719 ac_res=`eval echo '${'$as_ac_var'}'`
18720 { echo "$as_me:$LINENO: result: $ac_res" >&5
18721 echo "${ECHO_T}$ac_res" >&6; }
18722 if test `eval echo '${'$as_ac_var'}'` = yes; then
18723 cat >>confdefs.h <<_ACEOF
18724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18733 for ac_func in strerror strerror_r setenv
18735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18736 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18739 echo $ECHO_N "(cached) $ECHO_C" >&6
18741 cat >conftest.$ac_ext <<_ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h. */
18747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18749 #define $ac_func innocuous_$ac_func
18751 /* System header to define __stub macros and hopefully few prototypes,
18752 which can conflict with char $ac_func (); below.
18753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18754 <limits.h> exists even on freestanding compilers. */
18757 # include <limits.h>
18759 # include <assert.h>
18764 /* Override any GCC internal prototype to avoid an error.
18765 Use char because int might match the return type of a GCC
18766 builtin and then its argument prototype would still apply. */
18771 /* The GNU C library defines this for functions which it implements
18772 to always fail with ENOSYS. Some functions are actually named
18773 something starting with __ and the normal name is an alias. */
18774 #if defined __stub_$ac_func || defined __stub___$ac_func
18781 return $ac_func ();
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (ac_try="$ac_link"
18788 case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793 (eval "$ac_link") 2>conftest.er1
18795 grep -v '^ *+' conftest.er1 >conftest.err
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
18800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18810 { ac_try='test -s conftest$ac_exeext'
18811 { (case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_try") 2>&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820 eval "$as_ac_var=yes"
18822 echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18825 eval "$as_ac_var=no"
18828 rm -f core conftest.err conftest.$ac_objext \
18829 conftest$ac_exeext conftest.$ac_ext
18831 ac_res=`eval echo '${'$as_ac_var'}'`
18832 { echo "$as_me:$LINENO: result: $ac_res" >&5
18833 echo "${ECHO_T}$ac_res" >&6; }
18834 if test `eval echo '${'$as_ac_var'}'` = yes; then
18835 cat >>confdefs.h <<_ACEOF
18836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18846 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18852 echo $ECHO_N "(cached) $ECHO_C" >&6
18854 cat >conftest.$ac_ext <<_ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18862 #define $ac_func innocuous_$ac_func
18864 /* System header to define __stub macros and hopefully few prototypes,
18865 which can conflict with char $ac_func (); below.
18866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18867 <limits.h> exists even on freestanding compilers. */
18870 # include <limits.h>
18872 # include <assert.h>
18877 /* Override any GCC internal prototype to avoid an error.
18878 Use char because int might match the return type of a GCC
18879 builtin and then its argument prototype would still apply. */
18884 /* The GNU C library defines this for functions which it implements
18885 to always fail with ENOSYS. Some functions are actually named
18886 something starting with __ and the normal name is an alias. */
18887 #if defined __stub_$ac_func || defined __stub___$ac_func
18894 return $ac_func ();
18899 rm -f conftest.$ac_objext conftest$ac_exeext
18900 if { (ac_try="$ac_link"
18901 case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906 (eval "$ac_link") 2>conftest.er1
18908 grep -v '^ *+' conftest.er1 >conftest.err
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
18913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18923 { ac_try='test -s conftest$ac_exeext'
18924 { (case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_try") 2>&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; }; then
18933 eval "$as_ac_var=yes"
18935 echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18938 eval "$as_ac_var=no"
18941 rm -f core conftest.err conftest.$ac_objext \
18942 conftest$ac_exeext conftest.$ac_ext
18944 ac_res=`eval echo '${'$as_ac_var'}'`
18945 { echo "$as_me:$LINENO: result: $ac_res" >&5
18946 echo "${ECHO_T}$ac_res" >&6; }
18947 if test `eval echo '${'$as_ac_var'}'` = yes; then
18948 cat >>confdefs.h <<_ACEOF
18949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18960 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18968 cat >conftest.$ac_ext <<_ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h. */
18974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18976 #define $ac_func innocuous_$ac_func
18978 /* System header to define __stub macros and hopefully few prototypes,
18979 which can conflict with char $ac_func (); below.
18980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18981 <limits.h> exists even on freestanding compilers. */
18984 # include <limits.h>
18986 # include <assert.h>
18991 /* Override any GCC internal prototype to avoid an error.
18992 Use char because int might match the return type of a GCC
18993 builtin and then its argument prototype would still apply. */
18998 /* The GNU C library defines this for functions which it implements
18999 to always fail with ENOSYS. Some functions are actually named
19000 something starting with __ and the normal name is an alias. */
19001 #if defined __stub_$ac_func || defined __stub___$ac_func
19008 return $ac_func ();
19013 rm -f conftest.$ac_objext conftest$ac_exeext
19014 if { (ac_try="$ac_link"
19015 case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_link") 2>conftest.er1
19022 grep -v '^ *+' conftest.er1 >conftest.err
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
19027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19037 { ac_try='test -s conftest$ac_exeext'
19038 { (case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_try") 2>&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; }; then
19047 eval "$as_ac_var=yes"
19049 echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19052 eval "$as_ac_var=no"
19055 rm -f core conftest.err conftest.$ac_objext \
19056 conftest$ac_exeext conftest.$ac_ext
19058 ac_res=`eval echo '${'$as_ac_var'}'`
19059 { echo "$as_me:$LINENO: result: $ac_res" >&5
19060 echo "${ECHO_T}$ac_res" >&6; }
19061 if test `eval echo '${'$as_ac_var'}'` = yes; then
19062 cat >>confdefs.h <<_ACEOF
19063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19069 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19070 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19071 if test "${llvm_cv_c_printf_a+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19075 ac_cpp='$CPP $CPPFLAGS'
19076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19080 if test "$cross_compiling" = yes; then
19081 llvmac_cv_c_printf_a=no
19083 cat >conftest.$ac_ext <<_ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h. */
19092 #include <stdlib.h>
19098 volatile double A, B;
19102 sprintf(Buffer, "%a", A);
19106 if (A != 0x1.999999999999ap-4)
19113 rm -f conftest$ac_exeext
19114 if { (ac_try="$ac_link"
19115 case "(($ac_try" in
19116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117 *) ac_try_echo=$ac_try;;
19119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120 (eval "$ac_link") 2>&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19124 { (case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_try") 2>&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 llvm_cv_c_printf_a=yes
19135 echo "$as_me: program exited with status $ac_status" >&5
19136 echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19139 ( exit $ac_status )
19140 llvmac_cv_c_printf_a=no
19142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19147 ac_cpp='$CPP $CPPFLAGS'
19148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19153 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19154 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19155 if test "$llvm_cv_c_printf_a" = "yes"; then
19157 cat >>confdefs.h <<\_ACEOF
19158 #define HAVE_PRINTF_A 1
19164 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19165 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19166 if test "${ac_cv_func_rand48+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19170 ac_cpp='$CXXCPP $CPPFLAGS'
19171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19175 cat >conftest.$ac_ext <<_ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h. */
19181 #include <stdlib.h>
19185 srand48(0);lrand48();drand48();
19190 rm -f conftest.$ac_objext
19191 if { (ac_try="$ac_compile"
19192 case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_compile") 2>conftest.er1
19199 grep -v '^ *+' conftest.er1 >conftest.err
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } &&
19204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
19214 { ac_try='test -s conftest.$ac_objext'
19215 { (case "(($ac_try" in
19216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217 *) ac_try_echo=$ac_try;;
19219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19220 (eval "$ac_try") 2>&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224 ac_cv_func_rand48=yes
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19229 ac_cv_func_rand48=no
19232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19234 ac_cpp='$CPP $CPPFLAGS'
19235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19240 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19241 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19243 if test "$ac_cv_func_rand48" = "yes" ; then
19245 cat >>confdefs.h <<\_ACEOF
19246 #define HAVE_RAND48 1
19252 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19253 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19254 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19255 echo $ECHO_N "(cached) $ECHO_C" >&6
19257 cat >conftest.$ac_ext <<_ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h. */
19263 $ac_includes_default
19268 char *p = (char *) strerror_s;
19276 rm -f conftest.$ac_objext
19277 if { (ac_try="$ac_compile"
19278 case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_compile") 2>conftest.er1
19285 grep -v '^ *+' conftest.er1 >conftest.err
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
19290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19300 { ac_try='test -s conftest.$ac_objext'
19301 { (case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_try") 2>&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310 ac_cv_have_decl_strerror_s=yes
19312 echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19315 ac_cv_have_decl_strerror_s=no
19318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19320 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19321 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19322 if test $ac_cv_have_decl_strerror_s = yes; then
19324 cat >>confdefs.h <<_ACEOF
19325 #define HAVE_DECL_STRERROR_S 1
19330 cat >>confdefs.h <<_ACEOF
19331 #define HAVE_DECL_STRERROR_S 0
19339 if test "$llvm_cv_os_type" = "MingW" ; then
19340 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19341 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19342 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19343 echo $ECHO_N "(cached) $ECHO_C" >&6
19345 ac_check_lib_save_LIBS=$LIBS
19347 cat >conftest.$ac_ext <<_ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h. */
19354 /* Override any GCC internal prototype to avoid an error.
19355 Use char because int might match the return type of a GCC
19356 builtin and then its argument prototype would still apply. */
19369 rm -f conftest.$ac_objext conftest$ac_exeext
19370 if { (ac_try="$ac_link"
19371 case "(($ac_try" in
19372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19373 *) ac_try_echo=$ac_try;;
19375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19376 (eval "$ac_link") 2>conftest.er1
19378 grep -v '^ *+' conftest.er1 >conftest.err
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
19383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19393 { ac_try='test -s conftest$ac_exeext'
19394 { (case "(($ac_try" in
19395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396 *) ac_try_echo=$ac_try;;
19398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19399 (eval "$ac_try") 2>&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; }; then
19403 ac_cv_lib_gcc__alloca=yes
19405 echo "$as_me: failed program was:" >&5
19406 sed 's/^/| /' conftest.$ac_ext >&5
19408 ac_cv_lib_gcc__alloca=no
19411 rm -f core conftest.err conftest.$ac_objext \
19412 conftest$ac_exeext conftest.$ac_ext
19413 LIBS=$ac_check_lib_save_LIBS
19415 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19416 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19417 if test $ac_cv_lib_gcc__alloca = yes; then
19419 cat >>confdefs.h <<\_ACEOF
19420 #define HAVE__ALLOCA 1
19425 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19426 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19427 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19430 ac_check_lib_save_LIBS=$LIBS
19432 cat >conftest.$ac_ext <<_ACEOF
19435 cat confdefs.h >>conftest.$ac_ext
19436 cat >>conftest.$ac_ext <<_ACEOF
19437 /* end confdefs.h. */
19439 /* Override any GCC internal prototype to avoid an error.
19440 Use char because int might match the return type of a GCC
19441 builtin and then its argument prototype would still apply. */
19449 return __alloca ();
19454 rm -f conftest.$ac_objext conftest$ac_exeext
19455 if { (ac_try="$ac_link"
19456 case "(($ac_try" in
19457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458 *) ac_try_echo=$ac_try;;
19460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461 (eval "$ac_link") 2>conftest.er1
19463 grep -v '^ *+' conftest.er1 >conftest.err
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } &&
19468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19478 { ac_try='test -s conftest$ac_exeext'
19479 { (case "(($ac_try" in
19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481 *) ac_try_echo=$ac_try;;
19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484 (eval "$ac_try") 2>&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; }; then
19488 ac_cv_lib_gcc___alloca=yes
19490 echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19493 ac_cv_lib_gcc___alloca=no
19496 rm -f core conftest.err conftest.$ac_objext \
19497 conftest$ac_exeext conftest.$ac_ext
19498 LIBS=$ac_check_lib_save_LIBS
19500 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19501 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19502 if test $ac_cv_lib_gcc___alloca = yes; then
19504 cat >>confdefs.h <<\_ACEOF
19505 #define HAVE___ALLOCA 1
19510 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19511 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19512 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19513 echo $ECHO_N "(cached) $ECHO_C" >&6
19515 ac_check_lib_save_LIBS=$LIBS
19517 cat >conftest.$ac_ext <<_ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h. */
19524 /* Override any GCC internal prototype to avoid an error.
19525 Use char because int might match the return type of a GCC
19526 builtin and then its argument prototype would still apply. */
19534 return __chkstk ();
19539 rm -f conftest.$ac_objext conftest$ac_exeext
19540 if { (ac_try="$ac_link"
19541 case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_link") 2>conftest.er1
19548 grep -v '^ *+' conftest.er1 >conftest.err
19550 cat conftest.err >&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } &&
19553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19563 { ac_try='test -s conftest$ac_exeext'
19564 { (case "(($ac_try" in
19565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566 *) ac_try_echo=$ac_try;;
19568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569 (eval "$ac_try") 2>&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); }; }; then
19573 ac_cv_lib_gcc___chkstk=yes
19575 echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19578 ac_cv_lib_gcc___chkstk=no
19581 rm -f core conftest.err conftest.$ac_objext \
19582 conftest$ac_exeext conftest.$ac_ext
19583 LIBS=$ac_check_lib_save_LIBS
19585 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19586 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19587 if test $ac_cv_lib_gcc___chkstk = yes; then
19589 cat >>confdefs.h <<\_ACEOF
19590 #define HAVE___CHKSTK 1
19595 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19596 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19597 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19600 ac_check_lib_save_LIBS=$LIBS
19602 cat >conftest.$ac_ext <<_ACEOF
19605 cat confdefs.h >>conftest.$ac_ext
19606 cat >>conftest.$ac_ext <<_ACEOF
19607 /* end confdefs.h. */
19609 /* Override any GCC internal prototype to avoid an error.
19610 Use char because int might match the return type of a GCC
19611 builtin and then its argument prototype would still apply. */
19619 return ___chkstk ();
19624 rm -f conftest.$ac_objext conftest$ac_exeext
19625 if { (ac_try="$ac_link"
19626 case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_link") 2>conftest.er1
19633 grep -v '^ *+' conftest.er1 >conftest.err
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19648 { ac_try='test -s conftest$ac_exeext'
19649 { (case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_try") 2>&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; }; then
19658 ac_cv_lib_gcc____chkstk=yes
19660 echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19663 ac_cv_lib_gcc____chkstk=no
19666 rm -f core conftest.err conftest.$ac_objext \
19667 conftest$ac_exeext conftest.$ac_ext
19668 LIBS=$ac_check_lib_save_LIBS
19670 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19671 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19672 if test $ac_cv_lib_gcc____chkstk = yes; then
19674 cat >>confdefs.h <<\_ACEOF
19675 #define HAVE____CHKSTK 1
19681 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19682 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19683 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 ac_check_lib_save_LIBS=$LIBS
19688 cat >conftest.$ac_ext <<_ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19695 /* Override any GCC internal prototype to avoid an error.
19696 Use char because int might match the return type of a GCC
19697 builtin and then its argument prototype would still apply. */
19705 return __ashldi3 ();
19710 rm -f conftest.$ac_objext conftest$ac_exeext
19711 if { (ac_try="$ac_link"
19712 case "(($ac_try" in
19713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_link") 2>conftest.er1
19719 grep -v '^ *+' conftest.er1 >conftest.err
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
19724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19734 { ac_try='test -s conftest$ac_exeext'
19735 { (case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740 (eval "$ac_try") 2>&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
19744 ac_cv_lib_gcc___ashldi3=yes
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19749 ac_cv_lib_gcc___ashldi3=no
19752 rm -f core conftest.err conftest.$ac_objext \
19753 conftest$ac_exeext conftest.$ac_ext
19754 LIBS=$ac_check_lib_save_LIBS
19756 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19757 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19758 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19760 cat >>confdefs.h <<\_ACEOF
19761 #define HAVE___ASHLDI3 1
19766 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19767 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19768 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 ac_check_lib_save_LIBS=$LIBS
19773 cat >conftest.$ac_ext <<_ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19780 /* Override any GCC internal prototype to avoid an error.
19781 Use char because int might match the return type of a GCC
19782 builtin and then its argument prototype would still apply. */
19790 return __ashrdi3 ();
19795 rm -f conftest.$ac_objext conftest$ac_exeext
19796 if { (ac_try="$ac_link"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_link") 2>conftest.er1
19804 grep -v '^ *+' conftest.er1 >conftest.err
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
19809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19819 { ac_try='test -s conftest$ac_exeext'
19820 { (case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_try") 2>&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; }; then
19829 ac_cv_lib_gcc___ashrdi3=yes
19831 echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19834 ac_cv_lib_gcc___ashrdi3=no
19837 rm -f core conftest.err conftest.$ac_objext \
19838 conftest$ac_exeext conftest.$ac_ext
19839 LIBS=$ac_check_lib_save_LIBS
19841 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19842 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19843 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19845 cat >>confdefs.h <<\_ACEOF
19846 #define HAVE___ASHRDI3 1
19851 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19852 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19853 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19856 ac_check_lib_save_LIBS=$LIBS
19858 cat >conftest.$ac_ext <<_ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19865 /* Override any GCC internal prototype to avoid an error.
19866 Use char because int might match the return type of a GCC
19867 builtin and then its argument prototype would still apply. */
19875 return __divdi3 ();
19880 rm -f conftest.$ac_objext conftest$ac_exeext
19881 if { (ac_try="$ac_link"
19882 case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_link") 2>conftest.er1
19889 grep -v '^ *+' conftest.er1 >conftest.err
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } &&
19894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19904 { ac_try='test -s conftest$ac_exeext'
19905 { (case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910 (eval "$ac_try") 2>&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; }; then
19914 ac_cv_lib_gcc___divdi3=yes
19916 echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19919 ac_cv_lib_gcc___divdi3=no
19922 rm -f core conftest.err conftest.$ac_objext \
19923 conftest$ac_exeext conftest.$ac_ext
19924 LIBS=$ac_check_lib_save_LIBS
19926 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19927 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19928 if test $ac_cv_lib_gcc___divdi3 = yes; then
19930 cat >>confdefs.h <<\_ACEOF
19931 #define HAVE___DIVDI3 1
19936 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19937 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19938 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19941 ac_check_lib_save_LIBS=$LIBS
19943 cat >conftest.$ac_ext <<_ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19950 /* Override any GCC internal prototype to avoid an error.
19951 Use char because int might match the return type of a GCC
19952 builtin and then its argument prototype would still apply. */
19960 return __fixdfdi ();
19965 rm -f conftest.$ac_objext conftest$ac_exeext
19966 if { (ac_try="$ac_link"
19967 case "(($ac_try" in
19968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969 *) ac_try_echo=$ac_try;;
19971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19972 (eval "$ac_link") 2>conftest.er1
19974 grep -v '^ *+' conftest.er1 >conftest.err
19976 cat conftest.err >&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } &&
19979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19989 { ac_try='test -s conftest$ac_exeext'
19990 { (case "(($ac_try" in
19991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992 *) ac_try_echo=$ac_try;;
19994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19995 (eval "$ac_try") 2>&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; }; then
19999 ac_cv_lib_gcc___fixdfdi=yes
20001 echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20004 ac_cv_lib_gcc___fixdfdi=no
20007 rm -f core conftest.err conftest.$ac_objext \
20008 conftest$ac_exeext conftest.$ac_ext
20009 LIBS=$ac_check_lib_save_LIBS
20011 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20012 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20013 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20015 cat >>confdefs.h <<\_ACEOF
20016 #define HAVE___FIXDFDI 1
20021 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20022 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20023 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 ac_check_lib_save_LIBS=$LIBS
20028 cat >conftest.$ac_ext <<_ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h. */
20035 /* Override any GCC internal prototype to avoid an error.
20036 Use char because int might match the return type of a GCC
20037 builtin and then its argument prototype would still apply. */
20045 return __fixsfdi ();
20050 rm -f conftest.$ac_objext conftest$ac_exeext
20051 if { (ac_try="$ac_link"
20052 case "(($ac_try" in
20053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054 *) ac_try_echo=$ac_try;;
20056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057 (eval "$ac_link") 2>conftest.er1
20059 grep -v '^ *+' conftest.er1 >conftest.err
20061 cat conftest.err >&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); } &&
20064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
20074 { ac_try='test -s conftest$ac_exeext'
20075 { (case "(($ac_try" in
20076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20077 *) ac_try_echo=$ac_try;;
20079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20080 (eval "$ac_try") 2>&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
20084 ac_cv_lib_gcc___fixsfdi=yes
20086 echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20089 ac_cv_lib_gcc___fixsfdi=no
20092 rm -f core conftest.err conftest.$ac_objext \
20093 conftest$ac_exeext conftest.$ac_ext
20094 LIBS=$ac_check_lib_save_LIBS
20096 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20097 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20098 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20100 cat >>confdefs.h <<\_ACEOF
20101 #define HAVE___FIXSFDI 1
20106 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20107 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20108 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 ac_check_lib_save_LIBS=$LIBS
20113 cat >conftest.$ac_ext <<_ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20120 /* Override any GCC internal prototype to avoid an error.
20121 Use char because int might match the return type of a GCC
20122 builtin and then its argument prototype would still apply. */
20126 char __floatdidf ();
20130 return __floatdidf ();
20135 rm -f conftest.$ac_objext conftest$ac_exeext
20136 if { (ac_try="$ac_link"
20137 case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_link") 2>conftest.er1
20144 grep -v '^ *+' conftest.er1 >conftest.err
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
20149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
20159 { ac_try='test -s conftest$ac_exeext'
20160 { (case "(($ac_try" in
20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162 *) ac_try_echo=$ac_try;;
20164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165 (eval "$ac_try") 2>&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; }; then
20169 ac_cv_lib_gcc___floatdidf=yes
20171 echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20174 ac_cv_lib_gcc___floatdidf=no
20177 rm -f core conftest.err conftest.$ac_objext \
20178 conftest$ac_exeext conftest.$ac_ext
20179 LIBS=$ac_check_lib_save_LIBS
20181 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20182 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20183 if test $ac_cv_lib_gcc___floatdidf = yes; then
20185 cat >>confdefs.h <<\_ACEOF
20186 #define HAVE___FLOATDIDF 1
20191 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20192 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20193 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20196 ac_check_lib_save_LIBS=$LIBS
20198 cat >conftest.$ac_ext <<_ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20205 /* Override any GCC internal prototype to avoid an error.
20206 Use char because int might match the return type of a GCC
20207 builtin and then its argument prototype would still apply. */
20215 return __lshrdi3 ();
20220 rm -f conftest.$ac_objext conftest$ac_exeext
20221 if { (ac_try="$ac_link"
20222 case "(($ac_try" in
20223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224 *) ac_try_echo=$ac_try;;
20226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20227 (eval "$ac_link") 2>conftest.er1
20229 grep -v '^ *+' conftest.er1 >conftest.err
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } &&
20234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
20244 { ac_try='test -s conftest$ac_exeext'
20245 { (case "(($ac_try" in
20246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20247 *) ac_try_echo=$ac_try;;
20249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20250 (eval "$ac_try") 2>&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; }; then
20254 ac_cv_lib_gcc___lshrdi3=yes
20256 echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20259 ac_cv_lib_gcc___lshrdi3=no
20262 rm -f core conftest.err conftest.$ac_objext \
20263 conftest$ac_exeext conftest.$ac_ext
20264 LIBS=$ac_check_lib_save_LIBS
20266 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20267 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20268 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20270 cat >>confdefs.h <<\_ACEOF
20271 #define HAVE___LSHRDI3 1
20276 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20277 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20278 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20281 ac_check_lib_save_LIBS=$LIBS
20283 cat >conftest.$ac_ext <<_ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20290 /* Override any GCC internal prototype to avoid an error.
20291 Use char because int might match the return type of a GCC
20292 builtin and then its argument prototype would still apply. */
20300 return __moddi3 ();
20305 rm -f conftest.$ac_objext conftest$ac_exeext
20306 if { (ac_try="$ac_link"
20307 case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_link") 2>conftest.er1
20314 grep -v '^ *+' conftest.er1 >conftest.err
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } &&
20319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20320 { (case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_try") 2>&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; } &&
20329 { ac_try='test -s conftest$ac_exeext'
20330 { (case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_try") 2>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
20339 ac_cv_lib_gcc___moddi3=yes
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20344 ac_cv_lib_gcc___moddi3=no
20347 rm -f core conftest.err conftest.$ac_objext \
20348 conftest$ac_exeext conftest.$ac_ext
20349 LIBS=$ac_check_lib_save_LIBS
20351 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20352 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20353 if test $ac_cv_lib_gcc___moddi3 = yes; then
20355 cat >>confdefs.h <<\_ACEOF
20356 #define HAVE___MODDI3 1
20361 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20362 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20363 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20364 echo $ECHO_N "(cached) $ECHO_C" >&6
20366 ac_check_lib_save_LIBS=$LIBS
20368 cat >conftest.$ac_ext <<_ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h. */
20375 /* Override any GCC internal prototype to avoid an error.
20376 Use char because int might match the return type of a GCC
20377 builtin and then its argument prototype would still apply. */
20385 return __udivdi3 ();
20390 rm -f conftest.$ac_objext conftest$ac_exeext
20391 if { (ac_try="$ac_link"
20392 case "(($ac_try" in
20393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20394 *) ac_try_echo=$ac_try;;
20396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20397 (eval "$ac_link") 2>conftest.er1
20399 grep -v '^ *+' conftest.er1 >conftest.err
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
20404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
20414 { ac_try='test -s conftest$ac_exeext'
20415 { (case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_try") 2>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 ac_cv_lib_gcc___udivdi3=yes
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 ac_cv_lib_gcc___udivdi3=no
20432 rm -f core conftest.err conftest.$ac_objext \
20433 conftest$ac_exeext conftest.$ac_ext
20434 LIBS=$ac_check_lib_save_LIBS
20436 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20437 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20438 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20440 cat >>confdefs.h <<\_ACEOF
20441 #define HAVE___UDIVDI3 1
20446 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20447 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20448 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20449 echo $ECHO_N "(cached) $ECHO_C" >&6
20451 ac_check_lib_save_LIBS=$LIBS
20453 cat >conftest.$ac_ext <<_ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h. */
20460 /* Override any GCC internal prototype to avoid an error.
20461 Use char because int might match the return type of a GCC
20462 builtin and then its argument prototype would still apply. */
20470 return __umoddi3 ();
20475 rm -f conftest.$ac_objext conftest$ac_exeext
20476 if { (ac_try="$ac_link"
20477 case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482 (eval "$ac_link") 2>conftest.er1
20484 grep -v '^ *+' conftest.er1 >conftest.err
20486 cat conftest.err >&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } &&
20489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20490 { (case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_try") 2>&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; } &&
20499 { ac_try='test -s conftest$ac_exeext'
20500 { (case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_try") 2>&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); }; }; then
20509 ac_cv_lib_gcc___umoddi3=yes
20511 echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20514 ac_cv_lib_gcc___umoddi3=no
20517 rm -f core conftest.err conftest.$ac_objext \
20518 conftest$ac_exeext conftest.$ac_ext
20519 LIBS=$ac_check_lib_save_LIBS
20521 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20522 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20523 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20525 cat >>confdefs.h <<\_ACEOF
20526 #define HAVE___UMODDI3 1
20532 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20533 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20534 if test "${ac_cv_lib_gcc___main+set}" = set; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
20537 ac_check_lib_save_LIBS=$LIBS
20539 cat >conftest.$ac_ext <<_ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h. */
20546 /* Override any GCC internal prototype to avoid an error.
20547 Use char because int might match the return type of a GCC
20548 builtin and then its argument prototype would still apply. */
20561 rm -f conftest.$ac_objext conftest$ac_exeext
20562 if { (ac_try="$ac_link"
20563 case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20568 (eval "$ac_link") 2>conftest.er1
20570 grep -v '^ *+' conftest.er1 >conftest.err
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } &&
20575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
20585 { ac_try='test -s conftest$ac_exeext'
20586 { (case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20591 (eval "$ac_try") 2>&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); }; }; then
20595 ac_cv_lib_gcc___main=yes
20597 echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20600 ac_cv_lib_gcc___main=no
20603 rm -f core conftest.err conftest.$ac_objext \
20604 conftest$ac_exeext conftest.$ac_ext
20605 LIBS=$ac_check_lib_save_LIBS
20607 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20608 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20609 if test $ac_cv_lib_gcc___main = yes; then
20611 cat >>confdefs.h <<\_ACEOF
20612 #define HAVE___MAIN 1
20617 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20618 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20619 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 ac_check_lib_save_LIBS=$LIBS
20624 cat >conftest.$ac_ext <<_ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h. */
20631 /* Override any GCC internal prototype to avoid an error.
20632 Use char because int might match the return type of a GCC
20633 builtin and then its argument prototype would still apply. */
20641 return __cmpdi2 ();
20646 rm -f conftest.$ac_objext conftest$ac_exeext
20647 if { (ac_try="$ac_link"
20648 case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_link") 2>conftest.er1
20655 grep -v '^ *+' conftest.er1 >conftest.err
20657 cat conftest.err >&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } &&
20660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
20670 { ac_try='test -s conftest$ac_exeext'
20671 { (case "(($ac_try" in
20672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673 *) ac_try_echo=$ac_try;;
20675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676 (eval "$ac_try") 2>&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
20680 ac_cv_lib_gcc___cmpdi2=yes
20682 echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20685 ac_cv_lib_gcc___cmpdi2=no
20688 rm -f core conftest.err conftest.$ac_objext \
20689 conftest$ac_exeext conftest.$ac_ext
20690 LIBS=$ac_check_lib_save_LIBS
20692 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20693 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20694 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20696 cat >>confdefs.h <<\_ACEOF
20697 #define HAVE___CMPDI2 1
20704 if test "$llvm_cv_os_type" = "MingW" ; then
20705 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20706 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20707 cat >conftest.$ac_ext <<_ACEOF
20708 #include <windows.h>
20709 #include <imagehlp.h>
20710 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20711 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20713 rm -f conftest.$ac_objext
20714 if { (ac_try="$ac_compile"
20715 case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_compile") 2>conftest.er1
20722 grep -v '^ *+' conftest.er1 >conftest.err
20724 cat conftest.err >&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } &&
20727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
20737 { ac_try='test -s conftest.$ac_objext'
20738 { (case "(($ac_try" in
20739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740 *) ac_try_echo=$ac_try;;
20742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743 (eval "$ac_try") 2>&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); }; }; then
20748 { echo "$as_me:$LINENO: result: yes" >&5
20749 echo "${ECHO_T}yes" >&6; }
20750 llvm_cv_win32_elmcb_pcstr="PCSTR"
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20757 { echo "$as_me:$LINENO: result: no" >&5
20758 echo "${ECHO_T}no" >&6; }
20759 llvm_cv_win32_elmcb_pcstr="PSTR"
20763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20765 cat >>confdefs.h <<_ACEOF
20766 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20772 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20773 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20774 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20778 ac_cpp='$CXXCPP $CPPFLAGS'
20779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20783 cat >conftest.$ac_ext <<_ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20798 rm -f conftest.$ac_objext
20799 if { (ac_try="$ac_compile"
20800 case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805 (eval "$ac_compile") 2>conftest.er1
20807 grep -v '^ *+' conftest.er1 >conftest.err
20809 cat conftest.err >&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
20812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
20822 { ac_try='test -s conftest.$ac_objext'
20823 { (case "(($ac_try" in
20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_try") 2>&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
20832 ac_cv_func_isnan_in_math_h=yes
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20837 ac_cv_func_isnan_in_math_h=no
20840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20842 ac_cpp='$CPP $CPPFLAGS'
20843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20848 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20849 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20852 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20854 cat >>confdefs.h <<\_ACEOF
20855 #define HAVE_ISNAN_IN_MATH_H 1
20860 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20861 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20862 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
20866 ac_cpp='$CXXCPP $CPPFLAGS'
20867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20871 cat >conftest.$ac_ext <<_ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_compile") 2>conftest.er1
20895 grep -v '^ *+' conftest.er1 >conftest.err
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } &&
20900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
20910 { ac_try='test -s conftest.$ac_objext'
20911 { (case "(($ac_try" in
20912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913 *) ac_try_echo=$ac_try;;
20915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_try") 2>&5
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; }; then
20920 ac_cv_func_isnan_in_cmath=yes
20922 echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20925 ac_cv_func_isnan_in_cmath=no
20928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20930 ac_cpp='$CPP $CPPFLAGS'
20931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20936 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20937 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20939 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20941 cat >>confdefs.h <<\_ACEOF
20942 #define HAVE_ISNAN_IN_CMATH 1
20947 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20948 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20949 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20950 echo $ECHO_N "(cached) $ECHO_C" >&6
20953 ac_cpp='$CXXCPP $CPPFLAGS'
20954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20958 cat >conftest.$ac_ext <<_ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20968 float f; std::isnan(f);
20973 rm -f conftest.$ac_objext
20974 if { (ac_try="$ac_compile"
20975 case "(($ac_try" in
20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977 *) ac_try_echo=$ac_try;;
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_compile") 2>conftest.er1
20982 grep -v '^ *+' conftest.er1 >conftest.err
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } &&
20987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
20997 { ac_try='test -s conftest.$ac_objext'
20998 { (case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003 (eval "$ac_try") 2>&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); }; }; then
21007 ac_cv_func_std_isnan_in_cmath=yes
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21012 ac_cv_func_std_isnan_in_cmath=no
21015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21017 ac_cpp='$CPP $CPPFLAGS'
21018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21023 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21024 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21026 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21028 cat >>confdefs.h <<\_ACEOF
21029 #define HAVE_STD_ISNAN_IN_CMATH 1
21035 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21036 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21037 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21041 ac_cpp='$CXXCPP $CPPFLAGS'
21042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21046 cat >conftest.$ac_ext <<_ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21061 rm -f conftest.$ac_objext
21062 if { (ac_try="$ac_compile"
21063 case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068 (eval "$ac_compile") 2>conftest.er1
21070 grep -v '^ *+' conftest.er1 >conftest.err
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } &&
21075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
21085 { ac_try='test -s conftest.$ac_objext'
21086 { (case "(($ac_try" in
21087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088 *) ac_try_echo=$ac_try;;
21090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091 (eval "$ac_try") 2>&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); }; }; then
21095 ac_cv_func_isinf_in_math_h=yes
21097 echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21100 ac_cv_func_isinf_in_math_h=no
21103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21105 ac_cpp='$CPP $CPPFLAGS'
21106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21111 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21112 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21114 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21116 cat >>confdefs.h <<\_ACEOF
21117 #define HAVE_ISINF_IN_MATH_H 1
21122 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21123 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21124 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21125 echo $ECHO_N "(cached) $ECHO_C" >&6
21128 ac_cpp='$CXXCPP $CPPFLAGS'
21129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21133 cat >conftest.$ac_ext <<_ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21148 rm -f conftest.$ac_objext
21149 if { (ac_try="$ac_compile"
21150 case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155 (eval "$ac_compile") 2>conftest.er1
21157 grep -v '^ *+' conftest.er1 >conftest.err
21159 cat conftest.err >&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } &&
21162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
21172 { ac_try='test -s conftest.$ac_objext'
21173 { (case "(($ac_try" in
21174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21175 *) ac_try_echo=$ac_try;;
21177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21178 (eval "$ac_try") 2>&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
21182 ac_cv_func_isinf_in_cmath=yes
21184 echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21187 ac_cv_func_isinf_in_cmath=no
21190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21192 ac_cpp='$CPP $CPPFLAGS'
21193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21198 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21199 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21201 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21203 cat >>confdefs.h <<\_ACEOF
21204 #define HAVE_ISINF_IN_CMATH 1
21209 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21210 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21211 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21212 echo $ECHO_N "(cached) $ECHO_C" >&6
21215 ac_cpp='$CXXCPP $CPPFLAGS'
21216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21220 cat >conftest.$ac_ext <<_ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21230 float f; std::isinf(f)}
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_compile") 2>conftest.er1
21244 grep -v '^ *+' conftest.er1 >conftest.err
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } &&
21249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
21259 { ac_try='test -s conftest.$ac_objext'
21260 { (case "(($ac_try" in
21261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262 *) ac_try_echo=$ac_try;;
21264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265 (eval "$ac_try") 2>&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); }; }; then
21269 ac_cv_func_std_isinf_in_cmath=yes
21271 echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21274 ac_cv_func_std_isinf_in_cmath=no
21277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21279 ac_cpp='$CPP $CPPFLAGS'
21280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21285 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21286 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21288 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21290 cat >>confdefs.h <<\_ACEOF
21291 #define HAVE_STD_ISINF_IN_CMATH 1
21296 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21297 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21298 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21299 echo $ECHO_N "(cached) $ECHO_C" >&6
21302 ac_cpp='$CXXCPP $CPPFLAGS'
21303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21307 cat >conftest.$ac_ext <<_ACEOF
21310 cat confdefs.h >>conftest.$ac_ext
21311 cat >>conftest.$ac_ext <<_ACEOF
21312 /* end confdefs.h. */
21313 #include <ieeefp.h>
21317 float f; finite(f);
21322 rm -f conftest.$ac_objext
21323 if { (ac_try="$ac_compile"
21324 case "(($ac_try" in
21325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21326 *) ac_try_echo=$ac_try;;
21328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21329 (eval "$ac_compile") 2>conftest.er1
21331 grep -v '^ *+' conftest.er1 >conftest.err
21333 cat conftest.err >&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); } &&
21336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
21346 { ac_try='test -s conftest.$ac_objext'
21347 { (case "(($ac_try" in
21348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349 *) ac_try_echo=$ac_try;;
21351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352 (eval "$ac_try") 2>&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; }; then
21356 ac_cv_func_finite_in_ieeefp_h=yes
21358 echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21361 ac_cv_func_finite_in_ieeefp_h=no
21364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21366 ac_cpp='$CPP $CPPFLAGS'
21367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21372 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21373 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21375 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21377 cat >>confdefs.h <<\_ACEOF
21378 #define HAVE_FINITE_IN_IEEEFP_H 1
21385 if test "$llvm_cv_platform_type" = "Unix" ; then
21388 for ac_header in stdlib.h unistd.h
21390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21395 echo $ECHO_N "(cached) $ECHO_C" >&6
21397 ac_res=`eval echo '${'$as_ac_Header'}'`
21398 { echo "$as_me:$LINENO: result: $ac_res" >&5
21399 echo "${ECHO_T}$ac_res" >&6; }
21401 # Is the header compilable?
21402 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21404 cat >conftest.$ac_ext <<_ACEOF
21407 cat confdefs.h >>conftest.$ac_ext
21408 cat >>conftest.$ac_ext <<_ACEOF
21409 /* end confdefs.h. */
21410 $ac_includes_default
21411 #include <$ac_header>
21413 rm -f conftest.$ac_objext
21414 if { (ac_try="$ac_compile"
21415 case "(($ac_try" in
21416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417 *) ac_try_echo=$ac_try;;
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420 (eval "$ac_compile") 2>conftest.er1
21422 grep -v '^ *+' conftest.er1 >conftest.err
21424 cat conftest.err >&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } &&
21427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
21437 { ac_try='test -s conftest.$ac_objext'
21438 { (case "(($ac_try" in
21439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440 *) ac_try_echo=$ac_try;;
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443 (eval "$ac_try") 2>&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); }; }; then
21447 ac_header_compiler=yes
21449 echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21452 ac_header_compiler=no
21455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21457 echo "${ECHO_T}$ac_header_compiler" >&6; }
21459 # Is the header present?
21460 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21462 cat >conftest.$ac_ext <<_ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 #include <$ac_header>
21470 if { (ac_try="$ac_cpp conftest.$ac_ext"
21471 case "(($ac_try" in
21472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473 *) ac_try_echo=$ac_try;;
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21478 grep -v '^ *+' conftest.er1 >conftest.err
21480 cat conftest.err >&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } >/dev/null; then
21483 if test -s conftest.err; then
21484 ac_cpp_err=$ac_c_preproc_warn_flag
21485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21492 if test -z "$ac_cpp_err"; then
21493 ac_header_preproc=yes
21495 echo "$as_me: failed program was:" >&5
21496 sed 's/^/| /' conftest.$ac_ext >&5
21498 ac_header_preproc=no
21501 rm -f conftest.err conftest.$ac_ext
21502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21503 echo "${ECHO_T}$ac_header_preproc" >&6; }
21505 # So? What about this header?
21506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21512 ac_header_preproc=yes
21515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21528 ## ----------------------------------- ##
21529 ## Report this to llvmbugs@cs.uiuc.edu ##
21530 ## ----------------------------------- ##
21532 ) | sed "s/^/$as_me: WARNING: /" >&2
21535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 eval "$as_ac_Header=\$ac_header_preproc"
21542 ac_res=`eval echo '${'$as_ac_Header'}'`
21543 { echo "$as_me:$LINENO: result: $ac_res" >&5
21544 echo "${ECHO_T}$ac_res" >&6; }
21547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21548 cat >>confdefs.h <<_ACEOF
21549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21557 for ac_func in getpagesize
21559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21563 echo $ECHO_N "(cached) $ECHO_C" >&6
21565 cat >conftest.$ac_ext <<_ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h. */
21571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21573 #define $ac_func innocuous_$ac_func
21575 /* System header to define __stub macros and hopefully few prototypes,
21576 which can conflict with char $ac_func (); below.
21577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21578 <limits.h> exists even on freestanding compilers. */
21581 # include <limits.h>
21583 # include <assert.h>
21588 /* Override any GCC internal prototype to avoid an error.
21589 Use char because int might match the return type of a GCC
21590 builtin and then its argument prototype would still apply. */
21595 /* The GNU C library defines this for functions which it implements
21596 to always fail with ENOSYS. Some functions are actually named
21597 something starting with __ and the normal name is an alias. */
21598 #if defined __stub_$ac_func || defined __stub___$ac_func
21605 return $ac_func ();
21610 rm -f conftest.$ac_objext conftest$ac_exeext
21611 if { (ac_try="$ac_link"
21612 case "(($ac_try" in
21613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21614 *) ac_try_echo=$ac_try;;
21616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21617 (eval "$ac_link") 2>conftest.er1
21619 grep -v '^ *+' conftest.er1 >conftest.err
21621 cat conftest.err >&5
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); } &&
21624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
21634 { ac_try='test -s conftest$ac_exeext'
21635 { (case "(($ac_try" in
21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_try") 2>&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; }; then
21644 eval "$as_ac_var=yes"
21646 echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21649 eval "$as_ac_var=no"
21652 rm -f core conftest.err conftest.$ac_objext \
21653 conftest$ac_exeext conftest.$ac_ext
21655 ac_res=`eval echo '${'$as_ac_var'}'`
21656 { echo "$as_me:$LINENO: result: $ac_res" >&5
21657 echo "${ECHO_T}$ac_res" >&6; }
21658 if test `eval echo '${'$as_ac_var'}'` = yes; then
21659 cat >>confdefs.h <<_ACEOF
21660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21666 { echo "$as_me:$LINENO: checking for working mmap" >&5
21667 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21668 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21671 if test "$cross_compiling" = yes; then
21672 ac_cv_func_mmap_fixed_mapped=no
21674 cat >conftest.$ac_ext <<_ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21680 $ac_includes_default
21681 /* malloc might have been renamed as rpl_malloc. */
21684 /* Thanks to Mike Haertel and Jim Avera for this test.
21685 Here is a matrix of mmap possibilities:
21686 mmap private not fixed
21687 mmap private fixed at somewhere currently unmapped
21688 mmap private fixed at somewhere already mapped
21689 mmap shared not fixed
21690 mmap shared fixed at somewhere currently unmapped
21691 mmap shared fixed at somewhere already mapped
21692 For private mappings, we should verify that changes cannot be read()
21693 back from the file, nor mmap's back from the file at a different
21694 address. (There have been systems where private was not correctly
21695 implemented like the infamous i386 svr4.0, and systems where the
21696 VM page cache was not coherent with the file system buffer cache
21697 like early versions of FreeBSD and possibly contemporary NetBSD.)
21698 For shared mappings, we should conversely verify that changes get
21699 propagated back to all the places they're supposed to be.
21701 Grep wants private fixed already mapped.
21702 The main things grep needs to know about mmap are:
21703 * does it exist and is it safe to write into the mmap'd area
21704 * how to use it (BSD variants) */
21707 #include <sys/mman.h>
21709 #if !STDC_HEADERS && !HAVE_STDLIB_H
21713 /* This mess was copied from the GNU getpagesize.h. */
21714 #if !HAVE_GETPAGESIZE
21715 /* Assume that all systems that can run configure have sys/param.h. */
21716 # if !HAVE_SYS_PARAM_H
21717 # define HAVE_SYS_PARAM_H 1
21720 # ifdef _SC_PAGESIZE
21721 # define getpagesize() sysconf(_SC_PAGESIZE)
21722 # else /* no _SC_PAGESIZE */
21723 # if HAVE_SYS_PARAM_H
21724 # include <sys/param.h>
21725 # ifdef EXEC_PAGESIZE
21726 # define getpagesize() EXEC_PAGESIZE
21727 # else /* no EXEC_PAGESIZE */
21729 # define getpagesize() NBPG * CLSIZE
21732 # endif /* no CLSIZE */
21733 # else /* no NBPG */
21735 # define getpagesize() NBPC
21736 # else /* no NBPC */
21738 # define getpagesize() PAGESIZE
21739 # endif /* PAGESIZE */
21740 # endif /* no NBPC */
21741 # endif /* no NBPG */
21742 # endif /* no EXEC_PAGESIZE */
21743 # else /* no HAVE_SYS_PARAM_H */
21744 # define getpagesize() 8192 /* punt totally */
21745 # endif /* no HAVE_SYS_PARAM_H */
21746 # endif /* no _SC_PAGESIZE */
21748 #endif /* no HAVE_GETPAGESIZE */
21753 char *data, *data2, *data3;
21757 pagesize = getpagesize ();
21759 /* First, make a file with some known garbage in it. */
21760 data = (char *) malloc (pagesize);
21763 for (i = 0; i < pagesize; ++i)
21764 *(data + i) = rand ();
21766 fd = creat ("conftest.mmap", 0600);
21769 if (write (fd, data, pagesize) != pagesize)
21773 /* Next, try to mmap the file at a fixed address which already has
21774 something else allocated at it. If we can, also make sure that
21775 we see the same garbage. */
21776 fd = open ("conftest.mmap", O_RDWR);
21779 data2 = (char *) malloc (2 * pagesize);
21782 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21783 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21784 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21786 for (i = 0; i < pagesize; ++i)
21787 if (*(data + i) != *(data2 + i))
21790 /* Finally, make sure that changes to the mapped area do not
21791 percolate back to the file as seen by read(). (This is a bug on
21792 some variants of i386 svr4.0.) */
21793 for (i = 0; i < pagesize; ++i)
21794 *(data2 + i) = *(data2 + i) + 1;
21795 data3 = (char *) malloc (pagesize);
21798 if (read (fd, data3, pagesize) != pagesize)
21800 for (i = 0; i < pagesize; ++i)
21801 if (*(data + i) != *(data3 + i))
21807 rm -f conftest$ac_exeext
21808 if { (ac_try="$ac_link"
21809 case "(($ac_try" in
21810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811 *) ac_try_echo=$ac_try;;
21813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814 (eval "$ac_link") 2>&5
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21818 { (case "(($ac_try" in
21819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21820 *) ac_try_echo=$ac_try;;
21822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21823 (eval "$ac_try") 2>&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; }; then
21827 ac_cv_func_mmap_fixed_mapped=yes
21829 echo "$as_me: program exited with status $ac_status" >&5
21830 echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21833 ( exit $ac_status )
21834 ac_cv_func_mmap_fixed_mapped=no
21836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21841 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21842 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21843 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21845 cat >>confdefs.h <<\_ACEOF
21846 #define HAVE_MMAP 1
21850 rm -f conftest.mmap
21852 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21853 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21854 if test "${ac_cv_func_mmap_file+set}" = set; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21858 ac_cpp='$CPP $CPPFLAGS'
21859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21863 if test "$cross_compiling" = yes; then
21864 ac_cv_func_mmap_file=no
21866 cat >conftest.$ac_ext <<_ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21874 #include <sys/types.h>
21875 #include <sys/mman.h>
21883 fd = creat ("foo",0777);
21884 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21886 return (fd != (int) MAP_FAILED);
21891 rm -f conftest$ac_exeext
21892 if { (ac_try="$ac_link"
21893 case "(($ac_try" in
21894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895 *) ac_try_echo=$ac_try;;
21897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21898 (eval "$ac_link") 2>&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21902 { (case "(($ac_try" in
21903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21904 *) ac_try_echo=$ac_try;;
21906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21907 (eval "$ac_try") 2>&5
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); }; }; then
21911 ac_cv_func_mmap_file=yes
21913 echo "$as_me: program exited with status $ac_status" >&5
21914 echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21917 ( exit $ac_status )
21918 ac_cv_func_mmap_file=no
21920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21925 ac_cpp='$CPP $CPPFLAGS'
21926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21932 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21933 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21934 if test "$ac_cv_func_mmap_file" = yes; then
21936 cat >>confdefs.h <<\_ACEOF
21937 #define HAVE_MMAP_FILE
21944 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21945 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21946 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21947 echo $ECHO_N "(cached) $ECHO_C" >&6
21949 if test "$llvm_cv_os_type" = "Interix" ; then
21950 ac_cv_need_dev_zero_for_mmap=yes
21952 ac_cv_need_dev_zero_for_mmap=no
21956 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21957 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21958 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21960 cat >>confdefs.h <<\_ACEOF
21961 #define NEED_DEV_ZERO_FOR_MMAP 1
21966 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21968 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21969 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21971 if test "$ac_cv_func_mmap_file" = "no"
21973 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21974 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21978 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21979 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21981 ac_cpp='$CXXCPP $CPPFLAGS'
21982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21986 cat >conftest.$ac_ext <<_ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h. */
21993 volatile unsigned long val = 1;
21994 __sync_synchronize();
21995 __sync_val_compare_and_swap(&val, 1, 0);
21996 __sync_add_and_fetch(&val, 1);
21997 __sync_sub_and_fetch(&val, 1);
22002 rm -f conftest.$ac_objext conftest$ac_exeext
22003 if { (ac_try="$ac_link"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_link") 2>conftest.er1
22011 grep -v '^ *+' conftest.er1 >conftest.err
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } &&
22016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
22026 { ac_try='test -s conftest$ac_exeext'
22027 { (case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032 (eval "$ac_try") 2>&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; }; then
22037 ac_cpp='$CPP $CPPFLAGS'
22038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22042 { echo "$as_me:$LINENO: result: yes" >&5
22043 echo "${ECHO_T}yes" >&6; }
22045 cat >>confdefs.h <<\_ACEOF
22046 #define LLVM_MULTITHREADED 1
22050 echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22053 { echo "$as_me:$LINENO: result: no" >&5
22054 echo "${ECHO_T}no" >&6; }
22056 cat >>confdefs.h <<\_ACEOF
22057 #define LLVM_MULTITHREADED 0
22060 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22061 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22064 rm -f core conftest.err conftest.$ac_objext \
22065 conftest$ac_exeext conftest.$ac_ext
22068 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22069 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22070 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22071 if test "${llvm_cv_linux_mixed+set}" = set; then
22072 echo $ECHO_N "(cached) $ECHO_C" >&6
22075 ac_cpp='$CPP $CPPFLAGS'
22076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22080 cat >conftest.$ac_ext <<_ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h. */
22087 error: Not x86-64 even if uname says so!
22098 rm -f conftest.$ac_objext
22099 if { (ac_try="$ac_compile"
22100 case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_compile") 2>conftest.er1
22107 grep -v '^ *+' conftest.er1 >conftest.err
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } &&
22112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
22122 { ac_try='test -s conftest.$ac_objext'
22123 { (case "(($ac_try" in
22124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125 *) ac_try_echo=$ac_try;;
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128 (eval "$ac_try") 2>&5
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); }; }; then
22132 llvm_cv_linux_mixed=no
22134 echo "$as_me: failed program was:" >&5
22135 sed 's/^/| /' conftest.$ac_ext >&5
22137 llvm_cv_linux_mixed=yes
22140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22142 ac_cpp='$CPP $CPPFLAGS'
22143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22149 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22150 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22152 if test "$llvm_cv_linux_mixed" = "yes"; then
22153 llvm_cv_target_arch="x86"
22159 for ac_func in __dso_handle
22161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22162 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22164 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22165 echo $ECHO_N "(cached) $ECHO_C" >&6
22167 cat >conftest.$ac_ext <<_ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h. */
22173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22175 #define $ac_func innocuous_$ac_func
22177 /* System header to define __stub macros and hopefully few prototypes,
22178 which can conflict with char $ac_func (); below.
22179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22180 <limits.h> exists even on freestanding compilers. */
22183 # include <limits.h>
22185 # include <assert.h>
22190 /* Override any GCC internal prototype to avoid an error.
22191 Use char because int might match the return type of a GCC
22192 builtin and then its argument prototype would still apply. */
22197 /* The GNU C library defines this for functions which it implements
22198 to always fail with ENOSYS. Some functions are actually named
22199 something starting with __ and the normal name is an alias. */
22200 #if defined __stub_$ac_func || defined __stub___$ac_func
22207 return $ac_func ();
22212 rm -f conftest.$ac_objext conftest$ac_exeext
22213 if { (ac_try="$ac_link"
22214 case "(($ac_try" in
22215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216 *) ac_try_echo=$ac_try;;
22218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219 (eval "$ac_link") 2>conftest.er1
22221 grep -v '^ *+' conftest.er1 >conftest.err
22223 cat conftest.err >&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } &&
22226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
22236 { ac_try='test -s conftest$ac_exeext'
22237 { (case "(($ac_try" in
22238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239 *) ac_try_echo=$ac_try;;
22241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242 (eval "$ac_try") 2>&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); }; }; then
22246 eval "$as_ac_var=yes"
22248 echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22251 eval "$as_ac_var=no"
22254 rm -f core conftest.err conftest.$ac_objext \
22255 conftest$ac_exeext conftest.$ac_ext
22257 ac_res=`eval echo '${'$as_ac_var'}'`
22258 { echo "$as_me:$LINENO: result: $ac_res" >&5
22259 echo "${ECHO_T}$ac_res" >&6; }
22260 if test `eval echo '${'$as_ac_var'}'` = yes; then
22261 cat >>confdefs.h <<_ACEOF
22262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22269 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22270 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22271 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22272 echo $ECHO_N "(cached) $ECHO_C" >&6
22274 llvm_cv_llvmgcc_dragonegg="no"
22275 if test -n "$LLVMGCC" ; then
22276 cp /dev/null conftest.c
22277 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22278 if test $? -eq 0 ; then
22279 llvm_cv_llvmgcc_dragonegg="yes"
22284 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22285 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22287 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22288 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22289 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
22291 LLVMCC_EMITIR_FLAG="-emit-llvm"
22292 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22297 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22298 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22299 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22300 echo $ECHO_N "(cached) $ECHO_C" >&6
22302 llvm_cv_llvmgcc_sanity="no"
22303 if test -n "$LLVMGCC" ; then
22304 cp /dev/null conftest.c
22305 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22306 grep 'target datalayout =' > /dev/null 2>&1
22307 if test $? -eq 0 ; then
22308 llvm_cv_llvmgcc_sanity="yes"
22313 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22314 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22316 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22317 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22318 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22319 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
22320 LLVMCC1=$llvmcc1path
22322 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
22323 LLVMCC1PLUS=$llvmcc1pluspath
22325 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22326 LLVMGCCDIR=$llvmgccdir
22328 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22329 LLVMGCC_LANGS=$llvmgcclangs
22331 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22334 { echo "$as_me:$LINENO: result: ok" >&5
22335 echo "${ECHO_T}ok" >&6; }
22338 SHLIBEXT=$libltdl_cv_shlibext
22341 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22344 # Translate the various configuration directories and other basic
22345 # information into substitutions that will end up in Makefile.config.in
22346 # that these configured values can be used by the makefiles
22347 if test "${prefix}" = "NONE" ; then
22348 prefix="/usr/local"
22350 eval LLVM_PREFIX="${prefix}";
22351 eval LLVM_BINDIR="${prefix}/bin";
22352 eval LLVM_LIBDIR="${prefix}/lib";
22353 eval LLVM_DATADIR="${prefix}/share/llvm";
22354 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22355 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22356 eval LLVM_INCLUDEDIR="${prefix}/include";
22357 eval LLVM_INFODIR="${prefix}/info";
22358 eval LLVM_MANDIR="${prefix}/man";
22359 LLVM_CONFIGTIME=`date`
22371 # Place the various directores into the config.h file as #defines so that we
22372 # can know about the installation paths within LLVM.
22374 cat >>confdefs.h <<_ACEOF
22375 #define LLVM_PREFIX "$LLVM_PREFIX"
22379 cat >>confdefs.h <<_ACEOF
22380 #define LLVM_BINDIR "$LLVM_BINDIR"
22384 cat >>confdefs.h <<_ACEOF
22385 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22389 cat >>confdefs.h <<_ACEOF
22390 #define LLVM_DATADIR "$LLVM_DATADIR"
22394 cat >>confdefs.h <<_ACEOF
22395 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22399 cat >>confdefs.h <<_ACEOF
22400 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22404 cat >>confdefs.h <<_ACEOF
22405 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22409 cat >>confdefs.h <<_ACEOF
22410 #define LLVM_INFODIR "$LLVM_INFODIR"
22414 cat >>confdefs.h <<_ACEOF
22415 #define LLVM_MANDIR "$LLVM_MANDIR"
22419 cat >>confdefs.h <<_ACEOF
22420 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22424 cat >>confdefs.h <<_ACEOF
22425 #define LLVM_HOSTTRIPLE "$host"
22429 # Determine which bindings to build.
22430 if test "$BINDINGS_TO_BUILD" = auto ; then
22431 BINDINGS_TO_BUILD=""
22432 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22433 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22436 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22439 # This isn't really configurey, but it avoids having to repeat the list in
22444 # Do any work necessary to ensure that bindings have what they need.
22445 binding_prereqs_failed=0
22446 for a_binding in $BINDINGS_TO_BUILD ; do
22447 case "$a_binding" in
22449 if test "x$OCAMLC" = x ; then
22450 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22451 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22452 binding_prereqs_failed=1
22454 if test "x$OCAMLDEP" = x ; then
22455 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22456 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22457 binding_prereqs_failed=1
22459 if test "x$OCAMLOPT" = x ; then
22460 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22461 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22463 if test "x$with_ocaml_libdir" != xauto ; then
22464 OCAML_LIBDIR=$with_ocaml_libdir
22467 ocaml_stdlib="`"$OCAMLC" -where`"
22468 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22470 # ocaml stdlib is beneath our prefix; use stdlib
22471 OCAML_LIBDIR=$ocaml_stdlib
22474 # ocaml stdlib is outside our prefix; use libdir/ocaml
22475 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22482 if test "$binding_prereqs_failed" = 1 ; then
22483 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22484 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22485 { (exit 1); exit 1; }; }
22488 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22489 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22490 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22491 echo $ECHO_N "(cached) $ECHO_C" >&6
22494 ac_cpp='$CXXCPP $CPPFLAGS'
22495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22499 oldcxxflags="$CXXFLAGS"
22500 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22501 cat >conftest.$ac_ext <<_ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h. */
22516 rm -f conftest.$ac_objext
22517 if { (ac_try="$ac_compile"
22518 case "(($ac_try" in
22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520 *) ac_try_echo=$ac_try;;
22522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523 (eval "$ac_compile") 2>conftest.er1
22525 grep -v '^ *+' conftest.er1 >conftest.err
22527 cat conftest.err >&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); } &&
22530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
22540 { ac_try='test -s conftest.$ac_objext'
22541 { (case "(($ac_try" in
22542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_try") 2>&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; }; then
22550 llvm_cv_cxx_visibility_inlines_hidden=yes
22552 echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22555 llvm_cv_cxx_visibility_inlines_hidden=no
22558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559 CXXFLAGS="$oldcxxflags"
22561 ac_cpp='$CPP $CPPFLAGS'
22562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22568 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22569 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22570 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22571 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22574 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22579 if test "$llvm_cv_link_use_r" = "yes" ; then
22586 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22587 RDYNAMIC="-Wl,-export-dynamic"
22594 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22601 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22603 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22605 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22607 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22609 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22612 ac_config_files="$ac_config_files Makefile.config"
22615 ac_config_files="$ac_config_files llvm.spec"
22618 ac_config_files="$ac_config_files docs/doxygen.cfg"
22620 if test -f ${srcdir}/tools/clang/README.txt; then
22621 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22625 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
22628 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
22631 ac_config_commands="$ac_config_commands setup"
22633 ac_config_commands="$ac_config_commands Makefile"
22636 ac_config_commands="$ac_config_commands Makefile.common"
22639 ac_config_commands="$ac_config_commands examples/Makefile"
22642 ac_config_commands="$ac_config_commands lib/Makefile"
22645 ac_config_commands="$ac_config_commands runtime/Makefile"
22648 ac_config_commands="$ac_config_commands test/Makefile"
22651 ac_config_commands="$ac_config_commands test/Makefile.tests"
22654 ac_config_commands="$ac_config_commands unittests/Makefile"
22657 ac_config_commands="$ac_config_commands tools/Makefile"
22660 ac_config_commands="$ac_config_commands utils/Makefile"
22663 ac_config_commands="$ac_config_commands projects/Makefile"
22666 ac_config_commands="$ac_config_commands bindings/Makefile"
22669 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22673 cat >confcache <<\_ACEOF
22674 # This file is a shell script that caches the results of configure
22675 # tests run on this system so they can be shared between configure
22676 # scripts and configure runs, see configure's option --config-cache.
22677 # It is not useful on other systems. If it contains results you don't
22678 # want to keep, you may remove or edit it.
22680 # config.status only pays attention to the cache file if you give it
22681 # the --recheck option to rerun configure.
22683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22685 # following values.
22689 # The following way of writing the cache mishandles newlines in values,
22690 # but we know of no workaround that is simple, portable, and efficient.
22691 # So, we kill variables containing newlines.
22692 # Ultrix sh set writes to stderr and can't be redirected directly,
22693 # and sets the high bit in the cache file unless we assign to the vars.
22695 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22696 eval ac_val=\$$ac_var
22700 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22701 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22704 _ | IFS | as_nl) ;; #(
22705 *) $as_unset $ac_var ;;
22711 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22712 *${as_nl}ac_space=\ *)
22713 # `set' does not quote correctly, so add quotes (double-quote
22714 # substitution turns \\\\ into \\, and sed turns \\ into \).
22717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22720 # `set' quotes correctly as required by POSIX, so do not add quotes.
22721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22730 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22732 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22734 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22735 if test -w "$cache_file"; then
22736 test "x$cache_file" != "x/dev/null" &&
22737 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22738 echo "$as_me: updating cache $cache_file" >&6;}
22739 cat confcache >$cache_file
22741 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22742 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22747 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22748 # Let make expand exec_prefix.
22749 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22751 DEFS=-DHAVE_CONFIG_H
22755 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22756 # 1. Remove the extension, and $U if already installed.
22757 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22758 ac_i=`echo "$ac_i" | sed "$ac_script"`
22759 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22760 # will be set to the directory where LIBOBJS objects are built.
22761 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22762 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22764 LIBOBJS=$ac_libobjs
22766 LTLIBOBJS=$ac_ltlibobjs
22769 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22770 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22771 Usually this means the macro was only invoked conditionally." >&5
22772 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22773 Usually this means the macro was only invoked conditionally." >&2;}
22774 { (exit 1); exit 1; }; }
22776 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22777 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22778 Usually this means the macro was only invoked conditionally." >&5
22779 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22780 Usually this means the macro was only invoked conditionally." >&2;}
22781 { (exit 1); exit 1; }; }
22784 : ${CONFIG_STATUS=./config.status}
22785 ac_clean_files_save=$ac_clean_files
22786 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22787 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22788 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22789 cat >$CONFIG_STATUS <<_ACEOF
22791 # Generated by $as_me.
22792 # Run this file to recreate the current configuration.
22793 # Compiler output produced by configure, useful for debugging
22794 # configure, is in config.log if it exists.
22797 ac_cs_recheck=false
22799 SHELL=\${CONFIG_SHELL-$SHELL}
22802 cat >>$CONFIG_STATUS <<\_ACEOF
22803 ## --------------------- ##
22804 ## M4sh Initialization. ##
22805 ## --------------------- ##
22807 # Be Bourne compatible
22808 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22811 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22812 # is contrary to our usage. Disable this feature.
22813 alias -g '${1+"$@"}'='"$@"'
22814 setopt NO_GLOB_SUBST
22816 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22818 BIN_SH=xpg4; export BIN_SH # for Tru64
22819 DUALCASE=1; export DUALCASE # for MKS sh
22823 # Avoid depending upon Character Ranges.
22824 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22825 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22826 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22827 as_cr_digits='0123456789'
22828 as_cr_alnum=$as_cr_Letters$as_cr_digits
22830 # The user is always right.
22831 if test "${PATH_SEPARATOR+set}" != set; then
22832 echo "#! /bin/sh" >conf$$.sh
22833 echo "exit 0" >>conf$$.sh
22835 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22843 # Support unset when possible.
22844 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22852 # We need space, tab and new line, in precisely that order. Quoting is
22853 # there to prevent editors from complaining about space-tab.
22854 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22855 # splitting by setting IFS to empty value.)
22860 # Find who we are. Look in the path if we contain no directory separator.
22862 *[\\/]* ) as_myself=$0 ;;
22863 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22864 for as_dir in $PATH
22867 test -z "$as_dir" && as_dir=.
22868 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22874 # We did not find ourselves, most probably we were run as `sh COMMAND'
22875 # in which case we are not to be found in the path.
22876 if test "x$as_myself" = x; then
22879 if test ! -f "$as_myself"; then
22880 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22881 { (exit 1); exit 1; }
22884 # Work around bugs in pre-3.0 UWIN ksh.
22885 for as_var in ENV MAIL MAILPATH
22886 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22894 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22895 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22896 LC_TELEPHONE LC_TIME
22898 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22899 eval $as_var=C; export $as_var
22901 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22905 # Required to use basename.
22906 if expr a : '\(a\)' >/dev/null 2>&1 &&
22907 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22913 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22914 as_basename=basename
22920 # Name of the executable.
22921 as_me=`$as_basename -- "$0" ||
22922 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22923 X"$0" : 'X\(//\)$' \| \
22924 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22926 sed '/^.*\/\([^/][^/]*\)\/*$/{
22945 as_lineno_1=$LINENO
22946 as_lineno_2=$LINENO
22947 test "x$as_lineno_1" != "x$as_lineno_2" &&
22948 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22950 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22951 # uniformly replaced by the line number. The first 'sed' inserts a
22952 # line-number line after each line using $LINENO; the second 'sed'
22953 # does the real work. The second script uses 'N' to pair each
22954 # line-number line with the line containing $LINENO, and appends
22955 # trailing '-' during substitution so that $LINENO is not a special
22956 # case at line end.
22957 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22958 # scripts with optimization help from Paolo Bonzini. Blame Lee
22959 # E. McMahon (1931-1989) for sed's syntax. :-)
22971 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22974 ' >$as_me.lineno &&
22975 chmod +x "$as_me.lineno" ||
22976 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22977 { (exit 1); exit 1; }; }
22979 # Don't try to exec as it changes $[0], causing all sort of problems
22980 # (the dirname of $[0] is not the place where we might find the
22981 # original and so on. Autoconf is especially sensitive to this).
22982 . "./$as_me.lineno"
22983 # Exit status is that of the last command.
22988 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22994 ECHO_C= ECHO_N= ECHO_T=
22995 case `echo -n x` in
22997 case `echo 'x\c'` in
22998 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23005 if expr a : '\(a\)' >/dev/null 2>&1 &&
23006 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23012 rm -f conf$$ conf$$.exe conf$$.file
23013 if test -d conf$$.dir; then
23014 rm -f conf$$.dir/conf$$.file
23020 if ln -s conf$$.file conf$$ 2>/dev/null; then
23022 # ... but there are two gotchas:
23023 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23024 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23025 # In both cases, we have to default to `cp -p'.
23026 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23028 elif ln conf$$.file conf$$ 2>/dev/null; then
23033 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23034 rmdir conf$$.dir 2>/dev/null
23036 if mkdir -p . 2>/dev/null; then
23039 test -d ./-p && rmdir ./-p
23043 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23044 # systems may use methods other than mode bits to determine executability.
23045 cat >conf$$.file <<_ASEOF
23049 chmod +x conf$$.file
23050 if test -x conf$$.file >/dev/null 2>&1; then
23051 as_executable_p="test -x"
23057 # Sed expression to map a string onto a valid CPP name.
23058 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23060 # Sed expression to map a string onto a valid variable name.
23061 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23066 # Save the log message, to keep $[0] and so on meaningful, and to
23067 # report actual input values of CONFIG_FILES etc. instead of their
23068 # values after options handling.
23070 This file was extended by llvm $as_me 3.0svn, which was
23071 generated by GNU Autoconf 2.60. Invocation command line was
23073 CONFIG_FILES = $CONFIG_FILES
23074 CONFIG_HEADERS = $CONFIG_HEADERS
23075 CONFIG_LINKS = $CONFIG_LINKS
23076 CONFIG_COMMANDS = $CONFIG_COMMANDS
23079 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23084 cat >>$CONFIG_STATUS <<_ACEOF
23085 # Files that config.status was made for.
23086 config_files="$ac_config_files"
23087 config_headers="$ac_config_headers"
23088 config_commands="$ac_config_commands"
23092 cat >>$CONFIG_STATUS <<\_ACEOF
23094 \`$as_me' instantiates files from templates according to the
23095 current configuration.
23097 Usage: $0 [OPTIONS] [FILE]...
23099 -h, --help print this help, then exit
23100 -V, --version print version number, then exit
23101 -q, --quiet do not print progress messages
23102 -d, --debug don't remove temporary files
23103 --recheck update $as_me by reconfiguring in the same conditions
23104 --file=FILE[:TEMPLATE]
23105 instantiate the configuration file FILE
23106 --header=FILE[:TEMPLATE]
23107 instantiate the configuration header FILE
23109 Configuration files:
23112 Configuration headers:
23115 Configuration commands:
23118 Report bugs to <bug-autoconf@gnu.org>."
23121 cat >>$CONFIG_STATUS <<_ACEOF
23123 llvm config.status 3.0svn
23124 configured by $0, generated by GNU Autoconf 2.60,
23125 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23127 Copyright (C) 2006 Free Software Foundation, Inc.
23128 This config.status script is free software; the Free Software Foundation
23129 gives unlimited permission to copy, distribute and modify it."
23136 cat >>$CONFIG_STATUS <<\_ACEOF
23137 # If no file are specified by the user, then we need to provide default
23138 # value. By we need to know if files were specified by the user.
23144 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23145 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23156 # Handling of the options.
23157 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23159 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23160 echo "$ac_cs_version"; exit ;;
23161 --debug | --debu | --deb | --de | --d | -d )
23163 --file | --fil | --fi | --f )
23165 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23166 ac_need_defaults=false;;
23167 --header | --heade | --head | --hea )
23169 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23170 ac_need_defaults=false;;
23172 # Conflict between --help and --header
23173 { echo "$as_me: error: ambiguous option: $1
23174 Try \`$0 --help' for more information." >&2
23175 { (exit 1); exit 1; }; };;
23176 --help | --hel | -h )
23177 echo "$ac_cs_usage"; exit ;;
23178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23179 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23182 # This is an error.
23183 -*) { echo "$as_me: error: unrecognized option: $1
23184 Try \`$0 --help' for more information." >&2
23185 { (exit 1); exit 1; }; } ;;
23187 *) ac_config_targets="$ac_config_targets $1"
23188 ac_need_defaults=false ;;
23194 ac_configure_extra_args=
23196 if $ac_cs_silent; then
23198 ac_configure_extra_args="$ac_configure_extra_args --silent"
23202 cat >>$CONFIG_STATUS <<_ACEOF
23203 if \$ac_cs_recheck; then
23204 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23205 CONFIG_SHELL=$SHELL
23206 export CONFIG_SHELL
23207 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23211 cat >>$CONFIG_STATUS <<\_ACEOF
23215 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23216 ## Running $as_me. ##
23222 cat >>$CONFIG_STATUS <<_ACEOF
23226 llvm_src="${srcdir}"
23230 cat >>$CONFIG_STATUS <<\_ACEOF
23232 # Handling of arguments.
23233 for ac_config_target in $ac_config_targets
23235 case $ac_config_target in
23236 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23237 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23238 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23239 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23240 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23241 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23242 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23243 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23244 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23245 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23246 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
23247 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23248 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23249 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23250 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23251 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23252 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23253 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23254 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23255 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23256 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23257 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23258 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23259 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23260 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23261 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23262 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23264 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23265 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23266 { (exit 1); exit 1; }; };;
23271 # If the user did not use the arguments to specify the items to instantiate,
23272 # then the envvar interface is used. Set only those that are not.
23273 # We use the long form for the default assignment because of an extremely
23274 # bizarre bug on SunOS 4.1.3.
23275 if $ac_need_defaults; then
23276 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23277 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23278 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23281 # Have a temporary directory for convenience. Make it in the build tree
23282 # simply because there is no reason against having it here, and in addition,
23283 # creating and moving files from /tmp can sometimes cause problems.
23284 # Hook for its removal unless debugging.
23285 # Note that there is a small window in which the directory will not be cleaned:
23286 # after its creation but before its name has been assigned to `$tmp'.
23290 trap 'exit_status=$?
23291 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23293 trap '{ (exit 1); exit 1; }' 1 2 13 15
23295 # Create a (secure) tmp directory for tmp files.
23298 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23299 test -n "$tmp" && test -d "$tmp"
23302 tmp=./conf$$-$RANDOM
23303 (umask 077 && mkdir "$tmp")
23306 echo "$me: cannot create a temporary directory in ." >&2
23307 { (exit 1); exit 1; }
23311 # Set up the sed scripts for CONFIG_FILES section.
23314 # No need to generate the scripts if there are no CONFIG_FILES.
23315 # This happens for instance when ./config.status config.h
23316 if test -n "$CONFIG_FILES"; then
23323 for ac_last_try in false false false false false :; do
23324 cat >conf$$subs.sed <<_ACEOF
23325 SHELL!$SHELL$ac_delim
23326 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23327 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23328 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23329 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23330 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23331 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23332 exec_prefix!$exec_prefix$ac_delim
23333 prefix!$prefix$ac_delim
23334 program_transform_name!$program_transform_name$ac_delim
23335 bindir!$bindir$ac_delim
23336 sbindir!$sbindir$ac_delim
23337 libexecdir!$libexecdir$ac_delim
23338 datarootdir!$datarootdir$ac_delim
23339 datadir!$datadir$ac_delim
23340 sysconfdir!$sysconfdir$ac_delim
23341 sharedstatedir!$sharedstatedir$ac_delim
23342 localstatedir!$localstatedir$ac_delim
23343 includedir!$includedir$ac_delim
23344 oldincludedir!$oldincludedir$ac_delim
23345 docdir!$docdir$ac_delim
23346 infodir!$infodir$ac_delim
23347 htmldir!$htmldir$ac_delim
23348 dvidir!$dvidir$ac_delim
23349 pdfdir!$pdfdir$ac_delim
23350 psdir!$psdir$ac_delim
23351 libdir!$libdir$ac_delim
23352 localedir!$localedir$ac_delim
23353 mandir!$mandir$ac_delim
23354 DEFS!$DEFS$ac_delim
23355 ECHO_C!$ECHO_C$ac_delim
23356 ECHO_N!$ECHO_N$ac_delim
23357 ECHO_T!$ECHO_T$ac_delim
23358 LIBS!$LIBS$ac_delim
23359 build_alias!$build_alias$ac_delim
23360 host_alias!$host_alias$ac_delim
23361 target_alias!$target_alias$ac_delim
23362 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23363 subdirs!$subdirs$ac_delim
23364 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23365 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23366 build!$build$ac_delim
23367 build_cpu!$build_cpu$ac_delim
23368 build_vendor!$build_vendor$ac_delim
23369 build_os!$build_os$ac_delim
23370 host!$host$ac_delim
23371 host_cpu!$host_cpu$ac_delim
23372 host_vendor!$host_vendor$ac_delim
23373 host_os!$host_os$ac_delim
23374 target!$target$ac_delim
23375 target_cpu!$target_cpu$ac_delim
23376 target_vendor!$target_vendor$ac_delim
23377 target_os!$target_os$ac_delim
23379 HOST_OS!$HOST_OS$ac_delim
23380 TARGET_OS!$TARGET_OS$ac_delim
23381 LINKALL!$LINKALL$ac_delim
23382 NOLINKALL!$NOLINKALL$ac_delim
23383 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23384 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23385 ARCH!$ARCH$ac_delim
23386 ENDIAN!$ENDIAN$ac_delim
23388 CFLAGS!$CFLAGS$ac_delim
23389 LDFLAGS!$LDFLAGS$ac_delim
23390 CPPFLAGS!$CPPFLAGS$ac_delim
23391 ac_ct_CC!$ac_ct_CC$ac_delim
23392 EXEEXT!$EXEEXT$ac_delim
23393 OBJEXT!$OBJEXT$ac_delim
23395 GREP!$GREP$ac_delim
23396 EGREP!$EGREP$ac_delim
23397 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23398 BUILD_CC!$BUILD_CC$ac_delim
23399 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23400 BUILD_CXX!$BUILD_CXX$ac_delim
23401 CVSBUILD!$CVSBUILD$ac_delim
23402 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23403 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23404 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23405 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23406 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23407 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23408 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23410 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23411 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23412 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23413 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23414 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23415 ENABLE_PIC!$ENABLE_PIC$ac_delim
23416 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23417 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23418 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23419 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23420 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23421 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23424 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23426 elif $ac_last_try; then
23427 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23428 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23429 { (exit 1); exit 1; }; }
23431 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23435 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23436 if test -n "$ac_eof"; then
23437 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23438 ac_eof=`expr $ac_eof + 1`
23441 cat >>$CONFIG_STATUS <<_ACEOF
23442 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23446 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23447 s/^/s,@/; s/!/@,|#_!!_#|/
23450 s/'"$ac_delim"'$/,g/; t
23452 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23453 ' >>$CONFIG_STATUS <conf$$subs.sed
23454 rm -f conf$$subs.sed
23455 cat >>$CONFIG_STATUS <<_ACEOF
23461 for ac_last_try in false false false false false :; do
23462 cat >conf$$subs.sed <<_ACEOF
23463 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23464 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23465 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23466 CLANGPATH!$CLANGPATH$ac_delim
23467 CLANGXXPATH!$CLANGXXPATH$ac_delim
23468 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23469 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23470 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23471 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23472 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23474 CXXFLAGS!$CXXFLAGS$ac_delim
23475 ac_ct_CXX!$ac_ct_CXX$ac_delim
23477 ifGNUmake!$ifGNUmake$ac_delim
23478 LN_S!$LN_S$ac_delim
23481 DATE!$DATE$ac_delim
23482 FIND!$FIND$ac_delim
23483 MKDIR!$MKDIR$ac_delim
23485 RANLIB!$RANLIB$ac_delim
23490 BINPWD!$BINPWD$ac_delim
23491 GRAPHVIZ!$GRAPHVIZ$ac_delim
23494 NEATO!$NEATO$ac_delim
23495 TWOPI!$TWOPI$ac_delim
23496 CIRCO!$CIRCO$ac_delim
23498 DOTTY!$DOTTY$ac_delim
23499 XDOT_PY!$XDOT_PY$ac_delim
23500 PERL!$PERL$ac_delim
23501 HAVE_PERL!$HAVE_PERL$ac_delim
23502 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23503 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23504 INSTALL_DATA!$INSTALL_DATA$ac_delim
23505 BZIP2!$BZIP2$ac_delim
23507 DOXYGEN!$DOXYGEN$ac_delim
23508 GROFF!$GROFF$ac_delim
23509 GZIPBIN!$GZIPBIN$ac_delim
23510 POD2HTML!$POD2HTML$ac_delim
23511 POD2MAN!$POD2MAN$ac_delim
23512 PDFROFF!$PDFROFF$ac_delim
23513 RUNTEST!$RUNTEST$ac_delim
23514 TCLSH!$TCLSH$ac_delim
23516 OCAMLC!$OCAMLC$ac_delim
23517 OCAMLOPT!$OCAMLOPT$ac_delim
23518 OCAMLDEP!$OCAMLDEP$ac_delim
23519 OCAMLDOC!$OCAMLDOC$ac_delim
23521 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23522 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23523 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23524 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23525 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23526 LIBADD_DL!$LIBADD_DL$ac_delim
23527 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23528 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23529 LLVMGCC!$LLVMGCC$ac_delim
23530 LLVMGXX!$LLVMGXX$ac_delim
23531 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23532 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23533 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23534 USE_UDIS86!$USE_UDIS86$ac_delim
23535 USE_OPROFILE!$USE_OPROFILE$ac_delim
23536 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23537 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23538 MMAP_FILE!$MMAP_FILE$ac_delim
23539 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23540 LLVMCC1!$LLVMCC1$ac_delim
23541 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23542 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23543 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23544 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23545 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23546 SHLIBEXT!$SHLIBEXT$ac_delim
23547 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23548 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23549 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23550 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23551 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23552 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23553 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23554 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23555 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23556 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23557 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23558 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23559 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23562 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23564 elif $ac_last_try; then
23565 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23566 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23567 { (exit 1); exit 1; }; }
23569 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23573 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23574 if test -n "$ac_eof"; then
23575 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23576 ac_eof=`expr $ac_eof + 1`
23579 cat >>$CONFIG_STATUS <<_ACEOF
23580 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23584 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23585 s/^/s,@/; s/!/@,|#_!!_#|/
23588 s/'"$ac_delim"'$/,g/; t
23590 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23591 ' >>$CONFIG_STATUS <conf$$subs.sed
23592 rm -f conf$$subs.sed
23593 cat >>$CONFIG_STATUS <<_ACEOF
23599 for ac_last_try in false false false false false :; do
23600 cat >conf$$subs.sed <<_ACEOF
23601 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23602 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23603 RPATH!$RPATH$ac_delim
23604 RDYNAMIC!$RDYNAMIC$ac_delim
23605 LIBOBJS!$LIBOBJS$ac_delim
23606 LTLIBOBJS!$LTLIBOBJS$ac_delim
23609 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23611 elif $ac_last_try; then
23612 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23613 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23614 { (exit 1); exit 1; }; }
23616 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23620 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23621 if test -n "$ac_eof"; then
23622 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23623 ac_eof=`expr $ac_eof + 1`
23626 cat >>$CONFIG_STATUS <<_ACEOF
23627 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23628 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23631 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23632 s/^/s,@/; s/!/@,|#_!!_#|/
23635 s/'"$ac_delim"'$/,g/; t
23637 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23638 ' >>$CONFIG_STATUS <conf$$subs.sed
23639 rm -f conf$$subs.sed
23640 cat >>$CONFIG_STATUS <<_ACEOF
23647 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23648 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23649 # trailing colons and then remove the whole line if VPATH becomes empty
23650 # (actually we leave an empty line to preserve line numbers).
23651 if test "x$srcdir" = x.; then
23652 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23653 s/:*\$(srcdir):*/:/
23654 s/:*\${srcdir}:*/:/
23656 s/^\([^=]*=[ ]*\):*/\1/
23662 cat >>$CONFIG_STATUS <<\_ACEOF
23663 fi # test -n "$CONFIG_FILES"
23666 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23669 :[FHLC]) ac_mode=$ac_tag; continue;;
23671 case $ac_mode$ac_tag in
23673 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23674 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23675 { (exit 1); exit 1; }; };;
23676 :[FH]-) ac_tag=-:-;;
23677 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23694 -) ac_f="$tmp/stdin";;
23695 *) # Look for the file first in the build tree, then in the source tree
23696 # (if the path is not absolute). The absolute path cannot be DOS-style,
23697 # because $ac_f cannot contain `:'.
23701 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23703 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23704 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23705 { (exit 1); exit 1; }; };;
23707 ac_file_inputs="$ac_file_inputs $ac_f"
23710 # Let's still pretend it is `configure' which instantiates (i.e., don't
23711 # use $as_me), people would be surprised to read:
23712 # /* config.h. Generated by config.status. */
23713 configure_input="Generated from "`IFS=:
23714 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23715 if test x"$ac_file" != x-; then
23716 configure_input="$ac_file. $configure_input"
23717 { echo "$as_me:$LINENO: creating $ac_file" >&5
23718 echo "$as_me: creating $ac_file" >&6;}
23722 *:-:* | *:-) cat >"$tmp/stdin";;
23727 ac_dir=`$as_dirname -- "$ac_file" ||
23728 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23729 X"$ac_file" : 'X\(//\)[^/]' \| \
23730 X"$ac_file" : 'X\(//\)$' \| \
23731 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23737 /^X\(\/\/\)[^/].*/{
23752 -*) as_dir=./$as_dir;;
23754 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23758 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23759 *) as_qdir=$as_dir;;
23761 as_dirs="'$as_qdir' $as_dirs"
23762 as_dir=`$as_dirname -- "$as_dir" ||
23763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23764 X"$as_dir" : 'X\(//\)[^/]' \| \
23765 X"$as_dir" : 'X\(//\)$' \| \
23766 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23772 /^X\(\/\/\)[^/].*/{
23785 test -d "$as_dir" && break
23787 test -z "$as_dirs" || eval "mkdir $as_dirs"
23788 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23789 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23790 { (exit 1); exit 1; }; }; }
23794 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23796 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23797 # A ".." for each directory in $ac_dir_suffix.
23798 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23799 case $ac_top_builddir_sub in
23800 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23801 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23804 ac_abs_top_builddir=$ac_pwd
23805 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23806 # for backward compatibility:
23807 ac_top_builddir=$ac_top_build_prefix
23810 .) # We are building in place.
23812 ac_top_srcdir=$ac_top_builddir_sub
23813 ac_abs_top_srcdir=$ac_pwd ;;
23814 [\\/]* | ?:[\\/]* ) # Absolute name.
23815 ac_srcdir=$srcdir$ac_dir_suffix;
23816 ac_top_srcdir=$srcdir
23817 ac_abs_top_srcdir=$srcdir ;;
23818 *) # Relative name.
23819 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23820 ac_top_srcdir=$ac_top_build_prefix$srcdir
23821 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23823 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23833 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23834 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23838 cat >>$CONFIG_STATUS <<\_ACEOF
23839 # If the template does not know about datarootdir, expand it.
23840 # FIXME: This hack should be removed a few years after 2.60.
23841 ac_datarootdir_hack=; ac_datarootdir_seen=
23843 case `sed -n '/datarootdir/ {
23852 ' $ac_file_inputs` in
23853 *datarootdir*) ac_datarootdir_seen=yes;;
23854 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23855 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23856 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23858 cat >>$CONFIG_STATUS <<_ACEOF
23859 ac_datarootdir_hack='
23860 s&@datadir@&$datadir&g
23861 s&@docdir@&$docdir&g
23862 s&@infodir@&$infodir&g
23863 s&@localedir@&$localedir&g
23864 s&@mandir@&$mandir&g
23865 s&\\\${datarootdir}&$datarootdir&g' ;;
23869 # Neutralize VPATH when `$srcdir' = `.'.
23870 # Shell code in configure.ac might set extrasub.
23871 # FIXME: do we really want to maintain this feature?
23872 cat >>$CONFIG_STATUS <<_ACEOF
23876 cat >>$CONFIG_STATUS <<\_ACEOF
23878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23879 s&@configure_input@&$configure_input&;t t
23880 s&@top_builddir@&$ac_top_builddir_sub&;t t
23881 s&@srcdir@&$ac_srcdir&;t t
23882 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23883 s&@top_srcdir@&$ac_top_srcdir&;t t
23884 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23885 s&@builddir@&$ac_builddir&;t t
23886 s&@abs_builddir@&$ac_abs_builddir&;t t
23887 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23888 s&@INSTALL@&$ac_INSTALL&;t t
23889 $ac_datarootdir_hack
23890 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23892 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23893 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23894 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23895 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23896 which seems to be undefined. Please make sure it is defined." >&5
23897 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23898 which seems to be undefined. Please make sure it is defined." >&2;}
23902 -) cat "$tmp/out"; rm -f "$tmp/out";;
23903 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23912 # Transform confdefs.h into a sed script `conftest.defines', that
23913 # substitutes the proper values into config.h.in to produce config.h.
23914 rm -f conftest.defines conftest.tail
23915 # First, append a space to every undef/define line, to ease matching.
23916 echo 's/$/ /' >conftest.defines
23917 # Then, protect against being on the right side of a sed subst, or in
23918 # an unquoted here document, in config.status. If some macros were
23919 # called several times there might be several #defines for the same
23920 # symbol, which is useless. But do not sort them, since the last
23921 # AC_DEFINE must be honored.
23922 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23923 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23924 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23925 # PARAMS is the parameter list in the macro definition--in most cases, it's
23926 # just an empty string.
23927 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23928 ac_dB='\\)[ (].*,\\1define\\2'
23936 s/^[ ]*#[ ]*define[ ][ ]*//
23941 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23942 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23943 ' >>conftest.defines
23945 # Remove the space that was appended to ease matching.
23946 # Then replace #undef with comments. This is necessary, for
23947 # example, in the case of _POSIX_SOURCE, which is predefined and required
23948 # on some systems where configure will not decide to define it.
23949 # (The regexp can be short, since the line contains either #define or #undef.)
23951 s,^[ #]*u.*,/* & */,' >>conftest.defines
23953 # Break up conftest.defines:
23954 ac_max_sed_lines=50
23956 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23957 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23958 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23960 ac_in='$ac_file_inputs'
23961 ac_out='"$tmp/out1"'
23962 ac_nxt='"$tmp/out2"'
23966 # Write a here document:
23967 cat >>$CONFIG_STATUS <<_ACEOF
23968 # First, check the format of the line:
23969 cat >"\$tmp/defines.sed" <<\\CEOF
23970 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23971 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23975 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23977 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23978 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23979 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23980 grep . conftest.tail >/dev/null || break
23981 rm -f conftest.defines
23982 mv conftest.tail conftest.defines
23984 rm -f conftest.defines conftest.tail
23986 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23987 cat >>$CONFIG_STATUS <<\_ACEOF
23988 if test x"$ac_file" != x-; then
23989 echo "/* $configure_input */" >"$tmp/config.h"
23990 cat "$ac_result" >>"$tmp/config.h"
23991 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23992 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23993 echo "$as_me: $ac_file is unchanged" >&6;}
23996 mv "$tmp/config.h" $ac_file
23999 echo "/* $configure_input */"
24005 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24006 echo "$as_me: executing $ac_file commands" >&6;}
24011 case $ac_file$ac_mode in
24012 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
24013 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
24014 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
24015 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24016 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24017 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24018 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24019 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24020 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24021 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24022 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24023 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24024 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24025 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24026 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24027 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24028 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24029 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24030 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24031 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24032 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24033 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24034 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24035 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24036 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24037 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24043 { (exit 0); exit 0; }
24045 chmod +x $CONFIG_STATUS
24046 ac_clean_files=$ac_clean_files_save
24049 # configure is writing to config.log, and then calls config.status.
24050 # config.status does its own redirection, appending to config.log.
24051 # Unfortunately, on DOS this fails, as config.log is still kept open
24052 # by configure, so config.status won't be able to write to it; its
24053 # output is simply discarded. So we exec the FD to /dev/null,
24054 # effectively closing config.log, so it can be properly (re)opened and
24055 # appended to by config.status. When coming back to configure, we
24056 # need to make the FD available again.
24057 if test "$no_create" != yes; then
24059 ac_config_status_args=
24060 test "$silent" = yes &&
24061 ac_config_status_args="$ac_config_status_args --quiet"
24063 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24065 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24066 # would make configure fail if this is the last instruction.
24067 $ac_cs_success || { (exit 1); exit 1; }
24071 # CONFIG_SUBDIRS section.
24073 if test "$no_recursion" != yes; then
24075 # Remove --cache-file and --srcdir arguments so they do not pile up.
24076 ac_sub_configure_args=
24078 eval "set x $ac_configure_args"
24082 if test -n "$ac_prev"; then
24087 -cache-file | --cache-file | --cache-fil | --cache-fi \
24088 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24089 ac_prev=cache_file ;;
24090 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24091 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24094 --config-cache | -C)
24096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24106 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24108 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24112 # Always prepend --prefix to ensure using the same prefix
24113 # in subdir configurations.
24114 ac_arg="--prefix=$prefix"
24116 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24118 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24121 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24123 # Do not complain, so a configure script can configure whichever
24124 # parts of a large source tree are present.
24125 test -d "$srcdir/$ac_dir" || continue
24127 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24128 echo "$as_me:$LINENO: $ac_msg" >&5
24132 -*) as_dir=./$as_dir;;
24134 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24138 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24139 *) as_qdir=$as_dir;;
24141 as_dirs="'$as_qdir' $as_dirs"
24142 as_dir=`$as_dirname -- "$as_dir" ||
24143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24144 X"$as_dir" : 'X\(//\)[^/]' \| \
24145 X"$as_dir" : 'X\(//\)$' \| \
24146 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24152 /^X\(\/\/\)[^/].*/{
24165 test -d "$as_dir" && break
24167 test -z "$as_dirs" || eval "mkdir $as_dirs"
24168 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24169 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24170 { (exit 1); exit 1; }; }; }
24174 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24176 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24177 # A ".." for each directory in $ac_dir_suffix.
24178 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24179 case $ac_top_builddir_sub in
24180 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24181 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24184 ac_abs_top_builddir=$ac_pwd
24185 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24186 # for backward compatibility:
24187 ac_top_builddir=$ac_top_build_prefix
24190 .) # We are building in place.
24192 ac_top_srcdir=$ac_top_builddir_sub
24193 ac_abs_top_srcdir=$ac_pwd ;;
24194 [\\/]* | ?:[\\/]* ) # Absolute name.
24195 ac_srcdir=$srcdir$ac_dir_suffix;
24196 ac_top_srcdir=$srcdir
24197 ac_abs_top_srcdir=$srcdir ;;
24198 *) # Relative name.
24199 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24200 ac_top_srcdir=$ac_top_build_prefix$srcdir
24201 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24203 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24208 # Check for guested configure; otherwise get Cygnus style configure.
24209 if test -f "$ac_srcdir/configure.gnu"; then
24210 ac_sub_configure=$ac_srcdir/configure.gnu
24211 elif test -f "$ac_srcdir/configure"; then
24212 ac_sub_configure=$ac_srcdir/configure
24213 elif test -f "$ac_srcdir/configure.in"; then
24214 # This should be Cygnus configure.
24215 ac_sub_configure=$ac_aux_dir/configure
24217 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24218 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24222 # The recursion is here.
24223 if test -n "$ac_sub_configure"; then
24224 # Make the cache file name correct relative to the subdirectory.
24225 case $cache_file in
24226 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24227 *) # Relative name.
24228 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24231 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24232 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24233 # The eval makes quoting arguments work.
24234 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24235 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24236 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24237 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24238 { (exit 1); exit 1; }; }