2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.0svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='3.0svn'
565 PACKAGE_STRING='llvm 3.0svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
685 ENABLE_EXPENSIVE_CHECKS
701 LLVM_ENUM_ASM_PRINTERS
702 LLVM_ENUM_ASM_PARSERS
703 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
772 NO_MISSING_FIELD_INITIALIZERS
784 LLVMCC_DISABLEOPT_FLAGS
800 ENABLE_VISIBILITY_INLINES_HIDDEN
806 ac_precious_vars='build_alias
817 ac_subdirs_all='projects/llvm-gcc
821 projects/llvm-poolalloc
824 projects/llvm-stacker
832 # Initialize some variables set by options.
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
844 program_transform_name=s,x,x,
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 -enable-* | --enable-*)
952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
973 -help | --help | --hel | --he | -h)
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1122 -site=* | --site=* | --sit=*)
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
1167 # Obsolete; use --with-x.
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
1215 # Be sure to have absolute directory names.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1332 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of llvm 3.0svn:";;
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-polly Use polly if available (default is YES)
1406 --enable-optimized Compile with optimizations enabled (default is NO)
1407 --enable-profiling Compile with profiling enabled (default is NO)
1408 --enable-assertions Compile with assertion checks enabled (default is
1410 --enable-expensive-checks
1411 Compile with expensive debug checks enabled (default
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
1417 --enable-jit Enable Just In Time Compiling (default is YES)
1418 --enable-docs Build documents (default is YES)
1419 --enable-doxygen Build doxygen documentation (default is NO)
1420 --enable-threads Use threads if available (default is YES)
1421 --enable-pthreads Use pthreads if available (default is YES)
1422 --enable-pic Build LLVM with Position Independent Code (default
1424 --enable-shared Build a shared library and link tools against it
1426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is YES)
1428 --enable-timestamps Enable embedding timestamp information in build
1430 --enable-targets Build specific host targets: all or
1431 target1,target2,... Valid targets are: host, x86,
1432 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1435 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1437 --enable-bindings Build specific language bindings:
1438 all,auto,none,{binding-name} (default=auto)
1439 --enable-libffi Check for the presence of libffi (default is NO)
1440 --enable-ltdl-install install libltdl
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1445 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1447 --with-llvmgcc Specify location of llvm-gcc driver (default
1449 --with-llvmgxx Specify location of llvm-g++ driver (default
1451 --with-clang Specify location of clang compiler (default is
1453 --with-built-clang Use the compiled Clang as the LLVM compiler
1455 --with-optimize-option Select the compiler options to use for optimized
1457 --with-extra-options Specify additional options to compile LLVM with
1458 --with-extra-ld-options Specify additional options to link LLVM with
1459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1464 --with-c-include-dirs Colon separated list of directories clang will
1466 --with-cxx-include-root Directory with the libstdc++ headers.
1467 --with-cxx-include-arch Architecture of the libstdc++ headers.
1468 --with-cxx-include-32bit-dir
1469 32 bit multilib dir.
1470 --with-cxx-include-64bit-dir
1471 64 bit multilib directory.
1472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
1474 --with-tclinclude directory where tcl headers are
1475 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1476 clang, or none; default=check)
1477 --with-udis86=<path> Use udis86 external x86 disassembler library
1478 --with-oprofile=<prefix>
1479 Tell OProfile >= 0.9.4 how to symbolize JIT output
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1489 CXX C++ compiler command
1490 CXXFLAGS C++ compiler flags
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to <llvmbugs@cs.uiuc.edu>.
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503 test -d "$ac_dir" || continue
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1523 .) # We are building in place.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1556 llvm configure 3.0svn
1557 generated by GNU Autoconf 2.60
1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1564 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1568 cat >config.log <<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1572 It was created by llvm $as_me 3.0svn, which was
1573 generated by GNU Autoconf 2.60. Invocation command line was
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1594 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1598 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 test -z "$as_dir" && as_dir=.
1609 echo "PATH: $as_dir"
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1633 ac_must_keep_next=false
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1649 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1650 if test $ac_must_keep_next = true; then
1651 ac_must_keep_next=false # Got value, back to normal.
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 -* ) ac_must_keep_next=true ;;
1665 ac_configure_args="$ac_configure_args '$ac_arg'"
1670 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log. We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1689 # The following way of writing the cache mishandles newlines in values,
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700 _ | IFS | as_nl) ;; #(
1701 *) $as_unset $ac_var ;;
1706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
1709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1726 for ac_var in $ac_subst_vars
1728 eval ac_val=\$$ac_var
1730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732 echo "$ac_var='\''$ac_val'\''"
1736 if test -n "$ac_subst_files"; then
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1743 for ac_var in $ac_subst_files
1745 eval ac_val=\$$ac_var
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 echo "$ac_var='\''$ac_val'\''"
1754 if test -s confdefs.h; then
1764 test "$ac_signal" != 0 &&
1765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
1768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772 for ac_signal in 1 2 13 15; do
1773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest* confdefs.h
1780 # Predefined preprocessor variables.
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810 set x "$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE; then
1812 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1814 set x "$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
1820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823 sed 's/^/| /' "$ac_site_file" >&5
1828 if test -r "$cache_file"; then
1829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1835 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836 *) . "./$cache_file";;
1840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1845 # Check that the precious variables saved in the cache have kept the same
1847 ac_cache_corrupted=false
1848 for ac_var in $ac_precious_vars; do
1849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850 eval ac_new_set=\$ac_env_${ac_var}_set
1851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852 eval ac_new_val=\$ac_env_${ac_var}_value
1853 case $ac_old_set,$ac_new_set in
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
1865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868 echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870 echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted=:
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 *) ac_arg=$ac_var=$ac_new_val ;;
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1886 if $ac_cache_corrupted; then
1887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1935 for ac_dir in autoconf "$srcdir"/autoconf; do
1936 if test -f "$ac_dir/install-sh"; then
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1940 elif test -f "$ac_dir/install.sh"; then
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1944 elif test -f "$ac_dir/shtool"; then
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1950 if test -z "$ac_aux_dir"; then
1951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953 { (exit 1); exit 1; }; }
1956 # These three variables are undocumented and unsupported,
1957 # and are intended to be withdrawn in a future Autoconf release.
1958 # They can cause serious problems if a builder's source tree is in a directory
1959 # whose full name contains unusual characters.
1960 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1966 if test ${srcdir} != "." ; then
1967 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1968 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1969 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1970 { (exit 1); exit 1; }; }
1976 if test -d ${srcdir}/projects/llvm-gcc ; then
1977 subdirs="$subdirs projects/llvm-gcc"
1981 if test -d ${srcdir}/projects/test-suite ; then
1982 subdirs="$subdirs projects/test-suite"
1986 if test -d ${srcdir}/projects/llvm-test ; then
1987 subdirs="$subdirs projects/llvm-test"
1991 if test -d ${srcdir}/projects/poolalloc ; then
1992 subdirs="$subdirs projects/poolalloc"
1996 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1997 subdirs="$subdirs projects/llvm-poolalloc"
2001 for i in `ls ${srcdir}/projects`
2003 if test -d ${srcdir}/projects/${i} ; then
2005 sample) subdirs="$subdirs projects/sample"
2007 privbracket) subdirs="$subdirs projects/privbracket"
2009 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2011 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2013 llvm-java) subdirs="$subdirs projects/llvm-java"
2015 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2017 safecode) subdirs="$subdirs projects/safecode"
2019 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2027 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2028 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2034 # Check whether --enable-polly was given.
2035 if test "${enable_polly+set}" = set; then
2036 enableval=$enable_polly;
2041 case "$enableval" in
2046 default) ENABLE_POLLY=1
2048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2049 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2050 { (exit 1); exit 1; }; } ;;
2054 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2057 subdirs="$subdirs tools/polly"
2062 # Make sure we can run config.sub.
2063 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2064 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2065 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2066 { (exit 1); exit 1; }; }
2068 { echo "$as_me:$LINENO: checking build system type" >&5
2069 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2070 if test "${ac_cv_build+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 ac_build_alias=$build_alias
2074 test "x$ac_build_alias" = x &&
2075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2076 test "x$ac_build_alias" = x &&
2077 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2078 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2079 { (exit 1); exit 1; }; }
2080 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2082 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2083 { (exit 1); exit 1; }; }
2086 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2087 echo "${ECHO_T}$ac_cv_build" >&6; }
2088 case $ac_cv_build in
2090 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2091 echo "$as_me: error: invalid value of canonical build" >&2;}
2092 { (exit 1); exit 1; }; };;
2095 ac_save_IFS=$IFS; IFS='-'
2101 # Remember, the first character of IFS is used to create $*,
2102 # except with old shells:
2105 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2108 { echo "$as_me:$LINENO: checking host system type" >&5
2109 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2110 if test "${ac_cv_host+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 if test "x$host_alias" = x; then
2114 ac_cv_host=$ac_cv_build
2116 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2117 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2118 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2119 { (exit 1); exit 1; }; }
2123 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2124 echo "${ECHO_T}$ac_cv_host" >&6; }
2127 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2128 echo "$as_me: error: invalid value of canonical host" >&2;}
2129 { (exit 1); exit 1; }; };;
2132 ac_save_IFS=$IFS; IFS='-'
2138 # Remember, the first character of IFS is used to create $*,
2139 # except with old shells:
2142 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2145 { echo "$as_me:$LINENO: checking target system type" >&5
2146 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2147 if test "${ac_cv_target+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 if test "x$target_alias" = x; then
2151 ac_cv_target=$ac_cv_host
2153 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2154 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2155 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2156 { (exit 1); exit 1; }; }
2160 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2161 echo "${ECHO_T}$ac_cv_target" >&6; }
2162 case $ac_cv_target in
2164 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2165 echo "$as_me: error: invalid value of canonical target" >&2;}
2166 { (exit 1); exit 1; }; };;
2168 target=$ac_cv_target
2169 ac_save_IFS=$IFS; IFS='-'
2175 # Remember, the first character of IFS is used to create $*,
2176 # except with old shells:
2179 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2182 # The aliases save the names the user supplied, while $host etc.
2183 # will get canonicalized.
2184 test -n "$target_alias" &&
2185 test "$program_prefix$program_suffix$program_transform_name" = \
2187 program_prefix=${target_alias}-
2189 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2190 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2191 if test "${llvm_cv_os_type+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198 llvm_cv_os_type="AIX"
2199 llvm_cv_platform_type="Unix" ;;
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="IRIX"
2204 llvm_cv_platform_type="Unix" ;;
2206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208 llvm_cv_os_type="Cygwin"
2209 llvm_cv_platform_type="Unix" ;;
2211 llvm_cv_link_all_option="-Wl,-all_load"
2212 llvm_cv_no_link_all_option="-Wl,-noall_load"
2213 llvm_cv_os_type="Darwin"
2214 llvm_cv_platform_type="Unix" ;;
2216 llvm_cv_link_all_option="-Wl,-all_load"
2217 llvm_cv_no_link_all_option="-Wl,-noall_load"
2218 llvm_cv_os_type="Minix"
2219 llvm_cv_platform_type="Unix" ;;
2221 llvm_cv_link_all_option="-Wl,--whole-archive"
2222 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2223 llvm_cv_os_type="FreeBSD"
2224 llvm_cv_platform_type="Unix" ;;
2226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228 llvm_cv_os_type="OpenBSD"
2229 llvm_cv_platform_type="Unix" ;;
2231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233 llvm_cv_os_type="NetBSD"
2234 llvm_cv_platform_type="Unix" ;;
2236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238 llvm_cv_os_type="DragonFly"
2239 llvm_cv_platform_type="Unix" ;;
2241 llvm_cv_link_all_option="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2243 llvm_cv_os_type="HP-UX"
2244 llvm_cv_platform_type="Unix" ;;
2246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2248 llvm_cv_os_type="Interix"
2249 llvm_cv_platform_type="Unix" ;;
2251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253 llvm_cv_os_type="Linux"
2254 llvm_cv_platform_type="Unix" ;;
2256 llvm_cv_link_all_option="-Wl,-z,allextract"
2257 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2258 llvm_cv_os_type="SunOS"
2259 llvm_cv_platform_type="Unix" ;;
2261 llvm_cv_link_all_option="-Wl,-z,allextract"
2262 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2263 llvm_cv_os_type="AuroraUX"
2264 llvm_cv_platform_type="Unix" ;;
2266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268 llvm_cv_os_type="Win32"
2269 llvm_cv_platform_type="Win32" ;;
2271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273 llvm_cv_os_type="MingW"
2274 llvm_cv_platform_type="Win32" ;;
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="Haiku"
2279 llvm_cv_platform_type="Unix" ;;
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="Freestanding"
2284 llvm_cv_platform_type="Unix" ;;
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="Freestanding"
2289 llvm_cv_platform_type="Unix" ;;
2291 llvm_cv_link_all_option=""
2292 llvm_cv_no_link_all_option=""
2293 llvm_cv_os_type="Unknown"
2294 llvm_cv_platform_type="Unknown" ;;
2297 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2298 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2300 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2301 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2302 if test "${llvm_cv_target_os_type+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 llvm_cv_target_os_type="AIX" ;;
2309 llvm_cv_target_os_type="IRIX" ;;
2311 llvm_cv_target_os_type="Cygwin" ;;
2313 llvm_cv_target_os_type="Darwin" ;;
2315 llvm_cv_target_os_type="Minix" ;;
2317 llvm_cv_target_os_type="FreeBSD" ;;
2319 llvm_cv_target_os_type="OpenBSD" ;;
2321 llvm_cv_target_os_type="NetBSD" ;;
2323 llvm_cv_target_os_type="DragonFly" ;;
2325 llvm_cv_target_os_type="HP-UX" ;;
2327 llvm_cv_target_os_type="Interix" ;;
2329 llvm_cv_target_os_type="Linux" ;;
2331 llvm_cv_target_os_type="SunOS" ;;
2333 llvm_cv_target_os_type="AuroraUX" ;;
2335 llvm_cv_target_os_type="Win32" ;;
2337 llvm_cv_target_os_type="MingW" ;;
2339 llvm_cv_target_os_type="Haiku" ;;
2341 llvm_cv_target_os_type="RTEMS" ;;
2343 llvm_cv_target_os_type="Freestanding" ;;
2345 llvm_cv_target_os_type="Unknown" ;;
2348 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2349 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2351 if test "$llvm_cv_os_type" = "Unknown" ; then
2352 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2353 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2354 { (exit 1); exit 1; }; }
2359 HOST_OS=$llvm_cv_os_type
2361 TARGET_OS=$llvm_cv_target_os_type
2364 LINKALL=$llvm_cv_link_all_option
2366 NOLINKALL=$llvm_cv_no_link_all_option
2369 case $llvm_cv_platform_type in
2372 cat >>confdefs.h <<\_ACEOF
2373 #define LLVM_ON_UNIX 1
2383 cat >>confdefs.h <<\_ACEOF
2384 #define LLVM_ON_WIN32 1
2394 { echo "$as_me:$LINENO: checking target architecture" >&5
2395 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2396 if test "${llvm_cv_target_arch+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 i?86-*) llvm_cv_target_arch="x86" ;;
2401 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2402 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2403 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2404 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2405 arm*-*) llvm_cv_target_arch="ARM" ;;
2406 mips-*) llvm_cv_target_arch="Mips" ;;
2407 xcore-*) llvm_cv_target_arch="XCore" ;;
2408 msp430-*) llvm_cv_target_arch="MSP430" ;;
2409 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2410 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2411 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2412 ptx-*) llvm_cv_target_arch="PTX" ;;
2413 *) llvm_cv_target_arch="Unknown" ;;
2416 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2417 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2419 if test "$llvm_cv_target_arch" = "Unknown" ; then
2420 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2421 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2424 # Determine the LLVM native architecture for the target
2425 case "$llvm_cv_target_arch" in
2426 x86) LLVM_NATIVE_ARCH="X86" ;;
2427 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2428 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2431 ARCH=$llvm_cv_target_arch
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2439 if test -n "$ac_tool_prefix"; then
2440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2444 if test "${ac_cv_prog_CC+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 if test -n "$CC"; then
2448 ac_cv_prog_CC="$CC" # Let the user override the test.
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 if test -n "$CC"; then
2469 { echo "$as_me:$LINENO: result: $CC" >&5
2470 echo "${ECHO_T}$CC" >&6; }
2472 { echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6; }
2478 if test -z "$ac_cv_prog_CC"; then
2480 # Extract the first word of "gcc", so it can be a program name with args.
2481 set dummy gcc; ac_word=$2
2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 ac_cv_prog_ac_ct_CC="gcc"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2508 if test -n "$ac_ct_CC"; then
2509 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2510 echo "${ECHO_T}$ac_ct_CC" >&6; }
2512 { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2516 if test "x$ac_ct_CC" = x; then
2519 case $cross_compiling:$ac_tool_warned in
2521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2522 whose name does not start with the host triplet. If you think this
2523 configuration is useful to you, please write to autoconf@gnu.org." >&5
2524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet. If you think this
2526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2527 ac_tool_warned=yes ;;
2535 if test -z "$CC"; then
2536 if test -n "$ac_tool_prefix"; then
2537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2538 set dummy ${ac_tool_prefix}cc; ac_word=$2
2539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541 if test "${ac_cv_prog_CC+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 if test -n "$CC"; then
2545 ac_cv_prog_CC="$CC" # Let the user override the test.
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 ac_cv_prog_CC="${ac_tool_prefix}cc"
2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 if test -n "$CC"; then
2566 { echo "$as_me:$LINENO: result: $CC" >&5
2567 echo "${ECHO_T}$CC" >&6; }
2569 { echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6; }
2576 if test -z "$CC"; then
2577 # Extract the first word of "cc", so it can be a program name with args.
2578 set dummy cc; ac_word=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2596 ac_prog_rejected=yes
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 if test $ac_prog_rejected = yes; then
2608 # We found a bogon in the path, so make sure we never use it.
2609 set dummy $ac_cv_prog_CC
2611 if test $# != 0; then
2612 # We chose a different compiler from the bogus one.
2613 # However, it has the same basename, so the bogon will be chosen
2614 # first if we set CC to just the basename; use the full file name.
2616 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2622 if test -n "$CC"; then
2623 { echo "$as_me:$LINENO: result: $CC" >&5
2624 echo "${ECHO_T}$CC" >&6; }
2626 { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2632 if test -z "$CC"; then
2633 if test -n "$ac_tool_prefix"; then
2634 for ac_prog in cl.exe
2636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2640 if test "${ac_cv_prog_CC+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 if test -n "$CC"; then
2644 ac_cv_prog_CC="$CC" # Let the user override the test.
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 if test -n "$CC"; then
2665 { echo "$as_me:$LINENO: result: $CC" >&5
2666 echo "${ECHO_T}$CC" >&6; }
2668 { echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6; }
2673 test -n "$CC" && break
2676 if test -z "$CC"; then
2678 for ac_prog in cl.exe
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 if test -n "$ac_ct_CC"; then
2688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_ac_ct_CC="$ac_prog"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2708 if test -n "$ac_ct_CC"; then
2709 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2710 echo "${ECHO_T}$ac_ct_CC" >&6; }
2712 { echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6; }
2717 test -n "$ac_ct_CC" && break
2720 if test "x$ac_ct_CC" = x; then
2723 case $cross_compiling:$ac_tool_warned in
2725 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2726 whose name does not start with the host triplet. If you think this
2727 configuration is useful to you, please write to autoconf@gnu.org." >&5
2728 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2729 whose name does not start with the host triplet. If you think this
2730 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2731 ac_tool_warned=yes ;;
2740 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2741 See \`config.log' for more details." >&5
2742 echo "$as_me: error: no acceptable C compiler found in \$PATH
2743 See \`config.log' for more details." >&2;}
2744 { (exit 1); exit 1; }; }
2746 # Provide some information about the compiler.
2747 echo "$as_me:$LINENO: checking for C compiler version" >&5
2748 ac_compiler=`set X $ac_compile; echo $2`
2749 { (ac_try="$ac_compiler --version >&5"
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compiler --version >&5") 2>&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }
2759 { (ac_try="$ac_compiler -v >&5"
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_compiler -v >&5") 2>&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }
2769 { (ac_try="$ac_compiler -V >&5"
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compiler -V >&5") 2>&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }
2780 cat >conftest.$ac_ext <<_ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h. */
2795 ac_clean_files_save=$ac_clean_files
2796 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2797 # Try to create an executable without -o first, disregard a.out.
2798 # It will help us diagnose broken compilers, and finding out an intuition
2800 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2801 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2802 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2804 # List of possible output files, starting from the most likely.
2805 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2806 # only as a last resort. b.out is created by i960 compilers.
2807 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2809 # The IRIX 6 linker writes into existing files which may not be
2810 # executable, retaining their permissions. Remove them first so a
2811 # subsequent execution test works.
2813 for ac_file in $ac_files
2816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2817 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2822 if { (ac_try="$ac_link_default"
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_link_default") 2>&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; then
2832 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2833 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2834 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2835 # so that the user can short-circuit this test for compilers unknown to
2837 for ac_file in $ac_files
2839 test -f "$ac_file" || continue
2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2844 # We found the default executable, but exeext='' is most
2848 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2852 # We set ac_cv_exeext here because the later test for it is not
2853 # safe: cross compilers may not add the suffix if given an `-o'
2854 # argument, so we may need to know it at that point already.
2855 # Even if this section looks crufty: it has the advantage of
2862 test "$ac_cv_exeext" = no && ac_cv_exeext=
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2869 See \`config.log' for more details." >&5
2870 echo "$as_me: error: C compiler cannot create executables
2871 See \`config.log' for more details." >&2;}
2872 { (exit 77); exit 77; }; }
2875 ac_exeext=$ac_cv_exeext
2876 { echo "$as_me:$LINENO: result: $ac_file" >&5
2877 echo "${ECHO_T}$ac_file" >&6; }
2879 # Check that the compiler produces executables we can run. If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2884 # If not cross compiling, check that we can run a simple program.
2885 if test "$cross_compiling" != yes; then
2886 if { ac_try='./$ac_file'
2887 { (case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_try") 2>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2898 if test "$cross_compiling" = maybe; then
2901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2902 If you meant to cross compile, use \`--host'.
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot run C compiled programs.
2905 If you meant to cross compile, use \`--host'.
2906 See \`config.log' for more details." >&2;}
2907 { (exit 1); exit 1; }; }
2911 { echo "$as_me:$LINENO: result: yes" >&5
2912 echo "${ECHO_T}yes" >&6; }
2914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2915 ac_clean_files=$ac_clean_files_save
2916 # Check that the compiler produces executables we can run. If not, either
2917 # the compiler is broken, or we cross compile.
2918 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2920 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2921 echo "${ECHO_T}$cross_compiling" >&6; }
2923 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2925 if { (ac_try="$ac_link"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_link") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; then
2935 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2936 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2937 # work properly (i.e., refer to `conftest.exe'), while it won't with
2939 for ac_file in conftest.exe conftest conftest.*; do
2940 test -f "$ac_file" || continue
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2943 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2949 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2950 See \`config.log' for more details." >&5
2951 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2952 See \`config.log' for more details." >&2;}
2953 { (exit 1); exit 1; }; }
2956 rm -f conftest$ac_cv_exeext
2957 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2958 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2960 rm -f conftest.$ac_ext
2961 EXEEXT=$ac_cv_exeext
2963 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2964 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2965 if test "${ac_cv_objext+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2983 rm -f conftest.o conftest.obj
2984 if { (ac_try="$ac_compile"
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_compile") 2>&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; then
2994 for ac_file in conftest.o conftest.obj conftest.*; do
2995 test -f "$ac_file" || continue;
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3007 See \`config.log' for more details." >&5
3008 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3009 See \`config.log' for more details." >&2;}
3010 { (exit 1); exit 1; }; }
3013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3015 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3016 echo "${ECHO_T}$ac_cv_objext" >&6; }
3017 OBJEXT=$ac_cv_objext
3019 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>conftest.er1
3051 grep -v '^ *+' conftest.er1 >conftest.err
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
3056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3057 { (case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_try") 2>&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; } &&
3066 { ac_try='test -s conftest.$ac_objext'
3067 { (case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_try") 2>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3088 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3089 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3090 GCC=`test $ac_compiler_gnu = yes && echo yes`
3091 ac_test_CFLAGS=${CFLAGS+set}
3092 ac_save_CFLAGS=$CFLAGS
3093 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3094 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3095 if test "${ac_cv_prog_cc_g+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 ac_save_c_werror_flag=$ac_c_werror_flag
3099 ac_c_werror_flag=yes
3102 cat >conftest.$ac_ext <<_ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3117 rm -f conftest.$ac_objext
3118 if { (ac_try="$ac_compile"
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compile") 2>conftest.er1
3126 grep -v '^ *+' conftest.er1 >conftest.err
3128 cat conftest.err >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } &&
3131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3132 { (case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_try") 2>&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_try") 2>&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3157 cat >conftest.$ac_ext <<_ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3181 grep -v '^ *+' conftest.er1 >conftest.err
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3187 { (case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_try") 2>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_try") 2>&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; }; then
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3211 ac_c_werror_flag=$ac_save_c_werror_flag
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compile") 2>conftest.er1
3237 grep -v '^ *+' conftest.er1 >conftest.err
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3243 { (case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_try") 2>&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_try") 2>&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277 ac_c_werror_flag=$ac_save_c_werror_flag
3279 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3280 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3281 if test "$ac_test_CFLAGS" = set; then
3282 CFLAGS=$ac_save_CFLAGS
3283 elif test $ac_cv_prog_cc_g = yes; then
3284 if test "$GCC" = yes; then
3290 if test "$GCC" = yes; then
3296 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3297 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3298 if test "${ac_cv_prog_cc_c89+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 ac_cv_prog_cc_c89=no
3303 cat >conftest.$ac_ext <<_ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3311 #include <sys/types.h>
3312 #include <sys/stat.h>
3313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3314 struct buf { int x; };
3315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3316 static char *e (p, i)
3322 static char *f (char * (*g) (char **, int), char **p, ...)
3327 s = g (p, va_arg (v,int));
3332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3333 function prototypes and stuff, but not '\xHH' hex character constants.
3334 These don't provoke an error unfortunately, instead are silently treated
3335 as 'x'. The following induces an error, until -std is added to get
3336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3337 array size at least. It's necessary to write '\x00'==0 to get something
3338 that's true only with -std. */
3339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3342 inside strings and character constants. */
3344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3346 int test (int i, double x);
3347 struct s1 {int (*f) (int a);};
3348 struct s2 {int (*f) (double a);};
3349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3363 CC="$ac_save_CC $ac_arg"
3364 rm -f conftest.$ac_objext
3365 if { (ac_try="$ac_compile"
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_compile") 2>conftest.er1
3373 grep -v '^ *+' conftest.er1 >conftest.err
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3379 { (case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_try") 2>&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; } &&
3388 { ac_try='test -s conftest.$ac_objext'
3389 { (case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_try") 2>&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 ac_cv_prog_cc_c89=$ac_arg
3400 echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3406 rm -f core conftest.err conftest.$ac_objext
3407 test "x$ac_cv_prog_cc_c89" != "xno" && break
3409 rm -f conftest.$ac_ext
3414 case "x$ac_cv_prog_cc_c89" in
3416 { echo "$as_me:$LINENO: result: none needed" >&5
3417 echo "${ECHO_T}none needed" >&6; } ;;
3419 { echo "$as_me:$LINENO: result: unsupported" >&5
3420 echo "${ECHO_T}unsupported" >&6; } ;;
3422 CC="$CC $ac_cv_prog_cc_c89"
3423 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3424 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 ac_cpp='$CPP $CPPFLAGS'
3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3441 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3442 # On Suns, sometimes $CPP names a directory.
3443 if test -n "$CPP" && test -d "$CPP"; then
3446 if test -z "$CPP"; then
3447 if test "${ac_cv_prog_CPP+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 # Double quotes because CPP needs to be expanded
3451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3454 for ac_c_preproc_warn_flag in '' yes
3456 # Use a header file that comes with gcc, so configuring glibc
3457 # with a fresh cross-compiler works.
3458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3459 # <limits.h> exists even on freestanding compilers.
3460 # On the NeXT, cc -E runs the code through the compiler's parser,
3461 # not just through cpp. "Syntax error" is here to catch this case.
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3469 # include <limits.h>
3471 # include <assert.h>
3475 if { (ac_try="$ac_cpp conftest.$ac_ext"
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3483 grep -v '^ *+' conftest.er1 >conftest.err
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } >/dev/null; then
3488 if test -s conftest.err; then
3489 ac_cpp_err=$ac_c_preproc_warn_flag
3490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3497 if test -z "$ac_cpp_err"; then
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 # Broken: fails on valid input.
3507 rm -f conftest.err conftest.$ac_ext
3509 # OK, works on sane cases. Now check whether nonexistent headers
3510 # can be detected and how.
3511 cat >conftest.$ac_ext <<_ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3517 #include <ac_nonexistent.h>
3519 if { (ac_try="$ac_cpp conftest.$ac_ext"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null; then
3532 if test -s conftest.err; then
3533 ac_cpp_err=$ac_c_preproc_warn_flag
3534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3541 if test -z "$ac_cpp_err"; then
3542 # Broken: success on invalid input.
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 # Passes both tests.
3553 rm -f conftest.err conftest.$ac_ext
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3570 { echo "$as_me:$LINENO: result: $CPP" >&5
3571 echo "${ECHO_T}$CPP" >&6; }
3573 for ac_c_preproc_warn_flag in '' yes
3575 # Use a header file that comes with gcc, so configuring glibc
3576 # with a fresh cross-compiler works.
3577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578 # <limits.h> exists even on freestanding compilers.
3579 # On the NeXT, cc -E runs the code through the compiler's parser,
3580 # not just through cpp. "Syntax error" is here to catch this case.
3581 cat >conftest.$ac_ext <<_ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3588 # include <limits.h>
3590 # include <assert.h>
3594 if { (ac_try="$ac_cpp conftest.$ac_ext"
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3602 grep -v '^ *+' conftest.er1 >conftest.err
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } >/dev/null; then
3607 if test -s conftest.err; then
3608 ac_cpp_err=$ac_c_preproc_warn_flag
3609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3616 if test -z "$ac_cpp_err"; then
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3622 # Broken: fails on valid input.
3626 rm -f conftest.err conftest.$ac_ext
3628 # OK, works on sane cases. Now check whether nonexistent headers
3629 # can be detected and how.
3630 cat >conftest.$ac_ext <<_ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3636 #include <ac_nonexistent.h>
3638 if { (ac_try="$ac_cpp conftest.$ac_ext"
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3646 grep -v '^ *+' conftest.er1 >conftest.err
3648 cat conftest.err >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } >/dev/null; then
3651 if test -s conftest.err; then
3652 ac_cpp_err=$ac_c_preproc_warn_flag
3653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3660 if test -z "$ac_cpp_err"; then
3661 # Broken: success on invalid input.
3664 echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3667 # Passes both tests.
3672 rm -f conftest.err conftest.$ac_ext
3675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3676 rm -f conftest.err conftest.$ac_ext
3677 if $ac_preproc_ok; then
3680 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3681 See \`config.log' for more details." >&5
3682 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3683 See \`config.log' for more details." >&2;}
3684 { (exit 1); exit 1; }; }
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3695 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3696 if test "${ac_cv_path_GREP+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 # Extract the first word of "grep ggrep" to use in msg output
3700 if test -z "$GREP"; then
3701 set dummy grep ggrep; ac_prog_name=$2
3702 if test "${ac_cv_path_GREP+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 ac_path_GREP_found=false
3706 # Loop through the user's path and test for each of PROGNAME-LIST
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3711 test -z "$as_dir" && as_dir=.
3712 for ac_prog in grep ggrep; do
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3715 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3716 # Check for GNU ac_path_GREP and select it if it is found.
3717 # Check for GNU $ac_path_GREP
3718 case `"$ac_path_GREP" --version 2>&1` in
3720 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3723 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3726 cat "conftest.in" "conftest.in" >"conftest.tmp"
3727 mv "conftest.tmp" "conftest.in"
3728 cp "conftest.in" "conftest.nl"
3729 echo 'GREP' >> "conftest.nl"
3730 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3732 ac_count=`expr $ac_count + 1`
3733 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3734 # Best one so far, save it but keep looking for a better one
3735 ac_cv_path_GREP="$ac_path_GREP"
3736 ac_path_GREP_max=$ac_count
3738 # 10*(2^10) chars as input seems more than enough
3739 test $ac_count -gt 10 && break
3741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3745 $ac_path_GREP_found && break 3
3755 GREP="$ac_cv_path_GREP"
3756 if test -z "$GREP"; then
3757 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3758 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3759 { (exit 1); exit 1; }; }
3763 ac_cv_path_GREP=$GREP
3768 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3769 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3770 GREP="$ac_cv_path_GREP"
3773 { echo "$as_me:$LINENO: checking for egrep" >&5
3774 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3775 if test "${ac_cv_path_EGREP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3779 then ac_cv_path_EGREP="$GREP -E"
3781 # Extract the first word of "egrep" to use in msg output
3782 if test -z "$EGREP"; then
3783 set dummy egrep; ac_prog_name=$2
3784 if test "${ac_cv_path_EGREP+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 ac_path_EGREP_found=false
3788 # Loop through the user's path and test for each of PROGNAME-LIST
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3793 test -z "$as_dir" && as_dir=.
3794 for ac_prog in egrep; do
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3797 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3798 # Check for GNU ac_path_EGREP and select it if it is found.
3799 # Check for GNU $ac_path_EGREP
3800 case `"$ac_path_EGREP" --version 2>&1` in
3802 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3805 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3808 cat "conftest.in" "conftest.in" >"conftest.tmp"
3809 mv "conftest.tmp" "conftest.in"
3810 cp "conftest.in" "conftest.nl"
3811 echo 'EGREP' >> "conftest.nl"
3812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3814 ac_count=`expr $ac_count + 1`
3815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3816 # Best one so far, save it but keep looking for a better one
3817 ac_cv_path_EGREP="$ac_path_EGREP"
3818 ac_path_EGREP_max=$ac_count
3820 # 10*(2^10) chars as input seems more than enough
3821 test $ac_count -gt 10 && break
3823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3827 $ac_path_EGREP_found && break 3
3837 EGREP="$ac_cv_path_EGREP"
3838 if test -z "$EGREP"; then
3839 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3840 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3841 { (exit 1); exit 1; }; }
3845 ac_cv_path_EGREP=$EGREP
3851 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3852 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3853 EGREP="$ac_cv_path_EGREP"
3856 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3857 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3858 if test "${ac_cv_header_stdc+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 cat >conftest.$ac_ext <<_ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3880 rm -f conftest.$ac_objext
3881 if { (ac_try="$ac_compile"
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887 (eval "$ac_compile") 2>conftest.er1
3889 grep -v '^ *+' conftest.er1 >conftest.err
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3895 { (case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_try") 2>&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; } &&
3904 { ac_try='test -s conftest.$ac_objext'
3905 { (case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_try") 2>&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 ac_cv_header_stdc=yes
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3919 ac_cv_header_stdc=no
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 if test $ac_cv_header_stdc = yes; then
3925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3926 cat >conftest.$ac_ext <<_ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h. */
3935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3936 $EGREP "memchr" >/dev/null 2>&1; then
3939 ac_cv_header_stdc=no
3945 if test $ac_cv_header_stdc = yes; then
3946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3947 cat >conftest.$ac_ext <<_ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 $EGREP "free" >/dev/null 2>&1; then
3960 ac_cv_header_stdc=no
3966 if test $ac_cv_header_stdc = yes; then
3967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3968 if test "$cross_compiling" = yes; then
3971 cat >conftest.$ac_ext <<_ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3979 #if ((' ' & 0x0FF) == 0x020)
3980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3983 # define ISLOWER(c) \
3984 (('a' <= (c) && (c) <= 'i') \
3985 || ('j' <= (c) && (c) <= 'r') \
3986 || ('s' <= (c) && (c) <= 'z'))
3987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3995 for (i = 0; i < 256; i++)
3996 if (XOR (islower (i), ISLOWER (i))
3997 || toupper (i) != TOUPPER (i))
4002 rm -f conftest$ac_exeext
4003 if { (ac_try="$ac_link"
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_link") 2>&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4013 { (case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_try") 2>&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; }; then
4024 echo "$as_me: program exited with status $ac_status" >&5
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4029 ac_cv_header_stdc=no
4031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4037 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4038 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4039 if test $ac_cv_header_stdc = yes; then
4041 cat >>confdefs.h <<\_ACEOF
4042 #define STDC_HEADERS 1
4047 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4058 inttypes.h stdint.h unistd.h
4060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 cat >conftest.$ac_ext <<_ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072 $ac_includes_default
4074 #include <$ac_header>
4076 rm -f conftest.$ac_objext
4077 if { (ac_try="$ac_compile"
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_compile") 2>conftest.er1
4085 grep -v '^ *+' conftest.er1 >conftest.err
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4091 { (case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_try") 2>&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest.$ac_objext'
4101 { (case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_try") 2>&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
4110 eval "$as_ac_Header=yes"
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4115 eval "$as_ac_Header=no"
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 ac_res=`eval echo '${'$as_ac_Header'}'`
4121 { echo "$as_me:$LINENO: result: $ac_res" >&5
4122 echo "${ECHO_T}$ac_res" >&6; }
4123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4124 cat >>confdefs.h <<_ACEOF
4125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4133 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4134 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4135 if test "${ac_cv_c_bigendian+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 # See if sys/param.h defines the BYTE_ORDER macro.
4139 cat >conftest.$ac_ext <<_ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 #include <sys/types.h>
4146 #include <sys/param.h>
4151 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_compile") 2>conftest.er1
4168 grep -v '^ *+' conftest.er1 >conftest.err
4170 cat conftest.err >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4174 { (case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_try") 2>&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 # It does; now see whether it defined to BIG_ENDIAN or not.
4194 cat >conftest.$ac_ext <<_ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4200 #include <sys/types.h>
4201 #include <sys/param.h>
4206 #if BYTE_ORDER != BIG_ENDIAN
4214 rm -f conftest.$ac_objext
4215 if { (ac_try="$ac_compile"
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
4223 grep -v '^ *+' conftest.er1 >conftest.err
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4229 { (case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_try") 2>&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_try") 2>&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_cv_c_bigendian=yes
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4253 ac_cv_c_bigendian=no
4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4261 # It does not; compile a test program.
4262 if test "$cross_compiling" = yes; then
4263 # try to guess the endianness by grepping values into an object file
4264 ac_cv_c_bigendian=unknown
4265 cat >conftest.$ac_ext <<_ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4272 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4273 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4274 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4275 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4276 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4280 _ascii (); _ebcdic ();
4285 rm -f conftest.$ac_objext
4286 if { (ac_try="$ac_compile"
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_compile") 2>conftest.er1
4294 grep -v '^ *+' conftest.er1 >conftest.err
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4300 { (case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_try") 2>&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; } &&
4309 { ac_try='test -s conftest.$ac_objext'
4310 { (case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_try") 2>&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4320 ac_cv_c_bigendian=yes
4322 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4323 if test "$ac_cv_c_bigendian" = unknown; then
4324 ac_cv_c_bigendian=no
4326 # finding both strings is unlikely to happen, but who knows?
4327 ac_cv_c_bigendian=unknown
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 cat >conftest.$ac_ext <<_ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 $ac_includes_default
4350 /* Are we little or big endian? From Harbison&Steele. */
4354 char c[sizeof (long int)];
4357 return u.c[sizeof (long int) - 1] == 1;
4363 rm -f conftest$ac_exeext
4364 if { (ac_try="$ac_link"
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_link") 2>&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4374 { (case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_try") 2>&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_cv_c_bigendian=no
4385 echo "$as_me: program exited with status $ac_status" >&5
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4390 ac_cv_c_bigendian=yes
4392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4401 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4402 case $ac_cv_c_bigendian in
4410 { { echo "$as_me:$LINENO: error: unknown endianness
4411 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4412 echo "$as_me: error: unknown endianness
4413 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4414 { (exit 1); exit 1; }; } ;;
4418 if test "$cross_compiling" = yes; then
4419 LLVM_CROSS_COMPILING=1
4422 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4423 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4424 if test "${ac_cv_build_exeext+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4428 ac_cv_build_exeext=.exe
4430 ac_build_prefix=${build_alias}-
4432 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4433 set dummy ${ac_build_prefix}gcc; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 if test -n "$BUILD_CC"; then
4440 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 BUILD_CC=$ac_cv_prog_BUILD_CC
4460 if test -n "$BUILD_CC"; then
4461 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4462 echo "${ECHO_T}$BUILD_CC" >&6; }
4464 { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4469 if test -z "$BUILD_CC"; then
4470 # Extract the first word of "gcc", so it can be a program name with args.
4471 set dummy gcc; ac_word=$2
4472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4474 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 if test -n "$BUILD_CC"; then
4478 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4487 ac_cv_prog_BUILD_CC="gcc"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 BUILD_CC=$ac_cv_prog_BUILD_CC
4498 if test -n "$BUILD_CC"; then
4499 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4500 echo "${ECHO_T}$BUILD_CC" >&6; }
4502 { echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6; }
4507 if test -z "$BUILD_CC"; then
4508 # Extract the first word of "cc", so it can be a program name with args.
4509 set dummy cc; ac_word=$2
4510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 if test -n "$BUILD_CC"; then
4516 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4527 ac_prog_rejected=yes
4530 ac_cv_prog_BUILD_CC="cc"
4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 if test $ac_prog_rejected = yes; then
4539 # We found a bogon in the path, so make sure we never use it.
4540 set dummy $ac_cv_prog_BUILD_CC
4542 if test $# != 0; then
4543 # We chose a different compiler from the bogus one.
4544 # However, it has the same basename, so the bogon will be chosen
4545 # first if we set BUILD_CC to just the basename; use the full file name.
4547 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4552 BUILD_CC=$ac_cv_prog_BUILD_CC
4553 if test -n "$BUILD_CC"; then
4554 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4555 echo "${ECHO_T}$BUILD_CC" >&6; }
4557 { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4564 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4565 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4566 { (exit 1); exit 1; }; }
4567 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4569 echo 'int main () { return 0; }' > conftest.$ac_ext
4571 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4572 (eval $ac_build_link) 2>&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; then
4576 for file in conftest.*; do
4578 *.c | *.o | *.obj | *.dSYM) ;;
4579 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4583 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4584 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4585 { (exit 1); exit 1; }; }
4588 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4593 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4594 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4595 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4596 ac_build_exeext=$BUILD_EXEEXT
4598 ac_build_prefix=${build_alias}-
4599 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4600 set dummy ${ac_build_prefix}g++; ac_word=$2
4601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 if test -n "$BUILD_CXX"; then
4607 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4627 if test -n "$BUILD_CXX"; then
4628 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4629 echo "${ECHO_T}$BUILD_CXX" >&6; }
4631 { echo "$as_me:$LINENO: result: no" >&5
4632 echo "${ECHO_T}no" >&6; }
4636 if test -z "$BUILD_CXX"; then
4637 # Extract the first word of "g++", so it can be a program name with args.
4638 set dummy g++; ac_word=$2
4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 if test -n "$BUILD_CXX"; then
4645 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_BUILD_CXX="g++"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4665 if test -n "$BUILD_CXX"; then
4666 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4667 echo "${ECHO_T}$BUILD_CXX" >&6; }
4669 { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4674 if test -z "$BUILD_CXX"; then
4675 # Extract the first word of "c++", so it can be a program name with args.
4676 set dummy c++; ac_word=$2
4677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4679 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 if test -n "$BUILD_CXX"; then
4683 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4694 ac_prog_rejected=yes
4697 ac_cv_prog_BUILD_CXX="c++"
4698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 if test $ac_prog_rejected = yes; then
4706 # We found a bogon in the path, so make sure we never use it.
4707 set dummy $ac_cv_prog_BUILD_CXX
4709 if test $# != 0; then
4710 # We chose a different compiler from the bogus one.
4711 # However, it has the same basename, so the bogon will be chosen
4712 # first if we set BUILD_CXX to just the basename; use the full file name.
4714 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4719 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4720 if test -n "$BUILD_CXX"; then
4721 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4722 echo "${ECHO_T}$BUILD_CXX" >&6; }
4724 { echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6; }
4732 LLVM_CROSS_COMPILING=0
4736 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4747 # Check whether --enable-optimized was given.
4748 if test "${enable_optimized+set}" = set; then
4749 enableval=$enable_optimized;
4754 if test ${enableval} = "no" ; then
4758 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4762 # Check whether --enable-profiling was given.
4763 if test "${enable_profiling+set}" = set; then
4764 enableval=$enable_profiling;
4769 if test ${enableval} = "no" ; then
4773 ENABLE_PROFILING=ENABLE_PROFILING=1
4777 # Check whether --enable-assertions was given.
4778 if test "${enable_assertions+set}" = set; then
4779 enableval=$enable_assertions;
4784 if test ${enableval} = "yes" ; then
4788 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4792 # Check whether --enable-expensive-checks was given.
4793 if test "${enable_expensive_checks+set}" = set; then
4794 enableval=$enable_expensive_checks;
4799 if test ${enableval} = "yes" ; then
4800 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4802 EXPENSIVE_CHECKS=yes
4805 ENABLE_EXPENSIVE_CHECKS=
4811 # Check whether --enable-debug-runtime was given.
4812 if test "${enable_debug_runtime+set}" = set; then
4813 enableval=$enable_debug_runtime;
4818 if test ${enableval} = "no" ; then
4822 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4826 # Check whether --enable-debug-symbols was given.
4827 if test "${enable_debug_symbols+set}" = set; then
4828 enableval=$enable_debug_symbols;
4833 if test ${enableval} = "no" ; then
4837 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4841 # Check whether --enable-jit was given.
4842 if test "${enable_jit+set}" = set; then
4843 enableval=$enable_jit;
4848 if test ${enableval} = "no"
4853 case "$llvm_cv_target_arch" in
4854 x86) TARGET_HAS_JIT=1
4856 Sparc) TARGET_HAS_JIT=0
4858 PowerPC) TARGET_HAS_JIT=1
4860 x86_64) TARGET_HAS_JIT=1
4862 Alpha) TARGET_HAS_JIT=0
4864 ARM) TARGET_HAS_JIT=1
4866 Mips) TARGET_HAS_JIT=0
4868 XCore) TARGET_HAS_JIT=0
4870 MSP430) TARGET_HAS_JIT=0
4872 SystemZ) TARGET_HAS_JIT=0
4874 Blackfin) TARGET_HAS_JIT=0
4876 MBlaze) TARGET_HAS_JIT=0
4878 PTX) TARGET_HAS_JIT=0
4885 # Check whether --enable-docs was given.
4886 if test "${enable_docs+set}" = set; then
4887 enableval=$enable_docs;
4892 case "$enableval" in
4897 default) ENABLE_DOCS=1
4899 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4900 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4901 { (exit 1); exit 1; }; } ;;
4904 # Check whether --enable-doxygen was given.
4905 if test "${enable_doxygen+set}" = set; then
4906 enableval=$enable_doxygen;
4911 case "$enableval" in
4912 yes) ENABLE_DOXYGEN=1
4914 no) ENABLE_DOXYGEN=0
4916 default) ENABLE_DOXYGEN=0
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4923 # Check whether --enable-threads was given.
4924 if test "${enable_threads+set}" = set; then
4925 enableval=$enable_threads;
4930 case "$enableval" in
4931 yes) ENABLE_THREADS=1
4933 no) ENABLE_THREADS=0
4935 default) ENABLE_THREADS=1
4937 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4938 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4939 { (exit 1); exit 1; }; } ;;
4942 cat >>confdefs.h <<_ACEOF
4943 #define ENABLE_THREADS $ENABLE_THREADS
4947 # Check whether --enable-pthreads was given.
4948 if test "${enable_pthreads+set}" = set; then
4949 enableval=$enable_pthreads;
4954 case "$enableval" in
4955 yes) ENABLE_PTHREADS=1
4957 no) ENABLE_PTHREADS=0
4959 default) ENABLE_PTHREADS=1
4961 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4962 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4963 { (exit 1); exit 1; }; } ;;
4966 # Check whether --enable-pic was given.
4967 if test "${enable_pic+set}" = set; then
4968 enableval=$enable_pic;
4973 case "$enableval" in
4978 default) ENABLE_PIC=1
4980 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4981 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4982 { (exit 1); exit 1; }; } ;;
4985 cat >>confdefs.h <<_ACEOF
4986 #define ENABLE_PIC $ENABLE_PIC
4990 # Check whether --enable-shared was given.
4991 if test "${enable_shared+set}" = set; then
4992 enableval=$enable_shared;
4997 case "$enableval" in
4998 yes) ENABLE_SHARED=1
5002 default) ENABLE_SHARED=0
5004 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5005 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5006 { (exit 1); exit 1; }; } ;;
5009 # Check whether --enable-embed-stdcxx was given.
5010 if test "${enable_embed_stdcxx+set}" = set; then
5011 enableval=$enable_embed_stdcxx;
5016 case "$enableval" in
5017 yes) ENABLE_EMBED_STDCXX=1
5019 no) ENABLE_EMBED_STDCXX=0
5021 default) ENABLE_EMBED_STDCXX=1
5023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5024 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5025 { (exit 1); exit 1; }; } ;;
5028 # Check whether --enable-timestamps was given.
5029 if test "${enable_timestamps+set}" = set; then
5030 enableval=$enable_timestamps;
5035 case "$enableval" in
5036 yes) ENABLE_TIMESTAMPS=1
5038 no) ENABLE_TIMESTAMPS=0
5040 default) ENABLE_TIMESTAMPS=1
5042 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5043 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5044 { (exit 1); exit 1; }; } ;;
5047 cat >>confdefs.h <<_ACEOF
5048 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5053 # Check whether --enable-targets was given.
5054 if test "${enable_targets+set}" = set; then
5055 enableval=$enable_targets;
5060 if test "$enableval" = host-only ; then
5063 case "$enableval" in
5064 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5065 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5067 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5068 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5069 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5070 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5071 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5072 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5073 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5074 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5075 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5076 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5077 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5078 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5079 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5080 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5081 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5082 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5083 host) case "$llvm_cv_target_arch" in
5084 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5085 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5086 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5087 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5088 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5089 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5090 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5091 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5092 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5093 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5094 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5095 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5096 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5097 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5098 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5099 echo "$as_me: error: Can not set target to build" >&2;}
5100 { (exit 1); exit 1; }; } ;;
5102 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5103 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5104 { (exit 1); exit 1; }; } ;;
5109 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5112 # Determine whether we are building LLVM support for the native architecture.
5113 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5114 for a_target in $TARGETS_TO_BUILD; do
5115 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5117 cat >>confdefs.h <<_ACEOF
5118 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5121 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5122 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5123 LLVM_NATIVE_MCASMINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCAsmInfo"
5124 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5125 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5126 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5129 cat >>confdefs.h <<_ACEOF
5130 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5134 cat >>confdefs.h <<_ACEOF
5135 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5139 cat >>confdefs.h <<_ACEOF
5140 #define LLVM_NATIVE_MCASMINFO $LLVM_NATIVE_MCASMINFO
5144 cat >>confdefs.h <<_ACEOF
5145 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5148 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5150 cat >>confdefs.h <<_ACEOF
5151 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5158 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5159 # target feature def files.
5160 LLVM_ENUM_TARGETS=""
5161 LLVM_ENUM_ASM_PRINTERS=""
5162 LLVM_ENUM_ASM_PARSERS=""
5163 LLVM_ENUM_DISASSEMBLERS=""
5164 for target_to_build in $TARGETS_TO_BUILD; do
5165 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5166 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5167 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5169 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5170 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5172 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5173 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5181 # Check whether --enable-cbe-printf-a was given.
5182 if test "${enable_cbe_printf_a+set}" = set; then
5183 enableval=$enable_cbe_printf_a;
5188 case "$enableval" in
5189 yes) ENABLE_CBE_PRINTF_A=1
5191 no) ENABLE_CBE_PRINTF_A=0
5193 default) ENABLE_CBE_PRINTF_A=1
5195 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5196 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5197 { (exit 1); exit 1; }; } ;;
5200 cat >>confdefs.h <<_ACEOF
5201 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5206 # Check whether --with-llvmgccdir was given.
5207 if test "${with_llvmgccdir+set}" = set; then
5208 withval=$with_llvmgccdir;
5214 default) WITH_LLVMGCCDIR=default ;;
5215 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5216 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5217 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5218 { (exit 1); exit 1; }; } ;;
5222 # Check whether --with-llvmgcc was given.
5223 if test "${with_llvmgcc+set}" = set; then
5224 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5230 # Check whether --with-llvmgxx was given.
5231 if test "${with_llvmgxx+set}" = set; then
5232 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5237 if test -n "$LLVMGCC"; then
5238 LLVMGCCCOMMAND="$LLVMGCC"
5241 if test -n "$LLVMGXX"; then
5242 LLVMGXXCOMMAND="$LLVMGXX"
5245 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5246 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5247 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5248 { (exit 1); exit 1; }; };
5251 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5252 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5253 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5254 { (exit 1); exit 1; }; };
5258 # Check whether --with-clang was given.
5259 if test "${with_clang+set}" = set; then
5260 withval=$with_clang;
5267 # Check whether --with-built-clang was given.
5268 if test "${with_built_clang+set}" = set; then
5269 withval=$with_built_clang;
5271 with_built_clang=check
5275 { echo "$as_me:$LINENO: checking clang compiler" >&5
5276 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5279 if test "$with_clang" != "default"; then
5280 WITH_CLANGPATH="$with_clang"
5281 if ! test -x "$WITH_CLANGPATH"; then
5282 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5283 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5284 { (exit 1); exit 1; }; }
5286 elif test "$with_built_clang" = "yes"; then
5288 elif test "$with_built_clang" = "no"; then
5291 if test "$with_built_clang" != "check"; then
5292 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5293 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5294 { (exit 1); exit 1; }; }
5297 if test -f ${srcdir}/tools/clang/README.txt; then
5302 if ! test -z "$WITH_CLANGPATH"; then
5303 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5304 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5305 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5306 elif test "$WITH_BUILT_CLANG" = "1"; then
5307 { echo "$as_me:$LINENO: result: built" >&5
5308 echo "${ECHO_T}built" >&6; }
5310 { echo "$as_me:$LINENO: result: none" >&5
5311 echo "${ECHO_T}none" >&6; }
5313 CLANGPATH=$WITH_CLANGPATH
5315 CLANGXXPATH=$WITH_CLANGXXPATH
5317 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5321 # Check whether --with-optimize-option was given.
5322 if test "${with_optimize_option+set}" = set; then
5323 withval=$with_optimize_option;
5328 { echo "$as_me:$LINENO: checking optimization flags" >&5
5329 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5332 case "$llvm_cv_os_type" in
5333 FreeBSD) optimize_option=-O2 ;;
5334 MingW) optimize_option=-O2 ;;
5335 *) optimize_option=-O3 ;;
5337 *) optimize_option="$withval" ;;
5339 OPTIMIZE_OPTION=$optimize_option
5341 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5342 echo "${ECHO_T}$optimize_option" >&6; }
5345 # Check whether --with-extra-options was given.
5346 if test "${with_extra_options+set}" = set; then
5347 withval=$with_extra_options;
5353 default) EXTRA_OPTIONS= ;;
5354 *) EXTRA_OPTIONS=$withval ;;
5356 EXTRA_OPTIONS=$EXTRA_OPTIONS
5360 # Check whether --with-extra-ld-options was given.
5361 if test "${with_extra_ld_options+set}" = set; then
5362 withval=$with_extra_ld_options;
5368 default) EXTRA_LD_OPTIONS= ;;
5369 *) EXTRA_LD_OPTIONS=$withval ;;
5371 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5374 # Check whether --enable-bindings was given.
5375 if test "${enable_bindings+set}" = set; then
5376 enableval=$enable_bindings;
5381 BINDINGS_TO_BUILD=""
5382 case "$enableval" in
5383 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5384 all ) BINDINGS_TO_BUILD="ocaml" ;;
5385 none | no) BINDINGS_TO_BUILD="" ;;
5386 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5387 case "$a_binding" in
5388 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5389 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5390 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5391 { (exit 1); exit 1; }; } ;;
5398 # Check whether --with-ocaml-libdir was given.
5399 if test "${with_ocaml_libdir+set}" = set; then
5400 withval=$with_ocaml_libdir;
5406 auto) with_ocaml_libdir="$withval" ;;
5407 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5408 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5409 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5410 { (exit 1); exit 1; }; } ;;
5414 # Check whether --with-clang-resource-dir was given.
5415 if test "${with_clang_resource_dir+set}" = set; then
5416 withval=$with_clang_resource_dir;
5422 cat >>confdefs.h <<_ACEOF
5423 #define CLANG_RESOURCE_DIR "$withval"
5428 # Check whether --with-c-include-dirs was given.
5429 if test "${with_c_include_dirs+set}" = set; then
5430 withval=$with_c_include_dirs;
5436 cat >>confdefs.h <<_ACEOF
5437 #define C_INCLUDE_DIRS "$withval"
5442 # Check whether --with-cxx-include-root was given.
5443 if test "${with_cxx_include_root+set}" = set; then
5444 withval=$with_cxx_include_root;
5450 cat >>confdefs.h <<_ACEOF
5451 #define CXX_INCLUDE_ROOT "$withval"
5456 # Check whether --with-cxx-include-arch was given.
5457 if test "${with_cxx_include_arch+set}" = set; then
5458 withval=$with_cxx_include_arch;
5464 cat >>confdefs.h <<_ACEOF
5465 #define CXX_INCLUDE_ARCH "$withval"
5470 # Check whether --with-cxx-include-32bit-dir was given.
5471 if test "${with_cxx_include_32bit_dir+set}" = set; then
5472 withval=$with_cxx_include_32bit_dir;
5478 cat >>confdefs.h <<_ACEOF
5479 #define CXX_INCLUDE_32BIT_DIR "$withval"
5484 # Check whether --with-cxx-include-64bit-dir was given.
5485 if test "${with_cxx_include_64bit_dir+set}" = set; then
5486 withval=$with_cxx_include_64bit_dir;
5492 cat >>confdefs.h <<_ACEOF
5493 #define CXX_INCLUDE_64BIT_DIR "$withval"
5498 # Check whether --with-binutils-include was given.
5499 if test "${with_binutils_include+set}" = set; then
5500 withval=$with_binutils_include;
5506 default) WITH_BINUTILS_INCDIR=default ;;
5507 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5508 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5509 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5510 { (exit 1); exit 1; }; } ;;
5512 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5513 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5515 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5516 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5517 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5518 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5519 { (exit 1); exit 1; }; };
5523 # Check whether --enable-libffi was given.
5524 if test "${enable_libffi+set}" = set; then
5525 enableval=$enable_libffi; case "$enableval" in
5526 yes) llvm_cv_enable_libffi="yes" ;;
5527 no) llvm_cv_enable_libffi="no" ;;
5528 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5529 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5530 { (exit 1); exit 1; }; } ;;
5533 llvm_cv_enable_libffi=no
5539 ac_cpp='$CPP $CPPFLAGS'
5540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5543 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5544 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5545 # On Suns, sometimes $CPP names a directory.
5546 if test -n "$CPP" && test -d "$CPP"; then
5549 if test -z "$CPP"; then
5550 if test "${ac_cv_prog_CPP+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 # Double quotes because CPP needs to be expanded
5554 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5557 for ac_c_preproc_warn_flag in '' yes
5559 # Use a header file that comes with gcc, so configuring glibc
5560 # with a fresh cross-compiler works.
5561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5562 # <limits.h> exists even on freestanding compilers.
5563 # On the NeXT, cc -E runs the code through the compiler's parser,
5564 # not just through cpp. "Syntax error" is here to catch this case.
5565 cat >conftest.$ac_ext <<_ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5572 # include <limits.h>
5574 # include <assert.h>
5578 if { (ac_try="$ac_cpp conftest.$ac_ext"
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5586 grep -v '^ *+' conftest.er1 >conftest.err
5588 cat conftest.err >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } >/dev/null; then
5591 if test -s conftest.err; then
5592 ac_cpp_err=$ac_c_preproc_warn_flag
5593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5600 if test -z "$ac_cpp_err"; then
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 # Broken: fails on valid input.
5610 rm -f conftest.err conftest.$ac_ext
5612 # OK, works on sane cases. Now check whether nonexistent headers
5613 # can be detected and how.
5614 cat >conftest.$ac_ext <<_ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 #include <ac_nonexistent.h>
5622 if { (ac_try="$ac_cpp conftest.$ac_ext"
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5630 grep -v '^ *+' conftest.er1 >conftest.err
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } >/dev/null; then
5635 if test -s conftest.err; then
5636 ac_cpp_err=$ac_c_preproc_warn_flag
5637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5644 if test -z "$ac_cpp_err"; then
5645 # Broken: success on invalid input.
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5651 # Passes both tests.
5656 rm -f conftest.err conftest.$ac_ext
5659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5660 rm -f conftest.err conftest.$ac_ext
5661 if $ac_preproc_ok; then
5673 { echo "$as_me:$LINENO: result: $CPP" >&5
5674 echo "${ECHO_T}$CPP" >&6; }
5676 for ac_c_preproc_warn_flag in '' yes
5678 # Use a header file that comes with gcc, so configuring glibc
5679 # with a fresh cross-compiler works.
5680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5681 # <limits.h> exists even on freestanding compilers.
5682 # On the NeXT, cc -E runs the code through the compiler's parser,
5683 # not just through cpp. "Syntax error" is here to catch this case.
5684 cat >conftest.$ac_ext <<_ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5691 # include <limits.h>
5693 # include <assert.h>
5697 if { (ac_try="$ac_cpp conftest.$ac_ext"
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } >/dev/null; then
5710 if test -s conftest.err; then
5711 ac_cpp_err=$ac_c_preproc_warn_flag
5712 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5719 if test -z "$ac_cpp_err"; then
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5725 # Broken: fails on valid input.
5729 rm -f conftest.err conftest.$ac_ext
5731 # OK, works on sane cases. Now check whether nonexistent headers
5732 # can be detected and how.
5733 cat >conftest.$ac_ext <<_ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 #include <ac_nonexistent.h>
5741 if { (ac_try="$ac_cpp conftest.$ac_ext"
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5749 grep -v '^ *+' conftest.er1 >conftest.err
5751 cat conftest.err >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } >/dev/null; then
5754 if test -s conftest.err; then
5755 ac_cpp_err=$ac_c_preproc_warn_flag
5756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5763 if test -z "$ac_cpp_err"; then
5764 # Broken: success on invalid input.
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5770 # Passes both tests.
5775 rm -f conftest.err conftest.$ac_ext
5778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5779 rm -f conftest.err conftest.$ac_ext
5780 if $ac_preproc_ok; then
5783 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5784 See \`config.log' for more details." >&5
5785 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5786 See \`config.log' for more details." >&2;}
5787 { (exit 1); exit 1; }; }
5791 ac_cpp='$CPP $CPPFLAGS'
5792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5797 ac_cpp='$CPP $CPPFLAGS'
5798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5801 if test -n "$ac_tool_prefix"; then
5804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5808 if test "${ac_cv_prog_CC+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 if test -n "$CC"; then
5812 ac_cv_prog_CC="$CC" # Let the user override the test.
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5821 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 if test -n "$CC"; then
5833 { echo "$as_me:$LINENO: result: $CC" >&5
5834 echo "${ECHO_T}$CC" >&6; }
5836 { echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6; }
5841 test -n "$CC" && break
5844 if test -z "$CC"; then
5848 # Extract the first word of "$ac_prog", so it can be a program name with args.
5849 set dummy $ac_prog; ac_word=$2
5850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 if test -n "$ac_ct_CC"; then
5856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5865 ac_cv_prog_ac_ct_CC="$ac_prog"
5866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5876 if test -n "$ac_ct_CC"; then
5877 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5878 echo "${ECHO_T}$ac_ct_CC" >&6; }
5880 { echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6; }
5885 test -n "$ac_ct_CC" && break
5888 if test "x$ac_ct_CC" = x; then
5891 case $cross_compiling:$ac_tool_warned in
5893 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5894 whose name does not start with the host triplet. If you think this
5895 configuration is useful to you, please write to autoconf@gnu.org." >&5
5896 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5897 whose name does not start with the host triplet. If you think this
5898 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5899 ac_tool_warned=yes ;;
5906 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5907 See \`config.log' for more details." >&5
5908 echo "$as_me: error: no acceptable C compiler found in \$PATH
5909 See \`config.log' for more details." >&2;}
5910 { (exit 1); exit 1; }; }
5912 # Provide some information about the compiler.
5913 echo "$as_me:$LINENO: checking for C compiler version" >&5
5914 ac_compiler=`set X $ac_compile; echo $2`
5915 { (ac_try="$ac_compiler --version >&5"
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_compiler --version >&5") 2>&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }
5925 { (ac_try="$ac_compiler -v >&5"
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_compiler -v >&5") 2>&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }
5935 { (ac_try="$ac_compiler -V >&5"
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_compiler -V >&5") 2>&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }
5946 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5947 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5948 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 cat >conftest.$ac_ext <<_ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h. */
5969 rm -f conftest.$ac_objext
5970 if { (ac_try="$ac_compile"
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_compile") 2>conftest.er1
5978 grep -v '^ *+' conftest.er1 >conftest.err
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5984 { (case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_try") 2>&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; } &&
5993 { ac_try='test -s conftest.$ac_objext'
5994 { (case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_try") 2>&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6015 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6016 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6017 GCC=`test $ac_compiler_gnu = yes && echo yes`
6018 ac_test_CFLAGS=${CFLAGS+set}
6019 ac_save_CFLAGS=$CFLAGS
6020 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6021 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6022 if test "${ac_cv_prog_cc_g+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 ac_save_c_werror_flag=$ac_c_werror_flag
6026 ac_c_werror_flag=yes
6029 cat >conftest.$ac_ext <<_ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6044 rm -f conftest.$ac_objext
6045 if { (ac_try="$ac_compile"
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_compile") 2>conftest.er1
6053 grep -v '^ *+' conftest.er1 >conftest.err
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } &&
6058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6059 { (case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_try") 2>&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; } &&
6068 { ac_try='test -s conftest.$ac_objext'
6069 { (case "(($ac_try" in
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_try") 2>&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6084 cat >conftest.$ac_ext <<_ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6099 rm -f conftest.$ac_objext
6100 if { (ac_try="$ac_compile"
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_compile") 2>conftest.er1
6108 grep -v '^ *+' conftest.er1 >conftest.err
6110 cat conftest.err >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } &&
6113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6114 { (case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_try") 2>&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; } &&
6123 { ac_try='test -s conftest.$ac_objext'
6124 { (case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_try") 2>&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6138 ac_c_werror_flag=$ac_save_c_werror_flag
6140 cat >conftest.$ac_ext <<_ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6155 rm -f conftest.$ac_objext
6156 if { (ac_try="$ac_compile"
6158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159 *) ac_try_echo=$ac_try;;
6161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162 (eval "$ac_compile") 2>conftest.er1
6164 grep -v '^ *+' conftest.er1 >conftest.err
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6170 { (case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_try") 2>&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; } &&
6179 { ac_try='test -s conftest.$ac_objext'
6180 { (case "(($ac_try" in
6181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182 *) ac_try_echo=$ac_try;;
6184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185 (eval "$ac_try") 2>&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204 ac_c_werror_flag=$ac_save_c_werror_flag
6206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6207 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6208 if test "$ac_test_CFLAGS" = set; then
6209 CFLAGS=$ac_save_CFLAGS
6210 elif test $ac_cv_prog_cc_g = yes; then
6211 if test "$GCC" = yes; then
6217 if test "$GCC" = yes; then
6223 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6224 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6225 if test "${ac_cv_prog_cc_c89+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 ac_cv_prog_cc_c89=no
6230 cat >conftest.$ac_ext <<_ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6238 #include <sys/types.h>
6239 #include <sys/stat.h>
6240 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6241 struct buf { int x; };
6242 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6243 static char *e (p, i)
6249 static char *f (char * (*g) (char **, int), char **p, ...)
6254 s = g (p, va_arg (v,int));
6259 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6260 function prototypes and stuff, but not '\xHH' hex character constants.
6261 These don't provoke an error unfortunately, instead are silently treated
6262 as 'x'. The following induces an error, until -std is added to get
6263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6264 array size at least. It's necessary to write '\x00'==0 to get something
6265 that's true only with -std. */
6266 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6268 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6269 inside strings and character constants. */
6271 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6273 int test (int i, double x);
6274 struct s1 {int (*f) (int a);};
6275 struct s2 {int (*f) (double a);};
6276 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6282 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6287 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6290 CC="$ac_save_CC $ac_arg"
6291 rm -f conftest.$ac_objext
6292 if { (ac_try="$ac_compile"
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_compile") 2>conftest.er1
6300 grep -v '^ *+' conftest.er1 >conftest.err
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6306 { (case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_try") 2>&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } &&
6315 { ac_try='test -s conftest.$ac_objext'
6316 { (case "(($ac_try" in
6317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318 *) ac_try_echo=$ac_try;;
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321 (eval "$ac_try") 2>&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6325 ac_cv_prog_cc_c89=$ac_arg
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6333 rm -f core conftest.err conftest.$ac_objext
6334 test "x$ac_cv_prog_cc_c89" != "xno" && break
6336 rm -f conftest.$ac_ext
6341 case "x$ac_cv_prog_cc_c89" in
6343 { echo "$as_me:$LINENO: result: none needed" >&5
6344 echo "${ECHO_T}none needed" >&6; } ;;
6346 { echo "$as_me:$LINENO: result: unsupported" >&5
6347 echo "${ECHO_T}unsupported" >&6; } ;;
6349 CC="$CC $ac_cv_prog_cc_c89"
6350 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6351 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6356 ac_cpp='$CPP $CPPFLAGS'
6357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6362 ac_cpp='$CXXCPP $CPPFLAGS'
6363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6366 if test -z "$CXX"; then
6367 if test -n "$CCC"; then
6370 if test -n "$ac_tool_prefix"; then
6373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6377 if test "${ac_cv_prog_CXX+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 if test -n "$CXX"; then
6381 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6390 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 if test -n "$CXX"; then
6402 { echo "$as_me:$LINENO: result: $CXX" >&5
6403 echo "${ECHO_T}$CXX" >&6; }
6405 { echo "$as_me:$LINENO: result: no" >&5
6406 echo "${ECHO_T}no" >&6; }
6410 test -n "$CXX" && break
6413 if test -z "$CXX"; then
6417 # Extract the first word of "$ac_prog", so it can be a program name with args.
6418 set dummy $ac_prog; ac_word=$2
6419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6421 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 if test -n "$ac_ct_CXX"; then
6425 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_ac_ct_CXX="$ac_prog"
6435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6444 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6445 if test -n "$ac_ct_CXX"; then
6446 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6447 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6449 { echo "$as_me:$LINENO: result: no" >&5
6450 echo "${ECHO_T}no" >&6; }
6454 test -n "$ac_ct_CXX" && break
6457 if test "x$ac_ct_CXX" = x; then
6460 case $cross_compiling:$ac_tool_warned in
6462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6463 whose name does not start with the host triplet. If you think this
6464 configuration is useful to you, please write to autoconf@gnu.org." >&5
6465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6466 whose name does not start with the host triplet. If you think this
6467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6468 ac_tool_warned=yes ;;
6476 # Provide some information about the compiler.
6477 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6478 ac_compiler=`set X $ac_compile; echo $2`
6479 { (ac_try="$ac_compiler --version >&5"
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_compiler --version >&5") 2>&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }
6489 { (ac_try="$ac_compiler -v >&5"
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_compiler -v >&5") 2>&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }
6499 { (ac_try="$ac_compiler -V >&5"
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_compiler -V >&5") 2>&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }
6510 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6511 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6512 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 cat >conftest.$ac_ext <<_ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6533 rm -f conftest.$ac_objext
6534 if { (ac_try="$ac_compile"
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_compile") 2>conftest.er1
6542 grep -v '^ *+' conftest.er1 >conftest.err
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
6547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6548 { (case "(($ac_try" in
6549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550 *) ac_try_echo=$ac_try;;
6552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553 (eval "$ac_try") 2>&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; } &&
6557 { ac_try='test -s conftest.$ac_objext'
6558 { (case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_try") 2>&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6569 echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6579 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6580 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6581 GXX=`test $ac_compiler_gnu = yes && echo yes`
6582 ac_test_CXXFLAGS=${CXXFLAGS+set}
6583 ac_save_CXXFLAGS=$CXXFLAGS
6584 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6585 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6586 if test "${ac_cv_prog_cxx_g+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6590 ac_cxx_werror_flag=yes
6593 cat >conftest.$ac_ext <<_ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6608 rm -f conftest.$ac_objext
6609 if { (ac_try="$ac_compile"
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6615 (eval "$ac_compile") 2>conftest.er1
6617 grep -v '^ *+' conftest.er1 >conftest.err
6619 cat conftest.err >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6623 { (case "(($ac_try" in
6624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6625 *) ac_try_echo=$ac_try;;
6627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628 (eval "$ac_try") 2>&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; } &&
6632 { ac_try='test -s conftest.$ac_objext'
6633 { (case "(($ac_try" in
6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635 *) ac_try_echo=$ac_try;;
6637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6638 (eval "$ac_try") 2>&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; }; then
6642 ac_cv_prog_cxx_g=yes
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6648 cat >conftest.$ac_ext <<_ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6663 rm -f conftest.$ac_objext
6664 if { (ac_try="$ac_compile"
6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667 *) ac_try_echo=$ac_try;;
6669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6670 (eval "$ac_compile") 2>conftest.er1
6672 grep -v '^ *+' conftest.er1 >conftest.err
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
6677 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6678 { (case "(($ac_try" in
6679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683 (eval "$ac_try") 2>&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; } &&
6687 { ac_try='test -s conftest.$ac_objext'
6688 { (case "(($ac_try" in
6689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690 *) ac_try_echo=$ac_try;;
6692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6693 (eval "$ac_try") 2>&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; }; then
6699 echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6702 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6704 cat >conftest.$ac_ext <<_ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6719 rm -f conftest.$ac_objext
6720 if { (ac_try="$ac_compile"
6722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6726 (eval "$ac_compile") 2>conftest.er1
6728 grep -v '^ *+' conftest.er1 >conftest.err
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6734 { (case "(($ac_try" in
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739 (eval "$ac_try") 2>&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }; } &&
6743 { ac_try='test -s conftest.$ac_objext'
6744 { (case "(($ac_try" in
6745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746 *) ac_try_echo=$ac_try;;
6748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749 (eval "$ac_try") 2>&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 ac_cv_prog_cxx_g=yes
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6770 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6771 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6772 if test "$ac_test_CXXFLAGS" = set; then
6773 CXXFLAGS=$ac_save_CXXFLAGS
6774 elif test $ac_cv_prog_cxx_g = yes; then
6775 if test "$GXX" = yes; then
6781 if test "$GXX" = yes; then
6788 ac_cpp='$CPP $CPPFLAGS'
6789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6794 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6795 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6796 if test "${lt_cv_path_NM+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 if test -n "$NM"; then
6800 # Let the user override the test.
6803 lt_nm_to_check="${ac_tool_prefix}nm"
6804 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6805 lt_nm_to_check="$lt_nm_to_check nm"
6807 for lt_tmp_nm in $lt_nm_to_check; do
6808 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6809 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6811 test -z "$ac_dir" && ac_dir=.
6812 tmp_nm="$ac_dir/$lt_tmp_nm"
6813 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6814 # Check to see if the nm accepts a BSD-compat flag.
6815 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6816 # nm: unknown option "B" ignored
6817 # Tru64's nm complains that /dev/null is an invalid object file
6818 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6819 */dev/null* | *'Invalid file or object type'*)
6820 lt_cv_path_NM="$tmp_nm -B"
6824 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6826 lt_cv_path_NM="$tmp_nm -p"
6830 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6831 continue # so that we can try to find one that supports BSD flags
6840 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6843 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6844 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6849 { echo "$as_me:$LINENO: checking for GNU make" >&5
6850 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6851 if test "${llvm_cv_gnu_make_command+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 llvm_cv_gnu_make_command=''
6855 for a in "$MAKE" make gmake gnumake ; do
6856 if test -z "$a" ; then continue ; fi ;
6857 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6859 llvm_cv_gnu_make_command=$a ;
6864 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6865 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6866 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6870 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6871 echo "${ECHO_T}\"Not found\"" >&6; };
6875 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6876 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6878 if test "$LN_S" = "ln -s"; then
6879 { echo "$as_me:$LINENO: result: yes" >&5
6880 echo "${ECHO_T}yes" >&6; }
6882 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6883 echo "${ECHO_T}no, using $LN_S" >&6; }
6886 # Extract the first word of "cmp", so it can be a program name with args.
6887 set dummy cmp; ac_word=$2
6888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890 if test "${ac_cv_path_CMP+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6918 if test -n "$CMP"; then
6919 { echo "$as_me:$LINENO: result: $CMP" >&5
6920 echo "${ECHO_T}$CMP" >&6; }
6922 { echo "$as_me:$LINENO: result: no" >&5
6923 echo "${ECHO_T}no" >&6; }
6927 # Extract the first word of "cp", so it can be a program name with args.
6928 set dummy cp; ac_word=$2
6929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6931 if test "${ac_cv_path_CP+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6959 if test -n "$CP"; then
6960 { echo "$as_me:$LINENO: result: $CP" >&5
6961 echo "${ECHO_T}$CP" >&6; }
6963 { echo "$as_me:$LINENO: result: no" >&5
6964 echo "${ECHO_T}no" >&6; }
6968 # Extract the first word of "date", so it can be a program name with args.
6969 set dummy date; ac_word=$2
6970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6972 if test "${ac_cv_path_DATE+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 test -z "$as_dir" && as_dir=.
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6987 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6999 DATE=$ac_cv_path_DATE
7000 if test -n "$DATE"; then
7001 { echo "$as_me:$LINENO: result: $DATE" >&5
7002 echo "${ECHO_T}$DATE" >&6; }
7004 { echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6; }
7009 # Extract the first word of "find", so it can be a program name with args.
7010 set dummy find; ac_word=$2
7011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7013 if test "${ac_cv_path_FIND+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7028 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7040 FIND=$ac_cv_path_FIND
7041 if test -n "$FIND"; then
7042 { echo "$as_me:$LINENO: result: $FIND" >&5
7043 echo "${ECHO_T}$FIND" >&6; }
7045 { echo "$as_me:$LINENO: result: no" >&5
7046 echo "${ECHO_T}no" >&6; }
7050 # Extract the first word of "grep", so it can be a program name with args.
7051 set dummy grep; ac_word=$2
7052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7054 if test "${ac_cv_path_GREP+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7069 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7081 GREP=$ac_cv_path_GREP
7082 if test -n "$GREP"; then
7083 { echo "$as_me:$LINENO: result: $GREP" >&5
7084 echo "${ECHO_T}$GREP" >&6; }
7086 { echo "$as_me:$LINENO: result: no" >&5
7087 echo "${ECHO_T}no" >&6; }
7091 # Extract the first word of "mkdir", so it can be a program name with args.
7092 set dummy mkdir; ac_word=$2
7093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7095 if test "${ac_cv_path_MKDIR+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7110 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7122 MKDIR=$ac_cv_path_MKDIR
7123 if test -n "$MKDIR"; then
7124 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7125 echo "${ECHO_T}$MKDIR" >&6; }
7127 { echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6; }
7132 # Extract the first word of "mv", so it can be a program name with args.
7133 set dummy mv; ac_word=$2
7134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7136 if test "${ac_cv_path_MV+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7164 if test -n "$MV"; then
7165 { echo "$as_me:$LINENO: result: $MV" >&5
7166 echo "${ECHO_T}$MV" >&6; }
7168 { echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6; }
7173 if test -n "$ac_tool_prefix"; then
7174 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7175 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7178 if test "${ac_cv_prog_RANLIB+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 if test -n "$RANLIB"; then
7182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7191 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 RANLIB=$ac_cv_prog_RANLIB
7202 if test -n "$RANLIB"; then
7203 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7204 echo "${ECHO_T}$RANLIB" >&6; }
7206 { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7212 if test -z "$ac_cv_prog_RANLIB"; then
7213 ac_ct_RANLIB=$RANLIB
7214 # Extract the first word of "ranlib", so it can be a program name with args.
7215 set dummy ranlib; ac_word=$2
7216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7218 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 if test -n "$ac_ct_RANLIB"; then
7222 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7231 ac_cv_prog_ac_ct_RANLIB="ranlib"
7232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7242 if test -n "$ac_ct_RANLIB"; then
7243 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7244 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7246 { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7250 if test "x$ac_ct_RANLIB" = x; then
7253 case $cross_compiling:$ac_tool_warned in
7255 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7256 whose name does not start with the host triplet. If you think this
7257 configuration is useful to you, please write to autoconf@gnu.org." >&5
7258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7259 whose name does not start with the host triplet. If you think this
7260 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7261 ac_tool_warned=yes ;;
7263 RANLIB=$ac_ct_RANLIB
7266 RANLIB="$ac_cv_prog_RANLIB"
7269 if test -n "$ac_tool_prefix"; then
7270 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7271 set dummy ${ac_tool_prefix}ar; ac_word=$2
7272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7274 if test "${ac_cv_prog_AR+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 if test -n "$AR"; then
7278 ac_cv_prog_AR="$AR" # Let the user override the test.
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7287 ac_cv_prog_AR="${ac_tool_prefix}ar"
7288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 if test -n "$AR"; then
7299 { echo "$as_me:$LINENO: result: $AR" >&5
7300 echo "${ECHO_T}$AR" >&6; }
7302 { echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6; }
7308 if test -z "$ac_cv_prog_AR"; then
7310 # Extract the first word of "ar", so it can be a program name with args.
7311 set dummy ar; ac_word=$2
7312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7314 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 if test -n "$ac_ct_AR"; then
7318 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7327 ac_cv_prog_ac_ct_AR="ar"
7328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7338 if test -n "$ac_ct_AR"; then
7339 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7340 echo "${ECHO_T}$ac_ct_AR" >&6; }
7342 { echo "$as_me:$LINENO: result: no" >&5
7343 echo "${ECHO_T}no" >&6; }
7346 if test "x$ac_ct_AR" = x; then
7349 case $cross_compiling:$ac_tool_warned in
7351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7352 whose name does not start with the host triplet. If you think this
7353 configuration is useful to you, please write to autoconf@gnu.org." >&5
7354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7355 whose name does not start with the host triplet. If you think this
7356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7357 ac_tool_warned=yes ;;
7365 # Extract the first word of "rm", so it can be a program name with args.
7366 set dummy rm; ac_word=$2
7367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7369 if test "${ac_cv_path_RM+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7397 if test -n "$RM"; then
7398 { echo "$as_me:$LINENO: result: $RM" >&5
7399 echo "${ECHO_T}$RM" >&6; }
7401 { echo "$as_me:$LINENO: result: no" >&5
7402 echo "${ECHO_T}no" >&6; }
7406 # Extract the first word of "sed", so it can be a program name with args.
7407 set dummy sed; ac_word=$2
7408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7410 if test "${ac_cv_path_SED+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7425 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7438 if test -n "$SED"; then
7439 { echo "$as_me:$LINENO: result: $SED" >&5
7440 echo "${ECHO_T}$SED" >&6; }
7442 { echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6; }
7447 # Extract the first word of "tar", so it can be a program name with args.
7448 set dummy tar; ac_word=$2
7449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451 if test "${ac_cv_path_TAR+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7466 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7479 if test -n "$TAR"; then
7480 { echo "$as_me:$LINENO: result: $TAR" >&5
7481 echo "${ECHO_T}$TAR" >&6; }
7483 { echo "$as_me:$LINENO: result: no" >&5
7484 echo "${ECHO_T}no" >&6; }
7488 # Extract the first word of "pwd", so it can be a program name with args.
7489 set dummy pwd; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_path_BINPWD+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7519 BINPWD=$ac_cv_path_BINPWD
7520 if test -n "$BINPWD"; then
7521 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7522 echo "${ECHO_T}$BINPWD" >&6; }
7524 { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7530 # Extract the first word of "Graphviz", so it can be a program name with args.
7531 set dummy Graphviz; ac_word=$2
7532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7534 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7549 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7561 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7562 if test -n "$GRAPHVIZ"; then
7563 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7564 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7566 { echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6; }
7571 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7573 cat >>confdefs.h <<\_ACEOF
7574 #define HAVE_GRAPHVIZ 1
7577 if test "$llvm_cv_os_type" = "MingW" ; then
7578 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7581 cat >>confdefs.h <<_ACEOF
7582 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7586 # Extract the first word of "dot", so it can be a program name with args.
7587 set dummy dot; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_path_DOT+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7618 if test -n "$DOT"; then
7619 { echo "$as_me:$LINENO: result: $DOT" >&5
7620 echo "${ECHO_T}$DOT" >&6; }
7622 { echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6; }
7627 if test "$DOT" != "echo dot" ; then
7629 cat >>confdefs.h <<\_ACEOF
7633 if test "$llvm_cv_os_type" = "MingW" ; then
7634 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7637 cat >>confdefs.h <<_ACEOF
7638 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7642 # Extract the first word of "fdp", so it can be a program name with args.
7643 set dummy fdp; ac_word=$2
7644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646 if test "${ac_cv_path_FDP+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7661 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7674 if test -n "$FDP"; then
7675 { echo "$as_me:$LINENO: result: $FDP" >&5
7676 echo "${ECHO_T}$FDP" >&6; }
7678 { echo "$as_me:$LINENO: result: no" >&5
7679 echo "${ECHO_T}no" >&6; }
7683 if test "$FDP" != "echo fdp" ; then
7685 cat >>confdefs.h <<\_ACEOF
7689 if test "$llvm_cv_os_type" = "MingW" ; then
7690 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7693 cat >>confdefs.h <<_ACEOF
7694 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7698 # Extract the first word of "neato", so it can be a program name with args.
7699 set dummy neato; ac_word=$2
7700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7702 if test "${ac_cv_path_NEATO+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7717 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7729 NEATO=$ac_cv_path_NEATO
7730 if test -n "$NEATO"; then
7731 { echo "$as_me:$LINENO: result: $NEATO" >&5
7732 echo "${ECHO_T}$NEATO" >&6; }
7734 { echo "$as_me:$LINENO: result: no" >&5
7735 echo "${ECHO_T}no" >&6; }
7739 if test "$NEATO" != "echo neato" ; then
7741 cat >>confdefs.h <<\_ACEOF
7742 #define HAVE_NEATO 1
7745 if test "$llvm_cv_os_type" = "MingW" ; then
7746 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7749 cat >>confdefs.h <<_ACEOF
7750 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7754 # Extract the first word of "twopi", so it can be a program name with args.
7755 set dummy twopi; ac_word=$2
7756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7758 if test "${ac_cv_path_TWOPI+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7773 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7785 TWOPI=$ac_cv_path_TWOPI
7786 if test -n "$TWOPI"; then
7787 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7788 echo "${ECHO_T}$TWOPI" >&6; }
7790 { echo "$as_me:$LINENO: result: no" >&5
7791 echo "${ECHO_T}no" >&6; }
7795 if test "$TWOPI" != "echo twopi" ; then
7797 cat >>confdefs.h <<\_ACEOF
7798 #define HAVE_TWOPI 1
7801 if test "$llvm_cv_os_type" = "MingW" ; then
7802 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7805 cat >>confdefs.h <<_ACEOF
7806 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7810 # Extract the first word of "circo", so it can be a program name with args.
7811 set dummy circo; ac_word=$2
7812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7814 if test "${ac_cv_path_CIRCO+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7829 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7841 CIRCO=$ac_cv_path_CIRCO
7842 if test -n "$CIRCO"; then
7843 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7844 echo "${ECHO_T}$CIRCO" >&6; }
7846 { echo "$as_me:$LINENO: result: no" >&5
7847 echo "${ECHO_T}no" >&6; }
7851 if test "$CIRCO" != "echo circo" ; then
7853 cat >>confdefs.h <<\_ACEOF
7854 #define HAVE_CIRCO 1
7857 if test "$llvm_cv_os_type" = "MingW" ; then
7858 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7861 cat >>confdefs.h <<_ACEOF
7862 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7866 for ac_prog in gv gsview32
7868 # Extract the first word of "$ac_prog", so it can be a program name with args.
7869 set dummy $ac_prog; ac_word=$2
7870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7872 if test "${ac_cv_path_GV+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 test -z "$as_dir" && as_dir=.
7885 for ac_exec_ext in '' $ac_executable_extensions; do
7886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7887 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7899 if test -n "$GV"; then
7900 { echo "$as_me:$LINENO: result: $GV" >&5
7901 echo "${ECHO_T}$GV" >&6; }
7903 { echo "$as_me:$LINENO: result: no" >&5
7904 echo "${ECHO_T}no" >&6; }
7908 test -n "$GV" && break
7910 test -n "$GV" || GV="echo gv"
7912 if test "$GV" != "echo gv" ; then
7914 cat >>confdefs.h <<\_ACEOF
7918 if test "$llvm_cv_os_type" = "MingW" ; then
7919 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7922 cat >>confdefs.h <<_ACEOF
7923 #define LLVM_PATH_GV "$GV${EXEEXT}"
7927 # Extract the first word of "dotty", so it can be a program name with args.
7928 set dummy dotty; ac_word=$2
7929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7931 if test "${ac_cv_path_DOTTY+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 test -z "$as_dir" && as_dir=.
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7946 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7954 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7958 DOTTY=$ac_cv_path_DOTTY
7959 if test -n "$DOTTY"; then
7960 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7961 echo "${ECHO_T}$DOTTY" >&6; }
7963 { echo "$as_me:$LINENO: result: no" >&5
7964 echo "${ECHO_T}no" >&6; }
7968 if test "$DOTTY" != "echo dotty" ; then
7970 cat >>confdefs.h <<\_ACEOF
7971 #define HAVE_DOTTY 1
7974 if test "$llvm_cv_os_type" = "MingW" ; then
7975 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7978 cat >>confdefs.h <<_ACEOF
7979 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7983 # Extract the first word of "xdot.py", so it can be a program name with args.
7984 set dummy xdot.py; ac_word=$2
7985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7987 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8002 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
8003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8014 XDOT_PY=$ac_cv_path_XDOT_PY
8015 if test -n "$XDOT_PY"; then
8016 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8017 echo "${ECHO_T}$XDOT_PY" >&6; }
8019 { echo "$as_me:$LINENO: result: no" >&5
8020 echo "${ECHO_T}no" >&6; }
8024 if test "$XDOT_PY" != "echo xdot.py" ; then
8026 cat >>confdefs.h <<\_ACEOF
8027 #define HAVE_XDOT_PY 1
8030 if test "$llvm_cv_os_type" = "MingW" ; then
8031 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8034 cat >>confdefs.h <<_ACEOF
8035 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8041 # Extract the first word of "perl", so it can be a program name with args.
8042 set dummy perl; ac_word=$2
8043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8045 if test "${ac_cv_path_PERL+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 test -z "$as_dir" && as_dir=.
8058 for ac_exec_ext in '' $ac_executable_extensions; do
8059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8060 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8072 PERL=$ac_cv_path_PERL
8073 if test -n "$PERL"; then
8074 { echo "$as_me:$LINENO: result: $PERL" >&5
8075 echo "${ECHO_T}$PERL" >&6; }
8077 { echo "$as_me:$LINENO: result: no" >&5
8078 echo "${ECHO_T}no" >&6; }
8082 if test "$PERL" != "none"; then
8083 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8084 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8085 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8086 { echo "$as_me:$LINENO: result: yes" >&5
8087 echo "${ECHO_T}yes" >&6; }
8090 { echo "$as_me:$LINENO: result: not found" >&5
8091 echo "${ECHO_T}not found" >&6; }
8096 if test x"$PERL" = xnone; then
8099 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8100 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8101 { (exit 1); exit 1; }; }
8107 # Find a good install program. We prefer a C program (faster),
8108 # so one script is as good as another. But avoid the broken or
8109 # incompatible versions:
8110 # SysV /etc/install, /usr/sbin/install
8111 # SunOS /usr/etc/install
8112 # IRIX /sbin/install
8114 # AmigaOS /C/install, which installs bootblocks on floppy discs
8115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8118 # OS/2's system install, which has a completely different semantic
8119 # ./install, which can be erroneously created by make from ./install.sh.
8120 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8121 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8122 if test -z "$INSTALL"; then
8123 if test "${ac_cv_path_install+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 test -z "$as_dir" && as_dir=.
8131 # Account for people who put trailing slashes in PATH elements.
8133 ./ | .// | /cC/* | \
8134 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8135 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8138 # OSF1 and SCO ODT 3.0 have their own names for install.
8139 # Don't use installbsd from OSF since it installs stuff as root
8141 for ac_prog in ginstall scoinst install; do
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8144 if test $ac_prog = install &&
8145 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8146 # AIX install. It has an incompatible calling convention.
8148 elif test $ac_prog = install &&
8149 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8150 # program-specific install script used by HP pwplus--don't use.
8153 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8166 if test "${ac_cv_path_install+set}" = set; then
8167 INSTALL=$ac_cv_path_install
8169 # As a last resort, use the slow shell script. Don't cache a
8170 # value for INSTALL within a source directory, because that will
8171 # break other packages using the cache if that directory is
8172 # removed, or if the value is a relative name.
8173 INSTALL=$ac_install_sh
8176 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8177 echo "${ECHO_T}$INSTALL" >&6; }
8179 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8180 # It thinks the first close brace ends the variable substitution.
8181 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8183 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8185 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8188 [\\/$]* | ?:[\\/]* ) ;;
8189 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8192 # Extract the first word of "bzip2", so it can be a program name with args.
8193 set dummy bzip2; ac_word=$2
8194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8196 if test "${ac_cv_path_BZIP2+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8211 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8222 BZIP2=$ac_cv_path_BZIP2
8223 if test -n "$BZIP2"; then
8224 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8225 echo "${ECHO_T}$BZIP2" >&6; }
8227 { echo "$as_me:$LINENO: result: no" >&5
8228 echo "${ECHO_T}no" >&6; }
8232 # Extract the first word of "cat", so it can be a program name with args.
8233 set dummy cat; ac_word=$2
8234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8236 if test "${ac_cv_path_CAT+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 test -z "$as_dir" && as_dir=.
8249 for ac_exec_ext in '' $ac_executable_extensions; do
8250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8251 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8263 if test -n "$CAT"; then
8264 { echo "$as_me:$LINENO: result: $CAT" >&5
8265 echo "${ECHO_T}$CAT" >&6; }
8267 { echo "$as_me:$LINENO: result: no" >&5
8268 echo "${ECHO_T}no" >&6; }
8272 # Extract the first word of "doxygen", so it can be a program name with args.
8273 set dummy doxygen; ac_word=$2
8274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8276 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 test -z "$as_dir" && as_dir=.
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8291 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 DOXYGEN=$ac_cv_path_DOXYGEN
8303 if test -n "$DOXYGEN"; then
8304 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8305 echo "${ECHO_T}$DOXYGEN" >&6; }
8307 { echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6; }
8312 # Extract the first word of "groff", so it can be a program name with args.
8313 set dummy groff; ac_word=$2
8314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8316 if test "${ac_cv_path_GROFF+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8331 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 GROFF=$ac_cv_path_GROFF
8343 if test -n "$GROFF"; then
8344 { echo "$as_me:$LINENO: result: $GROFF" >&5
8345 echo "${ECHO_T}$GROFF" >&6; }
8347 { echo "$as_me:$LINENO: result: no" >&5
8348 echo "${ECHO_T}no" >&6; }
8352 # Extract the first word of "gzip", so it can be a program name with args.
8353 set dummy gzip; ac_word=$2
8354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8356 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 GZIPBIN=$ac_cv_path_GZIPBIN
8383 if test -n "$GZIPBIN"; then
8384 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8385 echo "${ECHO_T}$GZIPBIN" >&6; }
8387 { echo "$as_me:$LINENO: result: no" >&5
8388 echo "${ECHO_T}no" >&6; }
8392 # Extract the first word of "pod2html", so it can be a program name with args.
8393 set dummy pod2html; ac_word=$2
8394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8396 if test "${ac_cv_path_POD2HTML+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8411 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 POD2HTML=$ac_cv_path_POD2HTML
8423 if test -n "$POD2HTML"; then
8424 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8425 echo "${ECHO_T}$POD2HTML" >&6; }
8427 { echo "$as_me:$LINENO: result: no" >&5
8428 echo "${ECHO_T}no" >&6; }
8432 # Extract the first word of "pod2man", so it can be a program name with args.
8433 set dummy pod2man; ac_word=$2
8434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8436 if test "${ac_cv_path_POD2MAN+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 test -z "$as_dir" && as_dir=.
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8451 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 POD2MAN=$ac_cv_path_POD2MAN
8463 if test -n "$POD2MAN"; then
8464 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8465 echo "${ECHO_T}$POD2MAN" >&6; }
8467 { echo "$as_me:$LINENO: result: no" >&5
8468 echo "${ECHO_T}no" >&6; }
8472 # Extract the first word of "pdfroff", so it can be a program name with args.
8473 set dummy pdfroff; ac_word=$2
8474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8476 if test "${ac_cv_path_PDFROFF+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8481 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8491 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 PDFROFF=$ac_cv_path_PDFROFF
8503 if test -n "$PDFROFF"; then
8504 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8505 echo "${ECHO_T}$PDFROFF" >&6; }
8507 { echo "$as_me:$LINENO: result: no" >&5
8508 echo "${ECHO_T}no" >&6; }
8512 # Extract the first word of "runtest", so it can be a program name with args.
8513 set dummy runtest; ac_word=$2
8514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8516 if test "${ac_cv_path_RUNTEST+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8531 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 RUNTEST=$ac_cv_path_RUNTEST
8543 if test -n "$RUNTEST"; then
8544 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8545 echo "${ECHO_T}$RUNTEST" >&6; }
8547 { echo "$as_me:$LINENO: result: no" >&5
8548 echo "${ECHO_T}no" >&6; }
8554 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8555 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8557 # Check whether --with-tclinclude was given.
8558 if test "${with_tclinclude+set}" = set; then
8559 withval=$with_tclinclude; with_tclinclude=${withval}
8564 if test "${ac_cv_path_tclsh+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 if test x"${with_tclinclude}" != x ; then
8569 if test -f ${with_tclinclude}/tclsh ; then
8570 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8571 elif test -f ${with_tclinclude}/src/tclsh ; then
8572 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8574 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8575 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8576 { (exit 1); exit 1; }; }
8582 if test x"${ac_cv_path_tclsh}" = x ; then
8583 { echo "$as_me:$LINENO: result: none" >&5
8584 echo "${ECHO_T}none" >&6; }
8585 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
8587 # Extract the first word of "$ac_prog", so it can be a program name with args.
8588 set dummy $ac_prog; ac_word=$2
8589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8591 if test "${ac_cv_path_TCLSH+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 test -z "$as_dir" && as_dir=.
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8606 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8617 TCLSH=$ac_cv_path_TCLSH
8618 if test -n "$TCLSH"; then
8619 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8620 echo "${ECHO_T}$TCLSH" >&6; }
8622 { echo "$as_me:$LINENO: result: no" >&5
8623 echo "${ECHO_T}no" >&6; }
8627 test -n "$TCLSH" && break
8630 if test x"${TCLSH}" = x ; then
8631 ac_cv_path_tclsh='';
8633 ac_cv_path_tclsh="${TCLSH}";
8636 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8637 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8638 TCLSH="${ac_cv_path_tclsh}"
8642 # Extract the first word of "zip", so it can be a program name with args.
8643 set dummy zip; ac_word=$2
8644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8646 if test "${ac_cv_path_ZIP+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8661 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 if test -n "$ZIP"; then
8674 { echo "$as_me:$LINENO: result: $ZIP" >&5
8675 echo "${ECHO_T}$ZIP" >&6; }
8677 { echo "$as_me:$LINENO: result: no" >&5
8678 echo "${ECHO_T}no" >&6; }
8682 for ac_prog in ocamlc
8684 # Extract the first word of "$ac_prog", so it can be a program name with args.
8685 set dummy $ac_prog; ac_word=$2
8686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8688 if test "${ac_cv_path_OCAMLC+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8693 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700 test -z "$as_dir" && as_dir=.
8701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8703 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8714 OCAMLC=$ac_cv_path_OCAMLC
8715 if test -n "$OCAMLC"; then
8716 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8717 echo "${ECHO_T}$OCAMLC" >&6; }
8719 { echo "$as_me:$LINENO: result: no" >&5
8720 echo "${ECHO_T}no" >&6; }
8724 test -n "$OCAMLC" && break
8727 for ac_prog in ocamlopt
8729 # Extract the first word of "$ac_prog", so it can be a program name with args.
8730 set dummy $ac_prog; ac_word=$2
8731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8733 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745 test -z "$as_dir" && as_dir=.
8746 for ac_exec_ext in '' $ac_executable_extensions; do
8747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8748 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8759 OCAMLOPT=$ac_cv_path_OCAMLOPT
8760 if test -n "$OCAMLOPT"; then
8761 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8762 echo "${ECHO_T}$OCAMLOPT" >&6; }
8764 { echo "$as_me:$LINENO: result: no" >&5
8765 echo "${ECHO_T}no" >&6; }
8769 test -n "$OCAMLOPT" && break
8772 for ac_prog in ocamldep
8774 # Extract the first word of "$ac_prog", so it can be a program name with args.
8775 set dummy $ac_prog; ac_word=$2
8776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8778 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 test -z "$as_dir" && as_dir=.
8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8793 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8804 OCAMLDEP=$ac_cv_path_OCAMLDEP
8805 if test -n "$OCAMLDEP"; then
8806 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8807 echo "${ECHO_T}$OCAMLDEP" >&6; }
8809 { echo "$as_me:$LINENO: result: no" >&5
8810 echo "${ECHO_T}no" >&6; }
8814 test -n "$OCAMLDEP" && break
8817 for ac_prog in ocamldoc
8819 # Extract the first word of "$ac_prog", so it can be a program name with args.
8820 set dummy $ac_prog; ac_word=$2
8821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8823 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8828 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 test -z "$as_dir" && as_dir=.
8836 for ac_exec_ext in '' $ac_executable_extensions; do
8837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8838 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8849 OCAMLDOC=$ac_cv_path_OCAMLDOC
8850 if test -n "$OCAMLDOC"; then
8851 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8852 echo "${ECHO_T}$OCAMLDOC" >&6; }
8854 { echo "$as_me:$LINENO: result: no" >&5
8855 echo "${ECHO_T}no" >&6; }
8859 test -n "$OCAMLDOC" && break
8862 for ac_prog in gas as
8864 # Extract the first word of "$ac_prog", so it can be a program name with args.
8865 set dummy $ac_prog; ac_word=$2
8866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8868 if test "${ac_cv_path_GAS+set}" = set; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8873 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880 test -z "$as_dir" && as_dir=.
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8883 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8895 if test -n "$GAS"; then
8896 { echo "$as_me:$LINENO: result: $GAS" >&5
8897 echo "${ECHO_T}$GAS" >&6; }
8899 { echo "$as_me:$LINENO: result: no" >&5
8900 echo "${ECHO_T}no" >&6; }
8904 test -n "$GAS" && break
8908 { echo "$as_me:$LINENO: checking for linker version" >&5
8909 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8910 if test "${llvm_cv_link_version+set}" = set; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
8914 version_string="$(ld -v 2>&1 | head -1)"
8917 if (echo "$version_string" | grep -q "ld64"); then
8918 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8920 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8924 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8925 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8927 cat >>confdefs.h <<_ACEOF
8928 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8933 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8934 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8935 if test "${llvm_cv_link_use_r+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 ac_cpp='$CPP $CPPFLAGS'
8940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8945 CFLAGS="$CFLAGS -Wl,-R."
8946 cat >conftest.$ac_ext <<_ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8961 rm -f conftest.$ac_objext conftest$ac_exeext
8962 if { (ac_try="$ac_link"
8964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965 *) ac_try_echo=$ac_try;;
8967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968 (eval "$ac_link") 2>conftest.er1
8970 grep -v '^ *+' conftest.er1 >conftest.err
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
8975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8976 { (case "(($ac_try" in
8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8981 (eval "$ac_try") 2>&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; } &&
8985 { ac_try='test -s conftest$ac_exeext'
8986 { (case "(($ac_try" in
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991 (eval "$ac_try") 2>&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 llvm_cv_link_use_r=yes
8997 echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
9000 llvm_cv_link_use_r=no
9003 rm -f core conftest.err conftest.$ac_objext \
9004 conftest$ac_exeext conftest.$ac_ext
9007 ac_cpp='$CPP $CPPFLAGS'
9008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9014 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9015 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
9016 if test "$llvm_cv_link_use_r" = yes ; then
9018 cat >>confdefs.h <<\_ACEOF
9019 #define HAVE_LINK_R 1
9025 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9026 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9027 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9031 ac_cpp='$CPP $CPPFLAGS'
9032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9037 CFLAGS="$CFLAGS -Wl,-export-dynamic"
9038 cat >conftest.$ac_ext <<_ACEOF
9041 cat confdefs.h >>conftest.$ac_ext
9042 cat >>conftest.$ac_ext <<_ACEOF
9043 /* end confdefs.h. */
9053 rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (ac_try="$ac_link"
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060 (eval "$ac_link") 2>conftest.er1
9062 grep -v '^ *+' conftest.er1 >conftest.err
9064 cat conftest.err >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } &&
9067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9068 { (case "(($ac_try" in
9069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070 *) ac_try_echo=$ac_try;;
9072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073 (eval "$ac_try") 2>&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; } &&
9077 { ac_try='test -s conftest$ac_exeext'
9078 { (case "(($ac_try" in
9079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080 *) ac_try_echo=$ac_try;;
9082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083 (eval "$ac_try") 2>&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; }; then
9087 llvm_cv_link_use_export_dynamic=yes
9089 echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9092 llvm_cv_link_use_export_dynamic=no
9095 rm -f core conftest.err conftest.$ac_objext \
9096 conftest$ac_exeext conftest.$ac_ext
9099 ac_cpp='$CPP $CPPFLAGS'
9100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9106 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9107 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9108 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9110 cat >>confdefs.h <<\_ACEOF
9111 #define HAVE_LINK_EXPORT_DYNAMIC 1
9117 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9118 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9119 if test "${llvm_cv_link_use_version_script+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 ac_cpp='$CPP $CPPFLAGS'
9124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9130 # The following code is from the autoconf manual,
9131 # "11.13: Limitations of Usual Tools".
9132 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9133 # Use mktemp if possible; otherwise fall back on mkdir,
9134 # with $RANDOM to make collisions less likely.
9138 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9140 test -n "$tmp" && test -d "$tmp"
9142 tmp=$TMPDIR/foo$$-$RANDOM
9143 (umask 077 && mkdir "$tmp")
9146 echo "{" > "$tmp/export.map"
9147 echo " global: main;" >> "$tmp/export.map"
9148 echo " local: *;" >> "$tmp/export.map"
9149 echo "};" >> "$tmp/export.map"
9151 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9152 cat >conftest.$ac_ext <<_ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9167 rm -f conftest.$ac_objext conftest$ac_exeext
9168 if { (ac_try="$ac_link"
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174 (eval "$ac_link") 2>conftest.er1
9176 grep -v '^ *+' conftest.er1 >conftest.err
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9182 { (case "(($ac_try" in
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 *) ac_try_echo=$ac_try;;
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187 (eval "$ac_try") 2>&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; } &&
9191 { ac_try='test -s conftest$ac_exeext'
9192 { (case "(($ac_try" in
9193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9194 *) ac_try_echo=$ac_try;;
9196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197 (eval "$ac_try") 2>&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; }; then
9201 llvm_cv_link_use_version_script=yes
9203 echo "$as_me: failed program was:" >&5
9204 sed 's/^/| /' conftest.$ac_ext >&5
9206 llvm_cv_link_use_version_script=no
9209 rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9211 rm "$tmp/export.map"
9215 ac_cpp='$CPP $CPPFLAGS'
9216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9222 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9223 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9224 if test "$llvm_cv_link_use_version_script" = yes ; then
9225 HAVE_LINK_VERSION_SCRIPT=1
9232 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9233 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9234 if test "${ac_cv_c_const+set}" = set; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9237 cat >conftest.$ac_ext <<_ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9247 /* FIXME: Include the comments suggested by Paul. */
9249 /* Ultrix mips cc rejects this. */
9250 typedef int charset[2];
9252 /* SunOS 4.1.1 cc rejects this. */
9253 char const *const *ccp;
9255 /* NEC SVR4.0.2 mips cc rejects this. */
9256 struct point {int x, y;};
9257 static struct point const zero = {0,0};
9258 /* AIX XL C 1.02.0.0 rejects this.
9259 It does not let you subtract one const X* pointer from another in
9260 an arm of an if-expression whose if-part is not a constant
9262 const char *g = "string";
9263 ccp = &g + (g ? g-g : 0);
9264 /* HPUX 7.0 cc rejects these. */
9267 ccp = (char const *const *) p;
9268 { /* SCO 3.2v4 cc rejects this. */
9270 char const *s = 0 ? (char *) 0 : (char const *) 0;
9275 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9277 const int *foo = &x[0];
9280 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9281 typedef const int *iptr;
9285 { /* AIX XL C 1.02.0.0 rejects this saying
9286 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9287 struct s { int j; const int *ap[3]; };
9288 struct s *b; b->j = 5;
9290 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9294 return !x[0] && !zero.x;
9301 rm -f conftest.$ac_objext
9302 if { (ac_try="$ac_compile"
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_compile") 2>conftest.er1
9310 grep -v '^ *+' conftest.er1 >conftest.err
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } &&
9315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9316 { (case "(($ac_try" in
9317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_try") 2>&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; } &&
9325 { ac_try='test -s conftest.$ac_objext'
9326 { (case "(($ac_try" in
9327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9328 *) ac_try_echo=$ac_try;;
9330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9331 (eval "$ac_try") 2>&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; }; then
9337 echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.$ac_ext >&5
9343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9346 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9347 if test $ac_cv_c_const = no; then
9349 cat >>confdefs.h <<\_ACEOF
9361 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9362 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9363 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9364 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 cat >conftest.$ac_ext <<_ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9374 #include <sys/types.h>
9386 rm -f conftest.$ac_objext
9387 if { (ac_try="$ac_compile"
9389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9390 *) ac_try_echo=$ac_try;;
9392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9393 (eval "$ac_compile") 2>conftest.er1
9395 grep -v '^ *+' conftest.er1 >conftest.err
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } &&
9400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9401 { (case "(($ac_try" in
9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403 *) ac_try_echo=$ac_try;;
9405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406 (eval "$ac_try") 2>&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; } &&
9410 { ac_try='test -s conftest.$ac_objext'
9411 { (case "(($ac_try" in
9412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9413 *) ac_try_echo=$ac_try;;
9415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9416 (eval "$ac_try") 2>&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; }; then
9420 eval "$as_ac_Header=yes"
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9425 eval "$as_ac_Header=no"
9428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9430 ac_res=`eval echo '${'$as_ac_Header'}'`
9431 { echo "$as_me:$LINENO: result: $ac_res" >&5
9432 echo "${ECHO_T}$ac_res" >&6; }
9433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9434 cat >>confdefs.h <<_ACEOF
9435 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9438 ac_header_dirent=$ac_hdr; break
9442 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9443 if test $ac_header_dirent = dirent.h; then
9444 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9445 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9446 if test "${ac_cv_search_opendir+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 ac_func_search_save_LIBS=$LIBS
9450 cat >conftest.$ac_ext <<_ACEOF
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h. */
9457 /* Override any GCC internal prototype to avoid an error.
9458 Use char because int might match the return type of a GCC
9459 builtin and then its argument prototype would still apply. */
9472 for ac_lib in '' dir; do
9473 if test -z "$ac_lib"; then
9474 ac_res="none required"
9477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9479 rm -f conftest.$ac_objext conftest$ac_exeext
9480 if { (ac_try="$ac_link"
9482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_link") 2>conftest.er1
9488 grep -v '^ *+' conftest.er1 >conftest.err
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } &&
9493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9494 { (case "(($ac_try" in
9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 *) ac_try_echo=$ac_try;;
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_try") 2>&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; } &&
9503 { ac_try='test -s conftest$ac_exeext'
9504 { (case "(($ac_try" in
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509 (eval "$ac_try") 2>&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; }; then
9513 ac_cv_search_opendir=$ac_res
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9521 rm -f core conftest.err conftest.$ac_objext \
9523 if test "${ac_cv_search_opendir+set}" = set; then
9527 if test "${ac_cv_search_opendir+set}" = set; then
9530 ac_cv_search_opendir=no
9533 LIBS=$ac_func_search_save_LIBS
9535 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9536 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9537 ac_res=$ac_cv_search_opendir
9538 if test "$ac_res" != no; then
9539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9544 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9545 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9546 if test "${ac_cv_search_opendir+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 ac_func_search_save_LIBS=$LIBS
9550 cat >conftest.$ac_ext <<_ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9572 for ac_lib in '' x; do
9573 if test -z "$ac_lib"; then
9574 ac_res="none required"
9577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9579 rm -f conftest.$ac_objext conftest$ac_exeext
9580 if { (ac_try="$ac_link"
9582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_link") 2>conftest.er1
9588 grep -v '^ *+' conftest.er1 >conftest.err
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9594 { (case "(($ac_try" in
9595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596 *) ac_try_echo=$ac_try;;
9598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599 (eval "$ac_try") 2>&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; } &&
9603 { ac_try='test -s conftest$ac_exeext'
9604 { (case "(($ac_try" in
9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606 *) ac_try_echo=$ac_try;;
9608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609 (eval "$ac_try") 2>&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; }; then
9613 ac_cv_search_opendir=$ac_res
9615 echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.$ac_ext >&5
9621 rm -f core conftest.err conftest.$ac_objext \
9623 if test "${ac_cv_search_opendir+set}" = set; then
9627 if test "${ac_cv_search_opendir+set}" = set; then
9630 ac_cv_search_opendir=no
9633 LIBS=$ac_func_search_save_LIBS
9635 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9636 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9637 ac_res=$ac_cv_search_opendir
9638 if test "$ac_res" != no; then
9639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9646 for ac_header in dlfcn.h
9648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 ac_res=`eval echo '${'$as_ac_Header'}'`
9656 { echo "$as_me:$LINENO: result: $ac_res" >&5
9657 echo "${ECHO_T}$ac_res" >&6; }
9659 # Is the header compilable?
9660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9662 cat >conftest.$ac_ext <<_ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668 $ac_includes_default
9669 #include <$ac_header>
9671 rm -f conftest.$ac_objext
9672 if { (ac_try="$ac_compile"
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_compile") 2>conftest.er1
9680 grep -v '^ *+' conftest.er1 >conftest.err
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9686 { (case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_try") 2>&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; } &&
9695 { ac_try='test -s conftest.$ac_objext'
9696 { (case "(($ac_try" in
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_try") 2>&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_header_compiler=yes
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_header_compiler=no
9713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9715 echo "${ECHO_T}$ac_header_compiler" >&6; }
9717 # Is the header present?
9718 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9720 cat >conftest.$ac_ext <<_ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h. */
9726 #include <$ac_header>
9728 if { (ac_try="$ac_cpp conftest.$ac_ext"
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9736 grep -v '^ *+' conftest.er1 >conftest.err
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } >/dev/null; then
9741 if test -s conftest.err; then
9742 ac_cpp_err=$ac_c_preproc_warn_flag
9743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9750 if test -z "$ac_cpp_err"; then
9751 ac_header_preproc=yes
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9756 ac_header_preproc=no
9759 rm -f conftest.err conftest.$ac_ext
9760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9761 echo "${ECHO_T}$ac_header_preproc" >&6; }
9763 # So? What about this header?
9764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9770 ac_header_preproc=yes
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9786 ## ----------------------------------- ##
9787 ## Report this to llvmbugs@cs.uiuc.edu ##
9788 ## ----------------------------------- ##
9790 ) | sed "s/^/$as_me: WARNING: /" >&2
9793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 eval "$as_ac_Header=\$ac_header_preproc"
9800 ac_res=`eval echo '${'$as_ac_Header'}'`
9801 { echo "$as_me:$LINENO: result: $ac_res" >&5
9802 echo "${ECHO_T}$ac_res" >&6; }
9805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9806 cat >>confdefs.h <<_ACEOF
9807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9814 # Check whether --enable-ltdl-install was given.
9815 if test "${enable_ltdl_install+set}" = set; then
9816 enableval=$enable_ltdl_install;
9822 if test x"${enable_ltdl_install-no}" != xno; then
9824 INSTALL_LTDL_FALSE='#'
9826 INSTALL_LTDL_TRUE='#'
9832 if test x"${enable_ltdl_convenience-no}" != xno; then
9833 CONVENIENCE_LTDL_TRUE=
9834 CONVENIENCE_LTDL_FALSE='#'
9836 CONVENIENCE_LTDL_TRUE='#'
9837 CONVENIENCE_LTDL_FALSE=
9841 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9842 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9844 libname_spec='lib$name'
9852 shlibpath_overrides_runpath=unknown
9854 dynamic_linker="$host_os ld.so"
9855 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9856 if test "$GCC" = yes; then
9857 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9858 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9859 # if the path contains ";" then we assume it to be the separator
9860 # otherwise default to the standard path separator (i.e. ":") - it is
9861 # assumed that no part of a normal pathname contains ";" but that should
9862 # okay in the real world where ";" in dirpaths is itself problematic.
9863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9868 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9870 need_lib_prefix=unknown
9871 hardcode_into_libs=no
9873 # when you set need_version to no, make sure it does not cause -set_version
9874 # flags to be left without arguments
9875 need_version=unknown
9880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9881 shlibpath_var=LIBPATH
9883 # AIX 3 has no versioning support, so we append a major version to the name.
9884 soname_spec='${libname}${release}${shared_ext}$major'
9891 hardcode_into_libs=yes
9892 if test "$host_cpu" = ia64; then
9893 # AIX 5 supports IA64
9894 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9895 shlibpath_var=LD_LIBRARY_PATH
9897 # With GCC up to 2.95.x, collect2 would create an import file
9898 # for dependence libraries. The import file would start with
9899 # the line `#! .'. This would cause the generated library to
9900 # depend on `.', always an invalid library. This was fixed in
9901 # development snapshots of GCC prior to 3.0.
9903 aix4 | aix4.[01] | aix4.[01].*)
9904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9906 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9914 # soname into executable. Probably we can add versioning support to
9915 # collect2, so additional links can be useful in future.
9916 if test "$aix_use_runtimelinking" = yes; then
9917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9918 # instead of lib<name>.a to let people know that these are not
9919 # typical AIX shared libraries.
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922 # We preserve .a as extension for shared libraries through AIX4.2
9923 # and later when we are not doing run time linking.
9924 library_names_spec='${libname}${release}.a $libname.a'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9927 shlibpath_var=LIBPATH
9932 library_names_spec='$libname.ixlibrary $libname.a'
9933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9934 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'
9938 library_names_spec='${libname}${shared_ext}'
9939 dynamic_linker="$host_os ld.so"
9940 shlibpath_var=LIBRARY_PATH
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947 soname_spec='${libname}${release}${shared_ext}$major'
9948 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9949 shlibpath_var=LD_LIBRARY_PATH
9950 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9951 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9952 # the default ld.so.conf also contains /usr/contrib/lib and
9953 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9954 # libtool to hard-code these into programs
9957 cygwin* | mingw* | pw32*)
9958 version_type=windows
9963 case $GCC,$host_os in
9964 yes,cygwin* | yes,mingw* | yes,pw32*)
9965 library_names_spec='$libname.dll.a'
9966 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9967 postinstall_cmds='base_file=`basename \${file}`~
9968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9969 dldir=$destdir/`dirname \$dlpath`~
9970 test -d \$dldir || mkdir -p \$dldir~
9971 $install_prog $dir/$dlname \$dldir/$dlname~
9972 chmod a+x \$dldir/$dlname'
9973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9974 dlpath=$dir/\$dldll~
9976 shlibpath_overrides_runpath=yes
9980 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9981 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9982 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9985 # MinGW DLLs use traditional 'lib' prefix
9986 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9987 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9988 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9989 # It is most probably a Windows format PATH printed by
9990 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9991 # path with ; separators, and with drive letters. We can handle the
9992 # drive letters (cygwin fileutils understands them), so leave them,
9993 # especially as we might pass files found there to a mingw objdump,
9994 # which wouldn't understand a cygwinified path. Ahh.
9995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10001 # pw32 DLLs use 'pw' prefix rather than 'lib'
10002 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10008 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10011 dynamic_linker='Win32 ld.exe'
10012 # FIXME: first we should search . and the directory the executable is in
10016 darwin* | rhapsody*)
10017 dynamic_linker="$host_os dyld"
10018 version_type=darwin
10021 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10022 soname_spec='${libname}${release}${major}$shared_ext'
10023 shlibpath_overrides_runpath=yes
10024 shlibpath_var=DYLD_LIBRARY_PATH
10025 shrext_cmds='.dylib'
10026 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10027 if test "$GCC" = yes; then
10028 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"`
10030 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 shlibpath_var=LD_LIBRARY_PATH
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10053 soname_spec='${libname}${release}${shared_ext}$major'
10054 shlibpath_var=LD_LIBRARY_PATH
10055 shlibpath_overrides_runpath=no
10056 hardcode_into_libs=yes
10057 dynamic_linker='GNU ld.so'
10060 freebsd* | dragonfly*)
10061 # DragonFly does not have aout. When/if they implement a new
10062 # versioning mechanism, adjust this.
10063 if test -x /usr/bin/objformat; then
10064 objformat=`/usr/bin/objformat`
10067 freebsd[123]*) objformat=aout ;;
10068 *) objformat=elf ;;
10071 version_type=freebsd-$objformat
10072 case $version_type in
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10083 shlibpath_var=LD_LIBRARY_PATH
10086 shlibpath_overrides_runpath=yes
10088 freebsd3.[01]* | freebsdelf3.[01]*)
10089 shlibpath_overrides_runpath=yes
10090 hardcode_into_libs=yes
10092 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10093 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10094 shlibpath_overrides_runpath=no
10095 hardcode_into_libs=yes
10097 freebsd*) # from 4.6 on
10098 shlibpath_overrides_runpath=yes
10099 hardcode_into_libs=yes
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 shlibpath_var=LD_LIBRARY_PATH
10111 hardcode_into_libs=yes
10114 hpux9* | hpux10* | hpux11*)
10115 # Give a soname corresponding to the major version so that dld.sl refuses to
10116 # link against other versions.
10123 hardcode_into_libs=yes
10124 dynamic_linker="$host_os dld.so"
10125 shlibpath_var=LD_LIBRARY_PATH
10126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 if test "X$HPUX_IA64_MODE" = X32; then
10130 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10132 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10138 hardcode_into_libs=yes
10139 dynamic_linker="$host_os dld.sl"
10140 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143 soname_spec='${libname}${release}${shared_ext}$major'
10144 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10149 dynamic_linker="$host_os dld.sl"
10150 shlibpath_var=SHLIB_PATH
10151 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10153 soname_spec='${libname}${release}${shared_ext}$major'
10156 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10157 postinstall_cmds='chmod 555 $lib'
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 shlibpath_overrides_runpath=no
10169 hardcode_into_libs=yes
10172 irix5* | irix6* | nonstopux*)
10174 nonstopux*) version_type=nonstopux ;;
10176 if test "$lt_cv_prog_gnu_ld" = yes; then
10184 soname_spec='${libname}${release}${shared_ext}$major'
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10187 irix5* | nonstopux*)
10188 libsuff= shlibsuff=
10191 case $LD in # libtool.m4 will add one of these switches to LD
10192 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10193 libsuff= shlibsuff= libmagic=32-bit;;
10194 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10195 libsuff=32 shlibsuff=N32 libmagic=N32;;
10196 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10197 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10198 *) libsuff= shlibsuff= libmagic=never-match;;
10202 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10203 shlibpath_overrides_runpath=no
10204 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10205 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10206 hardcode_into_libs=yes
10209 # No shared lib support for Linux oldld, aout, or coff.
10210 linux*oldld* | linux*aout* | linux*coff*)
10214 # This must be Linux ELF.
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10222 shlibpath_var=LD_LIBRARY_PATH
10223 shlibpath_overrides_runpath=no
10224 # This implies no fast_install, which is unacceptable.
10225 # Some rework will be needed to allow for fast_install
10226 # before this can be enabled.
10227 hardcode_into_libs=yes
10229 # Append ld.so.conf contents to the search path
10230 if test -f /etc/ld.so.conf; then
10231 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' ' '`
10232 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10235 # We used to test for /lib/ld.so.1 and disable shared libraries on
10236 # powerpc, because MkLinux only supported shared libraries with the
10237 # GNU dynamic linker. Since this was broken with cross compilers,
10238 # most powerpc-linux boxes support dynamic linking these days and
10239 # people can always --disable-shared, the test was removed, and we
10240 # assume the GNU/Linux dynamic linker is in use.
10241 dynamic_linker='GNU/Linux ld.so'
10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10249 soname_spec='${libname}${release}${shared_ext}$major'
10250 shlibpath_var=LD_LIBRARY_PATH
10251 shlibpath_overrides_runpath=no
10252 hardcode_into_libs=yes
10253 dynamic_linker='GNU ld.so'
10260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10263 dynamic_linker='NetBSD (a.out) ld.so'
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10266 soname_spec='${libname}${release}${shared_ext}$major'
10267 dynamic_linker='NetBSD ld.elf_so'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=yes
10271 hardcode_into_libs=yes
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 shlibpath_overrides_runpath=yes
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10293 sys_lib_dlsearch_path_spec="/usr/lib"
10295 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10297 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10298 *) need_version=no ;;
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10305 openbsd2.[89] | openbsd2.[89].*)
10306 shlibpath_overrides_runpath=no
10309 shlibpath_overrides_runpath=yes
10313 shlibpath_overrides_runpath=yes
10318 libname_spec='$name'
10321 library_names_spec='$libname${shared_ext} $libname.a'
10322 dynamic_linker='OS/2 ld.exe'
10323 shlibpath_var=LIBPATH
10326 osf3* | osf4* | osf5*)
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 shlibpath_var=LD_LIBRARY_PATH
10333 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10334 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 shlibpath_var=LD_LIBRARY_PATH
10344 shlibpath_overrides_runpath=yes
10345 hardcode_into_libs=yes
10346 # ldd complains unless libraries are executable
10347 postinstall_cmds='chmod +x $lib'
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10353 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 shlibpath_overrides_runpath=yes
10356 if test "$with_gnu_ld" = yes; then
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 case $host_vendor in
10369 shlibpath_overrides_runpath=no
10371 export_dynamic_flag_spec='${wl}-Blargedynsym'
10372 runpath_var=LD_RUN_PATH
10380 shlibpath_overrides_runpath=no
10381 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10387 if test -d /usr/nec ;then
10389 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10390 soname_spec='$libname${shared_ext}.$major'
10391 shlibpath_var=LD_LIBRARY_PATH
10395 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10396 version_type=freebsd-elf
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 shlibpath_var=LD_LIBRARY_PATH
10402 hardcode_into_libs=yes
10403 if test "$with_gnu_ld" = yes; then
10404 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10405 shlibpath_overrides_runpath=no
10407 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10408 shlibpath_overrides_runpath=yes
10411 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10415 sys_lib_dlsearch_path_spec='/usr/lib'
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421 soname_spec='${libname}${release}${shared_ext}$major'
10422 shlibpath_var=LD_LIBRARY_PATH
10429 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10430 echo "${ECHO_T}$dynamic_linker" >&6; }
10431 test "$dynamic_linker" = no && can_build_shared=no
10433 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10434 if test "$GCC" = yes; then
10435 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10439 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10440 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10441 if test "${libltdl_cv_shlibext+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10446 eval libltdl_cv_shlibext=$shrext_cmds
10449 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10450 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10451 if test -n "$libltdl_cv_shlibext"; then
10453 cat >>confdefs.h <<_ACEOF
10454 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10460 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10461 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10462 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 libltdl_cv_shlibpath_var="$shlibpath_var"
10467 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10468 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10469 if test -n "$libltdl_cv_shlibpath_var"; then
10471 cat >>confdefs.h <<_ACEOF
10472 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10478 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10479 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10480 if test "${libltdl_cv_sys_search_path+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10485 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10486 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10487 if test -n "$libltdl_cv_sys_search_path"; then
10489 for dir in $libltdl_cv_sys_search_path; do
10490 if test -z "$sys_search_path"; then
10491 sys_search_path="$dir"
10493 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10497 cat >>confdefs.h <<_ACEOF
10498 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10503 { echo "$as_me:$LINENO: checking for objdir" >&5
10504 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10505 if test "${libltdl_cv_objdir+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 libltdl_cv_objdir="$objdir"
10509 if test -n "$objdir"; then
10512 rm -f .libs 2>/dev/null
10513 mkdir .libs 2>/dev/null
10514 if test -d .libs; then
10515 libltdl_cv_objdir=.libs
10517 # MS-DOS does not allow filenames that begin with a dot.
10518 libltdl_cv_objdir=_libs
10520 rmdir .libs 2>/dev/null
10524 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10525 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10527 cat >>confdefs.h <<_ACEOF
10528 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10536 # Check for command to grab the raw symbol name followed by C symbol from nm.
10537 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10538 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10539 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 # These are sane defaults that work on at least a few old systems.
10544 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10546 # Character class describing NM global symbol codes.
10547 symcode='[BCDEGRST]'
10549 # Regexp to match symbols that can be accessed directly from C.
10550 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10552 # Transform an extracted symbol line into a proper C declaration
10553 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10555 # Transform an extracted symbol line into symbol name and symbol address
10556 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'"
10558 # Define system-specific variables.
10563 cygwin* | mingw* | pw32*)
10564 symcode='[ABCDGISTW]'
10566 hpux*) # Its linker distinguishes data from code symbols
10567 if test "$host_cpu" = ia64; then
10568 symcode='[ABCDEGRST]'
10570 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10571 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 if test "$host_cpu" = ia64; then
10575 symcode='[ABCDGIRSTW]'
10576 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10577 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10580 irix* | nonstopux*)
10581 symcode='[BCDEGRST]'
10584 symcode='[BCDEGQRST]'
10595 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10603 # Handle CRLF in mingw tool chain
10607 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10611 # If we're using GNU nm, then use its standard symbol codes.
10612 case `$NM -V 2>&1` in
10613 *GNU* | *'with BFD'*)
10614 symcode='[ABCDGIRSTW]' ;;
10617 # Try without a prefix undercore, then with it.
10618 for ac_symprfx in "" "_"; do
10620 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10621 symxfrm="\\1 $ac_symprfx\\2 \\2"
10623 # Write the raw and C identifiers.
10624 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10626 # Check to see that the pipe works correctly.
10630 cat > conftest.$ac_ext <<EOF
10635 void nm_test_func(){}
10639 int main(){nm_test_var='a';nm_test_func();return(0);}
10642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643 (eval $ac_compile) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; then
10647 # Now try to grab the symbols.
10649 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10650 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } && test -s "$nlist"; then
10654 # Try sorting and uniquifying the output.
10655 if sort "$nlist" | uniq > "$nlist"T; then
10656 mv -f "$nlist"T "$nlist"
10661 # Make sure that we snagged all the symbols we need.
10662 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10663 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10664 cat <<EOF > conftest.$ac_ext
10670 # Now generate the symbol file.
10671 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10673 cat <<EOF >> conftest.$ac_ext
10674 #if defined (__STDC__) && __STDC__
10675 # define lt_ptr_t void *
10677 # define lt_ptr_t char *
10681 /* The mapping between symbol names and symbols. */
10686 lt_preloaded_symbols[] =
10689 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10690 cat <<\EOF >> conftest.$ac_ext
10698 # Now try linking the two files.
10699 mv conftest.$ac_objext conftstm.$ac_objext
10700 lt_save_LIBS="$LIBS"
10701 lt_save_CFLAGS="$CFLAGS"
10702 LIBS="conftstm.$ac_objext"
10703 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10705 (eval $ac_link) 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10711 LIBS="$lt_save_LIBS"
10712 CFLAGS="$lt_save_CFLAGS"
10714 echo "cannot find nm_test_func in $nlist" >&5
10717 echo "cannot find nm_test_var in $nlist" >&5
10720 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10723 echo "$progname: failed program was:" >&5
10724 cat conftest.$ac_ext >&5
10726 rm -f conftest* conftst*
10728 # Do not use the global_symbol_pipe unless it works.
10729 if test "$pipe_works" = yes; then
10732 lt_cv_sys_global_symbol_pipe=
10738 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10739 lt_cv_sys_global_symbol_to_cdecl=
10741 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10742 { echo "$as_me:$LINENO: result: failed" >&5
10743 echo "${ECHO_T}failed" >&6; }
10745 { echo "$as_me:$LINENO: result: ok" >&5
10746 echo "${ECHO_T}ok" >&6; }
10750 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10751 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10752 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10756 libltdl_cv_preloaded_symbols=yes
10758 libltdl_cv_preloaded_symbols=no
10762 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10763 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10764 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10766 cat >>confdefs.h <<\_ACEOF
10767 #define HAVE_PRELOADED_SYMBOLS 1
10775 ac_cpp='$CPP $CPPFLAGS'
10776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10781 { echo "$as_me:$LINENO: checking for shl_load" >&5
10782 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10783 if test "${ac_cv_func_shl_load+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10786 cat >conftest.$ac_ext <<_ACEOF
10789 cat confdefs.h >>conftest.$ac_ext
10790 cat >>conftest.$ac_ext <<_ACEOF
10791 /* end confdefs.h. */
10792 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10794 #define shl_load innocuous_shl_load
10796 /* System header to define __stub macros and hopefully few prototypes,
10797 which can conflict with char shl_load (); below.
10798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10799 <limits.h> exists even on freestanding compilers. */
10802 # include <limits.h>
10804 # include <assert.h>
10809 /* Override any GCC internal prototype to avoid an error.
10810 Use char because int might match the return type of a GCC
10811 builtin and then its argument prototype would still apply. */
10816 /* The GNU C library defines this for functions which it implements
10817 to always fail with ENOSYS. Some functions are actually named
10818 something starting with __ and the normal name is an alias. */
10819 #if defined __stub_shl_load || defined __stub___shl_load
10826 return shl_load ();
10831 rm -f conftest.$ac_objext conftest$ac_exeext
10832 if { (ac_try="$ac_link"
10833 case "(($ac_try" in
10834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_link") 2>conftest.er1
10840 grep -v '^ *+' conftest.er1 >conftest.err
10842 cat conftest.err >&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } &&
10845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10846 { (case "(($ac_try" in
10847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851 (eval "$ac_try") 2>&5
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); }; } &&
10855 { ac_try='test -s conftest$ac_exeext'
10856 { (case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_try") 2>&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; }; then
10865 ac_cv_func_shl_load=yes
10867 echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10870 ac_cv_func_shl_load=no
10873 rm -f core conftest.err conftest.$ac_objext \
10874 conftest$ac_exeext conftest.$ac_ext
10876 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10877 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10878 if test $ac_cv_func_shl_load = yes; then
10880 cat >>confdefs.h <<\_ACEOF
10881 #define HAVE_SHL_LOAD 1
10885 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10886 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10887 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 ac_check_lib_save_LIBS=$LIBS
10892 cat >conftest.$ac_ext <<_ACEOF
10895 cat confdefs.h >>conftest.$ac_ext
10896 cat >>conftest.$ac_ext <<_ACEOF
10897 /* end confdefs.h. */
10899 /* Override any GCC internal prototype to avoid an error.
10900 Use char because int might match the return type of a GCC
10901 builtin and then its argument prototype would still apply. */
10909 return shl_load ();
10914 rm -f conftest.$ac_objext conftest$ac_exeext
10915 if { (ac_try="$ac_link"
10916 case "(($ac_try" in
10917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918 *) ac_try_echo=$ac_try;;
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921 (eval "$ac_link") 2>conftest.er1
10923 grep -v '^ *+' conftest.er1 >conftest.err
10925 cat conftest.err >&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } &&
10928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10929 { (case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_try") 2>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; } &&
10938 { ac_try='test -s conftest$ac_exeext'
10939 { (case "(($ac_try" in
10940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941 *) ac_try_echo=$ac_try;;
10943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10944 (eval "$ac_try") 2>&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; }; then
10948 ac_cv_lib_dld_shl_load=yes
10950 echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10953 ac_cv_lib_dld_shl_load=no
10956 rm -f core conftest.err conftest.$ac_objext \
10957 conftest$ac_exeext conftest.$ac_ext
10958 LIBS=$ac_check_lib_save_LIBS
10960 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10961 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10962 if test $ac_cv_lib_dld_shl_load = yes; then
10964 cat >>confdefs.h <<\_ACEOF
10965 #define HAVE_SHL_LOAD 1
10968 LIBADD_DL="$LIBADD_DL -ldld"
10970 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10971 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10972 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 ac_check_lib_save_LIBS=$LIBS
10977 cat >conftest.$ac_ext <<_ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10984 /* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (ac_try="$ac_link"
11001 case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_link") 2>conftest.er1
11008 grep -v '^ *+' conftest.er1 >conftest.err
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014 { (case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_try") 2>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest$ac_exeext'
11024 { (case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_try") 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_cv_lib_dl_dlopen=yes
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11038 ac_cv_lib_dl_dlopen=no
11041 rm -f core conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext conftest.$ac_ext
11043 LIBS=$ac_check_lib_save_LIBS
11045 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11046 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11047 if test $ac_cv_lib_dl_dlopen = yes; then
11049 cat >>confdefs.h <<\_ACEOF
11050 #define HAVE_LIBDL 1
11053 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11055 cat >conftest.$ac_ext <<_ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h. */
11062 # include <dlfcn.h>
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (ac_try="$ac_link"
11075 case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_link") 2>conftest.er1
11082 grep -v '^ *+' conftest.er1 >conftest.err
11084 cat conftest.err >&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); } &&
11087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11088 { (case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093 (eval "$ac_try") 2>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; } &&
11097 { ac_try='test -s conftest$ac_exeext'
11098 { (case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_try") 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11108 cat >>confdefs.h <<\_ACEOF
11109 #define HAVE_LIBDL 1
11111 libltdl_cv_func_dlopen="yes"
11113 echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11116 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11117 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11118 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 ac_check_lib_save_LIBS=$LIBS
11122 LIBS="-lsvld $LIBS"
11123 cat >conftest.$ac_ext <<_ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11130 /* Override any GCC internal prototype to avoid an error.
11131 Use char because int might match the return type of a GCC
11132 builtin and then its argument prototype would still apply. */
11145 rm -f conftest.$ac_objext conftest$ac_exeext
11146 if { (ac_try="$ac_link"
11147 case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_link") 2>conftest.er1
11154 grep -v '^ *+' conftest.er1 >conftest.err
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160 { (case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_try") 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest$ac_exeext'
11170 { (case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175 (eval "$ac_try") 2>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
11179 ac_cv_lib_svld_dlopen=yes
11181 echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184 ac_cv_lib_svld_dlopen=no
11187 rm -f core conftest.err conftest.$ac_objext \
11188 conftest$ac_exeext conftest.$ac_ext
11189 LIBS=$ac_check_lib_save_LIBS
11191 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11192 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11193 if test $ac_cv_lib_svld_dlopen = yes; then
11195 cat >>confdefs.h <<\_ACEOF
11196 #define HAVE_LIBDL 1
11199 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11201 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11202 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11203 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 ac_check_lib_save_LIBS=$LIBS
11208 cat >conftest.$ac_ext <<_ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11215 /* Override any GCC internal prototype to avoid an error.
11216 Use char because int might match the return type of a GCC
11217 builtin and then its argument prototype would still apply. */
11225 return dld_link ();
11230 rm -f conftest.$ac_objext conftest$ac_exeext
11231 if { (ac_try="$ac_link"
11232 case "(($ac_try" in
11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_link") 2>conftest.er1
11239 grep -v '^ *+' conftest.er1 >conftest.err
11241 cat conftest.err >&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } &&
11244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11245 { (case "(($ac_try" in
11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250 (eval "$ac_try") 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; } &&
11254 { ac_try='test -s conftest$ac_exeext'
11255 { (case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_try") 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11264 ac_cv_lib_dld_dld_link=yes
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11269 ac_cv_lib_dld_dld_link=no
11272 rm -f core conftest.err conftest.$ac_objext \
11273 conftest$ac_exeext conftest.$ac_ext
11274 LIBS=$ac_check_lib_save_LIBS
11276 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11277 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11278 if test $ac_cv_lib_dld_dld_link = yes; then
11280 cat >>confdefs.h <<\_ACEOF
11284 LIBADD_DL="$LIBADD_DL -ldld"
11286 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11287 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11288 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 cat >conftest.$ac_ext <<_ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11297 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11299 #define _dyld_func_lookup innocuous__dyld_func_lookup
11301 /* System header to define __stub macros and hopefully few prototypes,
11302 which can conflict with char _dyld_func_lookup (); below.
11303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11304 <limits.h> exists even on freestanding compilers. */
11307 # include <limits.h>
11309 # include <assert.h>
11312 #undef _dyld_func_lookup
11314 /* Override any GCC internal prototype to avoid an error.
11315 Use char because int might match the return type of a GCC
11316 builtin and then its argument prototype would still apply. */
11320 char _dyld_func_lookup ();
11321 /* The GNU C library defines this for functions which it implements
11322 to always fail with ENOSYS. Some functions are actually named
11323 something starting with __ and the normal name is an alias. */
11324 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11331 return _dyld_func_lookup ();
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (ac_try="$ac_link"
11338 case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_link") 2>conftest.er1
11345 grep -v '^ *+' conftest.er1 >conftest.err
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
11350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11351 { (case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_try") 2>&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; } &&
11360 { ac_try='test -s conftest$ac_exeext'
11361 { (case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_try") 2>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; }; then
11370 ac_cv_func__dyld_func_lookup=yes
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11375 ac_cv_func__dyld_func_lookup=no
11378 rm -f core conftest.err conftest.$ac_objext \
11379 conftest$ac_exeext conftest.$ac_ext
11381 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11382 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11383 if test $ac_cv_func__dyld_func_lookup = yes; then
11385 cat >>confdefs.h <<\_ACEOF
11386 #define HAVE_DYLD 1
11400 rm -f core conftest.err conftest.$ac_objext \
11401 conftest$ac_exeext conftest.$ac_ext
11412 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11414 lt_save_LIBS="$LIBS"
11415 LIBS="$LIBS $LIBADD_DL"
11417 for ac_func in dlerror
11419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11425 cat >conftest.$ac_ext <<_ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11433 #define $ac_func innocuous_$ac_func
11435 /* System header to define __stub macros and hopefully few prototypes,
11436 which can conflict with char $ac_func (); below.
11437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11438 <limits.h> exists even on freestanding compilers. */
11441 # include <limits.h>
11443 # include <assert.h>
11448 /* Override any GCC internal prototype to avoid an error.
11449 Use char because int might match the return type of a GCC
11450 builtin and then its argument prototype would still apply. */
11455 /* The GNU C library defines this for functions which it implements
11456 to always fail with ENOSYS. Some functions are actually named
11457 something starting with __ and the normal name is an alias. */
11458 #if defined __stub_$ac_func || defined __stub___$ac_func
11465 return $ac_func ();
11470 rm -f conftest.$ac_objext conftest$ac_exeext
11471 if { (ac_try="$ac_link"
11472 case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_link") 2>conftest.er1
11479 grep -v '^ *+' conftest.er1 >conftest.err
11481 cat conftest.err >&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11485 { (case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_try") 2>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; } &&
11494 { ac_try='test -s conftest$ac_exeext'
11495 { (case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_try") 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 eval "$as_ac_var=yes"
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11509 eval "$as_ac_var=no"
11512 rm -f core conftest.err conftest.$ac_objext \
11513 conftest$ac_exeext conftest.$ac_ext
11515 ac_res=`eval echo '${'$as_ac_var'}'`
11516 { echo "$as_me:$LINENO: result: $ac_res" >&5
11517 echo "${ECHO_T}$ac_res" >&6; }
11518 if test `eval echo '${'$as_ac_var'}'` = yes; then
11519 cat >>confdefs.h <<_ACEOF
11520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11526 LIBS="$lt_save_LIBS"
11529 ac_cpp='$CPP $CPPFLAGS'
11530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11536 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11537 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11538 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 ac_cv_sys_symbol_underscore=no
11542 cat > conftest.$ac_ext <<EOF
11543 void nm_test_func(){}
11544 int main(){nm_test_func;return 0;}
11546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11547 (eval $ac_compile) 2>&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; then
11551 # Now try to grab the symbols.
11552 ac_nlist=conftest.nm
11553 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11554 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } && test -s "$ac_nlist"; then
11558 # See whether the symbols have a leading underscore.
11559 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11560 ac_cv_sys_symbol_underscore=yes
11562 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11565 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11569 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11572 echo "configure: failed program was:" >&5
11578 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11579 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11582 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11583 if test x"$libltdl_cv_func_dlopen" = xyes ||
11584 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11585 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11586 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11587 if test "${libltdl_cv_need_uscore+set}" = set; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
11590 libltdl_cv_need_uscore=unknown
11592 LIBS="$LIBS $LIBADD_DL"
11593 if test "$cross_compiling" = yes; then :
11594 libltdl_cv_need_uscore=cross
11596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11597 lt_status=$lt_dlunknown
11598 cat > conftest.$ac_ext <<EOF
11599 #line 11591 "configure"
11600 #include "confdefs.h"
11609 # define LT_DLGLOBAL RTLD_GLOBAL
11612 # define LT_DLGLOBAL DL_GLOBAL
11614 # define LT_DLGLOBAL 0
11618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11619 find out it does not work in some platform. */
11620 #ifndef LT_DLLAZY_OR_NOW
11622 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11625 # define LT_DLLAZY_OR_NOW DL_LAZY
11628 # define LT_DLLAZY_OR_NOW RTLD_NOW
11631 # define LT_DLLAZY_OR_NOW DL_NOW
11633 # define LT_DLLAZY_OR_NOW 0
11641 extern "C" void exit (int);
11644 void fnord() { int i=42;}
11647 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11648 int status = $lt_dlunknown;
11652 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11653 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11654 /* dlclose (self); */
11662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11663 (eval $ac_link) 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11667 (./conftest; exit; ) >&5 2>/dev/null
11669 case x$lt_status in
11670 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11671 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11672 x$lt_dlunknown|x*) ;;
11675 # compilation failed
11684 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11685 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11689 if test x"$libltdl_cv_need_uscore" = xyes; then
11691 cat >>confdefs.h <<\_ACEOF
11692 #define NEED_USCORE 1
11698 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11699 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11700 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 # PORTME does your system automatically load deplibs for dlopen?
11704 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11705 # For now, we just catch OSes we know something about -- in the
11706 # future, we'll try test this programmatically.
11707 libltdl_cv_sys_dlopen_deplibs=unknown
11709 aix3*|aix4.1.*|aix4.2.*)
11710 # Unknown whether this is true for these versions of AIX, but
11711 # we want this `case' here to explicitly catch those versions.
11712 libltdl_cv_sys_dlopen_deplibs=unknown
11715 libltdl_cv_sys_dlopen_deplibs=yes
11718 # Assuming the user has installed a libdl from somewhere, this is true
11719 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11720 libltdl_cv_sys_dlopen_deplibs=yes
11722 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11723 # GNU and its variants, using gnu ld.so (Glibc)
11724 libltdl_cv_sys_dlopen_deplibs=yes
11727 libltdl_cv_sys_dlopen_deplibs=yes
11730 libltdl_cv_sys_dlopen_deplibs=yes
11732 irix[12345]*|irix6.[01]*)
11733 # Catch all versions of IRIX before 6.2, and indicate that we don't
11734 # know how it worked for any of those versions.
11735 libltdl_cv_sys_dlopen_deplibs=unknown
11738 # The case above catches anything before 6.2, and it's known that
11739 # at 6.2 and later dlopen does load deplibs.
11740 libltdl_cv_sys_dlopen_deplibs=yes
11743 libltdl_cv_sys_dlopen_deplibs=yes
11746 libltdl_cv_sys_dlopen_deplibs=yes
11749 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11750 # it did *not* use an RPATH in a shared library to find objects the
11751 # library depends on, so we explicitly say `no'.
11752 libltdl_cv_sys_dlopen_deplibs=no
11754 osf5.0|osf5.0a|osf5.1)
11755 # dlopen *does* load deplibs and with the right loader patch applied
11756 # it even uses RPATH in a shared library to search for shared objects
11757 # that the library depends on, but there's no easy way to know if that
11758 # patch is installed. Since this is the case, all we can really
11759 # say is unknown -- it depends on the patch being installed. If
11760 # it is, this changes to `yes'. Without it, it would be `no'.
11761 libltdl_cv_sys_dlopen_deplibs=unknown
11764 # the two cases above should catch all versions of osf <= 5.1. Read
11765 # the comments above for what we know about them.
11766 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11767 # is used to find them so we can finally say `yes'.
11768 libltdl_cv_sys_dlopen_deplibs=yes
11771 libltdl_cv_sys_dlopen_deplibs=yes
11773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11774 libltdl_cv_sys_dlopen_deplibs=yes
11779 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11780 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11781 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11783 cat >>confdefs.h <<\_ACEOF
11784 #define LTDL_DLOPEN_DEPLIBS 1
11790 for ac_header in argz.h
11792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 ac_res=`eval echo '${'$as_ac_Header'}'`
11800 { echo "$as_me:$LINENO: result: $ac_res" >&5
11801 echo "${ECHO_T}$ac_res" >&6; }
11803 # Is the header compilable?
11804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11806 cat >conftest.$ac_ext <<_ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h. */
11812 $ac_includes_default
11813 #include <$ac_header>
11815 rm -f conftest.$ac_objext
11816 if { (ac_try="$ac_compile"
11817 case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_compile") 2>conftest.er1
11824 grep -v '^ *+' conftest.er1 >conftest.err
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
11829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11830 { (case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_try") 2>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest.$ac_objext'
11840 { (case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845 (eval "$ac_try") 2>&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849 ac_header_compiler=yes
11851 echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11854 ac_header_compiler=no
11857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11859 echo "${ECHO_T}$ac_header_compiler" >&6; }
11861 # Is the header present?
11862 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11864 cat >conftest.$ac_ext <<_ACEOF
11867 cat confdefs.h >>conftest.$ac_ext
11868 cat >>conftest.$ac_ext <<_ACEOF
11869 /* end confdefs.h. */
11870 #include <$ac_header>
11872 if { (ac_try="$ac_cpp conftest.$ac_ext"
11873 case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11880 grep -v '^ *+' conftest.er1 >conftest.err
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } >/dev/null; then
11885 if test -s conftest.err; then
11886 ac_cpp_err=$ac_c_preproc_warn_flag
11887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11894 if test -z "$ac_cpp_err"; then
11895 ac_header_preproc=yes
11897 echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11900 ac_header_preproc=no
11903 rm -f conftest.err conftest.$ac_ext
11904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11905 echo "${ECHO_T}$ac_header_preproc" >&6; }
11907 # So? What about this header?
11908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11914 ac_header_preproc=yes
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11930 ## ----------------------------------- ##
11931 ## Report this to llvmbugs@cs.uiuc.edu ##
11932 ## ----------------------------------- ##
11934 ) | sed "s/^/$as_me: WARNING: /" >&2
11937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 eval "$as_ac_Header=\$ac_header_preproc"
11944 ac_res=`eval echo '${'$as_ac_Header'}'`
11945 { echo "$as_me:$LINENO: result: $ac_res" >&5
11946 echo "${ECHO_T}$ac_res" >&6; }
11949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11950 cat >>confdefs.h <<_ACEOF
11951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11959 { echo "$as_me:$LINENO: checking for error_t" >&5
11960 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11961 if test "${ac_cv_type_error_t+set}" = set; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 cat >conftest.$ac_ext <<_ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11974 typedef error_t ac__type_new_;
11978 if ((ac__type_new_ *) 0)
11980 if (sizeof (ac__type_new_))
11986 rm -f conftest.$ac_objext
11987 if { (ac_try="$ac_compile"
11988 case "(($ac_try" in
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993 (eval "$ac_compile") 2>conftest.er1
11995 grep -v '^ *+' conftest.er1 >conftest.err
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } &&
12000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12001 { (case "(($ac_try" in
12002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003 *) ac_try_echo=$ac_try;;
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006 (eval "$ac_try") 2>&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; } &&
12010 { ac_try='test -s conftest.$ac_objext'
12011 { (case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_try") 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 ac_cv_type_error_t=yes
12022 echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12025 ac_cv_type_error_t=no
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12030 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12031 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12032 if test $ac_cv_type_error_t = yes; then
12034 cat >>confdefs.h <<_ACEOF
12035 #define HAVE_ERROR_T 1
12041 cat >>confdefs.h <<\_ACEOF
12042 #define error_t int
12053 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12061 cat >conftest.$ac_ext <<_ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12069 #define $ac_func innocuous_$ac_func
12071 /* System header to define __stub macros and hopefully few prototypes,
12072 which can conflict with char $ac_func (); below.
12073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12074 <limits.h> exists even on freestanding compilers. */
12077 # include <limits.h>
12079 # include <assert.h>
12084 /* Override any GCC internal prototype to avoid an error.
12085 Use char because int might match the return type of a GCC
12086 builtin and then its argument prototype would still apply. */
12091 /* The GNU C library defines this for functions which it implements
12092 to always fail with ENOSYS. Some functions are actually named
12093 something starting with __ and the normal name is an alias. */
12094 #if defined __stub_$ac_func || defined __stub___$ac_func
12101 return $ac_func ();
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (ac_try="$ac_link"
12108 case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_link") 2>conftest.er1
12115 grep -v '^ *+' conftest.er1 >conftest.err
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } &&
12120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12121 { (case "(($ac_try" in
12122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_try") 2>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; } &&
12130 { ac_try='test -s conftest$ac_exeext'
12131 { (case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136 (eval "$ac_try") 2>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 eval "$as_ac_var=yes"
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12145 eval "$as_ac_var=no"
12148 rm -f core conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
12151 ac_res=`eval echo '${'$as_ac_var'}'`
12152 { echo "$as_me:$LINENO: result: $ac_res" >&5
12153 echo "${ECHO_T}$ac_res" >&6; }
12154 if test `eval echo '${'$as_ac_var'}'` = yes; then
12155 cat >>confdefs.h <<_ACEOF
12156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12189 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
12199 ac_res=`eval echo '${'$as_ac_Header'}'`
12200 { echo "$as_me:$LINENO: result: $ac_res" >&5
12201 echo "${ECHO_T}$ac_res" >&6; }
12203 # Is the header compilable?
12204 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12206 cat >conftest.$ac_ext <<_ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h. */
12212 $ac_includes_default
12213 #include <$ac_header>
12215 rm -f conftest.$ac_objext
12216 if { (ac_try="$ac_compile"
12217 case "(($ac_try" in
12218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219 *) ac_try_echo=$ac_try;;
12221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12222 (eval "$ac_compile") 2>conftest.er1
12224 grep -v '^ *+' conftest.er1 >conftest.err
12226 cat conftest.err >&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); } &&
12229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12230 { (case "(($ac_try" in
12231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232 *) ac_try_echo=$ac_try;;
12234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235 (eval "$ac_try") 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; } &&
12239 { ac_try='test -s conftest.$ac_objext'
12240 { (case "(($ac_try" in
12241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12242 *) ac_try_echo=$ac_try;;
12244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245 (eval "$ac_try") 2>&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; }; then
12249 ac_header_compiler=yes
12251 echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12254 ac_header_compiler=no
12257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12259 echo "${ECHO_T}$ac_header_compiler" >&6; }
12261 # Is the header present?
12262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12264 cat >conftest.$ac_ext <<_ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12270 #include <$ac_header>
12272 if { (ac_try="$ac_cpp conftest.$ac_ext"
12273 case "(($ac_try" in
12274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275 *) ac_try_echo=$ac_try;;
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12280 grep -v '^ *+' conftest.er1 >conftest.err
12282 cat conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } >/dev/null; then
12285 if test -s conftest.err; then
12286 ac_cpp_err=$ac_c_preproc_warn_flag
12287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12294 if test -z "$ac_cpp_err"; then
12295 ac_header_preproc=yes
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12300 ac_header_preproc=no
12303 rm -f conftest.err conftest.$ac_ext
12304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12305 echo "${ECHO_T}$ac_header_preproc" >&6; }
12307 # So? What about this header?
12308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12314 ac_header_preproc=yes
12317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12330 ## ----------------------------------- ##
12331 ## Report this to llvmbugs@cs.uiuc.edu ##
12332 ## ----------------------------------- ##
12334 ) | sed "s/^/$as_me: WARNING: /" >&2
12337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 eval "$as_ac_Header=\$ac_header_preproc"
12344 ac_res=`eval echo '${'$as_ac_Header'}'`
12345 { echo "$as_me:$LINENO: result: $ac_res" >&5
12346 echo "${ECHO_T}$ac_res" >&6; }
12349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12350 cat >>confdefs.h <<_ACEOF
12351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12362 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12371 ac_res=`eval echo '${'$as_ac_Header'}'`
12372 { echo "$as_me:$LINENO: result: $ac_res" >&5
12373 echo "${ECHO_T}$ac_res" >&6; }
12375 # Is the header compilable?
12376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12378 cat >conftest.$ac_ext <<_ACEOF
12381 cat confdefs.h >>conftest.$ac_ext
12382 cat >>conftest.$ac_ext <<_ACEOF
12383 /* end confdefs.h. */
12384 $ac_includes_default
12385 #include <$ac_header>
12387 rm -f conftest.$ac_objext
12388 if { (ac_try="$ac_compile"
12389 case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_compile") 2>conftest.er1
12396 grep -v '^ *+' conftest.er1 >conftest.err
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
12401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12402 { (case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407 (eval "$ac_try") 2>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; } &&
12411 { ac_try='test -s conftest.$ac_objext'
12412 { (case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_try") 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 ac_header_compiler=yes
12423 echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12426 ac_header_compiler=no
12429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12431 echo "${ECHO_T}$ac_header_compiler" >&6; }
12433 # Is the header present?
12434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12436 cat >conftest.$ac_ext <<_ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12442 #include <$ac_header>
12444 if { (ac_try="$ac_cpp conftest.$ac_ext"
12445 case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12452 grep -v '^ *+' conftest.er1 >conftest.err
12454 cat conftest.err >&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } >/dev/null; then
12457 if test -s conftest.err; then
12458 ac_cpp_err=$ac_c_preproc_warn_flag
12459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12466 if test -z "$ac_cpp_err"; then
12467 ac_header_preproc=yes
12469 echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12472 ac_header_preproc=no
12475 rm -f conftest.err conftest.$ac_ext
12476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12477 echo "${ECHO_T}$ac_header_preproc" >&6; }
12479 # So? What about this header?
12480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12486 ac_header_preproc=yes
12489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12502 ## ----------------------------------- ##
12503 ## Report this to llvmbugs@cs.uiuc.edu ##
12504 ## ----------------------------------- ##
12506 ) | sed "s/^/$as_me: WARNING: /" >&2
12509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 eval "$as_ac_Header=\$ac_header_preproc"
12516 ac_res=`eval echo '${'$as_ac_Header'}'`
12517 { echo "$as_me:$LINENO: result: $ac_res" >&5
12518 echo "${ECHO_T}$ac_res" >&6; }
12521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12522 cat >>confdefs.h <<_ACEOF
12523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12532 for ac_header in string.h strings.h
12534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12539 echo $ECHO_N "(cached) $ECHO_C" >&6
12541 ac_res=`eval echo '${'$as_ac_Header'}'`
12542 { echo "$as_me:$LINENO: result: $ac_res" >&5
12543 echo "${ECHO_T}$ac_res" >&6; }
12545 # Is the header compilable?
12546 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12548 cat >conftest.$ac_ext <<_ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12554 $ac_includes_default
12555 #include <$ac_header>
12557 rm -f conftest.$ac_objext
12558 if { (ac_try="$ac_compile"
12559 case "(($ac_try" in
12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_compile") 2>conftest.er1
12566 grep -v '^ *+' conftest.er1 >conftest.err
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
12571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12572 { (case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_try") 2>&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; } &&
12581 { ac_try='test -s conftest.$ac_objext'
12582 { (case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587 (eval "$ac_try") 2>&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 ac_header_compiler=yes
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12596 ac_header_compiler=no
12599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12601 echo "${ECHO_T}$ac_header_compiler" >&6; }
12603 # Is the header present?
12604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12606 cat >conftest.$ac_ext <<_ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12612 #include <$ac_header>
12614 if { (ac_try="$ac_cpp conftest.$ac_ext"
12615 case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12622 grep -v '^ *+' conftest.er1 >conftest.err
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } >/dev/null; then
12627 if test -s conftest.err; then
12628 ac_cpp_err=$ac_c_preproc_warn_flag
12629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12636 if test -z "$ac_cpp_err"; then
12637 ac_header_preproc=yes
12639 echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 ac_header_preproc=no
12645 rm -f conftest.err conftest.$ac_ext
12646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12647 echo "${ECHO_T}$ac_header_preproc" >&6; }
12649 # So? What about this header?
12650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12656 ac_header_preproc=yes
12659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12672 ## ----------------------------------- ##
12673 ## Report this to llvmbugs@cs.uiuc.edu ##
12674 ## ----------------------------------- ##
12676 ) | sed "s/^/$as_me: WARNING: /" >&2
12679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 eval "$as_ac_Header=\$ac_header_preproc"
12686 ac_res=`eval echo '${'$as_ac_Header'}'`
12687 { echo "$as_me:$LINENO: result: $ac_res" >&5
12688 echo "${ECHO_T}$ac_res" >&6; }
12691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12692 cat >>confdefs.h <<_ACEOF
12693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12703 for ac_func in strchr index
12705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 cat >conftest.$ac_ext <<_ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h. */
12717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12719 #define $ac_func innocuous_$ac_func
12721 /* System header to define __stub macros and hopefully few prototypes,
12722 which can conflict with char $ac_func (); below.
12723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12724 <limits.h> exists even on freestanding compilers. */
12727 # include <limits.h>
12729 # include <assert.h>
12734 /* Override any GCC internal prototype to avoid an error.
12735 Use char because int might match the return type of a GCC
12736 builtin and then its argument prototype would still apply. */
12741 /* The GNU C library defines this for functions which it implements
12742 to always fail with ENOSYS. Some functions are actually named
12743 something starting with __ and the normal name is an alias. */
12744 #if defined __stub_$ac_func || defined __stub___$ac_func
12751 return $ac_func ();
12756 rm -f conftest.$ac_objext conftest$ac_exeext
12757 if { (ac_try="$ac_link"
12758 case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_link") 2>conftest.er1
12765 grep -v '^ *+' conftest.er1 >conftest.err
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
12770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12771 { (case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_try") 2>&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; } &&
12780 { ac_try='test -s conftest$ac_exeext'
12781 { (case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_try") 2>&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
12790 eval "$as_ac_var=yes"
12792 echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12795 eval "$as_ac_var=no"
12798 rm -f core conftest.err conftest.$ac_objext \
12799 conftest$ac_exeext conftest.$ac_ext
12801 ac_res=`eval echo '${'$as_ac_var'}'`
12802 { echo "$as_me:$LINENO: result: $ac_res" >&5
12803 echo "${ECHO_T}$ac_res" >&6; }
12804 if test `eval echo '${'$as_ac_var'}'` = yes; then
12805 cat >>confdefs.h <<_ACEOF
12806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12814 for ac_func in strrchr rindex
12816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12822 cat >conftest.$ac_ext <<_ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12830 #define $ac_func innocuous_$ac_func
12832 /* System header to define __stub macros and hopefully few prototypes,
12833 which can conflict with char $ac_func (); below.
12834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12835 <limits.h> exists even on freestanding compilers. */
12838 # include <limits.h>
12840 # include <assert.h>
12845 /* Override any GCC internal prototype to avoid an error.
12846 Use char because int might match the return type of a GCC
12847 builtin and then its argument prototype would still apply. */
12852 /* The GNU C library defines this for functions which it implements
12853 to always fail with ENOSYS. Some functions are actually named
12854 something starting with __ and the normal name is an alias. */
12855 #if defined __stub_$ac_func || defined __stub___$ac_func
12862 return $ac_func ();
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (ac_try="$ac_link"
12869 case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_link") 2>conftest.er1
12876 grep -v '^ *+' conftest.er1 >conftest.err
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882 { (case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_try") 2>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901 eval "$as_ac_var=yes"
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12906 eval "$as_ac_var=no"
12909 rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext conftest.$ac_ext
12912 ac_res=`eval echo '${'$as_ac_var'}'`
12913 { echo "$as_me:$LINENO: result: $ac_res" >&5
12914 echo "${ECHO_T}$ac_res" >&6; }
12915 if test `eval echo '${'$as_ac_var'}'` = yes; then
12916 cat >>confdefs.h <<_ACEOF
12917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12925 for ac_func in memcpy bcopy
12927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12931 echo $ECHO_N "(cached) $ECHO_C" >&6
12933 cat >conftest.$ac_ext <<_ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h. */
12939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12941 #define $ac_func innocuous_$ac_func
12943 /* System header to define __stub macros and hopefully few prototypes,
12944 which can conflict with char $ac_func (); below.
12945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12946 <limits.h> exists even on freestanding compilers. */
12949 # include <limits.h>
12951 # include <assert.h>
12956 /* Override any GCC internal prototype to avoid an error.
12957 Use char because int might match the return type of a GCC
12958 builtin and then its argument prototype would still apply. */
12963 /* The GNU C library defines this for functions which it implements
12964 to always fail with ENOSYS. Some functions are actually named
12965 something starting with __ and the normal name is an alias. */
12966 #if defined __stub_$ac_func || defined __stub___$ac_func
12973 return $ac_func ();
12978 rm -f conftest.$ac_objext conftest$ac_exeext
12979 if { (ac_try="$ac_link"
12980 case "(($ac_try" in
12981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12982 *) ac_try_echo=$ac_try;;
12984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12985 (eval "$ac_link") 2>conftest.er1
12987 grep -v '^ *+' conftest.er1 >conftest.err
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } &&
12992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12993 { (case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_try") 2>&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; } &&
13002 { ac_try='test -s conftest$ac_exeext'
13003 { (case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_try") 2>&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
13012 eval "$as_ac_var=yes"
13014 echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13017 eval "$as_ac_var=no"
13020 rm -f core conftest.err conftest.$ac_objext \
13021 conftest$ac_exeext conftest.$ac_ext
13023 ac_res=`eval echo '${'$as_ac_var'}'`
13024 { echo "$as_me:$LINENO: result: $ac_res" >&5
13025 echo "${ECHO_T}$ac_res" >&6; }
13026 if test `eval echo '${'$as_ac_var'}'` = yes; then
13027 cat >>confdefs.h <<_ACEOF
13028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13036 for ac_func in memmove strcmp
13038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 cat >conftest.$ac_ext <<_ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h. */
13050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13052 #define $ac_func innocuous_$ac_func
13054 /* System header to define __stub macros and hopefully few prototypes,
13055 which can conflict with char $ac_func (); below.
13056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13057 <limits.h> exists even on freestanding compilers. */
13060 # include <limits.h>
13062 # include <assert.h>
13067 /* Override any GCC internal prototype to avoid an error.
13068 Use char because int might match the return type of a GCC
13069 builtin and then its argument prototype would still apply. */
13074 /* The GNU C library defines this for functions which it implements
13075 to always fail with ENOSYS. Some functions are actually named
13076 something starting with __ and the normal name is an alias. */
13077 #if defined __stub_$ac_func || defined __stub___$ac_func
13084 return $ac_func ();
13089 rm -f conftest.$ac_objext conftest$ac_exeext
13090 if { (ac_try="$ac_link"
13091 case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096 (eval "$ac_link") 2>conftest.er1
13098 grep -v '^ *+' conftest.er1 >conftest.err
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } &&
13103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13104 { (case "(($ac_try" in
13105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13106 *) ac_try_echo=$ac_try;;
13108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13109 (eval "$ac_try") 2>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } &&
13113 { ac_try='test -s conftest$ac_exeext'
13114 { (case "(($ac_try" in
13115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13116 *) ac_try_echo=$ac_try;;
13118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13119 (eval "$ac_try") 2>&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 eval "$as_ac_var=yes"
13125 echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13128 eval "$as_ac_var=no"
13131 rm -f core conftest.err conftest.$ac_objext \
13132 conftest$ac_exeext conftest.$ac_ext
13134 ac_res=`eval echo '${'$as_ac_var'}'`
13135 { echo "$as_me:$LINENO: result: $ac_res" >&5
13136 echo "${ECHO_T}$ac_res" >&6; }
13137 if test `eval echo '${'$as_ac_var'}'` = yes; then
13138 cat >>confdefs.h <<_ACEOF
13139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13148 for ac_func in closedir opendir readdir
13150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 cat >conftest.$ac_ext <<_ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13164 #define $ac_func innocuous_$ac_func
13166 /* System header to define __stub macros and hopefully few prototypes,
13167 which can conflict with char $ac_func (); below.
13168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13169 <limits.h> exists even on freestanding compilers. */
13172 # include <limits.h>
13174 # include <assert.h>
13179 /* Override any GCC internal prototype to avoid an error.
13180 Use char because int might match the return type of a GCC
13181 builtin and then its argument prototype would still apply. */
13186 /* The GNU C library defines this for functions which it implements
13187 to always fail with ENOSYS. Some functions are actually named
13188 something starting with __ and the normal name is an alias. */
13189 #if defined __stub_$ac_func || defined __stub___$ac_func
13196 return $ac_func ();
13201 rm -f conftest.$ac_objext conftest$ac_exeext
13202 if { (ac_try="$ac_link"
13203 case "(($ac_try" in
13204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205 *) ac_try_echo=$ac_try;;
13207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13208 (eval "$ac_link") 2>conftest.er1
13210 grep -v '^ *+' conftest.er1 >conftest.err
13212 cat conftest.err >&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); } &&
13215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13216 { (case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221 (eval "$ac_try") 2>&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; } &&
13225 { ac_try='test -s conftest$ac_exeext'
13226 { (case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_try") 2>&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }; }; then
13235 eval "$as_ac_var=yes"
13237 echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13240 eval "$as_ac_var=no"
13243 rm -f core conftest.err conftest.$ac_objext \
13244 conftest$ac_exeext conftest.$ac_ext
13246 ac_res=`eval echo '${'$as_ac_var'}'`
13247 { echo "$as_me:$LINENO: result: $ac_res" >&5
13248 echo "${ECHO_T}$ac_res" >&6; }
13249 if test `eval echo '${'$as_ac_var'}'` = yes; then
13250 cat >>confdefs.h <<_ACEOF
13251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13259 if test "$WITH_LLVMGCCDIR" = "default" ; then
13260 LLVMGCC="llvm-gcc${EXEEXT}"
13261 LLVMGXX="llvm-g++${EXEEXT}"
13262 LLVMGCCCOMMAND="$LLVMGCC"
13263 LLVMGXXCOMMAND="$LLVMGXX"
13264 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13266 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13268 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13269 set dummy $LLVMGCC; ac_word=$2
13270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13272 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13273 echo $ECHO_N "(cached) $ECHO_C" >&6
13277 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281 for as_dir in $PATH
13284 test -z "$as_dir" && as_dir=.
13285 for ac_exec_ext in '' $ac_executable_extensions; do
13286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13287 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13298 LLVMGCC=$ac_cv_path_LLVMGCC
13299 if test -n "$LLVMGCC"; then
13300 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13301 echo "${ECHO_T}$LLVMGCC" >&6; }
13303 { echo "$as_me:$LINENO: result: no" >&5
13304 echo "${ECHO_T}no" >&6; }
13308 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13309 set dummy $LLVMGXX; ac_word=$2
13310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13312 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321 for as_dir in $PATH
13324 test -z "$as_dir" && as_dir=.
13325 for ac_exec_ext in '' $ac_executable_extensions; do
13326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13327 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13338 LLVMGXX=$ac_cv_path_LLVMGXX
13339 if test -n "$LLVMGXX"; then
13340 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13341 echo "${ECHO_T}$LLVMGXX" >&6; }
13343 { echo "$as_me:$LINENO: result: no" >&5
13344 echo "${ECHO_T}no" >&6; }
13349 if test -z "$LLVMGCC"; then
13350 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13351 LLVMGCCCOMMAND="$LLVMGCC"
13353 if test -z "$LLVMGXX"; then
13354 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13355 LLVMGXXCOMMAND="$LLVMGXX"
13362 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13364 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13369 # Check whether --with-llvmcc was given.
13370 if test "${with_llvmcc+set}" = set; then
13371 withval=$with_llvmcc;
13376 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13377 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13378 if test "$with_llvmcc" != "check"; then
13379 if (test "$with_llvmcc" != "llvm-gcc" &&
13380 test "$with_llvmcc" != "clang" &&
13381 test "$with_llvmcc" != "none"); then
13382 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13383 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13384 { (exit 1); exit 1; }; }
13386 WITH_LLVMCC="$with_llvmcc"
13387 elif test -n "$LLVMGCC"; then
13388 WITH_LLVMCC=llvm-gcc
13389 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13394 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13395 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13396 LLVMCC_OPTION=$WITH_LLVMCC
13399 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13400 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13413 if test "$GCC" != "yes" && test "$ICC" != "yes"
13415 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13416 echo "$as_me: error: gcc|icc required but not found" >&2;}
13417 { (exit 1); exit 1; }; }
13420 if test "$GXX" != "yes" && test "$IXX" != "yes"
13422 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13423 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13424 { (exit 1); exit 1; }; }
13427 if test "$GCC" = "yes"
13429 cat >conftest.$ac_ext <<_ACEOF
13430 #if !defined(__GNUC__) || __GNUC__ < 3
13431 #error Unsupported GCC version
13435 rm -f conftest.$ac_objext
13436 if { (ac_try="$ac_compile"
13437 case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_compile") 2>conftest.er1
13444 grep -v '^ *+' conftest.er1 >conftest.err
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
13449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13450 { (case "(($ac_try" in
13451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452 *) ac_try_echo=$ac_try;;
13454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13455 (eval "$ac_try") 2>&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; } &&
13459 { ac_try='test -s conftest.$ac_objext'
13460 { (case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_try") 2>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; }; then
13471 echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13474 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13475 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13476 { (exit 1); exit 1; }; }
13479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482 if test -z "$llvm_cv_gnu_make_command"
13484 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13485 echo "$as_me: error: GNU Make required but not found" >&2;}
13486 { (exit 1); exit 1; }; }
13489 { echo "$as_me:$LINENO: result: ok" >&5
13490 echo "${ECHO_T}ok" >&6; }
13492 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13493 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13494 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13496 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13498 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13499 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13503 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13504 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13505 if test "${ac_cv_lib_m_sin+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 ac_check_lib_save_LIBS=$LIBS
13510 cat >conftest.$ac_ext <<_ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13517 /* Override any GCC internal prototype to avoid an error.
13518 Use char because int might match the return type of a GCC
13519 builtin and then its argument prototype would still apply. */
13532 rm -f conftest.$ac_objext conftest$ac_exeext
13533 if { (ac_try="$ac_link"
13534 case "(($ac_try" in
13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536 *) ac_try_echo=$ac_try;;
13538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539 (eval "$ac_link") 2>conftest.er1
13541 grep -v '^ *+' conftest.er1 >conftest.err
13543 cat conftest.err >&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); } &&
13546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13547 { (case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_try") 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; } &&
13556 { ac_try='test -s conftest$ac_exeext'
13557 { (case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_try") 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13566 ac_cv_lib_m_sin=yes
13568 echo "$as_me: failed program was:" >&5
13569 sed 's/^/| /' conftest.$ac_ext >&5
13574 rm -f core conftest.err conftest.$ac_objext \
13575 conftest$ac_exeext conftest.$ac_ext
13576 LIBS=$ac_check_lib_save_LIBS
13578 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13579 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13580 if test $ac_cv_lib_m_sin = yes; then
13581 cat >>confdefs.h <<_ACEOF
13582 #define HAVE_LIBM 1
13589 if test "$llvm_cv_os_type" = "MingW" ; then
13591 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13592 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13593 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
13596 ac_check_lib_save_LIBS=$LIBS
13597 LIBS="-limagehlp $LIBS"
13598 cat >conftest.$ac_ext <<_ACEOF
13601 cat confdefs.h >>conftest.$ac_ext
13602 cat >>conftest.$ac_ext <<_ACEOF
13603 /* end confdefs.h. */
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (ac_try="$ac_link"
13616 case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_link") 2>conftest.er1
13623 grep -v '^ *+' conftest.er1 >conftest.err
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13629 { (case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_try") 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; } &&
13638 { ac_try='test -s conftest$ac_exeext'
13639 { (case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_try") 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13648 ac_cv_lib_imagehlp_main=yes
13650 echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13653 ac_cv_lib_imagehlp_main=no
13656 rm -f core conftest.err conftest.$ac_objext \
13657 conftest$ac_exeext conftest.$ac_ext
13658 LIBS=$ac_check_lib_save_LIBS
13660 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13661 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13662 if test $ac_cv_lib_imagehlp_main = yes; then
13663 cat >>confdefs.h <<_ACEOF
13664 #define HAVE_LIBIMAGEHLP 1
13667 LIBS="-limagehlp $LIBS"
13672 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13673 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13674 if test "${ac_cv_lib_psapi_main+set}" = set; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 ac_check_lib_save_LIBS=$LIBS
13678 LIBS="-lpsapi $LIBS"
13679 cat >conftest.$ac_ext <<_ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h. */
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (ac_try="$ac_link"
13697 case "(($ac_try" in
13698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_link") 2>conftest.er1
13704 grep -v '^ *+' conftest.er1 >conftest.err
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest$ac_exeext'
13720 { (case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725 (eval "$ac_try") 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729 ac_cv_lib_psapi_main=yes
13731 echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13734 ac_cv_lib_psapi_main=no
13737 rm -f core conftest.err conftest.$ac_objext \
13738 conftest$ac_exeext conftest.$ac_ext
13739 LIBS=$ac_check_lib_save_LIBS
13741 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13742 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13743 if test $ac_cv_lib_psapi_main = yes; then
13744 cat >>confdefs.h <<_ACEOF
13745 #define HAVE_LIBPSAPI 1
13748 LIBS="-lpsapi $LIBS"
13754 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13755 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13756 if test "${ac_cv_search_dlopen+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 ac_func_search_save_LIBS=$LIBS
13760 cat >conftest.$ac_ext <<_ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13767 /* Override any GCC internal prototype to avoid an error.
13768 Use char because int might match the return type of a GCC
13769 builtin and then its argument prototype would still apply. */
13782 for ac_lib in '' dl; do
13783 if test -z "$ac_lib"; then
13784 ac_res="none required"
13787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13789 rm -f conftest.$ac_objext conftest$ac_exeext
13790 if { (ac_try="$ac_link"
13791 case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796 (eval "$ac_link") 2>conftest.er1
13798 grep -v '^ *+' conftest.er1 >conftest.err
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13804 { (case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_try") 2>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; } &&
13813 { ac_try='test -s conftest$ac_exeext'
13814 { (case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_try") 2>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13823 ac_cv_search_dlopen=$ac_res
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13831 rm -f core conftest.err conftest.$ac_objext \
13833 if test "${ac_cv_search_dlopen+set}" = set; then
13837 if test "${ac_cv_search_dlopen+set}" = set; then
13840 ac_cv_search_dlopen=no
13842 rm conftest.$ac_ext
13843 LIBS=$ac_func_search_save_LIBS
13845 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13846 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13847 ac_res=$ac_cv_search_dlopen
13848 if test "$ac_res" != no; then
13849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13851 cat >>confdefs.h <<\_ACEOF
13852 #define HAVE_DLOPEN 1
13856 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13857 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13861 if test "$llvm_cv_enable_libffi" = "yes" ; then
13862 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13863 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13864 if test "${ac_cv_search_ffi_call+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13867 ac_func_search_save_LIBS=$LIBS
13868 cat >conftest.$ac_ext <<_ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13875 /* Override any GCC internal prototype to avoid an error.
13876 Use char because int might match the return type of a GCC
13877 builtin and then its argument prototype would still apply. */
13885 return ffi_call ();
13890 for ac_lib in '' ffi; do
13891 if test -z "$ac_lib"; then
13892 ac_res="none required"
13895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13897 rm -f conftest.$ac_objext conftest$ac_exeext
13898 if { (ac_try="$ac_link"
13899 case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_link") 2>conftest.er1
13906 grep -v '^ *+' conftest.er1 >conftest.err
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } &&
13911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13912 { (case "(($ac_try" in
13913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13914 *) ac_try_echo=$ac_try;;
13916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13917 (eval "$ac_try") 2>&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; } &&
13921 { ac_try='test -s conftest$ac_exeext'
13922 { (case "(($ac_try" in
13923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924 *) ac_try_echo=$ac_try;;
13926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927 (eval "$ac_try") 2>&5
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; }; then
13931 ac_cv_search_ffi_call=$ac_res
13933 echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13939 rm -f core conftest.err conftest.$ac_objext \
13941 if test "${ac_cv_search_ffi_call+set}" = set; then
13945 if test "${ac_cv_search_ffi_call+set}" = set; then
13948 ac_cv_search_ffi_call=no
13950 rm conftest.$ac_ext
13951 LIBS=$ac_func_search_save_LIBS
13953 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13954 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13955 ac_res=$ac_cv_search_ffi_call
13956 if test "$ac_res" != no; then
13957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13959 cat >>confdefs.h <<\_ACEOF
13960 #define HAVE_FFI_CALL 1
13964 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13965 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13966 { (exit 1); exit 1; }; }
13971 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13972 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13973 if test "${ac_cv_search_mallinfo+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13976 ac_func_search_save_LIBS=$LIBS
13977 cat >conftest.$ac_ext <<_ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13984 /* Override any GCC internal prototype to avoid an error.
13985 Use char because int might match the return type of a GCC
13986 builtin and then its argument prototype would still apply. */
13994 return mallinfo ();
13999 for ac_lib in '' malloc; do
14000 if test -z "$ac_lib"; then
14001 ac_res="none required"
14004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14006 rm -f conftest.$ac_objext conftest$ac_exeext
14007 if { (ac_try="$ac_link"
14008 case "(($ac_try" in
14009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010 *) ac_try_echo=$ac_try;;
14012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013 (eval "$ac_link") 2>conftest.er1
14015 grep -v '^ *+' conftest.er1 >conftest.err
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14021 { (case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_try") 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; } &&
14030 { ac_try='test -s conftest$ac_exeext'
14031 { (case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_try") 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 ac_cv_search_mallinfo=$ac_res
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14048 rm -f core conftest.err conftest.$ac_objext \
14050 if test "${ac_cv_search_mallinfo+set}" = set; then
14054 if test "${ac_cv_search_mallinfo+set}" = set; then
14057 ac_cv_search_mallinfo=no
14059 rm conftest.$ac_ext
14060 LIBS=$ac_func_search_save_LIBS
14062 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14063 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14064 ac_res=$ac_cv_search_mallinfo
14065 if test "$ac_res" != no; then
14066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14068 cat >>confdefs.h <<\_ACEOF
14069 #define HAVE_MALLINFO 1
14075 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14077 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14078 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14079 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14082 ac_check_lib_save_LIBS=$LIBS
14083 LIBS="-lpthread $LIBS"
14084 cat >conftest.$ac_ext <<_ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h. */
14091 /* Override any GCC internal prototype to avoid an error.
14092 Use char because int might match the return type of a GCC
14093 builtin and then its argument prototype would still apply. */
14097 char pthread_mutex_init ();
14101 return pthread_mutex_init ();
14106 rm -f conftest.$ac_objext conftest$ac_exeext
14107 if { (ac_try="$ac_link"
14108 case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_link") 2>conftest.er1
14115 grep -v '^ *+' conftest.er1 >conftest.err
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
14120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14121 { (case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126 (eval "$ac_try") 2>&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; } &&
14130 { ac_try='test -s conftest$ac_exeext'
14131 { (case "(($ac_try" in
14132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133 *) ac_try_echo=$ac_try;;
14135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136 (eval "$ac_try") 2>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14140 ac_cv_lib_pthread_pthread_mutex_init=yes
14142 echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14145 ac_cv_lib_pthread_pthread_mutex_init=no
14148 rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14150 LIBS=$ac_check_lib_save_LIBS
14152 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14153 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14154 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14155 cat >>confdefs.h <<_ACEOF
14156 #define HAVE_LIBPTHREAD 1
14159 LIBS="-lpthread $LIBS"
14163 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14164 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14165 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 ac_func_search_save_LIBS=$LIBS
14169 cat >conftest.$ac_ext <<_ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h. */
14176 /* Override any GCC internal prototype to avoid an error.
14177 Use char because int might match the return type of a GCC
14178 builtin and then its argument prototype would still apply. */
14182 char pthread_mutex_lock ();
14186 return pthread_mutex_lock ();
14191 for ac_lib in '' pthread; do
14192 if test -z "$ac_lib"; then
14193 ac_res="none required"
14196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14198 rm -f conftest.$ac_objext conftest$ac_exeext
14199 if { (ac_try="$ac_link"
14200 case "(($ac_try" in
14201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14202 *) ac_try_echo=$ac_try;;
14204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14205 (eval "$ac_link") 2>conftest.er1
14207 grep -v '^ *+' conftest.er1 >conftest.err
14209 cat conftest.err >&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } &&
14212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14213 { (case "(($ac_try" in
14214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215 *) ac_try_echo=$ac_try;;
14217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218 (eval "$ac_try") 2>&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; } &&
14222 { ac_try='test -s conftest$ac_exeext'
14223 { (case "(($ac_try" in
14224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225 *) ac_try_echo=$ac_try;;
14227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228 (eval "$ac_try") 2>&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; }; then
14232 ac_cv_search_pthread_mutex_lock=$ac_res
14234 echo "$as_me: failed program was:" >&5
14235 sed 's/^/| /' conftest.$ac_ext >&5
14240 rm -f core conftest.err conftest.$ac_objext \
14242 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14246 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14249 ac_cv_search_pthread_mutex_lock=no
14251 rm conftest.$ac_ext
14252 LIBS=$ac_func_search_save_LIBS
14254 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14255 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14256 ac_res=$ac_cv_search_pthread_mutex_lock
14257 if test "$ac_res" != no; then
14258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14260 cat >>confdefs.h <<\_ACEOF
14261 #define HAVE_PTHREAD_MUTEX_LOCK 1
14266 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14267 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14268 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14271 ac_func_search_save_LIBS=$LIBS
14272 cat >conftest.$ac_ext <<_ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14279 /* Override any GCC internal prototype to avoid an error.
14280 Use char because int might match the return type of a GCC
14281 builtin and then its argument prototype would still apply. */
14285 char pthread_rwlock_init ();
14289 return pthread_rwlock_init ();
14294 for ac_lib in '' pthread; do
14295 if test -z "$ac_lib"; then
14296 ac_res="none required"
14299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14301 rm -f conftest.$ac_objext conftest$ac_exeext
14302 if { (ac_try="$ac_link"
14303 case "(($ac_try" in
14304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305 *) ac_try_echo=$ac_try;;
14307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308 (eval "$ac_link") 2>conftest.er1
14310 grep -v '^ *+' conftest.er1 >conftest.err
14312 cat conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } &&
14315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14316 { (case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_try") 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; } &&
14325 { ac_try='test -s conftest$ac_exeext'
14326 { (case "(($ac_try" in
14327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328 *) ac_try_echo=$ac_try;;
14330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14331 (eval "$ac_try") 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 ac_cv_search_pthread_rwlock_init=$ac_res
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14343 rm -f core conftest.err conftest.$ac_objext \
14345 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14349 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14352 ac_cv_search_pthread_rwlock_init=no
14354 rm conftest.$ac_ext
14355 LIBS=$ac_func_search_save_LIBS
14357 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14358 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14359 ac_res=$ac_cv_search_pthread_rwlock_init
14360 if test "$ac_res" != no; then
14361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14363 cat >>confdefs.h <<\_ACEOF
14364 #define HAVE_PTHREAD_RWLOCK_INIT 1
14369 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14370 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14371 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 ac_func_search_save_LIBS=$LIBS
14375 cat >conftest.$ac_ext <<_ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14382 /* Override any GCC internal prototype to avoid an error.
14383 Use char because int might match the return type of a GCC
14384 builtin and then its argument prototype would still apply. */
14388 char pthread_getspecific ();
14392 return pthread_getspecific ();
14397 for ac_lib in '' pthread; do
14398 if test -z "$ac_lib"; then
14399 ac_res="none required"
14402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14404 rm -f conftest.$ac_objext conftest$ac_exeext
14405 if { (ac_try="$ac_link"
14406 case "(($ac_try" in
14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_link") 2>conftest.er1
14413 grep -v '^ *+' conftest.er1 >conftest.err
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14419 { (case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424 (eval "$ac_try") 2>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; } &&
14428 { ac_try='test -s conftest$ac_exeext'
14429 { (case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434 (eval "$ac_try") 2>&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14438 ac_cv_search_pthread_getspecific=$ac_res
14440 echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14446 rm -f core conftest.err conftest.$ac_objext \
14448 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14452 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14455 ac_cv_search_pthread_getspecific=no
14457 rm conftest.$ac_ext
14458 LIBS=$ac_func_search_save_LIBS
14460 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14461 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14462 ac_res=$ac_cv_search_pthread_getspecific
14463 if test "$ac_res" != no; then
14464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14466 cat >>confdefs.h <<\_ACEOF
14467 #define HAVE_PTHREAD_GETSPECIFIC 1
14475 # Check whether --with-udis86 was given.
14476 if test "${with_udis86+set}" = set; then
14477 withval=$with_udis86;
14482 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14485 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14486 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14487 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 ac_check_lib_save_LIBS=$LIBS
14491 LIBS="-ludis86 $LIBS"
14492 cat >conftest.$ac_ext <<_ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h. */
14499 /* Override any GCC internal prototype to avoid an error.
14500 Use char because int might match the return type of a GCC
14501 builtin and then its argument prototype would still apply. */
14514 rm -f conftest.$ac_objext conftest$ac_exeext
14515 if { (ac_try="$ac_link"
14516 case "(($ac_try" in
14517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518 *) ac_try_echo=$ac_try;;
14520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14521 (eval "$ac_link") 2>conftest.er1
14523 grep -v '^ *+' conftest.er1 >conftest.err
14525 cat conftest.err >&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } &&
14528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14529 { (case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_try") 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; } &&
14538 { ac_try='test -s conftest$ac_exeext'
14539 { (case "(($ac_try" in
14540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14541 *) ac_try_echo=$ac_try;;
14543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14544 (eval "$ac_try") 2>&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 ac_cv_lib_udis86_ud_init=yes
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14553 ac_cv_lib_udis86_ud_init=no
14556 rm -f core conftest.err conftest.$ac_objext \
14557 conftest$ac_exeext conftest.$ac_ext
14558 LIBS=$ac_check_lib_save_LIBS
14560 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14561 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14562 if test $ac_cv_lib_udis86_ud_init = yes; then
14563 cat >>confdefs.h <<_ACEOF
14564 #define HAVE_LIBUDIS86 1
14567 LIBS="-ludis86 $LIBS"
14571 echo "Error! You need to have libudis86 around."
14583 cat >>confdefs.h <<_ACEOF
14584 #define USE_UDIS86 $USE_UDIS86
14589 # Check whether --with-oprofile was given.
14590 if test "${with_oprofile+set}" = set; then
14591 withval=$with_oprofile;
14595 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14596 no) llvm_cv_oppath=
14599 *) llvm_cv_oppath="${withval}/lib/oprofile"
14600 CPPFLAGS="-I${withval}/include";;
14602 if test -n "$llvm_cv_oppath" ; then
14603 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14604 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14605 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14606 if test "${ac_cv_search_bfd_init+set}" = set; then
14607 echo $ECHO_N "(cached) $ECHO_C" >&6
14609 ac_func_search_save_LIBS=$LIBS
14610 cat >conftest.$ac_ext <<_ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14617 /* Override any GCC internal prototype to avoid an error.
14618 Use char because int might match the return type of a GCC
14619 builtin and then its argument prototype would still apply. */
14627 return bfd_init ();
14632 for ac_lib in '' bfd; do
14633 if test -z "$ac_lib"; then
14634 ac_res="none required"
14637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14639 rm -f conftest.$ac_objext conftest$ac_exeext
14640 if { (ac_try="$ac_link"
14641 case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_link") 2>conftest.er1
14648 grep -v '^ *+' conftest.er1 >conftest.err
14650 cat conftest.err >&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
14653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14654 { (case "(($ac_try" in
14655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14656 *) ac_try_echo=$ac_try;;
14658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14659 (eval "$ac_try") 2>&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; } &&
14663 { ac_try='test -s conftest$ac_exeext'
14664 { (case "(($ac_try" in
14665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14666 *) ac_try_echo=$ac_try;;
14668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14669 (eval "$ac_try") 2>&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; }; then
14673 ac_cv_search_bfd_init=$ac_res
14675 echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14681 rm -f core conftest.err conftest.$ac_objext \
14683 if test "${ac_cv_search_bfd_init+set}" = set; then
14687 if test "${ac_cv_search_bfd_init+set}" = set; then
14690 ac_cv_search_bfd_init=no
14692 rm conftest.$ac_ext
14693 LIBS=$ac_func_search_save_LIBS
14695 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14696 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14697 ac_res=$ac_cv_search_bfd_init
14698 if test "$ac_res" != no; then
14699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14703 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14704 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14705 if test "${ac_cv_search_op_open_agent+set}" = set; then
14706 echo $ECHO_N "(cached) $ECHO_C" >&6
14708 ac_func_search_save_LIBS=$LIBS
14709 cat >conftest.$ac_ext <<_ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h. */
14716 /* Override any GCC internal prototype to avoid an error.
14717 Use char because int might match the return type of a GCC
14718 builtin and then its argument prototype would still apply. */
14722 char op_open_agent ();
14726 return op_open_agent ();
14731 for ac_lib in '' opagent; do
14732 if test -z "$ac_lib"; then
14733 ac_res="none required"
14736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14738 rm -f conftest.$ac_objext conftest$ac_exeext
14739 if { (ac_try="$ac_link"
14740 case "(($ac_try" in
14741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742 *) ac_try_echo=$ac_try;;
14744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745 (eval "$ac_link") 2>conftest.er1
14747 grep -v '^ *+' conftest.er1 >conftest.err
14749 cat conftest.err >&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } &&
14752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14753 { (case "(($ac_try" in
14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755 *) ac_try_echo=$ac_try;;
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_try") 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; } &&
14762 { ac_try='test -s conftest$ac_exeext'
14763 { (case "(($ac_try" in
14764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768 (eval "$ac_try") 2>&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; }; then
14772 ac_cv_search_op_open_agent=$ac_res
14774 echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14780 rm -f core conftest.err conftest.$ac_objext \
14782 if test "${ac_cv_search_op_open_agent+set}" = set; then
14786 if test "${ac_cv_search_op_open_agent+set}" = set; then
14789 ac_cv_search_op_open_agent=no
14791 rm conftest.$ac_ext
14792 LIBS=$ac_func_search_save_LIBS
14794 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14795 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14796 ac_res=$ac_cv_search_op_open_agent
14797 if test "$ac_res" != no; then
14798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14802 echo "Error! You need to have libopagent around."
14807 if test "${ac_cv_header_opagent_h+set}" = set; then
14808 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14809 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14810 if test "${ac_cv_header_opagent_h+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14813 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14814 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14816 # Is the header compilable?
14817 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14818 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14819 cat >conftest.$ac_ext <<_ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14825 $ac_includes_default
14826 #include <opagent.h>
14828 rm -f conftest.$ac_objext
14829 if { (ac_try="$ac_compile"
14830 case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835 (eval "$ac_compile") 2>conftest.er1
14837 grep -v '^ *+' conftest.er1 >conftest.err
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } &&
14842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14843 { (case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848 (eval "$ac_try") 2>&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; } &&
14852 { ac_try='test -s conftest.$ac_objext'
14853 { (case "(($ac_try" in
14854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14855 *) ac_try_echo=$ac_try;;
14857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14858 (eval "$ac_try") 2>&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14862 ac_header_compiler=yes
14864 echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14867 ac_header_compiler=no
14870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14872 echo "${ECHO_T}$ac_header_compiler" >&6; }
14874 # Is the header present?
14875 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14876 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14877 cat >conftest.$ac_ext <<_ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h. */
14883 #include <opagent.h>
14885 if { (ac_try="$ac_cpp conftest.$ac_ext"
14886 case "(($ac_try" in
14887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14888 *) ac_try_echo=$ac_try;;
14890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14893 grep -v '^ *+' conftest.er1 >conftest.err
14895 cat conftest.err >&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } >/dev/null; then
14898 if test -s conftest.err; then
14899 ac_cpp_err=$ac_c_preproc_warn_flag
14900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14907 if test -z "$ac_cpp_err"; then
14908 ac_header_preproc=yes
14910 echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.$ac_ext >&5
14913 ac_header_preproc=no
14916 rm -f conftest.err conftest.$ac_ext
14917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14918 echo "${ECHO_T}$ac_header_preproc" >&6; }
14920 # So? What about this header?
14921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14923 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14924 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14925 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14926 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14927 ac_header_preproc=yes
14930 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14931 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14933 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14934 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14935 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14936 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14937 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14938 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14939 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14940 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14941 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14943 ## ----------------------------------- ##
14944 ## Report this to llvmbugs@cs.uiuc.edu ##
14945 ## ----------------------------------- ##
14947 ) | sed "s/^/$as_me: WARNING: /" >&2
14950 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14951 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14952 if test "${ac_cv_header_opagent_h+set}" = set; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14955 ac_cv_header_opagent_h=$ac_header_preproc
14957 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14958 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14961 if test $ac_cv_header_opagent_h = yes; then
14965 echo "Error! You need to have opagent.h around."
14981 cat >>confdefs.h <<_ACEOF
14982 #define USE_OPROFILE $USE_OPROFILE
14992 ac_header_dirent=no
14993 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14994 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14995 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14996 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
15000 cat >conftest.$ac_ext <<_ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15006 #include <sys/types.h>
15018 rm -f conftest.$ac_objext
15019 if { (ac_try="$ac_compile"
15020 case "(($ac_try" in
15021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022 *) ac_try_echo=$ac_try;;
15024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15025 (eval "$ac_compile") 2>conftest.er1
15027 grep -v '^ *+' conftest.er1 >conftest.err
15029 cat conftest.err >&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } &&
15032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15033 { (case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_try") 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; } &&
15042 { ac_try='test -s conftest.$ac_objext'
15043 { (case "(($ac_try" in
15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048 (eval "$ac_try") 2>&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; }; then
15052 eval "$as_ac_Header=yes"
15054 echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15057 eval "$as_ac_Header=no"
15060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15062 ac_res=`eval echo '${'$as_ac_Header'}'`
15063 { echo "$as_me:$LINENO: result: $ac_res" >&5
15064 echo "${ECHO_T}$ac_res" >&6; }
15065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15066 cat >>confdefs.h <<_ACEOF
15067 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15070 ac_header_dirent=$ac_hdr; break
15074 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15075 if test $ac_header_dirent = dirent.h; then
15076 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15077 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15078 if test "${ac_cv_search_opendir+set}" = set; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 ac_func_search_save_LIBS=$LIBS
15082 cat >conftest.$ac_ext <<_ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15089 /* Override any GCC internal prototype to avoid an error.
15090 Use char because int might match the return type of a GCC
15091 builtin and then its argument prototype would still apply. */
15104 for ac_lib in '' dir; do
15105 if test -z "$ac_lib"; then
15106 ac_res="none required"
15109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15111 rm -f conftest.$ac_objext conftest$ac_exeext
15112 if { (ac_try="$ac_link"
15113 case "(($ac_try" in
15114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115 *) ac_try_echo=$ac_try;;
15117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118 (eval "$ac_link") 2>conftest.er1
15120 grep -v '^ *+' conftest.er1 >conftest.err
15122 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } &&
15125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15126 { (case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_try") 2>&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; } &&
15135 { ac_try='test -s conftest$ac_exeext'
15136 { (case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_try") 2>&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15145 ac_cv_search_opendir=$ac_res
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15153 rm -f core conftest.err conftest.$ac_objext \
15155 if test "${ac_cv_search_opendir+set}" = set; then
15159 if test "${ac_cv_search_opendir+set}" = set; then
15162 ac_cv_search_opendir=no
15164 rm conftest.$ac_ext
15165 LIBS=$ac_func_search_save_LIBS
15167 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15168 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15169 ac_res=$ac_cv_search_opendir
15170 if test "$ac_res" != no; then
15171 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15176 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15177 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15178 if test "${ac_cv_search_opendir+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15181 ac_func_search_save_LIBS=$LIBS
15182 cat >conftest.$ac_ext <<_ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h. */
15189 /* Override any GCC internal prototype to avoid an error.
15190 Use char because int might match the return type of a GCC
15191 builtin and then its argument prototype would still apply. */
15204 for ac_lib in '' x; do
15205 if test -z "$ac_lib"; then
15206 ac_res="none required"
15209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15211 rm -f conftest.$ac_objext conftest$ac_exeext
15212 if { (ac_try="$ac_link"
15213 case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_link") 2>conftest.er1
15220 grep -v '^ *+' conftest.er1 >conftest.err
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } &&
15225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15226 { (case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_try") 2>&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; } &&
15235 { ac_try='test -s conftest$ac_exeext'
15236 { (case "(($ac_try" in
15237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238 *) ac_try_echo=$ac_try;;
15240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15241 (eval "$ac_try") 2>&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15245 ac_cv_search_opendir=$ac_res
15247 echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15253 rm -f core conftest.err conftest.$ac_objext \
15255 if test "${ac_cv_search_opendir+set}" = set; then
15259 if test "${ac_cv_search_opendir+set}" = set; then
15262 ac_cv_search_opendir=no
15264 rm conftest.$ac_ext
15265 LIBS=$ac_func_search_save_LIBS
15267 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15268 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15269 ac_res=$ac_cv_search_opendir
15270 if test "$ac_res" != no; then
15271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15277 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15278 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15279 if test "${ac_cv_header_mmap_anon+set}" = set; then
15280 echo $ECHO_N "(cached) $ECHO_C" >&6
15283 ac_cpp='$CPP $CPPFLAGS'
15284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15288 cat >conftest.$ac_ext <<_ACEOF
15291 cat confdefs.h >>conftest.$ac_ext
15292 cat >>conftest.$ac_ext <<_ACEOF
15293 /* end confdefs.h. */
15294 #include <sys/mman.h>
15295 #include <unistd.h>
15300 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15305 rm -f conftest.$ac_objext
15306 if { (ac_try="$ac_compile"
15307 case "(($ac_try" in
15308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309 *) ac_try_echo=$ac_try;;
15311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312 (eval "$ac_compile") 2>conftest.er1
15314 grep -v '^ *+' conftest.er1 >conftest.err
15316 cat conftest.err >&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15320 { (case "(($ac_try" in
15321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322 *) ac_try_echo=$ac_try;;
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325 (eval "$ac_try") 2>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; } &&
15329 { ac_try='test -s conftest.$ac_objext'
15330 { (case "(($ac_try" in
15331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332 *) ac_try_echo=$ac_try;;
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335 (eval "$ac_try") 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
15339 ac_cv_header_mmap_anon=yes
15341 echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15344 ac_cv_header_mmap_anon=no
15347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15349 ac_cpp='$CPP $CPPFLAGS'
15350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15356 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15357 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15358 if test "$ac_cv_header_mmap_anon" = yes; then
15360 cat >>confdefs.h <<\_ACEOF
15361 #define HAVE_MMAP_ANONYMOUS 1
15366 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15367 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15368 if test "${ac_cv_header_stat_broken+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 cat >conftest.$ac_ext <<_ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15377 #include <sys/types.h>
15378 #include <sys/stat.h>
15380 #if defined S_ISBLK && defined S_IFDIR
15381 # if S_ISBLK (S_IFDIR)
15386 #if defined S_ISBLK && defined S_IFCHR
15387 # if S_ISBLK (S_IFCHR)
15392 #if defined S_ISLNK && defined S_IFREG
15393 # if S_ISLNK (S_IFREG)
15398 #if defined S_ISSOCK && defined S_IFREG
15399 # if S_ISSOCK (S_IFREG)
15405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15406 $EGREP "You lose" >/dev/null 2>&1; then
15407 ac_cv_header_stat_broken=yes
15409 ac_cv_header_stat_broken=no
15414 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15415 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15416 if test $ac_cv_header_stat_broken = yes; then
15418 cat >>confdefs.h <<\_ACEOF
15419 #define STAT_MACROS_BROKEN 1
15424 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15425 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15426 if test "${ac_cv_header_stdc+set}" = set; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 cat >conftest.$ac_ext <<_ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15435 #include <stdlib.h>
15436 #include <stdarg.h>
15437 #include <string.h>
15448 rm -f conftest.$ac_objext
15449 if { (ac_try="$ac_compile"
15450 case "(($ac_try" in
15451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_compile") 2>conftest.er1
15457 grep -v '^ *+' conftest.er1 >conftest.err
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } &&
15462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15463 { (case "(($ac_try" in
15464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465 *) ac_try_echo=$ac_try;;
15467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468 (eval "$ac_try") 2>&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; } &&
15472 { ac_try='test -s conftest.$ac_objext'
15473 { (case "(($ac_try" in
15474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475 *) ac_try_echo=$ac_try;;
15477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15478 (eval "$ac_try") 2>&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; }; then
15482 ac_cv_header_stdc=yes
15484 echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15487 ac_cv_header_stdc=no
15490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15492 if test $ac_cv_header_stdc = yes; then
15493 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15494 cat >conftest.$ac_ext <<_ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500 #include <string.h>
15503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15504 $EGREP "memchr" >/dev/null 2>&1; then
15507 ac_cv_header_stdc=no
15513 if test $ac_cv_header_stdc = yes; then
15514 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15515 cat >conftest.$ac_ext <<_ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15521 #include <stdlib.h>
15524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15525 $EGREP "free" >/dev/null 2>&1; then
15528 ac_cv_header_stdc=no
15534 if test $ac_cv_header_stdc = yes; then
15535 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15536 if test "$cross_compiling" = yes; then
15539 cat >conftest.$ac_ext <<_ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15546 #include <stdlib.h>
15547 #if ((' ' & 0x0FF) == 0x020)
15548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15551 # define ISLOWER(c) \
15552 (('a' <= (c) && (c) <= 'i') \
15553 || ('j' <= (c) && (c) <= 'r') \
15554 || ('s' <= (c) && (c) <= 'z'))
15555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15563 for (i = 0; i < 256; i++)
15564 if (XOR (islower (i), ISLOWER (i))
15565 || toupper (i) != TOUPPER (i))
15570 rm -f conftest$ac_exeext
15571 if { (ac_try="$ac_link"
15572 case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577 (eval "$ac_link") 2>&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15581 { (case "(($ac_try" in
15582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583 *) ac_try_echo=$ac_try;;
15585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586 (eval "$ac_try") 2>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15592 echo "$as_me: program exited with status $ac_status" >&5
15593 echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15596 ( exit $ac_status )
15597 ac_cv_header_stdc=no
15599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15605 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15606 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15607 if test $ac_cv_header_stdc = yes; then
15609 cat >>confdefs.h <<\_ACEOF
15610 #define STDC_HEADERS 1
15615 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15616 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15617 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15620 cat >conftest.$ac_ext <<_ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15626 #include <sys/types.h>
15627 #include <sys/wait.h>
15628 #ifndef WEXITSTATUS
15629 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15632 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15640 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15645 rm -f conftest.$ac_objext
15646 if { (ac_try="$ac_compile"
15647 case "(($ac_try" in
15648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649 *) ac_try_echo=$ac_try;;
15651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15652 (eval "$ac_compile") 2>conftest.er1
15654 grep -v '^ *+' conftest.er1 >conftest.err
15656 cat conftest.err >&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } &&
15659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15660 { (case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665 (eval "$ac_try") 2>&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; } &&
15669 { ac_try='test -s conftest.$ac_objext'
15670 { (case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_try") 2>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
15679 ac_cv_header_sys_wait_h=yes
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15684 ac_cv_header_sys_wait_h=no
15687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15689 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15690 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15691 if test $ac_cv_header_sys_wait_h = yes; then
15693 cat >>confdefs.h <<\_ACEOF
15694 #define HAVE_SYS_WAIT_H 1
15699 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15700 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15701 if test "${ac_cv_header_time+set}" = set; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15704 cat >conftest.$ac_ext <<_ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h. */
15710 #include <sys/types.h>
15711 #include <sys/time.h>
15717 if ((struct tm *) 0)
15723 rm -f conftest.$ac_objext
15724 if { (ac_try="$ac_compile"
15725 case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_compile") 2>conftest.er1
15732 grep -v '^ *+' conftest.er1 >conftest.err
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
15737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15738 { (case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_try") 2>&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; } &&
15747 { ac_try='test -s conftest.$ac_objext'
15748 { (case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753 (eval "$ac_try") 2>&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757 ac_cv_header_time=yes
15759 echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15762 ac_cv_header_time=no
15765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15767 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15768 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15769 if test $ac_cv_header_time = yes; then
15771 cat >>confdefs.h <<\_ACEOF
15772 #define TIME_WITH_SYS_TIME 1
15784 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
15793 ac_res=`eval echo '${'$as_ac_Header'}'`
15794 { echo "$as_me:$LINENO: result: $ac_res" >&5
15795 echo "${ECHO_T}$ac_res" >&6; }
15797 # Is the header compilable?
15798 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15800 cat >conftest.$ac_ext <<_ACEOF
15803 cat confdefs.h >>conftest.$ac_ext
15804 cat >>conftest.$ac_ext <<_ACEOF
15805 /* end confdefs.h. */
15806 $ac_includes_default
15807 #include <$ac_header>
15809 rm -f conftest.$ac_objext
15810 if { (ac_try="$ac_compile"
15811 case "(($ac_try" in
15812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15813 *) ac_try_echo=$ac_try;;
15815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15816 (eval "$ac_compile") 2>conftest.er1
15818 grep -v '^ *+' conftest.er1 >conftest.err
15820 cat conftest.err >&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } &&
15823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15824 { (case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_try") 2>&5
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; } &&
15833 { ac_try='test -s conftest.$ac_objext'
15834 { (case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_try") 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15843 ac_header_compiler=yes
15845 echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15848 ac_header_compiler=no
15851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15853 echo "${ECHO_T}$ac_header_compiler" >&6; }
15855 # Is the header present?
15856 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15858 cat >conftest.$ac_ext <<_ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h. */
15864 #include <$ac_header>
15866 if { (ac_try="$ac_cpp conftest.$ac_ext"
15867 case "(($ac_try" in
15868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15874 grep -v '^ *+' conftest.er1 >conftest.err
15876 cat conftest.err >&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } >/dev/null; then
15879 if test -s conftest.err; then
15880 ac_cpp_err=$ac_c_preproc_warn_flag
15881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15888 if test -z "$ac_cpp_err"; then
15889 ac_header_preproc=yes
15891 echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.$ac_ext >&5
15894 ac_header_preproc=no
15897 rm -f conftest.err conftest.$ac_ext
15898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15899 echo "${ECHO_T}$ac_header_preproc" >&6; }
15901 # So? What about this header?
15902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15908 ac_header_preproc=yes
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15924 ## ----------------------------------- ##
15925 ## Report this to llvmbugs@cs.uiuc.edu ##
15926 ## ----------------------------------- ##
15928 ) | sed "s/^/$as_me: WARNING: /" >&2
15931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15934 echo $ECHO_N "(cached) $ECHO_C" >&6
15936 eval "$as_ac_Header=\$ac_header_preproc"
15938 ac_res=`eval echo '${'$as_ac_Header'}'`
15939 { echo "$as_me:$LINENO: result: $ac_res" >&5
15940 echo "${ECHO_T}$ac_res" >&6; }
15943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15944 cat >>confdefs.h <<_ACEOF
15945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15958 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15967 ac_res=`eval echo '${'$as_ac_Header'}'`
15968 { echo "$as_me:$LINENO: result: $ac_res" >&5
15969 echo "${ECHO_T}$ac_res" >&6; }
15971 # Is the header compilable?
15972 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15974 cat >conftest.$ac_ext <<_ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15980 $ac_includes_default
15981 #include <$ac_header>
15983 rm -f conftest.$ac_objext
15984 if { (ac_try="$ac_compile"
15985 case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990 (eval "$ac_compile") 2>conftest.er1
15992 grep -v '^ *+' conftest.er1 >conftest.err
15994 cat conftest.err >&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); } &&
15997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15998 { (case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_try") 2>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; } &&
16007 { ac_try='test -s conftest.$ac_objext'
16008 { (case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013 (eval "$ac_try") 2>&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; }; then
16017 ac_header_compiler=yes
16019 echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16022 ac_header_compiler=no
16025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16027 echo "${ECHO_T}$ac_header_compiler" >&6; }
16029 # Is the header present?
16030 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16032 cat >conftest.$ac_ext <<_ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h. */
16038 #include <$ac_header>
16040 if { (ac_try="$ac_cpp conftest.$ac_ext"
16041 case "(($ac_try" in
16042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043 *) ac_try_echo=$ac_try;;
16045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16048 grep -v '^ *+' conftest.er1 >conftest.err
16050 cat conftest.err >&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } >/dev/null; then
16053 if test -s conftest.err; then
16054 ac_cpp_err=$ac_c_preproc_warn_flag
16055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16062 if test -z "$ac_cpp_err"; then
16063 ac_header_preproc=yes
16065 echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16068 ac_header_preproc=no
16071 rm -f conftest.err conftest.$ac_ext
16072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16073 echo "${ECHO_T}$ac_header_preproc" >&6; }
16075 # So? What about this header?
16076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16082 ac_header_preproc=yes
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16098 ## ----------------------------------- ##
16099 ## Report this to llvmbugs@cs.uiuc.edu ##
16100 ## ----------------------------------- ##
16102 ) | sed "s/^/$as_me: WARNING: /" >&2
16105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 eval "$as_ac_Header=\$ac_header_preproc"
16112 ac_res=`eval echo '${'$as_ac_Header'}'`
16113 { echo "$as_me:$LINENO: result: $ac_res" >&5
16114 echo "${ECHO_T}$ac_res" >&6; }
16117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16118 cat >>confdefs.h <<_ACEOF
16119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16128 for ac_header in utime.h windows.h
16130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 ac_res=`eval echo '${'$as_ac_Header'}'`
16138 { echo "$as_me:$LINENO: result: $ac_res" >&5
16139 echo "${ECHO_T}$ac_res" >&6; }
16141 # Is the header compilable?
16142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16144 cat >conftest.$ac_ext <<_ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h. */
16150 $ac_includes_default
16151 #include <$ac_header>
16153 rm -f conftest.$ac_objext
16154 if { (ac_try="$ac_compile"
16155 case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160 (eval "$ac_compile") 2>conftest.er1
16162 grep -v '^ *+' conftest.er1 >conftest.err
16164 cat conftest.err >&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } &&
16167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16168 { (case "(($ac_try" in
16169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170 *) ac_try_echo=$ac_try;;
16172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16173 (eval "$ac_try") 2>&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; } &&
16177 { ac_try='test -s conftest.$ac_objext'
16178 { (case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_try") 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16187 ac_header_compiler=yes
16189 echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16192 ac_header_compiler=no
16195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16197 echo "${ECHO_T}$ac_header_compiler" >&6; }
16199 # Is the header present?
16200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16202 cat >conftest.$ac_ext <<_ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h. */
16208 #include <$ac_header>
16210 if { (ac_try="$ac_cpp conftest.$ac_ext"
16211 case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16218 grep -v '^ *+' conftest.er1 >conftest.err
16220 cat conftest.err >&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } >/dev/null; then
16223 if test -s conftest.err; then
16224 ac_cpp_err=$ac_c_preproc_warn_flag
16225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16232 if test -z "$ac_cpp_err"; then
16233 ac_header_preproc=yes
16235 echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16238 ac_header_preproc=no
16241 rm -f conftest.err conftest.$ac_ext
16242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16243 echo "${ECHO_T}$ac_header_preproc" >&6; }
16245 # So? What about this header?
16246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16252 ac_header_preproc=yes
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16268 ## ----------------------------------- ##
16269 ## Report this to llvmbugs@cs.uiuc.edu ##
16270 ## ----------------------------------- ##
16272 ) | sed "s/^/$as_me: WARNING: /" >&2
16275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 eval "$as_ac_Header=\$ac_header_preproc"
16282 ac_res=`eval echo '${'$as_ac_Header'}'`
16283 { echo "$as_me:$LINENO: result: $ac_res" >&5
16284 echo "${ECHO_T}$ac_res" >&6; }
16287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16288 cat >>confdefs.h <<_ACEOF
16289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16301 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
16303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16308 echo $ECHO_N "(cached) $ECHO_C" >&6
16310 ac_res=`eval echo '${'$as_ac_Header'}'`
16311 { echo "$as_me:$LINENO: result: $ac_res" >&5
16312 echo "${ECHO_T}$ac_res" >&6; }
16314 # Is the header compilable?
16315 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16317 cat >conftest.$ac_ext <<_ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16323 $ac_includes_default
16324 #include <$ac_header>
16326 rm -f conftest.$ac_objext
16327 if { (ac_try="$ac_compile"
16328 case "(($ac_try" in
16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333 (eval "$ac_compile") 2>conftest.er1
16335 grep -v '^ *+' conftest.er1 >conftest.err
16337 cat conftest.err >&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } &&
16340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16341 { (case "(($ac_try" in
16342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343 *) ac_try_echo=$ac_try;;
16345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346 (eval "$ac_try") 2>&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; } &&
16350 { ac_try='test -s conftest.$ac_objext'
16351 { (case "(($ac_try" in
16352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16353 *) ac_try_echo=$ac_try;;
16355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16356 (eval "$ac_try") 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16360 ac_header_compiler=yes
16362 echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16365 ac_header_compiler=no
16368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16370 echo "${ECHO_T}$ac_header_compiler" >&6; }
16372 # Is the header present?
16373 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16375 cat >conftest.$ac_ext <<_ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h. */
16381 #include <$ac_header>
16383 if { (ac_try="$ac_cpp conftest.$ac_ext"
16384 case "(($ac_try" in
16385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16391 grep -v '^ *+' conftest.er1 >conftest.err
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } >/dev/null; then
16396 if test -s conftest.err; then
16397 ac_cpp_err=$ac_c_preproc_warn_flag
16398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16405 if test -z "$ac_cpp_err"; then
16406 ac_header_preproc=yes
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16411 ac_header_preproc=no
16414 rm -f conftest.err conftest.$ac_ext
16415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16416 echo "${ECHO_T}$ac_header_preproc" >&6; }
16418 # So? What about this header?
16419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16425 ac_header_preproc=yes
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16441 ## ----------------------------------- ##
16442 ## Report this to llvmbugs@cs.uiuc.edu ##
16443 ## ----------------------------------- ##
16445 ) | sed "s/^/$as_me: WARNING: /" >&2
16448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16451 echo $ECHO_N "(cached) $ECHO_C" >&6
16453 eval "$as_ac_Header=\$ac_header_preproc"
16455 ac_res=`eval echo '${'$as_ac_Header'}'`
16456 { echo "$as_me:$LINENO: result: $ac_res" >&5
16457 echo "${ECHO_T}$ac_res" >&6; }
16460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16461 cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16473 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 ac_res=`eval echo '${'$as_ac_Header'}'`
16483 { echo "$as_me:$LINENO: result: $ac_res" >&5
16484 echo "${ECHO_T}$ac_res" >&6; }
16486 # Is the header compilable?
16487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16489 cat >conftest.$ac_ext <<_ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16495 $ac_includes_default
16496 #include <$ac_header>
16498 rm -f conftest.$ac_objext
16499 if { (ac_try="$ac_compile"
16500 case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_compile") 2>conftest.er1
16507 grep -v '^ *+' conftest.er1 >conftest.err
16509 cat conftest.err >&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } &&
16512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16513 { (case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_try") 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try='test -s conftest.$ac_objext'
16523 { (case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_try") 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 ac_header_compiler=yes
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16537 ac_header_compiler=no
16540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16542 echo "${ECHO_T}$ac_header_compiler" >&6; }
16544 # Is the header present?
16545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16547 cat >conftest.$ac_ext <<_ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16553 #include <$ac_header>
16555 if { (ac_try="$ac_cpp conftest.$ac_ext"
16556 case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16563 grep -v '^ *+' conftest.er1 >conftest.err
16565 cat conftest.err >&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } >/dev/null; then
16568 if test -s conftest.err; then
16569 ac_cpp_err=$ac_c_preproc_warn_flag
16570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16577 if test -z "$ac_cpp_err"; then
16578 ac_header_preproc=yes
16580 echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16583 ac_header_preproc=no
16586 rm -f conftest.err conftest.$ac_ext
16587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16588 echo "${ECHO_T}$ac_header_preproc" >&6; }
16590 # So? What about this header?
16591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16597 ac_header_preproc=yes
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16607 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16613 ## ----------------------------------- ##
16614 ## Report this to llvmbugs@cs.uiuc.edu ##
16615 ## ----------------------------------- ##
16617 ) | sed "s/^/$as_me: WARNING: /" >&2
16620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16625 eval "$as_ac_Header=\$ac_header_preproc"
16627 ac_res=`eval echo '${'$as_ac_Header'}'`
16628 { echo "$as_me:$LINENO: result: $ac_res" >&5
16629 echo "${ECHO_T}$ac_res" >&6; }
16632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16633 cat >>confdefs.h <<_ACEOF
16634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16642 for ac_header in valgrind/valgrind.h
16644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 ac_res=`eval echo '${'$as_ac_Header'}'`
16652 { echo "$as_me:$LINENO: result: $ac_res" >&5
16653 echo "${ECHO_T}$ac_res" >&6; }
16655 # Is the header compilable?
16656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16658 cat >conftest.$ac_ext <<_ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h. */
16664 $ac_includes_default
16665 #include <$ac_header>
16667 rm -f conftest.$ac_objext
16668 if { (ac_try="$ac_compile"
16669 case "(($ac_try" in
16670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671 *) ac_try_echo=$ac_try;;
16673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16674 (eval "$ac_compile") 2>conftest.er1
16676 grep -v '^ *+' conftest.er1 >conftest.err
16678 cat conftest.err >&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } &&
16681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16682 { (case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_try") 2>&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; } &&
16691 { ac_try='test -s conftest.$ac_objext'
16692 { (case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_try") 2>&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16701 ac_header_compiler=yes
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16706 ac_header_compiler=no
16709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16711 echo "${ECHO_T}$ac_header_compiler" >&6; }
16713 # Is the header present?
16714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16716 cat >conftest.$ac_ext <<_ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h. */
16722 #include <$ac_header>
16724 if { (ac_try="$ac_cpp conftest.$ac_ext"
16725 case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16732 grep -v '^ *+' conftest.er1 >conftest.err
16734 cat conftest.err >&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } >/dev/null; then
16737 if test -s conftest.err; then
16738 ac_cpp_err=$ac_c_preproc_warn_flag
16739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16746 if test -z "$ac_cpp_err"; then
16747 ac_header_preproc=yes
16749 echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16752 ac_header_preproc=no
16755 rm -f conftest.err conftest.$ac_ext
16756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16757 echo "${ECHO_T}$ac_header_preproc" >&6; }
16759 # So? What about this header?
16760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16766 ac_header_preproc=yes
16769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16782 ## ----------------------------------- ##
16783 ## Report this to llvmbugs@cs.uiuc.edu ##
16784 ## ----------------------------------- ##
16786 ) | sed "s/^/$as_me: WARNING: /" >&2
16789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16794 eval "$as_ac_Header=\$ac_header_preproc"
16796 ac_res=`eval echo '${'$as_ac_Header'}'`
16797 { echo "$as_me:$LINENO: result: $ac_res" >&5
16798 echo "${ECHO_T}$ac_res" >&6; }
16801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16802 cat >>confdefs.h <<_ACEOF
16803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16811 for ac_header in fenv.h
16813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16820 ac_res=`eval echo '${'$as_ac_Header'}'`
16821 { echo "$as_me:$LINENO: result: $ac_res" >&5
16822 echo "${ECHO_T}$ac_res" >&6; }
16824 # Is the header compilable?
16825 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16827 cat >conftest.$ac_ext <<_ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 $ac_includes_default
16834 #include <$ac_header>
16836 rm -f conftest.$ac_objext
16837 if { (ac_try="$ac_compile"
16838 case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_compile") 2>conftest.er1
16845 grep -v '^ *+' conftest.er1 >conftest.err
16847 cat conftest.err >&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
16850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16851 { (case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856 (eval "$ac_try") 2>&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try='test -s conftest.$ac_objext'
16861 { (case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_try") 2>&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; }; then
16870 ac_header_compiler=yes
16872 echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16875 ac_header_compiler=no
16878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16880 echo "${ECHO_T}$ac_header_compiler" >&6; }
16882 # Is the header present?
16883 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16885 cat >conftest.$ac_ext <<_ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h. */
16891 #include <$ac_header>
16893 if { (ac_try="$ac_cpp conftest.$ac_ext"
16894 case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16901 grep -v '^ *+' conftest.er1 >conftest.err
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } >/dev/null; then
16906 if test -s conftest.err; then
16907 ac_cpp_err=$ac_c_preproc_warn_flag
16908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16915 if test -z "$ac_cpp_err"; then
16916 ac_header_preproc=yes
16918 echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16921 ac_header_preproc=no
16924 rm -f conftest.err conftest.$ac_ext
16925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16926 echo "${ECHO_T}$ac_header_preproc" >&6; }
16928 # So? What about this header?
16929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16935 ac_header_preproc=yes
16938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16951 ## ----------------------------------- ##
16952 ## Report this to llvmbugs@cs.uiuc.edu ##
16953 ## ----------------------------------- ##
16955 ) | sed "s/^/$as_me: WARNING: /" >&2
16958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 eval "$as_ac_Header=\$ac_header_preproc"
16965 ac_res=`eval echo '${'$as_ac_Header'}'`
16966 { echo "$as_me:$LINENO: result: $ac_res" >&5
16967 echo "${ECHO_T}$ac_res" >&6; }
16970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16971 cat >>confdefs.h <<_ACEOF
16972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16979 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16981 for ac_header in pthread.h
16983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16988 echo $ECHO_N "(cached) $ECHO_C" >&6
16990 ac_res=`eval echo '${'$as_ac_Header'}'`
16991 { echo "$as_me:$LINENO: result: $ac_res" >&5
16992 echo "${ECHO_T}$ac_res" >&6; }
16994 # Is the header compilable?
16995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16997 cat >conftest.$ac_ext <<_ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h. */
17003 $ac_includes_default
17004 #include <$ac_header>
17006 rm -f conftest.$ac_objext
17007 if { (ac_try="$ac_compile"
17008 case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_compile") 2>conftest.er1
17015 grep -v '^ *+' conftest.er1 >conftest.err
17017 cat conftest.err >&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17021 { (case "(($ac_try" in
17022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023 *) ac_try_echo=$ac_try;;
17025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026 (eval "$ac_try") 2>&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; } &&
17030 { ac_try='test -s conftest.$ac_objext'
17031 { (case "(($ac_try" in
17032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033 *) ac_try_echo=$ac_try;;
17035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036 (eval "$ac_try") 2>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 ac_header_compiler=yes
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 ac_header_compiler=no
17048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17050 echo "${ECHO_T}$ac_header_compiler" >&6; }
17052 # Is the header present?
17053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17055 cat >conftest.$ac_ext <<_ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17061 #include <$ac_header>
17063 if { (ac_try="$ac_cpp conftest.$ac_ext"
17064 case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17071 grep -v '^ *+' conftest.er1 >conftest.err
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } >/dev/null; then
17076 if test -s conftest.err; then
17077 ac_cpp_err=$ac_c_preproc_warn_flag
17078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17085 if test -z "$ac_cpp_err"; then
17086 ac_header_preproc=yes
17088 echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.$ac_ext >&5
17091 ac_header_preproc=no
17094 rm -f conftest.err conftest.$ac_ext
17095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17096 echo "${ECHO_T}$ac_header_preproc" >&6; }
17098 # So? What about this header?
17099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17105 ac_header_preproc=yes
17108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17115 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17121 ## ----------------------------------- ##
17122 ## Report this to llvmbugs@cs.uiuc.edu ##
17123 ## ----------------------------------- ##
17125 ) | sed "s/^/$as_me: WARNING: /" >&2
17128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 eval "$as_ac_Header=\$ac_header_preproc"
17135 ac_res=`eval echo '${'$as_ac_Header'}'`
17136 { echo "$as_me:$LINENO: result: $ac_res" >&5
17137 echo "${ECHO_T}$ac_res" >&6; }
17140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17141 cat >>confdefs.h <<_ACEOF
17142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17158 if test "$llvm_cv_enable_libffi" = "yes" ; then
17161 for ac_header in ffi.h ffi/ffi.h
17163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 ac_res=`eval echo '${'$as_ac_Header'}'`
17171 { echo "$as_me:$LINENO: result: $ac_res" >&5
17172 echo "${ECHO_T}$ac_res" >&6; }
17174 # Is the header compilable?
17175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17177 cat >conftest.$ac_ext <<_ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h. */
17183 $ac_includes_default
17184 #include <$ac_header>
17186 rm -f conftest.$ac_objext
17187 if { (ac_try="$ac_compile"
17188 case "(($ac_try" in
17189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190 *) ac_try_echo=$ac_try;;
17192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193 (eval "$ac_compile") 2>conftest.er1
17195 grep -v '^ *+' conftest.er1 >conftest.err
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } &&
17200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17201 { (case "(($ac_try" in
17202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203 *) ac_try_echo=$ac_try;;
17205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206 (eval "$ac_try") 2>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; } &&
17210 { ac_try='test -s conftest.$ac_objext'
17211 { (case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_try") 2>&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; }; then
17220 ac_header_compiler=yes
17222 echo "$as_me: failed program was:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17225 ac_header_compiler=no
17228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17230 echo "${ECHO_T}$ac_header_compiler" >&6; }
17232 # Is the header present?
17233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17235 cat >conftest.$ac_ext <<_ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h. */
17241 #include <$ac_header>
17243 if { (ac_try="$ac_cpp conftest.$ac_ext"
17244 case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17251 grep -v '^ *+' conftest.er1 >conftest.err
17253 cat conftest.err >&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } >/dev/null; then
17256 if test -s conftest.err; then
17257 ac_cpp_err=$ac_c_preproc_warn_flag
17258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17265 if test -z "$ac_cpp_err"; then
17266 ac_header_preproc=yes
17268 echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 ac_header_preproc=no
17274 rm -f conftest.err conftest.$ac_ext
17275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17276 echo "${ECHO_T}$ac_header_preproc" >&6; }
17278 # So? What about this header?
17279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17285 ac_header_preproc=yes
17288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17301 ## ----------------------------------- ##
17302 ## Report this to llvmbugs@cs.uiuc.edu ##
17303 ## ----------------------------------- ##
17305 ) | sed "s/^/$as_me: WARNING: /" >&2
17308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17313 eval "$as_ac_Header=\$ac_header_preproc"
17315 ac_res=`eval echo '${'$as_ac_Header'}'`
17316 { echo "$as_me:$LINENO: result: $ac_res" >&5
17317 echo "${ECHO_T}$ac_res" >&6; }
17320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17321 cat >>confdefs.h <<_ACEOF
17322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17332 for ac_header in CrashReporterClient.h
17334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17341 ac_res=`eval echo '${'$as_ac_Header'}'`
17342 { echo "$as_me:$LINENO: result: $ac_res" >&5
17343 echo "${ECHO_T}$ac_res" >&6; }
17345 # Is the header compilable?
17346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17348 cat >conftest.$ac_ext <<_ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17354 $ac_includes_default
17355 #include <$ac_header>
17357 rm -f conftest.$ac_objext
17358 if { (ac_try="$ac_compile"
17359 case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_compile") 2>conftest.er1
17366 grep -v '^ *+' conftest.er1 >conftest.err
17368 cat conftest.err >&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } &&
17371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17372 { (case "(($ac_try" in
17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374 *) ac_try_echo=$ac_try;;
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_try") 2>&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; } &&
17381 { ac_try='test -s conftest.$ac_objext'
17382 { (case "(($ac_try" in
17383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17384 *) ac_try_echo=$ac_try;;
17386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17387 (eval "$ac_try") 2>&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17391 ac_header_compiler=yes
17393 echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17396 ac_header_compiler=no
17399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17401 echo "${ECHO_T}$ac_header_compiler" >&6; }
17403 # Is the header present?
17404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17406 cat >conftest.$ac_ext <<_ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h. */
17412 #include <$ac_header>
17414 if { (ac_try="$ac_cpp conftest.$ac_ext"
17415 case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17422 grep -v '^ *+' conftest.er1 >conftest.err
17424 cat conftest.err >&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } >/dev/null; then
17427 if test -s conftest.err; then
17428 ac_cpp_err=$ac_c_preproc_warn_flag
17429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17436 if test -z "$ac_cpp_err"; then
17437 ac_header_preproc=yes
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17442 ac_header_preproc=no
17445 rm -f conftest.err conftest.$ac_ext
17446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17447 echo "${ECHO_T}$ac_header_preproc" >&6; }
17449 # So? What about this header?
17450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17456 ac_header_preproc=yes
17459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17472 ## ----------------------------------- ##
17473 ## Report this to llvmbugs@cs.uiuc.edu ##
17474 ## ----------------------------------- ##
17476 ) | sed "s/^/$as_me: WARNING: /" >&2
17479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17484 eval "$as_ac_Header=\$ac_header_preproc"
17486 ac_res=`eval echo '${'$as_ac_Header'}'`
17487 { echo "$as_me:$LINENO: result: $ac_res" >&5
17488 echo "${ECHO_T}$ac_res" >&6; }
17491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17492 cat >>confdefs.h <<_ACEOF
17493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17501 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17502 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17503 cat >conftest.$ac_ext <<_ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17509 extern const char *__crashreporter_info__;
17511 __crashreporter_info__ = "test";
17516 rm -f conftest.$ac_objext conftest$ac_exeext
17517 if { (ac_try="$ac_link"
17518 case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_link") 2>conftest.er1
17525 grep -v '^ *+' conftest.er1 >conftest.err
17527 cat conftest.err >&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } &&
17530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17531 { (case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_try") 2>&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; } &&
17540 { ac_try='test -s conftest$ac_exeext'
17541 { (case "(($ac_try" in
17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546 (eval "$ac_try") 2>&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; }; then
17550 { echo "$as_me:$LINENO: result: yes" >&5
17551 echo "${ECHO_T}yes" >&6; }
17553 cat >>confdefs.h <<\_ACEOF
17554 #define HAVE_CRASHREPORTER_INFO 1
17558 echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17561 { echo "$as_me:$LINENO: result: no" >&5
17562 echo "${ECHO_T}no" >&6; }
17564 cat >>confdefs.h <<\_ACEOF
17565 #define HAVE_CRASHREPORTER_INFO 0
17570 rm -f core conftest.err conftest.$ac_objext \
17571 conftest$ac_exeext conftest.$ac_ext
17576 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17577 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17578 if test "${ac_cv_huge_val_sanity+set}" = set; then
17579 echo $ECHO_N "(cached) $ECHO_C" >&6
17583 ac_cpp='$CXXCPP $CPPFLAGS'
17584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17588 ac_save_CXXFLAGS=$CXXFLAGS
17590 if test "$cross_compiling" = yes; then
17591 ac_cv_huge_val_sanity=yes
17593 cat >conftest.$ac_ext <<_ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17603 double x = HUGE_VAL; return x != x;
17608 rm -f conftest$ac_exeext
17609 if { (ac_try="$ac_link"
17610 case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_link") 2>&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17619 { (case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_try") 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
17628 ac_cv_huge_val_sanity=yes
17630 echo "$as_me: program exited with status $ac_status" >&5
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17634 ( exit $ac_status )
17635 ac_cv_huge_val_sanity=no
17637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17641 CXXFLAGS=$ac_save_CXXFLAGS
17643 ac_cpp='$CPP $CPPFLAGS'
17644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17650 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17651 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17652 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17655 { echo "$as_me:$LINENO: checking for pid_t" >&5
17656 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17657 if test "${ac_cv_type_pid_t+set}" = set; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17660 cat >conftest.$ac_ext <<_ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17666 $ac_includes_default
17667 typedef pid_t ac__type_new_;
17671 if ((ac__type_new_ *) 0)
17673 if (sizeof (ac__type_new_))
17679 rm -f conftest.$ac_objext
17680 if { (ac_try="$ac_compile"
17681 case "(($ac_try" in
17682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683 *) ac_try_echo=$ac_try;;
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686 (eval "$ac_compile") 2>conftest.er1
17688 grep -v '^ *+' conftest.er1 >conftest.err
17690 cat conftest.err >&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } &&
17693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17694 { (case "(($ac_try" in
17695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696 *) ac_try_echo=$ac_try;;
17698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699 (eval "$ac_try") 2>&5
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; } &&
17703 { ac_try='test -s conftest.$ac_objext'
17704 { (case "(($ac_try" in
17705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706 *) ac_try_echo=$ac_try;;
17708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709 (eval "$ac_try") 2>&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); }; }; then
17713 ac_cv_type_pid_t=yes
17715 echo "$as_me: failed program was:" >&5
17716 sed 's/^/| /' conftest.$ac_ext >&5
17718 ac_cv_type_pid_t=no
17721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17723 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17724 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17725 if test $ac_cv_type_pid_t = yes; then
17729 cat >>confdefs.h <<_ACEOF
17735 { echo "$as_me:$LINENO: checking for size_t" >&5
17736 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17737 if test "${ac_cv_type_size_t+set}" = set; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17740 cat >conftest.$ac_ext <<_ACEOF
17743 cat confdefs.h >>conftest.$ac_ext
17744 cat >>conftest.$ac_ext <<_ACEOF
17745 /* end confdefs.h. */
17746 $ac_includes_default
17747 typedef size_t ac__type_new_;
17751 if ((ac__type_new_ *) 0)
17753 if (sizeof (ac__type_new_))
17759 rm -f conftest.$ac_objext
17760 if { (ac_try="$ac_compile"
17761 case "(($ac_try" in
17762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763 *) ac_try_echo=$ac_try;;
17765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17766 (eval "$ac_compile") 2>conftest.er1
17768 grep -v '^ *+' conftest.er1 >conftest.err
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } &&
17773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17774 { (case "(($ac_try" in
17775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776 *) ac_try_echo=$ac_try;;
17778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779 (eval "$ac_try") 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; } &&
17783 { ac_try='test -s conftest.$ac_objext'
17784 { (case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_try") 2>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; }; then
17793 ac_cv_type_size_t=yes
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17798 ac_cv_type_size_t=no
17801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17803 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17804 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17805 if test $ac_cv_type_size_t = yes; then
17809 cat >>confdefs.h <<_ACEOF
17810 #define size_t unsigned int
17816 cat >>confdefs.h <<_ACEOF
17817 #define RETSIGTYPE void
17820 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17821 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17822 if test "${ac_cv_struct_tm+set}" = set; then
17823 echo $ECHO_N "(cached) $ECHO_C" >&6
17825 cat >conftest.$ac_ext <<_ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h. */
17831 #include <sys/types.h>
17837 struct tm *tp; tp->tm_sec;
17842 rm -f conftest.$ac_objext
17843 if { (ac_try="$ac_compile"
17844 case "(($ac_try" in
17845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846 *) ac_try_echo=$ac_try;;
17848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849 (eval "$ac_compile") 2>conftest.er1
17851 grep -v '^ *+' conftest.er1 >conftest.err
17853 cat conftest.err >&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } &&
17856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17857 { (case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_try") 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; } &&
17866 { ac_try='test -s conftest.$ac_objext'
17867 { (case "(($ac_try" in
17868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869 *) ac_try_echo=$ac_try;;
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872 (eval "$ac_try") 2>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ac_cv_struct_tm=time.h
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17881 ac_cv_struct_tm=sys/time.h
17884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17886 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17887 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17888 if test $ac_cv_struct_tm = sys/time.h; then
17890 cat >>confdefs.h <<\_ACEOF
17891 #define TM_IN_SYS_TIME 1
17896 { echo "$as_me:$LINENO: checking for int64_t" >&5
17897 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17898 if test "${ac_cv_type_int64_t+set}" = set; then
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
17901 cat >conftest.$ac_ext <<_ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17907 $ac_includes_default
17908 typedef int64_t ac__type_new_;
17912 if ((ac__type_new_ *) 0)
17914 if (sizeof (ac__type_new_))
17920 rm -f conftest.$ac_objext
17921 if { (ac_try="$ac_compile"
17922 case "(($ac_try" in
17923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924 *) ac_try_echo=$ac_try;;
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927 (eval "$ac_compile") 2>conftest.er1
17929 grep -v '^ *+' conftest.er1 >conftest.err
17931 cat conftest.err >&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); } &&
17934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17935 { (case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_try") 2>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest.$ac_objext'
17945 { (case "(($ac_try" in
17946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947 *) ac_try_echo=$ac_try;;
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950 (eval "$ac_try") 2>&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954 ac_cv_type_int64_t=yes
17956 echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17959 ac_cv_type_int64_t=no
17962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17964 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17965 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17966 if test $ac_cv_type_int64_t = yes; then
17968 cat >>confdefs.h <<_ACEOF
17969 #define HAVE_INT64_T 1
17974 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17975 echo "$as_me: error: Type int64_t required but not found" >&2;}
17976 { (exit 1); exit 1; }; }
17979 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17980 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17981 if test "${ac_cv_type_uint64_t+set}" = set; then
17982 echo $ECHO_N "(cached) $ECHO_C" >&6
17984 cat >conftest.$ac_ext <<_ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17990 $ac_includes_default
17991 typedef uint64_t ac__type_new_;
17995 if ((ac__type_new_ *) 0)
17997 if (sizeof (ac__type_new_))
18003 rm -f conftest.$ac_objext
18004 if { (ac_try="$ac_compile"
18005 case "(($ac_try" in
18006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007 *) ac_try_echo=$ac_try;;
18009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18010 (eval "$ac_compile") 2>conftest.er1
18012 grep -v '^ *+' conftest.er1 >conftest.err
18014 cat conftest.err >&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } &&
18017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18018 { (case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_try") 2>&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; } &&
18027 { ac_try='test -s conftest.$ac_objext'
18028 { (case "(($ac_try" in
18029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030 *) ac_try_echo=$ac_try;;
18032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033 (eval "$ac_try") 2>&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; }; then
18037 ac_cv_type_uint64_t=yes
18039 echo "$as_me: failed program was:" >&5
18040 sed 's/^/| /' conftest.$ac_ext >&5
18042 ac_cv_type_uint64_t=no
18045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18047 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18048 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18049 if test $ac_cv_type_uint64_t = yes; then
18051 cat >>confdefs.h <<_ACEOF
18052 #define HAVE_UINT64_T 1
18057 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18058 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18059 if test "${ac_cv_type_u_int64_t+set}" = set; then
18060 echo $ECHO_N "(cached) $ECHO_C" >&6
18062 cat >conftest.$ac_ext <<_ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h. */
18068 $ac_includes_default
18069 typedef u_int64_t ac__type_new_;
18073 if ((ac__type_new_ *) 0)
18075 if (sizeof (ac__type_new_))
18081 rm -f conftest.$ac_objext
18082 if { (ac_try="$ac_compile"
18083 case "(($ac_try" in
18084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085 *) ac_try_echo=$ac_try;;
18087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18088 (eval "$ac_compile") 2>conftest.er1
18090 grep -v '^ *+' conftest.er1 >conftest.err
18092 cat conftest.err >&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); } &&
18095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18096 { (case "(($ac_try" in
18097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098 *) ac_try_echo=$ac_try;;
18100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101 (eval "$ac_try") 2>&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); }; } &&
18105 { ac_try='test -s conftest.$ac_objext'
18106 { (case "(($ac_try" in
18107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108 *) ac_try_echo=$ac_try;;
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_try") 2>&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; }; then
18115 ac_cv_type_u_int64_t=yes
18117 echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18120 ac_cv_type_u_int64_t=no
18123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18125 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18126 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18127 if test $ac_cv_type_u_int64_t = yes; then
18129 cat >>confdefs.h <<_ACEOF
18130 #define HAVE_U_INT64_T 1
18135 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18136 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18137 { (exit 1); exit 1; }; }
18151 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18157 echo $ECHO_N "(cached) $ECHO_C" >&6
18159 cat >conftest.$ac_ext <<_ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18167 #define $ac_func innocuous_$ac_func
18169 /* System header to define __stub macros and hopefully few prototypes,
18170 which can conflict with char $ac_func (); below.
18171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18172 <limits.h> exists even on freestanding compilers. */
18175 # include <limits.h>
18177 # include <assert.h>
18182 /* Override any GCC internal prototype to avoid an error.
18183 Use char because int might match the return type of a GCC
18184 builtin and then its argument prototype would still apply. */
18189 /* The GNU C library defines this for functions which it implements
18190 to always fail with ENOSYS. Some functions are actually named
18191 something starting with __ and the normal name is an alias. */
18192 #if defined __stub_$ac_func || defined __stub___$ac_func
18199 return $ac_func ();
18204 rm -f conftest.$ac_objext conftest$ac_exeext
18205 if { (ac_try="$ac_link"
18206 case "(($ac_try" in
18207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18208 *) ac_try_echo=$ac_try;;
18210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211 (eval "$ac_link") 2>conftest.er1
18213 grep -v '^ *+' conftest.er1 >conftest.err
18215 cat conftest.err >&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
18218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18219 { (case "(($ac_try" in
18220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221 *) ac_try_echo=$ac_try;;
18223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224 (eval "$ac_try") 2>&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; } &&
18228 { ac_try='test -s conftest$ac_exeext'
18229 { (case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_try") 2>&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; }; then
18238 eval "$as_ac_var=yes"
18240 echo "$as_me: failed program was:" >&5
18241 sed 's/^/| /' conftest.$ac_ext >&5
18243 eval "$as_ac_var=no"
18246 rm -f core conftest.err conftest.$ac_objext \
18247 conftest$ac_exeext conftest.$ac_ext
18249 ac_res=`eval echo '${'$as_ac_var'}'`
18250 { echo "$as_me:$LINENO: result: $ac_res" >&5
18251 echo "${ECHO_T}$ac_res" >&6; }
18252 if test `eval echo '${'$as_ac_var'}'` = yes; then
18253 cat >>confdefs.h <<_ACEOF
18254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18264 for ac_func in powf fmodf strtof round
18266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18272 cat >conftest.$ac_ext <<_ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h. */
18278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18280 #define $ac_func innocuous_$ac_func
18282 /* System header to define __stub macros and hopefully few prototypes,
18283 which can conflict with char $ac_func (); below.
18284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18285 <limits.h> exists even on freestanding compilers. */
18288 # include <limits.h>
18290 # include <assert.h>
18295 /* Override any GCC internal prototype to avoid an error.
18296 Use char because int might match the return type of a GCC
18297 builtin and then its argument prototype would still apply. */
18302 /* The GNU C library defines this for functions which it implements
18303 to always fail with ENOSYS. Some functions are actually named
18304 something starting with __ and the normal name is an alias. */
18305 #if defined __stub_$ac_func || defined __stub___$ac_func
18312 return $ac_func ();
18317 rm -f conftest.$ac_objext conftest$ac_exeext
18318 if { (ac_try="$ac_link"
18319 case "(($ac_try" in
18320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18321 *) ac_try_echo=$ac_try;;
18323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18324 (eval "$ac_link") 2>conftest.er1
18326 grep -v '^ *+' conftest.er1 >conftest.err
18328 cat conftest.err >&5
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); } &&
18331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18332 { (case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337 (eval "$ac_try") 2>&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; } &&
18341 { ac_try='test -s conftest$ac_exeext'
18342 { (case "(($ac_try" in
18343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_try") 2>&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; }; then
18351 eval "$as_ac_var=yes"
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18356 eval "$as_ac_var=no"
18359 rm -f core conftest.err conftest.$ac_objext \
18360 conftest$ac_exeext conftest.$ac_ext
18362 ac_res=`eval echo '${'$as_ac_var'}'`
18363 { echo "$as_me:$LINENO: result: $ac_res" >&5
18364 echo "${ECHO_T}$ac_res" >&6; }
18365 if test `eval echo '${'$as_ac_var'}'` = yes; then
18366 cat >>confdefs.h <<_ACEOF
18367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18378 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18384 echo $ECHO_N "(cached) $ECHO_C" >&6
18386 cat >conftest.$ac_ext <<_ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h. */
18392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18394 #define $ac_func innocuous_$ac_func
18396 /* System header to define __stub macros and hopefully few prototypes,
18397 which can conflict with char $ac_func (); below.
18398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18399 <limits.h> exists even on freestanding compilers. */
18402 # include <limits.h>
18404 # include <assert.h>
18409 /* Override any GCC internal prototype to avoid an error.
18410 Use char because int might match the return type of a GCC
18411 builtin and then its argument prototype would still apply. */
18416 /* The GNU C library defines this for functions which it implements
18417 to always fail with ENOSYS. Some functions are actually named
18418 something starting with __ and the normal name is an alias. */
18419 #if defined __stub_$ac_func || defined __stub___$ac_func
18426 return $ac_func ();
18431 rm -f conftest.$ac_objext conftest$ac_exeext
18432 if { (ac_try="$ac_link"
18433 case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_link") 2>conftest.er1
18440 grep -v '^ *+' conftest.er1 >conftest.err
18442 cat conftest.err >&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); } &&
18445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18446 { (case "(($ac_try" in
18447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18448 *) ac_try_echo=$ac_try;;
18450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18451 (eval "$ac_try") 2>&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; } &&
18455 { ac_try='test -s conftest$ac_exeext'
18456 { (case "(($ac_try" in
18457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458 *) ac_try_echo=$ac_try;;
18460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461 (eval "$ac_try") 2>&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; }; then
18465 eval "$as_ac_var=yes"
18467 echo "$as_me: failed program was:" >&5
18468 sed 's/^/| /' conftest.$ac_ext >&5
18470 eval "$as_ac_var=no"
18473 rm -f core conftest.err conftest.$ac_objext \
18474 conftest$ac_exeext conftest.$ac_ext
18476 ac_res=`eval echo '${'$as_ac_var'}'`
18477 { echo "$as_me:$LINENO: result: $ac_res" >&5
18478 echo "${ECHO_T}$ac_res" >&6; }
18479 if test `eval echo '${'$as_ac_var'}'` = yes; then
18480 cat >>confdefs.h <<_ACEOF
18481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18490 for ac_func in isatty mkdtemp mkstemp
18492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18498 cat >conftest.$ac_ext <<_ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18506 #define $ac_func innocuous_$ac_func
18508 /* System header to define __stub macros and hopefully few prototypes,
18509 which can conflict with char $ac_func (); below.
18510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18511 <limits.h> exists even on freestanding compilers. */
18514 # include <limits.h>
18516 # include <assert.h>
18521 /* Override any GCC internal prototype to avoid an error.
18522 Use char because int might match the return type of a GCC
18523 builtin and then its argument prototype would still apply. */
18528 /* The GNU C library defines this for functions which it implements
18529 to always fail with ENOSYS. Some functions are actually named
18530 something starting with __ and the normal name is an alias. */
18531 #if defined __stub_$ac_func || defined __stub___$ac_func
18538 return $ac_func ();
18543 rm -f conftest.$ac_objext conftest$ac_exeext
18544 if { (ac_try="$ac_link"
18545 case "(($ac_try" in
18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_link") 2>conftest.er1
18552 grep -v '^ *+' conftest.er1 >conftest.err
18554 cat conftest.err >&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
18557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18558 { (case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_try") 2>&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; } &&
18567 { ac_try='test -s conftest$ac_exeext'
18568 { (case "(($ac_try" in
18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570 *) ac_try_echo=$ac_try;;
18572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_try") 2>&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; }; then
18577 eval "$as_ac_var=yes"
18579 echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18582 eval "$as_ac_var=no"
18585 rm -f core conftest.err conftest.$ac_objext \
18586 conftest$ac_exeext conftest.$ac_ext
18588 ac_res=`eval echo '${'$as_ac_var'}'`
18589 { echo "$as_me:$LINENO: result: $ac_res" >&5
18590 echo "${ECHO_T}$ac_res" >&6; }
18591 if test `eval echo '${'$as_ac_var'}'` = yes; then
18592 cat >>confdefs.h <<_ACEOF
18593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18605 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18611 echo $ECHO_N "(cached) $ECHO_C" >&6
18613 cat >conftest.$ac_ext <<_ACEOF
18616 cat confdefs.h >>conftest.$ac_ext
18617 cat >>conftest.$ac_ext <<_ACEOF
18618 /* end confdefs.h. */
18619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18621 #define $ac_func innocuous_$ac_func
18623 /* System header to define __stub macros and hopefully few prototypes,
18624 which can conflict with char $ac_func (); below.
18625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18626 <limits.h> exists even on freestanding compilers. */
18629 # include <limits.h>
18631 # include <assert.h>
18636 /* Override any GCC internal prototype to avoid an error.
18637 Use char because int might match the return type of a GCC
18638 builtin and then its argument prototype would still apply. */
18643 /* The GNU C library defines this for functions which it implements
18644 to always fail with ENOSYS. Some functions are actually named
18645 something starting with __ and the normal name is an alias. */
18646 #if defined __stub_$ac_func || defined __stub___$ac_func
18653 return $ac_func ();
18658 rm -f conftest.$ac_objext conftest$ac_exeext
18659 if { (ac_try="$ac_link"
18660 case "(($ac_try" in
18661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662 *) ac_try_echo=$ac_try;;
18664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665 (eval "$ac_link") 2>conftest.er1
18667 grep -v '^ *+' conftest.er1 >conftest.err
18669 cat conftest.err >&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } &&
18672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18673 { (case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_try") 2>&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; } &&
18682 { ac_try='test -s conftest$ac_exeext'
18683 { (case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_try") 2>&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; }; then
18692 eval "$as_ac_var=yes"
18694 echo "$as_me: failed program was:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18697 eval "$as_ac_var=no"
18700 rm -f core conftest.err conftest.$ac_objext \
18701 conftest$ac_exeext conftest.$ac_ext
18703 ac_res=`eval echo '${'$as_ac_var'}'`
18704 { echo "$as_me:$LINENO: result: $ac_res" >&5
18705 echo "${ECHO_T}$ac_res" >&6; }
18706 if test `eval echo '${'$as_ac_var'}'` = yes; then
18707 cat >>confdefs.h <<_ACEOF
18708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18717 for ac_func in strerror strerror_r setenv
18719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18723 echo $ECHO_N "(cached) $ECHO_C" >&6
18725 cat >conftest.$ac_ext <<_ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h. */
18731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18733 #define $ac_func innocuous_$ac_func
18735 /* System header to define __stub macros and hopefully few prototypes,
18736 which can conflict with char $ac_func (); below.
18737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18738 <limits.h> exists even on freestanding compilers. */
18741 # include <limits.h>
18743 # include <assert.h>
18748 /* Override any GCC internal prototype to avoid an error.
18749 Use char because int might match the return type of a GCC
18750 builtin and then its argument prototype would still apply. */
18755 /* The GNU C library defines this for functions which it implements
18756 to always fail with ENOSYS. Some functions are actually named
18757 something starting with __ and the normal name is an alias. */
18758 #if defined __stub_$ac_func || defined __stub___$ac_func
18765 return $ac_func ();
18770 rm -f conftest.$ac_objext conftest$ac_exeext
18771 if { (ac_try="$ac_link"
18772 case "(($ac_try" in
18773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774 *) ac_try_echo=$ac_try;;
18776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18777 (eval "$ac_link") 2>conftest.er1
18779 grep -v '^ *+' conftest.er1 >conftest.err
18781 cat conftest.err >&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); } &&
18784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18785 { (case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_try") 2>&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; } &&
18794 { ac_try='test -s conftest$ac_exeext'
18795 { (case "(($ac_try" in
18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797 *) ac_try_echo=$ac_try;;
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_try") 2>&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; }; then
18804 eval "$as_ac_var=yes"
18806 echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18809 eval "$as_ac_var=no"
18812 rm -f core conftest.err conftest.$ac_objext \
18813 conftest$ac_exeext conftest.$ac_ext
18815 ac_res=`eval echo '${'$as_ac_var'}'`
18816 { echo "$as_me:$LINENO: result: $ac_res" >&5
18817 echo "${ECHO_T}$ac_res" >&6; }
18818 if test `eval echo '${'$as_ac_var'}'` = yes; then
18819 cat >>confdefs.h <<_ACEOF
18820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18830 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18836 echo $ECHO_N "(cached) $ECHO_C" >&6
18838 cat >conftest.$ac_ext <<_ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h. */
18844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18846 #define $ac_func innocuous_$ac_func
18848 /* System header to define __stub macros and hopefully few prototypes,
18849 which can conflict with char $ac_func (); below.
18850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18851 <limits.h> exists even on freestanding compilers. */
18854 # include <limits.h>
18856 # include <assert.h>
18861 /* Override any GCC internal prototype to avoid an error.
18862 Use char because int might match the return type of a GCC
18863 builtin and then its argument prototype would still apply. */
18868 /* The GNU C library defines this for functions which it implements
18869 to always fail with ENOSYS. Some functions are actually named
18870 something starting with __ and the normal name is an alias. */
18871 #if defined __stub_$ac_func || defined __stub___$ac_func
18878 return $ac_func ();
18883 rm -f conftest.$ac_objext conftest$ac_exeext
18884 if { (ac_try="$ac_link"
18885 case "(($ac_try" in
18886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887 *) ac_try_echo=$ac_try;;
18889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890 (eval "$ac_link") 2>conftest.er1
18892 grep -v '^ *+' conftest.er1 >conftest.err
18894 cat conftest.err >&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } &&
18897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18898 { (case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903 (eval "$ac_try") 2>&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); }; } &&
18907 { ac_try='test -s conftest$ac_exeext'
18908 { (case "(($ac_try" in
18909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18910 *) ac_try_echo=$ac_try;;
18912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18913 (eval "$ac_try") 2>&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; }; then
18917 eval "$as_ac_var=yes"
18919 echo "$as_me: failed program was:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18922 eval "$as_ac_var=no"
18925 rm -f core conftest.err conftest.$ac_objext \
18926 conftest$ac_exeext conftest.$ac_ext
18928 ac_res=`eval echo '${'$as_ac_var'}'`
18929 { echo "$as_me:$LINENO: result: $ac_res" >&5
18930 echo "${ECHO_T}$ac_res" >&6; }
18931 if test `eval echo '${'$as_ac_var'}'` = yes; then
18932 cat >>confdefs.h <<_ACEOF
18933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18944 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18952 cat >conftest.$ac_ext <<_ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h. */
18958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18960 #define $ac_func innocuous_$ac_func
18962 /* System header to define __stub macros and hopefully few prototypes,
18963 which can conflict with char $ac_func (); below.
18964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18965 <limits.h> exists even on freestanding compilers. */
18968 # include <limits.h>
18970 # include <assert.h>
18975 /* Override any GCC internal prototype to avoid an error.
18976 Use char because int might match the return type of a GCC
18977 builtin and then its argument prototype would still apply. */
18982 /* The GNU C library defines this for functions which it implements
18983 to always fail with ENOSYS. Some functions are actually named
18984 something starting with __ and the normal name is an alias. */
18985 #if defined __stub_$ac_func || defined __stub___$ac_func
18992 return $ac_func ();
18997 rm -f conftest.$ac_objext conftest$ac_exeext
18998 if { (ac_try="$ac_link"
18999 case "(($ac_try" in
19000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19001 *) ac_try_echo=$ac_try;;
19003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19004 (eval "$ac_link") 2>conftest.er1
19006 grep -v '^ *+' conftest.er1 >conftest.err
19008 cat conftest.err >&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } &&
19011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19012 { (case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_try") 2>&5
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; } &&
19021 { ac_try='test -s conftest$ac_exeext'
19022 { (case "(($ac_try" in
19023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19024 *) ac_try_echo=$ac_try;;
19026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19027 (eval "$ac_try") 2>&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); }; }; then
19031 eval "$as_ac_var=yes"
19033 echo "$as_me: failed program was:" >&5
19034 sed 's/^/| /' conftest.$ac_ext >&5
19036 eval "$as_ac_var=no"
19039 rm -f core conftest.err conftest.$ac_objext \
19040 conftest$ac_exeext conftest.$ac_ext
19042 ac_res=`eval echo '${'$as_ac_var'}'`
19043 { echo "$as_me:$LINENO: result: $ac_res" >&5
19044 echo "${ECHO_T}$ac_res" >&6; }
19045 if test `eval echo '${'$as_ac_var'}'` = yes; then
19046 cat >>confdefs.h <<_ACEOF
19047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19053 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19054 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19055 if test "${llvm_cv_c_printf_a+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19059 ac_cpp='$CPP $CPPFLAGS'
19060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19064 if test "$cross_compiling" = yes; then
19065 llvmac_cv_c_printf_a=no
19067 cat >conftest.$ac_ext <<_ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h. */
19076 #include <stdlib.h>
19082 volatile double A, B;
19086 sprintf(Buffer, "%a", A);
19090 if (A != 0x1.999999999999ap-4)
19097 rm -f conftest$ac_exeext
19098 if { (ac_try="$ac_link"
19099 case "(($ac_try" in
19100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19101 *) ac_try_echo=$ac_try;;
19103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104 (eval "$ac_link") 2>&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19108 { (case "(($ac_try" in
19109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 *) ac_try_echo=$ac_try;;
19112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113 (eval "$ac_try") 2>&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); }; }; then
19117 llvm_cv_c_printf_a=yes
19119 echo "$as_me: program exited with status $ac_status" >&5
19120 echo "$as_me: failed program was:" >&5
19121 sed 's/^/| /' conftest.$ac_ext >&5
19123 ( exit $ac_status )
19124 llvmac_cv_c_printf_a=no
19126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19131 ac_cpp='$CPP $CPPFLAGS'
19132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19137 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19138 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19139 if test "$llvm_cv_c_printf_a" = "yes"; then
19141 cat >>confdefs.h <<\_ACEOF
19142 #define HAVE_PRINTF_A 1
19148 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19149 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19150 if test "${ac_cv_func_rand48+set}" = set; then
19151 echo $ECHO_N "(cached) $ECHO_C" >&6
19154 ac_cpp='$CXXCPP $CPPFLAGS'
19155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19159 cat >conftest.$ac_ext <<_ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h. */
19165 #include <stdlib.h>
19169 srand48(0);lrand48();drand48();
19174 rm -f conftest.$ac_objext
19175 if { (ac_try="$ac_compile"
19176 case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_compile") 2>conftest.er1
19183 grep -v '^ *+' conftest.er1 >conftest.err
19185 cat conftest.err >&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } &&
19188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19189 { (case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_try") 2>&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; } &&
19198 { ac_try='test -s conftest.$ac_objext'
19199 { (case "(($ac_try" in
19200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201 *) ac_try_echo=$ac_try;;
19203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204 (eval "$ac_try") 2>&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
19208 ac_cv_func_rand48=yes
19210 echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19213 ac_cv_func_rand48=no
19216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19218 ac_cpp='$CPP $CPPFLAGS'
19219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19224 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19225 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19227 if test "$ac_cv_func_rand48" = "yes" ; then
19229 cat >>confdefs.h <<\_ACEOF
19230 #define HAVE_RAND48 1
19236 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19237 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19238 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19239 echo $ECHO_N "(cached) $ECHO_C" >&6
19241 cat >conftest.$ac_ext <<_ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19247 $ac_includes_default
19252 char *p = (char *) strerror_s;
19260 rm -f conftest.$ac_objext
19261 if { (ac_try="$ac_compile"
19262 case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267 (eval "$ac_compile") 2>conftest.er1
19269 grep -v '^ *+' conftest.er1 >conftest.err
19271 cat conftest.err >&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } &&
19274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19275 { (case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_try") 2>&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest.$ac_objext'
19285 { (case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_try") 2>&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; }; then
19294 ac_cv_have_decl_strerror_s=yes
19296 echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19299 ac_cv_have_decl_strerror_s=no
19302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19304 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19305 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19306 if test $ac_cv_have_decl_strerror_s = yes; then
19308 cat >>confdefs.h <<_ACEOF
19309 #define HAVE_DECL_STRERROR_S 1
19314 cat >>confdefs.h <<_ACEOF
19315 #define HAVE_DECL_STRERROR_S 0
19323 if test "$llvm_cv_os_type" = "MingW" ; then
19324 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19325 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19326 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19327 echo $ECHO_N "(cached) $ECHO_C" >&6
19329 ac_check_lib_save_LIBS=$LIBS
19331 cat >conftest.$ac_ext <<_ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h. */
19338 /* Override any GCC internal prototype to avoid an error.
19339 Use char because int might match the return type of a GCC
19340 builtin and then its argument prototype would still apply. */
19353 rm -f conftest.$ac_objext conftest$ac_exeext
19354 if { (ac_try="$ac_link"
19355 case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360 (eval "$ac_link") 2>conftest.er1
19362 grep -v '^ *+' conftest.er1 >conftest.err
19364 cat conftest.err >&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } &&
19367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19368 { (case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373 (eval "$ac_try") 2>&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; } &&
19377 { ac_try='test -s conftest$ac_exeext'
19378 { (case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_try") 2>&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; }; then
19387 ac_cv_lib_gcc__alloca=yes
19389 echo "$as_me: failed program was:" >&5
19390 sed 's/^/| /' conftest.$ac_ext >&5
19392 ac_cv_lib_gcc__alloca=no
19395 rm -f core conftest.err conftest.$ac_objext \
19396 conftest$ac_exeext conftest.$ac_ext
19397 LIBS=$ac_check_lib_save_LIBS
19399 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19400 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19401 if test $ac_cv_lib_gcc__alloca = yes; then
19403 cat >>confdefs.h <<\_ACEOF
19404 #define HAVE__ALLOCA 1
19409 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19410 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19411 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19412 echo $ECHO_N "(cached) $ECHO_C" >&6
19414 ac_check_lib_save_LIBS=$LIBS
19416 cat >conftest.$ac_ext <<_ACEOF
19419 cat confdefs.h >>conftest.$ac_ext
19420 cat >>conftest.$ac_ext <<_ACEOF
19421 /* end confdefs.h. */
19423 /* Override any GCC internal prototype to avoid an error.
19424 Use char because int might match the return type of a GCC
19425 builtin and then its argument prototype would still apply. */
19433 return __alloca ();
19438 rm -f conftest.$ac_objext conftest$ac_exeext
19439 if { (ac_try="$ac_link"
19440 case "(($ac_try" in
19441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442 *) ac_try_echo=$ac_try;;
19444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19445 (eval "$ac_link") 2>conftest.er1
19447 grep -v '^ *+' conftest.er1 >conftest.err
19449 cat conftest.err >&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); } &&
19452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19453 { (case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458 (eval "$ac_try") 2>&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; } &&
19462 { ac_try='test -s conftest$ac_exeext'
19463 { (case "(($ac_try" in
19464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465 *) ac_try_echo=$ac_try;;
19467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19468 (eval "$ac_try") 2>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; }; then
19472 ac_cv_lib_gcc___alloca=yes
19474 echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19477 ac_cv_lib_gcc___alloca=no
19480 rm -f core conftest.err conftest.$ac_objext \
19481 conftest$ac_exeext conftest.$ac_ext
19482 LIBS=$ac_check_lib_save_LIBS
19484 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19485 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19486 if test $ac_cv_lib_gcc___alloca = yes; then
19488 cat >>confdefs.h <<\_ACEOF
19489 #define HAVE___ALLOCA 1
19494 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19495 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19496 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19499 ac_check_lib_save_LIBS=$LIBS
19501 cat >conftest.$ac_ext <<_ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19508 /* Override any GCC internal prototype to avoid an error.
19509 Use char because int might match the return type of a GCC
19510 builtin and then its argument prototype would still apply. */
19518 return __chkstk ();
19523 rm -f conftest.$ac_objext conftest$ac_exeext
19524 if { (ac_try="$ac_link"
19525 case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_link") 2>conftest.er1
19532 grep -v '^ *+' conftest.er1 >conftest.err
19534 cat conftest.err >&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } &&
19537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19538 { (case "(($ac_try" in
19539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540 *) ac_try_echo=$ac_try;;
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543 (eval "$ac_try") 2>&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; } &&
19547 { ac_try='test -s conftest$ac_exeext'
19548 { (case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_try") 2>&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; }; then
19557 ac_cv_lib_gcc___chkstk=yes
19559 echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19562 ac_cv_lib_gcc___chkstk=no
19565 rm -f core conftest.err conftest.$ac_objext \
19566 conftest$ac_exeext conftest.$ac_ext
19567 LIBS=$ac_check_lib_save_LIBS
19569 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19570 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19571 if test $ac_cv_lib_gcc___chkstk = yes; then
19573 cat >>confdefs.h <<\_ACEOF
19574 #define HAVE___CHKSTK 1
19579 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19580 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19581 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19582 echo $ECHO_N "(cached) $ECHO_C" >&6
19584 ac_check_lib_save_LIBS=$LIBS
19586 cat >conftest.$ac_ext <<_ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19593 /* Override any GCC internal prototype to avoid an error.
19594 Use char because int might match the return type of a GCC
19595 builtin and then its argument prototype would still apply. */
19603 return ___chkstk ();
19608 rm -f conftest.$ac_objext conftest$ac_exeext
19609 if { (ac_try="$ac_link"
19610 case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_link") 2>conftest.er1
19617 grep -v '^ *+' conftest.er1 >conftest.err
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
19622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19623 { (case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_try") 2>&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; } &&
19632 { ac_try='test -s conftest$ac_exeext'
19633 { (case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_try") 2>&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
19642 ac_cv_lib_gcc____chkstk=yes
19644 echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19647 ac_cv_lib_gcc____chkstk=no
19650 rm -f core conftest.err conftest.$ac_objext \
19651 conftest$ac_exeext conftest.$ac_ext
19652 LIBS=$ac_check_lib_save_LIBS
19654 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19655 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19656 if test $ac_cv_lib_gcc____chkstk = yes; then
19658 cat >>confdefs.h <<\_ACEOF
19659 #define HAVE____CHKSTK 1
19665 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19666 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19667 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19670 ac_check_lib_save_LIBS=$LIBS
19672 cat >conftest.$ac_ext <<_ACEOF
19675 cat confdefs.h >>conftest.$ac_ext
19676 cat >>conftest.$ac_ext <<_ACEOF
19677 /* end confdefs.h. */
19679 /* Override any GCC internal prototype to avoid an error.
19680 Use char because int might match the return type of a GCC
19681 builtin and then its argument prototype would still apply. */
19689 return __ashldi3 ();
19694 rm -f conftest.$ac_objext conftest$ac_exeext
19695 if { (ac_try="$ac_link"
19696 case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_link") 2>conftest.er1
19703 grep -v '^ *+' conftest.er1 >conftest.err
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } &&
19708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19709 { (case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_try") 2>&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; } &&
19718 { ac_try='test -s conftest$ac_exeext'
19719 { (case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_try") 2>&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; }; then
19728 ac_cv_lib_gcc___ashldi3=yes
19730 echo "$as_me: failed program was:" >&5
19731 sed 's/^/| /' conftest.$ac_ext >&5
19733 ac_cv_lib_gcc___ashldi3=no
19736 rm -f core conftest.err conftest.$ac_objext \
19737 conftest$ac_exeext conftest.$ac_ext
19738 LIBS=$ac_check_lib_save_LIBS
19740 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19741 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19742 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19744 cat >>confdefs.h <<\_ACEOF
19745 #define HAVE___ASHLDI3 1
19750 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19751 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19752 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19753 echo $ECHO_N "(cached) $ECHO_C" >&6
19755 ac_check_lib_save_LIBS=$LIBS
19757 cat >conftest.$ac_ext <<_ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19764 /* Override any GCC internal prototype to avoid an error.
19765 Use char because int might match the return type of a GCC
19766 builtin and then its argument prototype would still apply. */
19774 return __ashrdi3 ();
19779 rm -f conftest.$ac_objext conftest$ac_exeext
19780 if { (ac_try="$ac_link"
19781 case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_link") 2>conftest.er1
19788 grep -v '^ *+' conftest.er1 >conftest.err
19790 cat conftest.err >&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } &&
19793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19794 { (case "(($ac_try" in
19795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796 *) ac_try_echo=$ac_try;;
19798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799 (eval "$ac_try") 2>&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; } &&
19803 { ac_try='test -s conftest$ac_exeext'
19804 { (case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_try") 2>&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; }; then
19813 ac_cv_lib_gcc___ashrdi3=yes
19815 echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19818 ac_cv_lib_gcc___ashrdi3=no
19821 rm -f core conftest.err conftest.$ac_objext \
19822 conftest$ac_exeext conftest.$ac_ext
19823 LIBS=$ac_check_lib_save_LIBS
19825 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19826 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19827 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19829 cat >>confdefs.h <<\_ACEOF
19830 #define HAVE___ASHRDI3 1
19835 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19836 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19837 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19838 echo $ECHO_N "(cached) $ECHO_C" >&6
19840 ac_check_lib_save_LIBS=$LIBS
19842 cat >conftest.$ac_ext <<_ACEOF
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h. */
19849 /* Override any GCC internal prototype to avoid an error.
19850 Use char because int might match the return type of a GCC
19851 builtin and then its argument prototype would still apply. */
19859 return __divdi3 ();
19864 rm -f conftest.$ac_objext conftest$ac_exeext
19865 if { (ac_try="$ac_link"
19866 case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_link") 2>conftest.er1
19873 grep -v '^ *+' conftest.er1 >conftest.err
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } &&
19878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19879 { (case "(($ac_try" in
19880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881 *) ac_try_echo=$ac_try;;
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884 (eval "$ac_try") 2>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; } &&
19888 { ac_try='test -s conftest$ac_exeext'
19889 { (case "(($ac_try" in
19890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891 *) ac_try_echo=$ac_try;;
19893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894 (eval "$ac_try") 2>&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; }; then
19898 ac_cv_lib_gcc___divdi3=yes
19900 echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19903 ac_cv_lib_gcc___divdi3=no
19906 rm -f core conftest.err conftest.$ac_objext \
19907 conftest$ac_exeext conftest.$ac_ext
19908 LIBS=$ac_check_lib_save_LIBS
19910 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19911 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19912 if test $ac_cv_lib_gcc___divdi3 = yes; then
19914 cat >>confdefs.h <<\_ACEOF
19915 #define HAVE___DIVDI3 1
19920 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19921 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19922 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19925 ac_check_lib_save_LIBS=$LIBS
19927 cat >conftest.$ac_ext <<_ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19934 /* Override any GCC internal prototype to avoid an error.
19935 Use char because int might match the return type of a GCC
19936 builtin and then its argument prototype would still apply. */
19944 return __fixdfdi ();
19949 rm -f conftest.$ac_objext conftest$ac_exeext
19950 if { (ac_try="$ac_link"
19951 case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_link") 2>conftest.er1
19958 grep -v '^ *+' conftest.er1 >conftest.err
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } &&
19963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19964 { (case "(($ac_try" in
19965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966 *) ac_try_echo=$ac_try;;
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969 (eval "$ac_try") 2>&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; } &&
19973 { ac_try='test -s conftest$ac_exeext'
19974 { (case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_try") 2>&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; }; then
19983 ac_cv_lib_gcc___fixdfdi=yes
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19988 ac_cv_lib_gcc___fixdfdi=no
19991 rm -f core conftest.err conftest.$ac_objext \
19992 conftest$ac_exeext conftest.$ac_ext
19993 LIBS=$ac_check_lib_save_LIBS
19995 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19996 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19997 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19999 cat >>confdefs.h <<\_ACEOF
20000 #define HAVE___FIXDFDI 1
20005 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20006 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20007 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20010 ac_check_lib_save_LIBS=$LIBS
20012 cat >conftest.$ac_ext <<_ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h. */
20019 /* Override any GCC internal prototype to avoid an error.
20020 Use char because int might match the return type of a GCC
20021 builtin and then its argument prototype would still apply. */
20029 return __fixsfdi ();
20034 rm -f conftest.$ac_objext conftest$ac_exeext
20035 if { (ac_try="$ac_link"
20036 case "(($ac_try" in
20037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_link") 2>conftest.er1
20043 grep -v '^ *+' conftest.er1 >conftest.err
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
20048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20049 { (case "(($ac_try" in
20050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051 *) ac_try_echo=$ac_try;;
20053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054 (eval "$ac_try") 2>&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; } &&
20058 { ac_try='test -s conftest$ac_exeext'
20059 { (case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064 (eval "$ac_try") 2>&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; }; then
20068 ac_cv_lib_gcc___fixsfdi=yes
20070 echo "$as_me: failed program was:" >&5
20071 sed 's/^/| /' conftest.$ac_ext >&5
20073 ac_cv_lib_gcc___fixsfdi=no
20076 rm -f core conftest.err conftest.$ac_objext \
20077 conftest$ac_exeext conftest.$ac_ext
20078 LIBS=$ac_check_lib_save_LIBS
20080 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20081 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20082 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20084 cat >>confdefs.h <<\_ACEOF
20085 #define HAVE___FIXSFDI 1
20090 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20091 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20092 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 ac_check_lib_save_LIBS=$LIBS
20097 cat >conftest.$ac_ext <<_ACEOF
20100 cat confdefs.h >>conftest.$ac_ext
20101 cat >>conftest.$ac_ext <<_ACEOF
20102 /* end confdefs.h. */
20104 /* Override any GCC internal prototype to avoid an error.
20105 Use char because int might match the return type of a GCC
20106 builtin and then its argument prototype would still apply. */
20110 char __floatdidf ();
20114 return __floatdidf ();
20119 rm -f conftest.$ac_objext conftest$ac_exeext
20120 if { (ac_try="$ac_link"
20121 case "(($ac_try" in
20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123 *) ac_try_echo=$ac_try;;
20125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126 (eval "$ac_link") 2>conftest.er1
20128 grep -v '^ *+' conftest.er1 >conftest.err
20130 cat conftest.err >&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); } &&
20133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20134 { (case "(($ac_try" in
20135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136 *) ac_try_echo=$ac_try;;
20138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139 (eval "$ac_try") 2>&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); }; } &&
20143 { ac_try='test -s conftest$ac_exeext'
20144 { (case "(($ac_try" in
20145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146 *) ac_try_echo=$ac_try;;
20148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149 (eval "$ac_try") 2>&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; }; then
20153 ac_cv_lib_gcc___floatdidf=yes
20155 echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20158 ac_cv_lib_gcc___floatdidf=no
20161 rm -f core conftest.err conftest.$ac_objext \
20162 conftest$ac_exeext conftest.$ac_ext
20163 LIBS=$ac_check_lib_save_LIBS
20165 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20166 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20167 if test $ac_cv_lib_gcc___floatdidf = yes; then
20169 cat >>confdefs.h <<\_ACEOF
20170 #define HAVE___FLOATDIDF 1
20175 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20176 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20177 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20180 ac_check_lib_save_LIBS=$LIBS
20182 cat >conftest.$ac_ext <<_ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h. */
20189 /* Override any GCC internal prototype to avoid an error.
20190 Use char because int might match the return type of a GCC
20191 builtin and then its argument prototype would still apply. */
20199 return __lshrdi3 ();
20204 rm -f conftest.$ac_objext conftest$ac_exeext
20205 if { (ac_try="$ac_link"
20206 case "(($ac_try" in
20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208 *) ac_try_echo=$ac_try;;
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211 (eval "$ac_link") 2>conftest.er1
20213 grep -v '^ *+' conftest.er1 >conftest.err
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } &&
20218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20219 { (case "(($ac_try" in
20220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221 *) ac_try_echo=$ac_try;;
20223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20224 (eval "$ac_try") 2>&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; } &&
20228 { ac_try='test -s conftest$ac_exeext'
20229 { (case "(($ac_try" in
20230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231 *) ac_try_echo=$ac_try;;
20233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234 (eval "$ac_try") 2>&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; }; then
20238 ac_cv_lib_gcc___lshrdi3=yes
20240 echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20243 ac_cv_lib_gcc___lshrdi3=no
20246 rm -f core conftest.err conftest.$ac_objext \
20247 conftest$ac_exeext conftest.$ac_ext
20248 LIBS=$ac_check_lib_save_LIBS
20250 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20251 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20252 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20254 cat >>confdefs.h <<\_ACEOF
20255 #define HAVE___LSHRDI3 1
20260 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20261 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20262 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20263 echo $ECHO_N "(cached) $ECHO_C" >&6
20265 ac_check_lib_save_LIBS=$LIBS
20267 cat >conftest.$ac_ext <<_ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h. */
20274 /* Override any GCC internal prototype to avoid an error.
20275 Use char because int might match the return type of a GCC
20276 builtin and then its argument prototype would still apply. */
20284 return __moddi3 ();
20289 rm -f conftest.$ac_objext conftest$ac_exeext
20290 if { (ac_try="$ac_link"
20291 case "(($ac_try" in
20292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20293 *) ac_try_echo=$ac_try;;
20295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20296 (eval "$ac_link") 2>conftest.er1
20298 grep -v '^ *+' conftest.er1 >conftest.err
20300 cat conftest.err >&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } &&
20303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20304 { (case "(($ac_try" in
20305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306 *) ac_try_echo=$ac_try;;
20308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309 (eval "$ac_try") 2>&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; } &&
20313 { ac_try='test -s conftest$ac_exeext'
20314 { (case "(($ac_try" in
20315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316 *) ac_try_echo=$ac_try;;
20318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319 (eval "$ac_try") 2>&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; }; then
20323 ac_cv_lib_gcc___moddi3=yes
20325 echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20328 ac_cv_lib_gcc___moddi3=no
20331 rm -f core conftest.err conftest.$ac_objext \
20332 conftest$ac_exeext conftest.$ac_ext
20333 LIBS=$ac_check_lib_save_LIBS
20335 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20336 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20337 if test $ac_cv_lib_gcc___moddi3 = yes; then
20339 cat >>confdefs.h <<\_ACEOF
20340 #define HAVE___MODDI3 1
20345 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20346 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20347 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20348 echo $ECHO_N "(cached) $ECHO_C" >&6
20350 ac_check_lib_save_LIBS=$LIBS
20352 cat >conftest.$ac_ext <<_ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h. */
20359 /* Override any GCC internal prototype to avoid an error.
20360 Use char because int might match the return type of a GCC
20361 builtin and then its argument prototype would still apply. */
20369 return __udivdi3 ();
20374 rm -f conftest.$ac_objext conftest$ac_exeext
20375 if { (ac_try="$ac_link"
20376 case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_link") 2>conftest.er1
20383 grep -v '^ *+' conftest.er1 >conftest.err
20385 cat conftest.err >&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } &&
20388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20389 { (case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20394 (eval "$ac_try") 2>&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; } &&
20398 { ac_try='test -s conftest$ac_exeext'
20399 { (case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404 (eval "$ac_try") 2>&5
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; }; then
20408 ac_cv_lib_gcc___udivdi3=yes
20410 echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20413 ac_cv_lib_gcc___udivdi3=no
20416 rm -f core conftest.err conftest.$ac_objext \
20417 conftest$ac_exeext conftest.$ac_ext
20418 LIBS=$ac_check_lib_save_LIBS
20420 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20421 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20422 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20424 cat >>confdefs.h <<\_ACEOF
20425 #define HAVE___UDIVDI3 1
20430 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20431 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20432 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20433 echo $ECHO_N "(cached) $ECHO_C" >&6
20435 ac_check_lib_save_LIBS=$LIBS
20437 cat >conftest.$ac_ext <<_ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20444 /* Override any GCC internal prototype to avoid an error.
20445 Use char because int might match the return type of a GCC
20446 builtin and then its argument prototype would still apply. */
20454 return __umoddi3 ();
20459 rm -f conftest.$ac_objext conftest$ac_exeext
20460 if { (ac_try="$ac_link"
20461 case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_link") 2>conftest.er1
20468 grep -v '^ *+' conftest.er1 >conftest.err
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } &&
20473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20474 { (case "(($ac_try" in
20475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476 *) ac_try_echo=$ac_try;;
20478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479 (eval "$ac_try") 2>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; } &&
20483 { ac_try='test -s conftest$ac_exeext'
20484 { (case "(($ac_try" in
20485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486 *) ac_try_echo=$ac_try;;
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489 (eval "$ac_try") 2>&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; }; then
20493 ac_cv_lib_gcc___umoddi3=yes
20495 echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20498 ac_cv_lib_gcc___umoddi3=no
20501 rm -f core conftest.err conftest.$ac_objext \
20502 conftest$ac_exeext conftest.$ac_ext
20503 LIBS=$ac_check_lib_save_LIBS
20505 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20506 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20507 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20509 cat >>confdefs.h <<\_ACEOF
20510 #define HAVE___UMODDI3 1
20516 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20517 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20518 if test "${ac_cv_lib_gcc___main+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 ac_check_lib_save_LIBS=$LIBS
20523 cat >conftest.$ac_ext <<_ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20530 /* Override any GCC internal prototype to avoid an error.
20531 Use char because int might match the return type of a GCC
20532 builtin and then its argument prototype would still apply. */
20545 rm -f conftest.$ac_objext conftest$ac_exeext
20546 if { (ac_try="$ac_link"
20547 case "(($ac_try" in
20548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20549 *) ac_try_echo=$ac_try;;
20551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20552 (eval "$ac_link") 2>conftest.er1
20554 grep -v '^ *+' conftest.er1 >conftest.err
20556 cat conftest.err >&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); } &&
20559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20560 { (case "(($ac_try" in
20561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562 *) ac_try_echo=$ac_try;;
20564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20565 (eval "$ac_try") 2>&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); }; } &&
20569 { ac_try='test -s conftest$ac_exeext'
20570 { (case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575 (eval "$ac_try") 2>&5
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; }; then
20579 ac_cv_lib_gcc___main=yes
20581 echo "$as_me: failed program was:" >&5
20582 sed 's/^/| /' conftest.$ac_ext >&5
20584 ac_cv_lib_gcc___main=no
20587 rm -f core conftest.err conftest.$ac_objext \
20588 conftest$ac_exeext conftest.$ac_ext
20589 LIBS=$ac_check_lib_save_LIBS
20591 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20592 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20593 if test $ac_cv_lib_gcc___main = yes; then
20595 cat >>confdefs.h <<\_ACEOF
20596 #define HAVE___MAIN 1
20601 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20602 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20603 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20604 echo $ECHO_N "(cached) $ECHO_C" >&6
20606 ac_check_lib_save_LIBS=$LIBS
20608 cat >conftest.$ac_ext <<_ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h. */
20615 /* Override any GCC internal prototype to avoid an error.
20616 Use char because int might match the return type of a GCC
20617 builtin and then its argument prototype would still apply. */
20625 return __cmpdi2 ();
20630 rm -f conftest.$ac_objext conftest$ac_exeext
20631 if { (ac_try="$ac_link"
20632 case "(($ac_try" in
20633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20634 *) ac_try_echo=$ac_try;;
20636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20637 (eval "$ac_link") 2>conftest.er1
20639 grep -v '^ *+' conftest.er1 >conftest.err
20641 cat conftest.err >&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); } &&
20644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20645 { (case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650 (eval "$ac_try") 2>&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; } &&
20654 { ac_try='test -s conftest$ac_exeext'
20655 { (case "(($ac_try" in
20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657 *) ac_try_echo=$ac_try;;
20659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660 (eval "$ac_try") 2>&5
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; }; then
20664 ac_cv_lib_gcc___cmpdi2=yes
20666 echo "$as_me: failed program was:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20669 ac_cv_lib_gcc___cmpdi2=no
20672 rm -f core conftest.err conftest.$ac_objext \
20673 conftest$ac_exeext conftest.$ac_ext
20674 LIBS=$ac_check_lib_save_LIBS
20676 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20677 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20678 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20680 cat >>confdefs.h <<\_ACEOF
20681 #define HAVE___CMPDI2 1
20688 if test "$llvm_cv_os_type" = "MingW" ; then
20689 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20690 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20691 cat >conftest.$ac_ext <<_ACEOF
20692 #include <windows.h>
20693 #include <imagehlp.h>
20694 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20695 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20697 rm -f conftest.$ac_objext
20698 if { (ac_try="$ac_compile"
20699 case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_compile") 2>conftest.er1
20706 grep -v '^ *+' conftest.er1 >conftest.err
20708 cat conftest.err >&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } &&
20711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20712 { (case "(($ac_try" in
20713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714 *) ac_try_echo=$ac_try;;
20716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20717 (eval "$ac_try") 2>&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; } &&
20721 { ac_try='test -s conftest.$ac_objext'
20722 { (case "(($ac_try" in
20723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724 *) ac_try_echo=$ac_try;;
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727 (eval "$ac_try") 2>&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; }; then
20732 { echo "$as_me:$LINENO: result: yes" >&5
20733 echo "${ECHO_T}yes" >&6; }
20734 llvm_cv_win32_elmcb_pcstr="PCSTR"
20737 echo "$as_me: failed program was:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20741 { echo "$as_me:$LINENO: result: no" >&5
20742 echo "${ECHO_T}no" >&6; }
20743 llvm_cv_win32_elmcb_pcstr="PSTR"
20747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20749 cat >>confdefs.h <<_ACEOF
20750 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20756 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20757 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20758 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20759 echo $ECHO_N "(cached) $ECHO_C" >&6
20762 ac_cpp='$CXXCPP $CPPFLAGS'
20763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20767 cat >conftest.$ac_ext <<_ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h. */
20782 rm -f conftest.$ac_objext
20783 if { (ac_try="$ac_compile"
20784 case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_compile") 2>conftest.er1
20791 grep -v '^ *+' conftest.er1 >conftest.err
20793 cat conftest.err >&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); } &&
20796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20797 { (case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802 (eval "$ac_try") 2>&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); }; } &&
20806 { ac_try='test -s conftest.$ac_objext'
20807 { (case "(($ac_try" in
20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812 (eval "$ac_try") 2>&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); }; }; then
20816 ac_cv_func_isnan_in_math_h=yes
20818 echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20821 ac_cv_func_isnan_in_math_h=no
20824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20826 ac_cpp='$CPP $CPPFLAGS'
20827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20832 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20833 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20836 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20838 cat >>confdefs.h <<\_ACEOF
20839 #define HAVE_ISNAN_IN_MATH_H 1
20844 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20845 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20846 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20847 echo $ECHO_N "(cached) $ECHO_C" >&6
20850 ac_cpp='$CXXCPP $CPPFLAGS'
20851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20855 cat >conftest.$ac_ext <<_ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h. */
20870 rm -f conftest.$ac_objext
20871 if { (ac_try="$ac_compile"
20872 case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_compile") 2>conftest.er1
20879 grep -v '^ *+' conftest.er1 >conftest.err
20881 cat conftest.err >&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } &&
20884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20885 { (case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_try") 2>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; } &&
20894 { ac_try='test -s conftest.$ac_objext'
20895 { (case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900 (eval "$ac_try") 2>&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; }; then
20904 ac_cv_func_isnan_in_cmath=yes
20906 echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20909 ac_cv_func_isnan_in_cmath=no
20912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20914 ac_cpp='$CPP $CPPFLAGS'
20915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20920 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20921 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20923 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20925 cat >>confdefs.h <<\_ACEOF
20926 #define HAVE_ISNAN_IN_CMATH 1
20931 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20932 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20933 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20937 ac_cpp='$CXXCPP $CPPFLAGS'
20938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20942 cat >conftest.$ac_ext <<_ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h. */
20952 float f; std::isnan(f);
20957 rm -f conftest.$ac_objext
20958 if { (ac_try="$ac_compile"
20959 case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_compile") 2>conftest.er1
20966 grep -v '^ *+' conftest.er1 >conftest.err
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } &&
20971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20972 { (case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977 (eval "$ac_try") 2>&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); }; } &&
20981 { ac_try='test -s conftest.$ac_objext'
20982 { (case "(($ac_try" in
20983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984 *) ac_try_echo=$ac_try;;
20986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987 (eval "$ac_try") 2>&5
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
20991 ac_cv_func_std_isnan_in_cmath=yes
20993 echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20996 ac_cv_func_std_isnan_in_cmath=no
20999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21001 ac_cpp='$CPP $CPPFLAGS'
21002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21007 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21008 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21010 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21012 cat >>confdefs.h <<\_ACEOF
21013 #define HAVE_STD_ISNAN_IN_CMATH 1
21019 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21020 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21021 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21022 echo $ECHO_N "(cached) $ECHO_C" >&6
21025 ac_cpp='$CXXCPP $CPPFLAGS'
21026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21030 cat >conftest.$ac_ext <<_ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h. */
21045 rm -f conftest.$ac_objext
21046 if { (ac_try="$ac_compile"
21047 case "(($ac_try" in
21048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049 *) ac_try_echo=$ac_try;;
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052 (eval "$ac_compile") 2>conftest.er1
21054 grep -v '^ *+' conftest.er1 >conftest.err
21056 cat conftest.err >&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); } &&
21059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21060 { (case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_try") 2>&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); }; } &&
21069 { ac_try='test -s conftest.$ac_objext'
21070 { (case "(($ac_try" in
21071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072 *) ac_try_echo=$ac_try;;
21074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21075 (eval "$ac_try") 2>&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; }; then
21079 ac_cv_func_isinf_in_math_h=yes
21081 echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21084 ac_cv_func_isinf_in_math_h=no
21087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21089 ac_cpp='$CPP $CPPFLAGS'
21090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21095 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21096 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21098 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21100 cat >>confdefs.h <<\_ACEOF
21101 #define HAVE_ISINF_IN_MATH_H 1
21106 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21107 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21108 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
21112 ac_cpp='$CXXCPP $CPPFLAGS'
21113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21117 cat >conftest.$ac_ext <<_ACEOF
21120 cat confdefs.h >>conftest.$ac_ext
21121 cat >>conftest.$ac_ext <<_ACEOF
21122 /* end confdefs.h. */
21132 rm -f conftest.$ac_objext
21133 if { (ac_try="$ac_compile"
21134 case "(($ac_try" in
21135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136 *) ac_try_echo=$ac_try;;
21138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21139 (eval "$ac_compile") 2>conftest.er1
21141 grep -v '^ *+' conftest.er1 >conftest.err
21143 cat conftest.err >&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); } &&
21146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21147 { (case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_try") 2>&5
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; } &&
21156 { ac_try='test -s conftest.$ac_objext'
21157 { (case "(($ac_try" in
21158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159 *) ac_try_echo=$ac_try;;
21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162 (eval "$ac_try") 2>&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; }; then
21166 ac_cv_func_isinf_in_cmath=yes
21168 echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21171 ac_cv_func_isinf_in_cmath=no
21174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21176 ac_cpp='$CPP $CPPFLAGS'
21177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21182 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21183 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21185 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21187 cat >>confdefs.h <<\_ACEOF
21188 #define HAVE_ISINF_IN_CMATH 1
21193 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21194 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21195 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21196 echo $ECHO_N "(cached) $ECHO_C" >&6
21199 ac_cpp='$CXXCPP $CPPFLAGS'
21200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21204 cat >conftest.$ac_ext <<_ACEOF
21207 cat confdefs.h >>conftest.$ac_ext
21208 cat >>conftest.$ac_ext <<_ACEOF
21209 /* end confdefs.h. */
21214 float f; std::isinf(f)}
21219 rm -f conftest.$ac_objext
21220 if { (ac_try="$ac_compile"
21221 case "(($ac_try" in
21222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223 *) ac_try_echo=$ac_try;;
21225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226 (eval "$ac_compile") 2>conftest.er1
21228 grep -v '^ *+' conftest.er1 >conftest.err
21230 cat conftest.err >&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); } &&
21233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21234 { (case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_try") 2>&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; } &&
21243 { ac_try='test -s conftest.$ac_objext'
21244 { (case "(($ac_try" in
21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249 (eval "$ac_try") 2>&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; }; then
21253 ac_cv_func_std_isinf_in_cmath=yes
21255 echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21258 ac_cv_func_std_isinf_in_cmath=no
21261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21263 ac_cpp='$CPP $CPPFLAGS'
21264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21269 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21270 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21272 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21274 cat >>confdefs.h <<\_ACEOF
21275 #define HAVE_STD_ISINF_IN_CMATH 1
21280 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21281 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21282 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
21286 ac_cpp='$CXXCPP $CPPFLAGS'
21287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21291 cat >conftest.$ac_ext <<_ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h. */
21297 #include <ieeefp.h>
21301 float f; finite(f);
21306 rm -f conftest.$ac_objext
21307 if { (ac_try="$ac_compile"
21308 case "(($ac_try" in
21309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310 *) ac_try_echo=$ac_try;;
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313 (eval "$ac_compile") 2>conftest.er1
21315 grep -v '^ *+' conftest.er1 >conftest.err
21317 cat conftest.err >&5
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); } &&
21320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21321 { (case "(($ac_try" in
21322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323 *) ac_try_echo=$ac_try;;
21325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21326 (eval "$ac_try") 2>&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); }; } &&
21330 { ac_try='test -s conftest.$ac_objext'
21331 { (case "(($ac_try" in
21332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21333 *) ac_try_echo=$ac_try;;
21335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21336 (eval "$ac_try") 2>&5
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); }; }; then
21340 ac_cv_func_finite_in_ieeefp_h=yes
21342 echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21345 ac_cv_func_finite_in_ieeefp_h=no
21348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21350 ac_cpp='$CPP $CPPFLAGS'
21351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21356 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21357 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21359 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21361 cat >>confdefs.h <<\_ACEOF
21362 #define HAVE_FINITE_IN_IEEEFP_H 1
21369 if test "$llvm_cv_platform_type" = "Unix" ; then
21372 for ac_header in stdlib.h unistd.h
21374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21381 ac_res=`eval echo '${'$as_ac_Header'}'`
21382 { echo "$as_me:$LINENO: result: $ac_res" >&5
21383 echo "${ECHO_T}$ac_res" >&6; }
21385 # Is the header compilable?
21386 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21388 cat >conftest.$ac_ext <<_ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h. */
21394 $ac_includes_default
21395 #include <$ac_header>
21397 rm -f conftest.$ac_objext
21398 if { (ac_try="$ac_compile"
21399 case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401 *) ac_try_echo=$ac_try;;
21403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21404 (eval "$ac_compile") 2>conftest.er1
21406 grep -v '^ *+' conftest.er1 >conftest.err
21408 cat conftest.err >&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); } &&
21411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21412 { (case "(($ac_try" in
21413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21414 *) ac_try_echo=$ac_try;;
21416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21417 (eval "$ac_try") 2>&5
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); }; } &&
21421 { ac_try='test -s conftest.$ac_objext'
21422 { (case "(($ac_try" in
21423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21424 *) ac_try_echo=$ac_try;;
21426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21427 (eval "$ac_try") 2>&5
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); }; }; then
21431 ac_header_compiler=yes
21433 echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21436 ac_header_compiler=no
21439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21441 echo "${ECHO_T}$ac_header_compiler" >&6; }
21443 # Is the header present?
21444 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21446 cat >conftest.$ac_ext <<_ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h. */
21452 #include <$ac_header>
21454 if { (ac_try="$ac_cpp conftest.$ac_ext"
21455 case "(($ac_try" in
21456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21457 *) ac_try_echo=$ac_try;;
21459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21462 grep -v '^ *+' conftest.er1 >conftest.err
21464 cat conftest.err >&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); } >/dev/null; then
21467 if test -s conftest.err; then
21468 ac_cpp_err=$ac_c_preproc_warn_flag
21469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21476 if test -z "$ac_cpp_err"; then
21477 ac_header_preproc=yes
21479 echo "$as_me: failed program was:" >&5
21480 sed 's/^/| /' conftest.$ac_ext >&5
21482 ac_header_preproc=no
21485 rm -f conftest.err conftest.$ac_ext
21486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21487 echo "${ECHO_T}$ac_header_preproc" >&6; }
21489 # So? What about this header?
21490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21496 ac_header_preproc=yes
21499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21512 ## ----------------------------------- ##
21513 ## Report this to llvmbugs@cs.uiuc.edu ##
21514 ## ----------------------------------- ##
21516 ) | sed "s/^/$as_me: WARNING: /" >&2
21519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21522 echo $ECHO_N "(cached) $ECHO_C" >&6
21524 eval "$as_ac_Header=\$ac_header_preproc"
21526 ac_res=`eval echo '${'$as_ac_Header'}'`
21527 { echo "$as_me:$LINENO: result: $ac_res" >&5
21528 echo "${ECHO_T}$ac_res" >&6; }
21531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21532 cat >>confdefs.h <<_ACEOF
21533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21541 for ac_func in getpagesize
21543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21544 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21547 echo $ECHO_N "(cached) $ECHO_C" >&6
21549 cat >conftest.$ac_ext <<_ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h. */
21555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21557 #define $ac_func innocuous_$ac_func
21559 /* System header to define __stub macros and hopefully few prototypes,
21560 which can conflict with char $ac_func (); below.
21561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21562 <limits.h> exists even on freestanding compilers. */
21565 # include <limits.h>
21567 # include <assert.h>
21572 /* Override any GCC internal prototype to avoid an error.
21573 Use char because int might match the return type of a GCC
21574 builtin and then its argument prototype would still apply. */
21579 /* The GNU C library defines this for functions which it implements
21580 to always fail with ENOSYS. Some functions are actually named
21581 something starting with __ and the normal name is an alias. */
21582 #if defined __stub_$ac_func || defined __stub___$ac_func
21589 return $ac_func ();
21594 rm -f conftest.$ac_objext conftest$ac_exeext
21595 if { (ac_try="$ac_link"
21596 case "(($ac_try" in
21597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598 *) ac_try_echo=$ac_try;;
21600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21601 (eval "$ac_link") 2>conftest.er1
21603 grep -v '^ *+' conftest.er1 >conftest.err
21605 cat conftest.err >&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } &&
21608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21609 { (case "(($ac_try" in
21610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611 *) ac_try_echo=$ac_try;;
21613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614 (eval "$ac_try") 2>&5
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); }; } &&
21618 { ac_try='test -s conftest$ac_exeext'
21619 { (case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_try") 2>&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; }; then
21628 eval "$as_ac_var=yes"
21630 echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21633 eval "$as_ac_var=no"
21636 rm -f core conftest.err conftest.$ac_objext \
21637 conftest$ac_exeext conftest.$ac_ext
21639 ac_res=`eval echo '${'$as_ac_var'}'`
21640 { echo "$as_me:$LINENO: result: $ac_res" >&5
21641 echo "${ECHO_T}$ac_res" >&6; }
21642 if test `eval echo '${'$as_ac_var'}'` = yes; then
21643 cat >>confdefs.h <<_ACEOF
21644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21650 { echo "$as_me:$LINENO: checking for working mmap" >&5
21651 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21652 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21653 echo $ECHO_N "(cached) $ECHO_C" >&6
21655 if test "$cross_compiling" = yes; then
21656 ac_cv_func_mmap_fixed_mapped=no
21658 cat >conftest.$ac_ext <<_ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h. */
21664 $ac_includes_default
21665 /* malloc might have been renamed as rpl_malloc. */
21668 /* Thanks to Mike Haertel and Jim Avera for this test.
21669 Here is a matrix of mmap possibilities:
21670 mmap private not fixed
21671 mmap private fixed at somewhere currently unmapped
21672 mmap private fixed at somewhere already mapped
21673 mmap shared not fixed
21674 mmap shared fixed at somewhere currently unmapped
21675 mmap shared fixed at somewhere already mapped
21676 For private mappings, we should verify that changes cannot be read()
21677 back from the file, nor mmap's back from the file at a different
21678 address. (There have been systems where private was not correctly
21679 implemented like the infamous i386 svr4.0, and systems where the
21680 VM page cache was not coherent with the file system buffer cache
21681 like early versions of FreeBSD and possibly contemporary NetBSD.)
21682 For shared mappings, we should conversely verify that changes get
21683 propagated back to all the places they're supposed to be.
21685 Grep wants private fixed already mapped.
21686 The main things grep needs to know about mmap are:
21687 * does it exist and is it safe to write into the mmap'd area
21688 * how to use it (BSD variants) */
21691 #include <sys/mman.h>
21693 #if !STDC_HEADERS && !HAVE_STDLIB_H
21697 /* This mess was copied from the GNU getpagesize.h. */
21698 #if !HAVE_GETPAGESIZE
21699 /* Assume that all systems that can run configure have sys/param.h. */
21700 # if !HAVE_SYS_PARAM_H
21701 # define HAVE_SYS_PARAM_H 1
21704 # ifdef _SC_PAGESIZE
21705 # define getpagesize() sysconf(_SC_PAGESIZE)
21706 # else /* no _SC_PAGESIZE */
21707 # if HAVE_SYS_PARAM_H
21708 # include <sys/param.h>
21709 # ifdef EXEC_PAGESIZE
21710 # define getpagesize() EXEC_PAGESIZE
21711 # else /* no EXEC_PAGESIZE */
21713 # define getpagesize() NBPG * CLSIZE
21716 # endif /* no CLSIZE */
21717 # else /* no NBPG */
21719 # define getpagesize() NBPC
21720 # else /* no NBPC */
21722 # define getpagesize() PAGESIZE
21723 # endif /* PAGESIZE */
21724 # endif /* no NBPC */
21725 # endif /* no NBPG */
21726 # endif /* no EXEC_PAGESIZE */
21727 # else /* no HAVE_SYS_PARAM_H */
21728 # define getpagesize() 8192 /* punt totally */
21729 # endif /* no HAVE_SYS_PARAM_H */
21730 # endif /* no _SC_PAGESIZE */
21732 #endif /* no HAVE_GETPAGESIZE */
21737 char *data, *data2, *data3;
21741 pagesize = getpagesize ();
21743 /* First, make a file with some known garbage in it. */
21744 data = (char *) malloc (pagesize);
21747 for (i = 0; i < pagesize; ++i)
21748 *(data + i) = rand ();
21750 fd = creat ("conftest.mmap", 0600);
21753 if (write (fd, data, pagesize) != pagesize)
21757 /* Next, try to mmap the file at a fixed address which already has
21758 something else allocated at it. If we can, also make sure that
21759 we see the same garbage. */
21760 fd = open ("conftest.mmap", O_RDWR);
21763 data2 = (char *) malloc (2 * pagesize);
21766 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21767 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21768 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21770 for (i = 0; i < pagesize; ++i)
21771 if (*(data + i) != *(data2 + i))
21774 /* Finally, make sure that changes to the mapped area do not
21775 percolate back to the file as seen by read(). (This is a bug on
21776 some variants of i386 svr4.0.) */
21777 for (i = 0; i < pagesize; ++i)
21778 *(data2 + i) = *(data2 + i) + 1;
21779 data3 = (char *) malloc (pagesize);
21782 if (read (fd, data3, pagesize) != pagesize)
21784 for (i = 0; i < pagesize; ++i)
21785 if (*(data + i) != *(data3 + i))
21791 rm -f conftest$ac_exeext
21792 if { (ac_try="$ac_link"
21793 case "(($ac_try" in
21794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795 *) ac_try_echo=$ac_try;;
21797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798 (eval "$ac_link") 2>&5
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21802 { (case "(($ac_try" in
21803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804 *) ac_try_echo=$ac_try;;
21806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21807 (eval "$ac_try") 2>&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; }; then
21811 ac_cv_func_mmap_fixed_mapped=yes
21813 echo "$as_me: program exited with status $ac_status" >&5
21814 echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21817 ( exit $ac_status )
21818 ac_cv_func_mmap_fixed_mapped=no
21820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21825 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21826 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21827 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21829 cat >>confdefs.h <<\_ACEOF
21830 #define HAVE_MMAP 1
21834 rm -f conftest.mmap
21836 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21837 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21838 if test "${ac_cv_func_mmap_file+set}" = set; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21842 ac_cpp='$CPP $CPPFLAGS'
21843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21847 if test "$cross_compiling" = yes; then
21848 ac_cv_func_mmap_file=no
21850 cat >conftest.$ac_ext <<_ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h. */
21858 #include <sys/types.h>
21859 #include <sys/mman.h>
21867 fd = creat ("foo",0777);
21868 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21870 return (fd != (int) MAP_FAILED);
21875 rm -f conftest$ac_exeext
21876 if { (ac_try="$ac_link"
21877 case "(($ac_try" in
21878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879 *) ac_try_echo=$ac_try;;
21881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882 (eval "$ac_link") 2>&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21886 { (case "(($ac_try" in
21887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888 *) ac_try_echo=$ac_try;;
21890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21891 (eval "$ac_try") 2>&5
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; }; then
21895 ac_cv_func_mmap_file=yes
21897 echo "$as_me: program exited with status $ac_status" >&5
21898 echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21901 ( exit $ac_status )
21902 ac_cv_func_mmap_file=no
21904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21909 ac_cpp='$CPP $CPPFLAGS'
21910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21916 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21917 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21918 if test "$ac_cv_func_mmap_file" = yes; then
21920 cat >>confdefs.h <<\_ACEOF
21921 #define HAVE_MMAP_FILE
21928 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21929 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21930 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21931 echo $ECHO_N "(cached) $ECHO_C" >&6
21933 if test "$llvm_cv_os_type" = "Interix" ; then
21934 ac_cv_need_dev_zero_for_mmap=yes
21936 ac_cv_need_dev_zero_for_mmap=no
21940 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21941 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21942 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21944 cat >>confdefs.h <<\_ACEOF
21945 #define NEED_DEV_ZERO_FOR_MMAP 1
21950 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21952 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21953 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21955 if test "$ac_cv_func_mmap_file" = "no"
21957 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21958 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21962 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21963 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21965 ac_cpp='$CXXCPP $CPPFLAGS'
21966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21970 cat >conftest.$ac_ext <<_ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21977 volatile unsigned long val = 1;
21978 __sync_synchronize();
21979 __sync_val_compare_and_swap(&val, 1, 0);
21980 __sync_add_and_fetch(&val, 1);
21981 __sync_sub_and_fetch(&val, 1);
21986 rm -f conftest.$ac_objext conftest$ac_exeext
21987 if { (ac_try="$ac_link"
21988 case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993 (eval "$ac_link") 2>conftest.er1
21995 grep -v '^ *+' conftest.er1 >conftest.err
21997 cat conftest.err >&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } &&
22000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22001 { (case "(($ac_try" in
22002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003 *) ac_try_echo=$ac_try;;
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006 (eval "$ac_try") 2>&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; } &&
22010 { ac_try='test -s conftest$ac_exeext'
22011 { (case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016 (eval "$ac_try") 2>&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; }; then
22021 ac_cpp='$CPP $CPPFLAGS'
22022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22026 { echo "$as_me:$LINENO: result: yes" >&5
22027 echo "${ECHO_T}yes" >&6; }
22029 cat >>confdefs.h <<\_ACEOF
22030 #define LLVM_MULTITHREADED 1
22034 echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22037 { echo "$as_me:$LINENO: result: no" >&5
22038 echo "${ECHO_T}no" >&6; }
22040 cat >>confdefs.h <<\_ACEOF
22041 #define LLVM_MULTITHREADED 0
22044 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22045 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22048 rm -f core conftest.err conftest.$ac_objext \
22049 conftest$ac_exeext conftest.$ac_ext
22052 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22053 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22054 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22055 if test "${llvm_cv_linux_mixed+set}" = set; then
22056 echo $ECHO_N "(cached) $ECHO_C" >&6
22059 ac_cpp='$CPP $CPPFLAGS'
22060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22064 cat >conftest.$ac_ext <<_ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h. */
22071 error: Not x86-64 even if uname says so!
22082 rm -f conftest.$ac_objext
22083 if { (ac_try="$ac_compile"
22084 case "(($ac_try" in
22085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22086 *) ac_try_echo=$ac_try;;
22088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22089 (eval "$ac_compile") 2>conftest.er1
22091 grep -v '^ *+' conftest.er1 >conftest.err
22093 cat conftest.err >&5
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); } &&
22096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22097 { (case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_try") 2>&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); }; } &&
22106 { ac_try='test -s conftest.$ac_objext'
22107 { (case "(($ac_try" in
22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109 *) ac_try_echo=$ac_try;;
22111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112 (eval "$ac_try") 2>&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); }; }; then
22116 llvm_cv_linux_mixed=no
22118 echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22121 llvm_cv_linux_mixed=yes
22124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22126 ac_cpp='$CPP $CPPFLAGS'
22127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22133 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22134 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22136 if test "$llvm_cv_linux_mixed" = "yes"; then
22137 llvm_cv_target_arch="x86"
22143 for ac_func in __dso_handle
22145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22149 echo $ECHO_N "(cached) $ECHO_C" >&6
22151 cat >conftest.$ac_ext <<_ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h. */
22157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22159 #define $ac_func innocuous_$ac_func
22161 /* System header to define __stub macros and hopefully few prototypes,
22162 which can conflict with char $ac_func (); below.
22163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22164 <limits.h> exists even on freestanding compilers. */
22167 # include <limits.h>
22169 # include <assert.h>
22174 /* Override any GCC internal prototype to avoid an error.
22175 Use char because int might match the return type of a GCC
22176 builtin and then its argument prototype would still apply. */
22181 /* The GNU C library defines this for functions which it implements
22182 to always fail with ENOSYS. Some functions are actually named
22183 something starting with __ and the normal name is an alias. */
22184 #if defined __stub_$ac_func || defined __stub___$ac_func
22191 return $ac_func ();
22196 rm -f conftest.$ac_objext conftest$ac_exeext
22197 if { (ac_try="$ac_link"
22198 case "(($ac_try" in
22199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22200 *) ac_try_echo=$ac_try;;
22202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22203 (eval "$ac_link") 2>conftest.er1
22205 grep -v '^ *+' conftest.er1 >conftest.err
22207 cat conftest.err >&5
22208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209 (exit $ac_status); } &&
22210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22211 { (case "(($ac_try" in
22212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213 *) ac_try_echo=$ac_try;;
22215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216 (eval "$ac_try") 2>&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); }; } &&
22220 { ac_try='test -s conftest$ac_exeext'
22221 { (case "(($ac_try" in
22222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226 (eval "$ac_try") 2>&5
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); }; }; then
22230 eval "$as_ac_var=yes"
22232 echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22235 eval "$as_ac_var=no"
22238 rm -f core conftest.err conftest.$ac_objext \
22239 conftest$ac_exeext conftest.$ac_ext
22241 ac_res=`eval echo '${'$as_ac_var'}'`
22242 { echo "$as_me:$LINENO: result: $ac_res" >&5
22243 echo "${ECHO_T}$ac_res" >&6; }
22244 if test `eval echo '${'$as_ac_var'}'` = yes; then
22245 cat >>confdefs.h <<_ACEOF
22246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22253 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22254 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22255 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22256 echo $ECHO_N "(cached) $ECHO_C" >&6
22258 llvm_cv_llvmgcc_dragonegg="no"
22259 if test -n "$LLVMGCC" ; then
22260 cp /dev/null conftest.c
22261 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22262 if test $? -eq 0 ; then
22263 llvm_cv_llvmgcc_dragonegg="yes"
22268 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22269 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22271 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22272 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22273 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
22275 LLVMCC_EMITIR_FLAG="-emit-llvm"
22276 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22281 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22282 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22283 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22284 echo $ECHO_N "(cached) $ECHO_C" >&6
22286 llvm_cv_llvmgcc_sanity="no"
22287 if test -n "$LLVMGCC" ; then
22288 cp /dev/null conftest.c
22289 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22290 grep 'target datalayout =' > /dev/null 2>&1
22291 if test $? -eq 0 ; then
22292 llvm_cv_llvmgcc_sanity="yes"
22297 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22298 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22300 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22301 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22302 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22303 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
22304 LLVMCC1=$llvmcc1path
22306 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
22307 LLVMCC1PLUS=$llvmcc1pluspath
22309 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22310 LLVMGCCDIR=$llvmgccdir
22312 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22313 LLVMGCC_LANGS=$llvmgcclangs
22315 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22318 { echo "$as_me:$LINENO: result: ok" >&5
22319 echo "${ECHO_T}ok" >&6; }
22322 SHLIBEXT=$libltdl_cv_shlibext
22325 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22328 # Translate the various configuration directories and other basic
22329 # information into substitutions that will end up in Makefile.config.in
22330 # that these configured values can be used by the makefiles
22331 if test "${prefix}" = "NONE" ; then
22332 prefix="/usr/local"
22334 eval LLVM_PREFIX="${prefix}";
22335 eval LLVM_BINDIR="${prefix}/bin";
22336 eval LLVM_LIBDIR="${prefix}/lib";
22337 eval LLVM_DATADIR="${prefix}/share/llvm";
22338 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22339 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22340 eval LLVM_INCLUDEDIR="${prefix}/include";
22341 eval LLVM_INFODIR="${prefix}/info";
22342 eval LLVM_MANDIR="${prefix}/man";
22343 LLVM_CONFIGTIME=`date`
22355 # Place the various directores into the config.h file as #defines so that we
22356 # can know about the installation paths within LLVM.
22358 cat >>confdefs.h <<_ACEOF
22359 #define LLVM_PREFIX "$LLVM_PREFIX"
22363 cat >>confdefs.h <<_ACEOF
22364 #define LLVM_BINDIR "$LLVM_BINDIR"
22368 cat >>confdefs.h <<_ACEOF
22369 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22373 cat >>confdefs.h <<_ACEOF
22374 #define LLVM_DATADIR "$LLVM_DATADIR"
22378 cat >>confdefs.h <<_ACEOF
22379 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22383 cat >>confdefs.h <<_ACEOF
22384 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22388 cat >>confdefs.h <<_ACEOF
22389 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22393 cat >>confdefs.h <<_ACEOF
22394 #define LLVM_INFODIR "$LLVM_INFODIR"
22398 cat >>confdefs.h <<_ACEOF
22399 #define LLVM_MANDIR "$LLVM_MANDIR"
22403 cat >>confdefs.h <<_ACEOF
22404 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22408 cat >>confdefs.h <<_ACEOF
22409 #define LLVM_HOSTTRIPLE "$host"
22413 # Determine which bindings to build.
22414 if test "$BINDINGS_TO_BUILD" = auto ; then
22415 BINDINGS_TO_BUILD=""
22416 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22417 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22420 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22423 # This isn't really configurey, but it avoids having to repeat the list in
22428 # Do any work necessary to ensure that bindings have what they need.
22429 binding_prereqs_failed=0
22430 for a_binding in $BINDINGS_TO_BUILD ; do
22431 case "$a_binding" in
22433 if test "x$OCAMLC" = x ; then
22434 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22435 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22436 binding_prereqs_failed=1
22438 if test "x$OCAMLDEP" = x ; then
22439 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22440 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22441 binding_prereqs_failed=1
22443 if test "x$OCAMLOPT" = x ; then
22444 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22445 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22447 if test "x$with_ocaml_libdir" != xauto ; then
22448 OCAML_LIBDIR=$with_ocaml_libdir
22451 ocaml_stdlib="`"$OCAMLC" -where`"
22452 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22454 # ocaml stdlib is beneath our prefix; use stdlib
22455 OCAML_LIBDIR=$ocaml_stdlib
22458 # ocaml stdlib is outside our prefix; use libdir/ocaml
22459 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22466 if test "$binding_prereqs_failed" = 1 ; then
22467 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22468 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22469 { (exit 1); exit 1; }; }
22472 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22473 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22474 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22475 echo $ECHO_N "(cached) $ECHO_C" >&6
22478 ac_cpp='$CXXCPP $CPPFLAGS'
22479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22483 oldcxxflags="$CXXFLAGS"
22484 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22485 cat >conftest.$ac_ext <<_ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h. */
22500 rm -f conftest.$ac_objext
22501 if { (ac_try="$ac_compile"
22502 case "(($ac_try" in
22503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504 *) ac_try_echo=$ac_try;;
22506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22507 (eval "$ac_compile") 2>conftest.er1
22509 grep -v '^ *+' conftest.er1 >conftest.err
22511 cat conftest.err >&5
22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); } &&
22514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22515 { (case "(($ac_try" in
22516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517 *) ac_try_echo=$ac_try;;
22519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22520 (eval "$ac_try") 2>&5
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); }; } &&
22524 { ac_try='test -s conftest.$ac_objext'
22525 { (case "(($ac_try" in
22526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22527 *) ac_try_echo=$ac_try;;
22529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22530 (eval "$ac_try") 2>&5
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; }; then
22534 llvm_cv_cxx_visibility_inlines_hidden=yes
22536 echo "$as_me: failed program was:" >&5
22537 sed 's/^/| /' conftest.$ac_ext >&5
22539 llvm_cv_cxx_visibility_inlines_hidden=no
22542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22543 CXXFLAGS="$oldcxxflags"
22545 ac_cpp='$CPP $CPPFLAGS'
22546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22552 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22553 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22554 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22555 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22558 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22563 if test "$llvm_cv_link_use_r" = "yes" ; then
22570 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22571 RDYNAMIC="-Wl,-export-dynamic"
22578 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22585 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22587 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22589 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22591 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22593 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22596 ac_config_files="$ac_config_files Makefile.config"
22599 ac_config_files="$ac_config_files llvm.spec"
22602 ac_config_files="$ac_config_files docs/doxygen.cfg"
22604 if test -f ${srcdir}/tools/clang/README.txt; then
22605 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22609 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
22612 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
22615 ac_config_commands="$ac_config_commands setup"
22617 ac_config_commands="$ac_config_commands Makefile"
22620 ac_config_commands="$ac_config_commands Makefile.common"
22623 ac_config_commands="$ac_config_commands examples/Makefile"
22626 ac_config_commands="$ac_config_commands lib/Makefile"
22629 ac_config_commands="$ac_config_commands runtime/Makefile"
22632 ac_config_commands="$ac_config_commands test/Makefile"
22635 ac_config_commands="$ac_config_commands test/Makefile.tests"
22638 ac_config_commands="$ac_config_commands unittests/Makefile"
22641 ac_config_commands="$ac_config_commands tools/Makefile"
22644 ac_config_commands="$ac_config_commands utils/Makefile"
22647 ac_config_commands="$ac_config_commands projects/Makefile"
22650 ac_config_commands="$ac_config_commands bindings/Makefile"
22653 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22657 cat >confcache <<\_ACEOF
22658 # This file is a shell script that caches the results of configure
22659 # tests run on this system so they can be shared between configure
22660 # scripts and configure runs, see configure's option --config-cache.
22661 # It is not useful on other systems. If it contains results you don't
22662 # want to keep, you may remove or edit it.
22664 # config.status only pays attention to the cache file if you give it
22665 # the --recheck option to rerun configure.
22667 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22668 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22669 # following values.
22673 # The following way of writing the cache mishandles newlines in values,
22674 # but we know of no workaround that is simple, portable, and efficient.
22675 # So, we kill variables containing newlines.
22676 # Ultrix sh set writes to stderr and can't be redirected directly,
22677 # and sets the high bit in the cache file unless we assign to the vars.
22679 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22680 eval ac_val=\$$ac_var
22684 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22685 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22688 _ | IFS | as_nl) ;; #(
22689 *) $as_unset $ac_var ;;
22695 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22696 *${as_nl}ac_space=\ *)
22697 # `set' does not quote correctly, so add quotes (double-quote
22698 # substitution turns \\\\ into \\, and sed turns \\ into \).
22701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22704 # `set' quotes correctly as required by POSIX, so do not add quotes.
22705 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22714 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22716 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22718 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22719 if test -w "$cache_file"; then
22720 test "x$cache_file" != "x/dev/null" &&
22721 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22722 echo "$as_me: updating cache $cache_file" >&6;}
22723 cat confcache >$cache_file
22725 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22726 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22731 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22732 # Let make expand exec_prefix.
22733 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22735 DEFS=-DHAVE_CONFIG_H
22739 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22740 # 1. Remove the extension, and $U if already installed.
22741 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22742 ac_i=`echo "$ac_i" | sed "$ac_script"`
22743 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22744 # will be set to the directory where LIBOBJS objects are built.
22745 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22746 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22748 LIBOBJS=$ac_libobjs
22750 LTLIBOBJS=$ac_ltlibobjs
22753 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22754 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22755 Usually this means the macro was only invoked conditionally." >&5
22756 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22757 Usually this means the macro was only invoked conditionally." >&2;}
22758 { (exit 1); exit 1; }; }
22760 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22761 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22762 Usually this means the macro was only invoked conditionally." >&5
22763 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22764 Usually this means the macro was only invoked conditionally." >&2;}
22765 { (exit 1); exit 1; }; }
22768 : ${CONFIG_STATUS=./config.status}
22769 ac_clean_files_save=$ac_clean_files
22770 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22771 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22772 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22773 cat >$CONFIG_STATUS <<_ACEOF
22775 # Generated by $as_me.
22776 # Run this file to recreate the current configuration.
22777 # Compiler output produced by configure, useful for debugging
22778 # configure, is in config.log if it exists.
22781 ac_cs_recheck=false
22783 SHELL=\${CONFIG_SHELL-$SHELL}
22786 cat >>$CONFIG_STATUS <<\_ACEOF
22787 ## --------------------- ##
22788 ## M4sh Initialization. ##
22789 ## --------------------- ##
22791 # Be Bourne compatible
22792 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22795 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22796 # is contrary to our usage. Disable this feature.
22797 alias -g '${1+"$@"}'='"$@"'
22798 setopt NO_GLOB_SUBST
22800 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22802 BIN_SH=xpg4; export BIN_SH # for Tru64
22803 DUALCASE=1; export DUALCASE # for MKS sh
22807 # Avoid depending upon Character Ranges.
22808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22811 as_cr_digits='0123456789'
22812 as_cr_alnum=$as_cr_Letters$as_cr_digits
22814 # The user is always right.
22815 if test "${PATH_SEPARATOR+set}" != set; then
22816 echo "#! /bin/sh" >conf$$.sh
22817 echo "exit 0" >>conf$$.sh
22819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22827 # Support unset when possible.
22828 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22836 # We need space, tab and new line, in precisely that order. Quoting is
22837 # there to prevent editors from complaining about space-tab.
22838 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22839 # splitting by setting IFS to empty value.)
22844 # Find who we are. Look in the path if we contain no directory separator.
22846 *[\\/]* ) as_myself=$0 ;;
22847 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22848 for as_dir in $PATH
22851 test -z "$as_dir" && as_dir=.
22852 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22858 # We did not find ourselves, most probably we were run as `sh COMMAND'
22859 # in which case we are not to be found in the path.
22860 if test "x$as_myself" = x; then
22863 if test ! -f "$as_myself"; then
22864 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22865 { (exit 1); exit 1; }
22868 # Work around bugs in pre-3.0 UWIN ksh.
22869 for as_var in ENV MAIL MAILPATH
22870 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22878 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22879 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22880 LC_TELEPHONE LC_TIME
22882 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22883 eval $as_var=C; export $as_var
22885 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22889 # Required to use basename.
22890 if expr a : '\(a\)' >/dev/null 2>&1 &&
22891 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22897 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22898 as_basename=basename
22904 # Name of the executable.
22905 as_me=`$as_basename -- "$0" ||
22906 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22907 X"$0" : 'X\(//\)$' \| \
22908 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22910 sed '/^.*\/\([^/][^/]*\)\/*$/{
22929 as_lineno_1=$LINENO
22930 as_lineno_2=$LINENO
22931 test "x$as_lineno_1" != "x$as_lineno_2" &&
22932 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22934 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22935 # uniformly replaced by the line number. The first 'sed' inserts a
22936 # line-number line after each line using $LINENO; the second 'sed'
22937 # does the real work. The second script uses 'N' to pair each
22938 # line-number line with the line containing $LINENO, and appends
22939 # trailing '-' during substitution so that $LINENO is not a special
22940 # case at line end.
22941 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22942 # scripts with optimization help from Paolo Bonzini. Blame Lee
22943 # E. McMahon (1931-1989) for sed's syntax. :-)
22955 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22958 ' >$as_me.lineno &&
22959 chmod +x "$as_me.lineno" ||
22960 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22961 { (exit 1); exit 1; }; }
22963 # Don't try to exec as it changes $[0], causing all sort of problems
22964 # (the dirname of $[0] is not the place where we might find the
22965 # original and so on. Autoconf is especially sensitive to this).
22966 . "./$as_me.lineno"
22967 # Exit status is that of the last command.
22972 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22978 ECHO_C= ECHO_N= ECHO_T=
22979 case `echo -n x` in
22981 case `echo 'x\c'` in
22982 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22989 if expr a : '\(a\)' >/dev/null 2>&1 &&
22990 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22996 rm -f conf$$ conf$$.exe conf$$.file
22997 if test -d conf$$.dir; then
22998 rm -f conf$$.dir/conf$$.file
23004 if ln -s conf$$.file conf$$ 2>/dev/null; then
23006 # ... but there are two gotchas:
23007 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23008 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23009 # In both cases, we have to default to `cp -p'.
23010 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23012 elif ln conf$$.file conf$$ 2>/dev/null; then
23017 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23018 rmdir conf$$.dir 2>/dev/null
23020 if mkdir -p . 2>/dev/null; then
23023 test -d ./-p && rmdir ./-p
23027 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23028 # systems may use methods other than mode bits to determine executability.
23029 cat >conf$$.file <<_ASEOF
23033 chmod +x conf$$.file
23034 if test -x conf$$.file >/dev/null 2>&1; then
23035 as_executable_p="test -x"
23041 # Sed expression to map a string onto a valid CPP name.
23042 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23044 # Sed expression to map a string onto a valid variable name.
23045 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23050 # Save the log message, to keep $[0] and so on meaningful, and to
23051 # report actual input values of CONFIG_FILES etc. instead of their
23052 # values after options handling.
23054 This file was extended by llvm $as_me 3.0svn, which was
23055 generated by GNU Autoconf 2.60. Invocation command line was
23057 CONFIG_FILES = $CONFIG_FILES
23058 CONFIG_HEADERS = $CONFIG_HEADERS
23059 CONFIG_LINKS = $CONFIG_LINKS
23060 CONFIG_COMMANDS = $CONFIG_COMMANDS
23063 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23068 cat >>$CONFIG_STATUS <<_ACEOF
23069 # Files that config.status was made for.
23070 config_files="$ac_config_files"
23071 config_headers="$ac_config_headers"
23072 config_commands="$ac_config_commands"
23076 cat >>$CONFIG_STATUS <<\_ACEOF
23078 \`$as_me' instantiates files from templates according to the
23079 current configuration.
23081 Usage: $0 [OPTIONS] [FILE]...
23083 -h, --help print this help, then exit
23084 -V, --version print version number, then exit
23085 -q, --quiet do not print progress messages
23086 -d, --debug don't remove temporary files
23087 --recheck update $as_me by reconfiguring in the same conditions
23088 --file=FILE[:TEMPLATE]
23089 instantiate the configuration file FILE
23090 --header=FILE[:TEMPLATE]
23091 instantiate the configuration header FILE
23093 Configuration files:
23096 Configuration headers:
23099 Configuration commands:
23102 Report bugs to <bug-autoconf@gnu.org>."
23105 cat >>$CONFIG_STATUS <<_ACEOF
23107 llvm config.status 3.0svn
23108 configured by $0, generated by GNU Autoconf 2.60,
23109 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23111 Copyright (C) 2006 Free Software Foundation, Inc.
23112 This config.status script is free software; the Free Software Foundation
23113 gives unlimited permission to copy, distribute and modify it."
23120 cat >>$CONFIG_STATUS <<\_ACEOF
23121 # If no file are specified by the user, then we need to provide default
23122 # value. By we need to know if files were specified by the user.
23128 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23129 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23140 # Handling of the options.
23141 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23143 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23144 echo "$ac_cs_version"; exit ;;
23145 --debug | --debu | --deb | --de | --d | -d )
23147 --file | --fil | --fi | --f )
23149 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23150 ac_need_defaults=false;;
23151 --header | --heade | --head | --hea )
23153 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23154 ac_need_defaults=false;;
23156 # Conflict between --help and --header
23157 { echo "$as_me: error: ambiguous option: $1
23158 Try \`$0 --help' for more information." >&2
23159 { (exit 1); exit 1; }; };;
23160 --help | --hel | -h )
23161 echo "$ac_cs_usage"; exit ;;
23162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23163 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23166 # This is an error.
23167 -*) { echo "$as_me: error: unrecognized option: $1
23168 Try \`$0 --help' for more information." >&2
23169 { (exit 1); exit 1; }; } ;;
23171 *) ac_config_targets="$ac_config_targets $1"
23172 ac_need_defaults=false ;;
23178 ac_configure_extra_args=
23180 if $ac_cs_silent; then
23182 ac_configure_extra_args="$ac_configure_extra_args --silent"
23186 cat >>$CONFIG_STATUS <<_ACEOF
23187 if \$ac_cs_recheck; then
23188 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23189 CONFIG_SHELL=$SHELL
23190 export CONFIG_SHELL
23191 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23195 cat >>$CONFIG_STATUS <<\_ACEOF
23199 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23200 ## Running $as_me. ##
23206 cat >>$CONFIG_STATUS <<_ACEOF
23210 llvm_src="${srcdir}"
23214 cat >>$CONFIG_STATUS <<\_ACEOF
23216 # Handling of arguments.
23217 for ac_config_target in $ac_config_targets
23219 case $ac_config_target in
23220 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23221 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23222 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23223 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23224 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23225 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23226 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23227 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23228 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23229 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23230 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
23231 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23232 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23233 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23234 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23235 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23236 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23237 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23238 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23239 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23240 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23241 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23242 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23243 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23244 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23245 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23246 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23248 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23249 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23250 { (exit 1); exit 1; }; };;
23255 # If the user did not use the arguments to specify the items to instantiate,
23256 # then the envvar interface is used. Set only those that are not.
23257 # We use the long form for the default assignment because of an extremely
23258 # bizarre bug on SunOS 4.1.3.
23259 if $ac_need_defaults; then
23260 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23261 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23262 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23265 # Have a temporary directory for convenience. Make it in the build tree
23266 # simply because there is no reason against having it here, and in addition,
23267 # creating and moving files from /tmp can sometimes cause problems.
23268 # Hook for its removal unless debugging.
23269 # Note that there is a small window in which the directory will not be cleaned:
23270 # after its creation but before its name has been assigned to `$tmp'.
23274 trap 'exit_status=$?
23275 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23277 trap '{ (exit 1); exit 1; }' 1 2 13 15
23279 # Create a (secure) tmp directory for tmp files.
23282 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23283 test -n "$tmp" && test -d "$tmp"
23286 tmp=./conf$$-$RANDOM
23287 (umask 077 && mkdir "$tmp")
23290 echo "$me: cannot create a temporary directory in ." >&2
23291 { (exit 1); exit 1; }
23295 # Set up the sed scripts for CONFIG_FILES section.
23298 # No need to generate the scripts if there are no CONFIG_FILES.
23299 # This happens for instance when ./config.status config.h
23300 if test -n "$CONFIG_FILES"; then
23307 for ac_last_try in false false false false false :; do
23308 cat >conf$$subs.sed <<_ACEOF
23309 SHELL!$SHELL$ac_delim
23310 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23311 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23312 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23313 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23314 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23315 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23316 exec_prefix!$exec_prefix$ac_delim
23317 prefix!$prefix$ac_delim
23318 program_transform_name!$program_transform_name$ac_delim
23319 bindir!$bindir$ac_delim
23320 sbindir!$sbindir$ac_delim
23321 libexecdir!$libexecdir$ac_delim
23322 datarootdir!$datarootdir$ac_delim
23323 datadir!$datadir$ac_delim
23324 sysconfdir!$sysconfdir$ac_delim
23325 sharedstatedir!$sharedstatedir$ac_delim
23326 localstatedir!$localstatedir$ac_delim
23327 includedir!$includedir$ac_delim
23328 oldincludedir!$oldincludedir$ac_delim
23329 docdir!$docdir$ac_delim
23330 infodir!$infodir$ac_delim
23331 htmldir!$htmldir$ac_delim
23332 dvidir!$dvidir$ac_delim
23333 pdfdir!$pdfdir$ac_delim
23334 psdir!$psdir$ac_delim
23335 libdir!$libdir$ac_delim
23336 localedir!$localedir$ac_delim
23337 mandir!$mandir$ac_delim
23338 DEFS!$DEFS$ac_delim
23339 ECHO_C!$ECHO_C$ac_delim
23340 ECHO_N!$ECHO_N$ac_delim
23341 ECHO_T!$ECHO_T$ac_delim
23342 LIBS!$LIBS$ac_delim
23343 build_alias!$build_alias$ac_delim
23344 host_alias!$host_alias$ac_delim
23345 target_alias!$target_alias$ac_delim
23346 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23347 subdirs!$subdirs$ac_delim
23348 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23349 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23350 build!$build$ac_delim
23351 build_cpu!$build_cpu$ac_delim
23352 build_vendor!$build_vendor$ac_delim
23353 build_os!$build_os$ac_delim
23354 host!$host$ac_delim
23355 host_cpu!$host_cpu$ac_delim
23356 host_vendor!$host_vendor$ac_delim
23357 host_os!$host_os$ac_delim
23358 target!$target$ac_delim
23359 target_cpu!$target_cpu$ac_delim
23360 target_vendor!$target_vendor$ac_delim
23361 target_os!$target_os$ac_delim
23363 HOST_OS!$HOST_OS$ac_delim
23364 TARGET_OS!$TARGET_OS$ac_delim
23365 LINKALL!$LINKALL$ac_delim
23366 NOLINKALL!$NOLINKALL$ac_delim
23367 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23368 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23369 ARCH!$ARCH$ac_delim
23370 ENDIAN!$ENDIAN$ac_delim
23372 CFLAGS!$CFLAGS$ac_delim
23373 LDFLAGS!$LDFLAGS$ac_delim
23374 CPPFLAGS!$CPPFLAGS$ac_delim
23375 ac_ct_CC!$ac_ct_CC$ac_delim
23376 EXEEXT!$EXEEXT$ac_delim
23377 OBJEXT!$OBJEXT$ac_delim
23379 GREP!$GREP$ac_delim
23380 EGREP!$EGREP$ac_delim
23381 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23382 BUILD_CC!$BUILD_CC$ac_delim
23383 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23384 BUILD_CXX!$BUILD_CXX$ac_delim
23385 CVSBUILD!$CVSBUILD$ac_delim
23386 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23387 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23388 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23389 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23390 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23391 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23392 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23394 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23395 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23396 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23397 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23398 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23399 ENABLE_PIC!$ENABLE_PIC$ac_delim
23400 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23401 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23402 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23403 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23404 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23405 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23408 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23410 elif $ac_last_try; then
23411 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23412 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23413 { (exit 1); exit 1; }; }
23415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23419 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23420 if test -n "$ac_eof"; then
23421 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23422 ac_eof=`expr $ac_eof + 1`
23425 cat >>$CONFIG_STATUS <<_ACEOF
23426 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23430 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23431 s/^/s,@/; s/!/@,|#_!!_#|/
23434 s/'"$ac_delim"'$/,g/; t
23436 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23437 ' >>$CONFIG_STATUS <conf$$subs.sed
23438 rm -f conf$$subs.sed
23439 cat >>$CONFIG_STATUS <<_ACEOF
23445 for ac_last_try in false false false false false :; do
23446 cat >conf$$subs.sed <<_ACEOF
23447 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23448 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23449 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23450 CLANGPATH!$CLANGPATH$ac_delim
23451 CLANGXXPATH!$CLANGXXPATH$ac_delim
23452 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23453 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23454 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23455 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23456 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23458 CXXFLAGS!$CXXFLAGS$ac_delim
23459 ac_ct_CXX!$ac_ct_CXX$ac_delim
23461 ifGNUmake!$ifGNUmake$ac_delim
23462 LN_S!$LN_S$ac_delim
23465 DATE!$DATE$ac_delim
23466 FIND!$FIND$ac_delim
23467 MKDIR!$MKDIR$ac_delim
23469 RANLIB!$RANLIB$ac_delim
23474 BINPWD!$BINPWD$ac_delim
23475 GRAPHVIZ!$GRAPHVIZ$ac_delim
23478 NEATO!$NEATO$ac_delim
23479 TWOPI!$TWOPI$ac_delim
23480 CIRCO!$CIRCO$ac_delim
23482 DOTTY!$DOTTY$ac_delim
23483 XDOT_PY!$XDOT_PY$ac_delim
23484 PERL!$PERL$ac_delim
23485 HAVE_PERL!$HAVE_PERL$ac_delim
23486 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23487 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23488 INSTALL_DATA!$INSTALL_DATA$ac_delim
23489 BZIP2!$BZIP2$ac_delim
23491 DOXYGEN!$DOXYGEN$ac_delim
23492 GROFF!$GROFF$ac_delim
23493 GZIPBIN!$GZIPBIN$ac_delim
23494 POD2HTML!$POD2HTML$ac_delim
23495 POD2MAN!$POD2MAN$ac_delim
23496 PDFROFF!$PDFROFF$ac_delim
23497 RUNTEST!$RUNTEST$ac_delim
23498 TCLSH!$TCLSH$ac_delim
23500 OCAMLC!$OCAMLC$ac_delim
23501 OCAMLOPT!$OCAMLOPT$ac_delim
23502 OCAMLDEP!$OCAMLDEP$ac_delim
23503 OCAMLDOC!$OCAMLDOC$ac_delim
23505 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23506 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23507 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23508 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23509 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23510 LIBADD_DL!$LIBADD_DL$ac_delim
23511 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23512 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23513 LLVMGCC!$LLVMGCC$ac_delim
23514 LLVMGXX!$LLVMGXX$ac_delim
23515 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23516 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23517 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23518 USE_UDIS86!$USE_UDIS86$ac_delim
23519 USE_OPROFILE!$USE_OPROFILE$ac_delim
23520 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23521 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23522 MMAP_FILE!$MMAP_FILE$ac_delim
23523 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23524 LLVMCC1!$LLVMCC1$ac_delim
23525 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23526 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23527 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23528 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23529 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23530 SHLIBEXT!$SHLIBEXT$ac_delim
23531 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23532 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23533 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23534 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23535 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23536 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23537 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23538 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23539 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23540 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23541 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23542 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23543 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23546 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23548 elif $ac_last_try; then
23549 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23550 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23551 { (exit 1); exit 1; }; }
23553 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23557 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23558 if test -n "$ac_eof"; then
23559 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23560 ac_eof=`expr $ac_eof + 1`
23563 cat >>$CONFIG_STATUS <<_ACEOF
23564 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23568 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23569 s/^/s,@/; s/!/@,|#_!!_#|/
23572 s/'"$ac_delim"'$/,g/; t
23574 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23575 ' >>$CONFIG_STATUS <conf$$subs.sed
23576 rm -f conf$$subs.sed
23577 cat >>$CONFIG_STATUS <<_ACEOF
23583 for ac_last_try in false false false false false :; do
23584 cat >conf$$subs.sed <<_ACEOF
23585 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23586 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23587 RPATH!$RPATH$ac_delim
23588 RDYNAMIC!$RDYNAMIC$ac_delim
23589 LIBOBJS!$LIBOBJS$ac_delim
23590 LTLIBOBJS!$LTLIBOBJS$ac_delim
23593 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23595 elif $ac_last_try; then
23596 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23597 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23598 { (exit 1); exit 1; }; }
23600 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23604 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23605 if test -n "$ac_eof"; then
23606 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23607 ac_eof=`expr $ac_eof + 1`
23610 cat >>$CONFIG_STATUS <<_ACEOF
23611 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23615 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23616 s/^/s,@/; s/!/@,|#_!!_#|/
23619 s/'"$ac_delim"'$/,g/; t
23621 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23622 ' >>$CONFIG_STATUS <conf$$subs.sed
23623 rm -f conf$$subs.sed
23624 cat >>$CONFIG_STATUS <<_ACEOF
23631 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23632 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23633 # trailing colons and then remove the whole line if VPATH becomes empty
23634 # (actually we leave an empty line to preserve line numbers).
23635 if test "x$srcdir" = x.; then
23636 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23637 s/:*\$(srcdir):*/:/
23638 s/:*\${srcdir}:*/:/
23640 s/^\([^=]*=[ ]*\):*/\1/
23646 cat >>$CONFIG_STATUS <<\_ACEOF
23647 fi # test -n "$CONFIG_FILES"
23650 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23653 :[FHLC]) ac_mode=$ac_tag; continue;;
23655 case $ac_mode$ac_tag in
23657 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23658 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23659 { (exit 1); exit 1; }; };;
23660 :[FH]-) ac_tag=-:-;;
23661 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23678 -) ac_f="$tmp/stdin";;
23679 *) # Look for the file first in the build tree, then in the source tree
23680 # (if the path is not absolute). The absolute path cannot be DOS-style,
23681 # because $ac_f cannot contain `:'.
23685 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23687 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23688 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23689 { (exit 1); exit 1; }; };;
23691 ac_file_inputs="$ac_file_inputs $ac_f"
23694 # Let's still pretend it is `configure' which instantiates (i.e., don't
23695 # use $as_me), people would be surprised to read:
23696 # /* config.h. Generated by config.status. */
23697 configure_input="Generated from "`IFS=:
23698 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23699 if test x"$ac_file" != x-; then
23700 configure_input="$ac_file. $configure_input"
23701 { echo "$as_me:$LINENO: creating $ac_file" >&5
23702 echo "$as_me: creating $ac_file" >&6;}
23706 *:-:* | *:-) cat >"$tmp/stdin";;
23711 ac_dir=`$as_dirname -- "$ac_file" ||
23712 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23713 X"$ac_file" : 'X\(//\)[^/]' \| \
23714 X"$ac_file" : 'X\(//\)$' \| \
23715 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23721 /^X\(\/\/\)[^/].*/{
23736 -*) as_dir=./$as_dir;;
23738 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23742 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23743 *) as_qdir=$as_dir;;
23745 as_dirs="'$as_qdir' $as_dirs"
23746 as_dir=`$as_dirname -- "$as_dir" ||
23747 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23748 X"$as_dir" : 'X\(//\)[^/]' \| \
23749 X"$as_dir" : 'X\(//\)$' \| \
23750 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23756 /^X\(\/\/\)[^/].*/{
23769 test -d "$as_dir" && break
23771 test -z "$as_dirs" || eval "mkdir $as_dirs"
23772 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23773 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23774 { (exit 1); exit 1; }; }; }
23778 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23780 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23781 # A ".." for each directory in $ac_dir_suffix.
23782 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23783 case $ac_top_builddir_sub in
23784 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23785 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23788 ac_abs_top_builddir=$ac_pwd
23789 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23790 # for backward compatibility:
23791 ac_top_builddir=$ac_top_build_prefix
23794 .) # We are building in place.
23796 ac_top_srcdir=$ac_top_builddir_sub
23797 ac_abs_top_srcdir=$ac_pwd ;;
23798 [\\/]* | ?:[\\/]* ) # Absolute name.
23799 ac_srcdir=$srcdir$ac_dir_suffix;
23800 ac_top_srcdir=$srcdir
23801 ac_abs_top_srcdir=$srcdir ;;
23802 *) # Relative name.
23803 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23804 ac_top_srcdir=$ac_top_build_prefix$srcdir
23805 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23807 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23817 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23818 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23822 cat >>$CONFIG_STATUS <<\_ACEOF
23823 # If the template does not know about datarootdir, expand it.
23824 # FIXME: This hack should be removed a few years after 2.60.
23825 ac_datarootdir_hack=; ac_datarootdir_seen=
23827 case `sed -n '/datarootdir/ {
23836 ' $ac_file_inputs` in
23837 *datarootdir*) ac_datarootdir_seen=yes;;
23838 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23839 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23840 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23842 cat >>$CONFIG_STATUS <<_ACEOF
23843 ac_datarootdir_hack='
23844 s&@datadir@&$datadir&g
23845 s&@docdir@&$docdir&g
23846 s&@infodir@&$infodir&g
23847 s&@localedir@&$localedir&g
23848 s&@mandir@&$mandir&g
23849 s&\\\${datarootdir}&$datarootdir&g' ;;
23853 # Neutralize VPATH when `$srcdir' = `.'.
23854 # Shell code in configure.ac might set extrasub.
23855 # FIXME: do we really want to maintain this feature?
23856 cat >>$CONFIG_STATUS <<_ACEOF
23860 cat >>$CONFIG_STATUS <<\_ACEOF
23862 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23863 s&@configure_input@&$configure_input&;t t
23864 s&@top_builddir@&$ac_top_builddir_sub&;t t
23865 s&@srcdir@&$ac_srcdir&;t t
23866 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23867 s&@top_srcdir@&$ac_top_srcdir&;t t
23868 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23869 s&@builddir@&$ac_builddir&;t t
23870 s&@abs_builddir@&$ac_abs_builddir&;t t
23871 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23872 s&@INSTALL@&$ac_INSTALL&;t t
23873 $ac_datarootdir_hack
23874 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23876 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23877 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23878 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23879 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23880 which seems to be undefined. Please make sure it is defined." >&5
23881 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23882 which seems to be undefined. Please make sure it is defined." >&2;}
23886 -) cat "$tmp/out"; rm -f "$tmp/out";;
23887 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23896 # Transform confdefs.h into a sed script `conftest.defines', that
23897 # substitutes the proper values into config.h.in to produce config.h.
23898 rm -f conftest.defines conftest.tail
23899 # First, append a space to every undef/define line, to ease matching.
23900 echo 's/$/ /' >conftest.defines
23901 # Then, protect against being on the right side of a sed subst, or in
23902 # an unquoted here document, in config.status. If some macros were
23903 # called several times there might be several #defines for the same
23904 # symbol, which is useless. But do not sort them, since the last
23905 # AC_DEFINE must be honored.
23906 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23907 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23908 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23909 # PARAMS is the parameter list in the macro definition--in most cases, it's
23910 # just an empty string.
23911 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23912 ac_dB='\\)[ (].*,\\1define\\2'
23920 s/^[ ]*#[ ]*define[ ][ ]*//
23925 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23926 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23927 ' >>conftest.defines
23929 # Remove the space that was appended to ease matching.
23930 # Then replace #undef with comments. This is necessary, for
23931 # example, in the case of _POSIX_SOURCE, which is predefined and required
23932 # on some systems where configure will not decide to define it.
23933 # (The regexp can be short, since the line contains either #define or #undef.)
23935 s,^[ #]*u.*,/* & */,' >>conftest.defines
23937 # Break up conftest.defines:
23938 ac_max_sed_lines=50
23940 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23941 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23942 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23944 ac_in='$ac_file_inputs'
23945 ac_out='"$tmp/out1"'
23946 ac_nxt='"$tmp/out2"'
23950 # Write a here document:
23951 cat >>$CONFIG_STATUS <<_ACEOF
23952 # First, check the format of the line:
23953 cat >"\$tmp/defines.sed" <<\\CEOF
23954 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23955 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23959 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23961 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23962 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23963 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23964 grep . conftest.tail >/dev/null || break
23965 rm -f conftest.defines
23966 mv conftest.tail conftest.defines
23968 rm -f conftest.defines conftest.tail
23970 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23971 cat >>$CONFIG_STATUS <<\_ACEOF
23972 if test x"$ac_file" != x-; then
23973 echo "/* $configure_input */" >"$tmp/config.h"
23974 cat "$ac_result" >>"$tmp/config.h"
23975 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23976 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23977 echo "$as_me: $ac_file is unchanged" >&6;}
23980 mv "$tmp/config.h" $ac_file
23983 echo "/* $configure_input */"
23989 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23990 echo "$as_me: executing $ac_file commands" >&6;}
23995 case $ac_file$ac_mode in
23996 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23998 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24000 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24001 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24002 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24004 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24005 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24006 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24007 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24008 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24009 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24010 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24011 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24012 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24013 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24014 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24015 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24016 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24017 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24018 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24019 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24020 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24021 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24027 { (exit 0); exit 0; }
24029 chmod +x $CONFIG_STATUS
24030 ac_clean_files=$ac_clean_files_save
24033 # configure is writing to config.log, and then calls config.status.
24034 # config.status does its own redirection, appending to config.log.
24035 # Unfortunately, on DOS this fails, as config.log is still kept open
24036 # by configure, so config.status won't be able to write to it; its
24037 # output is simply discarded. So we exec the FD to /dev/null,
24038 # effectively closing config.log, so it can be properly (re)opened and
24039 # appended to by config.status. When coming back to configure, we
24040 # need to make the FD available again.
24041 if test "$no_create" != yes; then
24043 ac_config_status_args=
24044 test "$silent" = yes &&
24045 ac_config_status_args="$ac_config_status_args --quiet"
24047 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24049 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24050 # would make configure fail if this is the last instruction.
24051 $ac_cs_success || { (exit 1); exit 1; }
24055 # CONFIG_SUBDIRS section.
24057 if test "$no_recursion" != yes; then
24059 # Remove --cache-file and --srcdir arguments so they do not pile up.
24060 ac_sub_configure_args=
24062 eval "set x $ac_configure_args"
24066 if test -n "$ac_prev"; then
24071 -cache-file | --cache-file | --cache-fil | --cache-fi \
24072 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24073 ac_prev=cache_file ;;
24074 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24075 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24078 --config-cache | -C)
24080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24090 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24092 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24096 # Always prepend --prefix to ensure using the same prefix
24097 # in subdir configurations.
24098 ac_arg="--prefix=$prefix"
24100 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24102 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24105 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24107 # Do not complain, so a configure script can configure whichever
24108 # parts of a large source tree are present.
24109 test -d "$srcdir/$ac_dir" || continue
24111 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24112 echo "$as_me:$LINENO: $ac_msg" >&5
24116 -*) as_dir=./$as_dir;;
24118 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24122 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24123 *) as_qdir=$as_dir;;
24125 as_dirs="'$as_qdir' $as_dirs"
24126 as_dir=`$as_dirname -- "$as_dir" ||
24127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24128 X"$as_dir" : 'X\(//\)[^/]' \| \
24129 X"$as_dir" : 'X\(//\)$' \| \
24130 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24136 /^X\(\/\/\)[^/].*/{
24149 test -d "$as_dir" && break
24151 test -z "$as_dirs" || eval "mkdir $as_dirs"
24152 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24153 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24154 { (exit 1); exit 1; }; }; }
24158 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24160 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24161 # A ".." for each directory in $ac_dir_suffix.
24162 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24163 case $ac_top_builddir_sub in
24164 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24165 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24168 ac_abs_top_builddir=$ac_pwd
24169 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24170 # for backward compatibility:
24171 ac_top_builddir=$ac_top_build_prefix
24174 .) # We are building in place.
24176 ac_top_srcdir=$ac_top_builddir_sub
24177 ac_abs_top_srcdir=$ac_pwd ;;
24178 [\\/]* | ?:[\\/]* ) # Absolute name.
24179 ac_srcdir=$srcdir$ac_dir_suffix;
24180 ac_top_srcdir=$srcdir
24181 ac_abs_top_srcdir=$srcdir ;;
24182 *) # Relative name.
24183 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24184 ac_top_srcdir=$ac_top_build_prefix$srcdir
24185 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24187 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24192 # Check for guested configure; otherwise get Cygnus style configure.
24193 if test -f "$ac_srcdir/configure.gnu"; then
24194 ac_sub_configure=$ac_srcdir/configure.gnu
24195 elif test -f "$ac_srcdir/configure"; then
24196 ac_sub_configure=$ac_srcdir/configure
24197 elif test -f "$ac_srcdir/configure.in"; then
24198 # This should be Cygnus configure.
24199 ac_sub_configure=$ac_aux_dir/configure
24201 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24202 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24206 # The recursion is here.
24207 if test -n "$ac_sub_configure"; then
24208 # Make the cache file name correct relative to the subdirectory.
24209 case $cache_file in
24210 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24211 *) # Relative name.
24212 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24215 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24216 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24217 # The eval makes quoting arguments work.
24218 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24219 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24220 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24221 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24222 { (exit 1); exit 1; }; }