2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.0svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='3.0svn'
565 PACKAGE_STRING='llvm 3.0svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
685 ENABLE_EXPENSIVE_CHECKS
701 LLVM_ENUM_ASM_PRINTERS
702 LLVM_ENUM_ASM_PARSERS
703 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
772 NO_MISSING_FIELD_INITIALIZERS
784 LLVMCC_DISABLEOPT_FLAGS
800 ENABLE_VISIBILITY_INLINES_HIDDEN
806 ac_precious_vars='build_alias
817 ac_subdirs_all='projects/llvm-gcc
821 projects/llvm-poolalloc
824 projects/llvm-stacker
832 # Initialize some variables set by options.
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
844 program_transform_name=s,x,x,
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 -enable-* | --enable-*)
952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
973 -help | --help | --hel | --he | -h)
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1122 -site=* | --site=* | --sit=*)
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
1167 # Obsolete; use --with-x.
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
1215 # Be sure to have absolute directory names.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1332 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of llvm 3.0svn:";;
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-polly Use polly if available (default is YES)
1406 --enable-optimized Compile with optimizations enabled (default is NO)
1407 --enable-profiling Compile with profiling enabled (default is NO)
1408 --enable-assertions Compile with assertion checks enabled (default is
1410 --enable-expensive-checks
1411 Compile with expensive debug checks enabled (default
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
1417 --enable-jit Enable Just In Time Compiling (default is YES)
1418 --enable-docs Build documents (default is YES)
1419 --enable-doxygen Build doxygen documentation (default is NO)
1420 --enable-threads Use threads if available (default is YES)
1421 --enable-pthreads Use pthreads if available (default is YES)
1422 --enable-pic Build LLVM with Position Independent Code (default
1424 --enable-shared Build a shared library and link tools against it
1426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is YES)
1428 --enable-timestamps Enable embedding timestamp information in build
1430 --enable-targets Build specific host targets: all or
1431 target1,target2,... Valid targets are: host, x86,
1432 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1435 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1437 --enable-bindings Build specific language bindings:
1438 all,auto,none,{binding-name} (default=auto)
1439 --enable-libffi Check for the presence of libffi (default is NO)
1440 --enable-ltdl-install install libltdl
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1445 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1447 --with-llvmgcc Specify location of llvm-gcc driver (default
1449 --with-llvmgxx Specify location of llvm-g++ driver (default
1451 --with-clang Specify location of clang compiler (default is
1453 --with-built-clang Use the compiled Clang as the LLVM compiler
1455 --with-optimize-option Select the compiler options to use for optimized
1457 --with-extra-options Specify additional options to compile LLVM with
1458 --with-extra-ld-options Specify additional options to link LLVM with
1459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1464 --with-c-include-dirs Colon separated list of directories clang will
1466 --with-cxx-include-root Directory with the libstdc++ headers.
1467 --with-cxx-include-arch Architecture of the libstdc++ headers.
1468 --with-cxx-include-32bit-dir
1469 32 bit multilib dir.
1470 --with-cxx-include-64bit-dir
1471 64 bit multilib directory.
1472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
1474 --with-bug-report-url Specify the URL where bug reports should be
1475 submitted (default=http://llvm.org/bugs/)
1476 --with-tclinclude directory where tcl headers are
1477 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1478 clang, or none; default=check)
1479 --with-udis86=<path> Use udis86 external x86 disassembler library
1480 --with-oprofile=<prefix>
1481 Tell OProfile >= 0.9.4 how to symbolize JIT output
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1491 CXX C++ compiler command
1492 CXXFLAGS C++ compiler flags
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1497 Report bugs to <llvmbugs@cs.uiuc.edu>.
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" || continue
1509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1512 # A ".." for each directory in $ac_dir_suffix.
1513 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 ac_abs_top_builddir=$ac_pwd
1520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521 # for backward compatibility:
1522 ac_top_builddir=$ac_top_build_prefix
1525 .) # We are building in place.
1527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
1530 ac_srcdir=$srcdir$ac_dir_suffix;
1531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1547 $SHELL "$ac_srcdir/configure" --help=recursive
1549 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 cd "$ac_pwd" || { ac_status=$?; break; }
1555 test -n "$ac_init_help" && exit $ac_status
1556 if $ac_init_version; then
1558 llvm configure 3.0svn
1559 generated by GNU Autoconf 2.60
1561 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1562 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1566 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1570 cat >config.log <<_ACEOF
1571 This file contains any messages produced by compilers while
1572 running configure, to aid debugging if configure makes a mistake.
1574 It was created by llvm $as_me 3.0svn, which was
1575 generated by GNU Autoconf 2.60. Invocation command line was
1587 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1593 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1596 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1597 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1598 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1599 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1600 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1601 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1602 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir=.
1611 echo "PATH: $as_dir"
1627 # Keep a trace of the command line.
1628 # Strip out --no-create and --no-recursion so they do not pile up.
1629 # Strip out --silent because we don't want to record it for future runs.
1630 # Also quote any args containing shell meta-characters.
1631 # Make two passes to allow for proper duplicate-argument suppression.
1635 ac_must_keep_next=false
1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643 | -silent | --silent | --silen | --sile | --sil)
1646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1651 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1652 if test $ac_must_keep_next = true; then
1653 ac_must_keep_next=false # Got value, back to normal.
1656 *=* | --config-cache | -C | -disable-* | --disable-* \
1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659 | -with-* | --with-* | -without-* | --without-* | --x)
1660 case "$ac_configure_args0 " in
1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1664 -* ) ac_must_keep_next=true ;;
1667 ac_configure_args="$ac_configure_args '$ac_arg'"
1672 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1675 # When interrupted or exit'd, cleanup temporary files, and complete
1676 # config.log. We remove comments because anyway the quotes in there
1677 # would cause problems or look ugly.
1678 # WARNING: Use '\'' to represent an apostrophe within the trap.
1679 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1680 trap 'exit_status=$?
1681 # Save into config.log some information that might help in debugging.
1686 ## ---------------- ##
1687 ## Cache variables. ##
1688 ## ---------------- ##
1691 # The following way of writing the cache mishandles newlines in values,
1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694 eval ac_val=\$$ac_var
1698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1702 _ | IFS | as_nl) ;; #(
1703 *) $as_unset $ac_var ;;
1708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709 *${as_nl}ac_space=\ *)
1711 "s/'\''/'\''\\\\'\'''\''/g;
1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1723 ## ----------------- ##
1724 ## Output variables. ##
1725 ## ----------------- ##
1728 for ac_var in $ac_subst_vars
1730 eval ac_val=\$$ac_var
1732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 echo "$ac_var='\''$ac_val'\''"
1738 if test -n "$ac_subst_files"; then
1740 ## ------------------- ##
1741 ## File substitutions. ##
1742 ## ------------------- ##
1745 for ac_var in $ac_subst_files
1747 eval ac_val=\$$ac_var
1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751 echo "$ac_var='\''$ac_val'\''"
1756 if test -s confdefs.h; then
1766 test "$ac_signal" != 0 &&
1767 echo "$as_me: caught signal $ac_signal"
1768 echo "$as_me: exit $exit_status"
1770 rm -f core *.core core.conftest.* &&
1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1774 for ac_signal in 1 2 13 15; do
1775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1779 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1780 rm -f -r conftest* confdefs.h
1782 # Predefined preprocessor variables.
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_NAME "$PACKAGE_NAME"
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_STRING "$PACKAGE_STRING"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1809 # Let the site file select an alternate cache file if it wants to.
1810 # Prefer explicitly selected file to automatically selected ones.
1811 if test -n "$CONFIG_SITE"; then
1812 set x "$CONFIG_SITE"
1813 elif test "x$prefix" != xNONE; then
1814 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1816 set x "$ac_default_prefix/share/config.site" \
1817 "$ac_default_prefix/etc/config.site"
1822 if test -r "$ac_site_file"; then
1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824 echo "$as_me: loading site script $ac_site_file" >&6;}
1825 sed 's/^/| /' "$ac_site_file" >&5
1830 if test -r "$cache_file"; then
1831 # Some versions of bash will fail to source /dev/null (special
1832 # files actually), so we avoid doing that.
1833 if test -f "$cache_file"; then
1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835 echo "$as_me: loading cache $cache_file" >&6;}
1837 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838 *) . "./$cache_file";;
1842 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843 echo "$as_me: creating cache $cache_file" >&6;}
1847 # Check that the precious variables saved in the cache have kept the same
1849 ac_cache_corrupted=false
1850 for ac_var in $ac_precious_vars; do
1851 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852 eval ac_new_set=\$ac_env_${ac_var}_set
1853 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854 eval ac_new_val=\$ac_env_${ac_var}_value
1855 case $ac_old_set,$ac_new_set in
1857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1859 ac_cache_corrupted=: ;;
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1866 if test "x$ac_old_val" != "x$ac_new_val"; then
1867 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1870 echo "$as_me: former value: $ac_old_val" >&2;}
1871 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1872 echo "$as_me: current value: $ac_new_val" >&2;}
1873 ac_cache_corrupted=:
1876 # Pass precious variables to config.status.
1877 if test "$ac_new_set" = set; then
1879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1880 *) ac_arg=$ac_var=$ac_new_val ;;
1882 case " $ac_configure_args " in
1883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1884 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1888 if $ac_cache_corrupted; then
1889 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893 { (exit 1); exit 1; }; }
1921 ac_cpp='$CPP $CPPFLAGS'
1922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1928 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1937 for ac_dir in autoconf "$srcdir"/autoconf; do
1938 if test -f "$ac_dir/install-sh"; then
1940 ac_install_sh="$ac_aux_dir/install-sh -c"
1942 elif test -f "$ac_dir/install.sh"; then
1944 ac_install_sh="$ac_aux_dir/install.sh -c"
1946 elif test -f "$ac_dir/shtool"; then
1948 ac_install_sh="$ac_aux_dir/shtool install -c"
1952 if test -z "$ac_aux_dir"; then
1953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955 { (exit 1); exit 1; }; }
1958 # These three variables are undocumented and unsupported,
1959 # and are intended to be withdrawn in a future Autoconf release.
1960 # They can cause serious problems if a builder's source tree is in a directory
1961 # whose full name contains unusual characters.
1962 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1963 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1964 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968 if test ${srcdir} != "." ; then
1969 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1970 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1971 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1972 { (exit 1); exit 1; }; }
1978 if test -d ${srcdir}/projects/llvm-gcc ; then
1979 subdirs="$subdirs projects/llvm-gcc"
1983 if test -d ${srcdir}/projects/test-suite ; then
1984 subdirs="$subdirs projects/test-suite"
1988 if test -d ${srcdir}/projects/llvm-test ; then
1989 subdirs="$subdirs projects/llvm-test"
1993 if test -d ${srcdir}/projects/poolalloc ; then
1994 subdirs="$subdirs projects/poolalloc"
1998 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1999 subdirs="$subdirs projects/llvm-poolalloc"
2003 for i in `ls ${srcdir}/projects`
2005 if test -d ${srcdir}/projects/${i} ; then
2007 sample) subdirs="$subdirs projects/sample"
2009 privbracket) subdirs="$subdirs projects/privbracket"
2011 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2013 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2015 llvm-java) subdirs="$subdirs projects/llvm-java"
2017 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2019 safecode) subdirs="$subdirs projects/safecode"
2021 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2029 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2030 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2036 # Check whether --enable-polly was given.
2037 if test "${enable_polly+set}" = set; then
2038 enableval=$enable_polly;
2043 case "$enableval" in
2048 default) ENABLE_POLLY=1
2050 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2051 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2052 { (exit 1); exit 1; }; } ;;
2056 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2059 subdirs="$subdirs tools/polly"
2064 # Make sure we can run config.sub.
2065 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2066 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2067 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2068 { (exit 1); exit 1; }; }
2070 { echo "$as_me:$LINENO: checking build system type" >&5
2071 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2072 if test "${ac_cv_build+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 ac_build_alias=$build_alias
2076 test "x$ac_build_alias" = x &&
2077 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2078 test "x$ac_build_alias" = x &&
2079 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2080 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2081 { (exit 1); exit 1; }; }
2082 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2083 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2084 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2085 { (exit 1); exit 1; }; }
2088 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2089 echo "${ECHO_T}$ac_cv_build" >&6; }
2090 case $ac_cv_build in
2092 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2093 echo "$as_me: error: invalid value of canonical build" >&2;}
2094 { (exit 1); exit 1; }; };;
2097 ac_save_IFS=$IFS; IFS='-'
2103 # Remember, the first character of IFS is used to create $*,
2104 # except with old shells:
2107 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2110 { echo "$as_me:$LINENO: checking host system type" >&5
2111 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2112 if test "${ac_cv_host+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 if test "x$host_alias" = x; then
2116 ac_cv_host=$ac_cv_build
2118 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2119 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2120 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2121 { (exit 1); exit 1; }; }
2125 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2126 echo "${ECHO_T}$ac_cv_host" >&6; }
2129 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2130 echo "$as_me: error: invalid value of canonical host" >&2;}
2131 { (exit 1); exit 1; }; };;
2134 ac_save_IFS=$IFS; IFS='-'
2140 # Remember, the first character of IFS is used to create $*,
2141 # except with old shells:
2144 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2147 { echo "$as_me:$LINENO: checking target system type" >&5
2148 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2149 if test "${ac_cv_target+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 if test "x$target_alias" = x; then
2153 ac_cv_target=$ac_cv_host
2155 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2156 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2157 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2158 { (exit 1); exit 1; }; }
2162 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2163 echo "${ECHO_T}$ac_cv_target" >&6; }
2164 case $ac_cv_target in
2166 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2167 echo "$as_me: error: invalid value of canonical target" >&2;}
2168 { (exit 1); exit 1; }; };;
2170 target=$ac_cv_target
2171 ac_save_IFS=$IFS; IFS='-'
2177 # Remember, the first character of IFS is used to create $*,
2178 # except with old shells:
2181 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2184 # The aliases save the names the user supplied, while $host etc.
2185 # will get canonicalized.
2186 test -n "$target_alias" &&
2187 test "$program_prefix$program_suffix$program_transform_name" = \
2189 program_prefix=${target_alias}-
2191 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2192 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2193 if test "${llvm_cv_os_type+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 llvm_cv_link_all_option="-Wl,--whole-archive"
2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2200 llvm_cv_os_type="AIX"
2201 llvm_cv_platform_type="Unix" ;;
2203 llvm_cv_link_all_option="-Wl,--whole-archive"
2204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2205 llvm_cv_os_type="IRIX"
2206 llvm_cv_platform_type="Unix" ;;
2208 llvm_cv_link_all_option="-Wl,--whole-archive"
2209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2210 llvm_cv_os_type="Cygwin"
2211 llvm_cv_platform_type="Unix" ;;
2213 llvm_cv_link_all_option="-Wl,-all_load"
2214 llvm_cv_no_link_all_option="-Wl,-noall_load"
2215 llvm_cv_os_type="Darwin"
2216 llvm_cv_platform_type="Unix" ;;
2218 llvm_cv_link_all_option="-Wl,-all_load"
2219 llvm_cv_no_link_all_option="-Wl,-noall_load"
2220 llvm_cv_os_type="Minix"
2221 llvm_cv_platform_type="Unix" ;;
2223 llvm_cv_link_all_option="-Wl,--whole-archive"
2224 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2225 llvm_cv_os_type="FreeBSD"
2226 llvm_cv_platform_type="Unix" ;;
2228 llvm_cv_link_all_option="-Wl,--whole-archive"
2229 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2230 llvm_cv_os_type="OpenBSD"
2231 llvm_cv_platform_type="Unix" ;;
2233 llvm_cv_link_all_option="-Wl,--whole-archive"
2234 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2235 llvm_cv_os_type="NetBSD"
2236 llvm_cv_platform_type="Unix" ;;
2238 llvm_cv_link_all_option="-Wl,--whole-archive"
2239 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2240 llvm_cv_os_type="DragonFly"
2241 llvm_cv_platform_type="Unix" ;;
2243 llvm_cv_link_all_option="-Wl,--whole-archive"
2244 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2245 llvm_cv_os_type="HP-UX"
2246 llvm_cv_platform_type="Unix" ;;
2248 llvm_cv_link_all_option="-Wl,--whole-archive"
2249 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2250 llvm_cv_os_type="Interix"
2251 llvm_cv_platform_type="Unix" ;;
2253 llvm_cv_link_all_option="-Wl,--whole-archive"
2254 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2255 llvm_cv_os_type="Linux"
2256 llvm_cv_platform_type="Unix" ;;
2258 llvm_cv_link_all_option="-Wl,-z,allextract"
2259 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2260 llvm_cv_os_type="SunOS"
2261 llvm_cv_platform_type="Unix" ;;
2263 llvm_cv_link_all_option="-Wl,-z,allextract"
2264 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2265 llvm_cv_os_type="AuroraUX"
2266 llvm_cv_platform_type="Unix" ;;
2268 llvm_cv_link_all_option="-Wl,--whole-archive"
2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2270 llvm_cv_os_type="Win32"
2271 llvm_cv_platform_type="Win32" ;;
2273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275 llvm_cv_os_type="MingW"
2276 llvm_cv_platform_type="Win32" ;;
2278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280 llvm_cv_os_type="Haiku"
2281 llvm_cv_platform_type="Unix" ;;
2283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285 llvm_cv_os_type="Freestanding"
2286 llvm_cv_platform_type="Unix" ;;
2288 llvm_cv_link_all_option="-Wl,--whole-archive"
2289 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290 llvm_cv_os_type="Freestanding"
2291 llvm_cv_platform_type="Unix" ;;
2293 llvm_cv_link_all_option=""
2294 llvm_cv_no_link_all_option=""
2295 llvm_cv_os_type="Unknown"
2296 llvm_cv_platform_type="Unknown" ;;
2299 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2300 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2302 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2303 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2304 if test "${llvm_cv_target_os_type+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 llvm_cv_target_os_type="AIX" ;;
2311 llvm_cv_target_os_type="IRIX" ;;
2313 llvm_cv_target_os_type="Cygwin" ;;
2315 llvm_cv_target_os_type="Darwin" ;;
2317 llvm_cv_target_os_type="Minix" ;;
2319 llvm_cv_target_os_type="FreeBSD" ;;
2321 llvm_cv_target_os_type="OpenBSD" ;;
2323 llvm_cv_target_os_type="NetBSD" ;;
2325 llvm_cv_target_os_type="DragonFly" ;;
2327 llvm_cv_target_os_type="HP-UX" ;;
2329 llvm_cv_target_os_type="Interix" ;;
2331 llvm_cv_target_os_type="Linux" ;;
2333 llvm_cv_target_os_type="SunOS" ;;
2335 llvm_cv_target_os_type="AuroraUX" ;;
2337 llvm_cv_target_os_type="Win32" ;;
2339 llvm_cv_target_os_type="MingW" ;;
2341 llvm_cv_target_os_type="Haiku" ;;
2343 llvm_cv_target_os_type="RTEMS" ;;
2345 llvm_cv_target_os_type="NativeClient" ;;
2347 llvm_cv_target_os_type="Freestanding" ;;
2349 llvm_cv_target_os_type="Unknown" ;;
2352 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2353 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2355 if test "$llvm_cv_os_type" = "Unknown" ; then
2356 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2357 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2358 { (exit 1); exit 1; }; }
2363 HOST_OS=$llvm_cv_os_type
2365 TARGET_OS=$llvm_cv_target_os_type
2368 LINKALL=$llvm_cv_link_all_option
2370 NOLINKALL=$llvm_cv_no_link_all_option
2373 case $llvm_cv_platform_type in
2376 cat >>confdefs.h <<\_ACEOF
2377 #define LLVM_ON_UNIX 1
2387 cat >>confdefs.h <<\_ACEOF
2388 #define LLVM_ON_WIN32 1
2398 { echo "$as_me:$LINENO: checking target architecture" >&5
2399 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2400 if test "${llvm_cv_target_arch+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 i?86-*) llvm_cv_target_arch="x86" ;;
2405 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2406 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2407 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2408 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2409 arm*-*) llvm_cv_target_arch="ARM" ;;
2410 mips-*) llvm_cv_target_arch="Mips" ;;
2411 xcore-*) llvm_cv_target_arch="XCore" ;;
2412 msp430-*) llvm_cv_target_arch="MSP430" ;;
2413 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2414 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2415 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2416 ptx-*) llvm_cv_target_arch="PTX" ;;
2417 *) llvm_cv_target_arch="Unknown" ;;
2420 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2421 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2423 if test "$llvm_cv_target_arch" = "Unknown" ; then
2424 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2425 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2428 # Determine the LLVM native architecture for the target
2429 case "$llvm_cv_target_arch" in
2430 x86) LLVM_NATIVE_ARCH="X86" ;;
2431 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2432 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2435 ARCH=$llvm_cv_target_arch
2439 ac_cpp='$CPP $CPPFLAGS'
2440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2443 if test -n "$ac_tool_prefix"; then
2444 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2445 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448 if test "${ac_cv_prog_CC+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 if test -n "$CC"; then
2452 ac_cv_prog_CC="$CC" # Let the user override the test.
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2461 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 if test -n "$CC"; then
2473 { echo "$as_me:$LINENO: result: $CC" >&5
2474 echo "${ECHO_T}$CC" >&6; }
2476 { echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6; }
2482 if test -z "$ac_cv_prog_CC"; then
2484 # Extract the first word of "gcc", so it can be a program name with args.
2485 set dummy gcc; ac_word=$2
2486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 if test -n "$ac_ct_CC"; then
2492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2501 ac_cv_prog_ac_ct_CC="gcc"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2512 if test -n "$ac_ct_CC"; then
2513 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2514 echo "${ECHO_T}$ac_ct_CC" >&6; }
2516 { echo "$as_me:$LINENO: result: no" >&5
2517 echo "${ECHO_T}no" >&6; }
2520 if test "x$ac_ct_CC" = x; then
2523 case $cross_compiling:$ac_tool_warned in
2525 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2526 whose name does not start with the host triplet. If you think this
2527 configuration is useful to you, please write to autoconf@gnu.org." >&5
2528 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2529 whose name does not start with the host triplet. If you think this
2530 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2531 ac_tool_warned=yes ;;
2539 if test -z "$CC"; then
2540 if test -n "$ac_tool_prefix"; then
2541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2542 set dummy ${ac_tool_prefix}cc; ac_word=$2
2543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545 if test "${ac_cv_prog_CC+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2558 ac_cv_prog_CC="${ac_tool_prefix}cc"
2559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 if test -n "$CC"; then
2570 { echo "$as_me:$LINENO: result: $CC" >&5
2571 echo "${ECHO_T}$CC" >&6; }
2573 { echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6; }
2580 if test -z "$CC"; then
2581 # Extract the first word of "cc", so it can be a program name with args.
2582 set dummy cc; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_CC+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 if test -n "$CC"; then
2589 ac_cv_prog_CC="$CC" # Let the user override the test.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2600 ac_prog_rejected=yes
2604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 if test $ac_prog_rejected = yes; then
2612 # We found a bogon in the path, so make sure we never use it.
2613 set dummy $ac_cv_prog_CC
2615 if test $# != 0; then
2616 # We chose a different compiler from the bogus one.
2617 # However, it has the same basename, so the bogon will be chosen
2618 # first if we set CC to just the basename; use the full file name.
2620 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2626 if test -n "$CC"; then
2627 { echo "$as_me:$LINENO: result: $CC" >&5
2628 echo "${ECHO_T}$CC" >&6; }
2630 { echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6; }
2636 if test -z "$CC"; then
2637 if test -n "$ac_tool_prefix"; then
2638 for ac_prog in cl.exe
2640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2644 if test "${ac_cv_prog_CC+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 if test -n "$CC"; then
2648 ac_cv_prog_CC="$CC" # Let the user override the test.
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 if test -n "$CC"; then
2669 { echo "$as_me:$LINENO: result: $CC" >&5
2670 echo "${ECHO_T}$CC" >&6; }
2672 { echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6; }
2677 test -n "$CC" && break
2680 if test -z "$CC"; then
2682 for ac_prog in cl.exe
2684 # Extract the first word of "$ac_prog", so it can be a program name with args.
2685 set dummy $ac_prog; ac_word=$2
2686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 if test -n "$ac_ct_CC"; then
2692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_ac_ct_CC="$ac_prog"
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2712 if test -n "$ac_ct_CC"; then
2713 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2714 echo "${ECHO_T}$ac_ct_CC" >&6; }
2716 { echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6; }
2721 test -n "$ac_ct_CC" && break
2724 if test "x$ac_ct_CC" = x; then
2727 case $cross_compiling:$ac_tool_warned in
2729 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2730 whose name does not start with the host triplet. If you think this
2731 configuration is useful to you, please write to autoconf@gnu.org." >&5
2732 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2733 whose name does not start with the host triplet. If you think this
2734 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2735 ac_tool_warned=yes ;;
2744 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2745 See \`config.log' for more details." >&5
2746 echo "$as_me: error: no acceptable C compiler found in \$PATH
2747 See \`config.log' for more details." >&2;}
2748 { (exit 1); exit 1; }; }
2750 # Provide some information about the compiler.
2751 echo "$as_me:$LINENO: checking for C compiler version" >&5
2752 ac_compiler=`set X $ac_compile; echo $2`
2753 { (ac_try="$ac_compiler --version >&5"
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compiler --version >&5") 2>&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }
2763 { (ac_try="$ac_compiler -v >&5"
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_compiler -v >&5") 2>&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }
2773 { (ac_try="$ac_compiler -V >&5"
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_compiler -V >&5") 2>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }
2784 cat >conftest.$ac_ext <<_ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h. */
2799 ac_clean_files_save=$ac_clean_files
2800 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2801 # Try to create an executable without -o first, disregard a.out.
2802 # It will help us diagnose broken compilers, and finding out an intuition
2804 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2805 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2806 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2808 # List of possible output files, starting from the most likely.
2809 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2810 # only as a last resort. b.out is created by i960 compilers.
2811 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2813 # The IRIX 6 linker writes into existing files which may not be
2814 # executable, retaining their permissions. Remove them first so a
2815 # subsequent execution test works.
2817 for ac_file in $ac_files
2820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2821 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2826 if { (ac_try="$ac_link_default"
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_link_default") 2>&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; then
2836 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2837 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2838 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2839 # so that the user can short-circuit this test for compilers unknown to
2841 for ac_file in $ac_files
2843 test -f "$ac_file" || continue
2845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2848 # We found the default executable, but exeext='' is most
2852 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2854 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2856 # We set ac_cv_exeext here because the later test for it is not
2857 # safe: cross compilers may not add the suffix if given an `-o'
2858 # argument, so we may need to know it at that point already.
2859 # Even if this section looks crufty: it has the advantage of
2866 test "$ac_cv_exeext" = no && ac_cv_exeext=
2869 echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2872 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2873 See \`config.log' for more details." >&5
2874 echo "$as_me: error: C compiler cannot create executables
2875 See \`config.log' for more details." >&2;}
2876 { (exit 77); exit 77; }; }
2879 ac_exeext=$ac_cv_exeext
2880 { echo "$as_me:$LINENO: result: $ac_file" >&5
2881 echo "${ECHO_T}$ac_file" >&6; }
2883 # Check that the compiler produces executables we can run. If not, either
2884 # the compiler is broken, or we cross compile.
2885 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2886 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2887 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2888 # If not cross compiling, check that we can run a simple program.
2889 if test "$cross_compiling" != yes; then
2890 if { ac_try='./$ac_file'
2891 { (case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_try") 2>&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2902 if test "$cross_compiling" = maybe; then
2905 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2906 If you meant to cross compile, use \`--host'.
2907 See \`config.log' for more details." >&5
2908 echo "$as_me: error: cannot run C compiled programs.
2909 If you meant to cross compile, use \`--host'.
2910 See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2915 { echo "$as_me:$LINENO: result: yes" >&5
2916 echo "${ECHO_T}yes" >&6; }
2918 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2919 ac_clean_files=$ac_clean_files_save
2920 # Check that the compiler produces executables we can run. If not, either
2921 # the compiler is broken, or we cross compile.
2922 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2923 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2924 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2925 echo "${ECHO_T}$cross_compiling" >&6; }
2927 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2928 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2929 if { (ac_try="$ac_link"
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_link") 2>&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; then
2939 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2940 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2941 # work properly (i.e., refer to `conftest.exe'), while it won't with
2943 for ac_file in conftest.exe conftest conftest.*; do
2944 test -f "$ac_file" || continue
2946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2947 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2953 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2954 See \`config.log' for more details." >&5
2955 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2956 See \`config.log' for more details." >&2;}
2957 { (exit 1); exit 1; }; }
2960 rm -f conftest$ac_cv_exeext
2961 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2962 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2964 rm -f conftest.$ac_ext
2965 EXEEXT=$ac_cv_exeext
2967 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2968 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2969 if test "${ac_cv_objext+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 cat >conftest.$ac_ext <<_ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h. */
2987 rm -f conftest.o conftest.obj
2988 if { (ac_try="$ac_compile"
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_compile") 2>&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; then
2998 for ac_file in conftest.o conftest.obj conftest.*; do
2999 test -f "$ac_file" || continue;
3001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3002 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3010 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3011 See \`config.log' for more details." >&5
3012 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3013 See \`config.log' for more details." >&2;}
3014 { (exit 1); exit 1; }; }
3017 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3019 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3020 echo "${ECHO_T}$ac_cv_objext" >&6; }
3021 OBJEXT=$ac_cv_objext
3023 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3024 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3025 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 cat >conftest.$ac_ext <<_ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3046 rm -f conftest.$ac_objext
3047 if { (ac_try="$ac_compile"
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_compile") 2>conftest.er1
3055 grep -v '^ *+' conftest.er1 >conftest.err
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3061 { (case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_try") 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3092 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3093 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3094 GCC=`test $ac_compiler_gnu = yes && echo yes`
3095 ac_test_CFLAGS=${CFLAGS+set}
3096 ac_save_CFLAGS=$CFLAGS
3097 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3098 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3099 if test "${ac_cv_prog_cc_g+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 ac_save_c_werror_flag=$ac_c_werror_flag
3103 ac_c_werror_flag=yes
3106 cat >conftest.$ac_ext <<_ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3130 grep -v '^ *+' conftest.er1 >conftest.err
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3161 cat >conftest.$ac_ext <<_ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } &&
3190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3191 { (case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_try") 2>&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; } &&
3200 { ac_try='test -s conftest.$ac_objext'
3201 { (case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_try") 2>&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3215 ac_c_werror_flag=$ac_save_c_werror_flag
3217 cat >conftest.$ac_ext <<_ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3232 rm -f conftest.$ac_objext
3233 if { (ac_try="$ac_compile"
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239 (eval "$ac_compile") 2>conftest.er1
3241 grep -v '^ *+' conftest.er1 >conftest.err
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3247 { (case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_try") 2>&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; } &&
3256 { ac_try='test -s conftest.$ac_objext'
3257 { (case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_try") 2>&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 ac_c_werror_flag=$ac_save_c_werror_flag
3283 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3284 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3285 if test "$ac_test_CFLAGS" = set; then
3286 CFLAGS=$ac_save_CFLAGS
3287 elif test $ac_cv_prog_cc_g = yes; then
3288 if test "$GCC" = yes; then
3294 if test "$GCC" = yes; then
3300 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3301 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3302 if test "${ac_cv_prog_cc_c89+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 ac_cv_prog_cc_c89=no
3307 cat >conftest.$ac_ext <<_ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3315 #include <sys/types.h>
3316 #include <sys/stat.h>
3317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3318 struct buf { int x; };
3319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3320 static char *e (p, i)
3326 static char *f (char * (*g) (char **, int), char **p, ...)
3331 s = g (p, va_arg (v,int));
3336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3337 function prototypes and stuff, but not '\xHH' hex character constants.
3338 These don't provoke an error unfortunately, instead are silently treated
3339 as 'x'. The following induces an error, until -std is added to get
3340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3341 array size at least. It's necessary to write '\x00'==0 to get something
3342 that's true only with -std. */
3343 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3345 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3346 inside strings and character constants. */
3348 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3350 int test (int i, double x);
3351 struct s1 {int (*f) (int a);};
3352 struct s2 {int (*f) (double a);};
3353 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3359 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3364 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3365 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3367 CC="$ac_save_CC $ac_arg"
3368 rm -f conftest.$ac_objext
3369 if { (ac_try="$ac_compile"
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_compile") 2>conftest.er1
3377 grep -v '^ *+' conftest.er1 >conftest.err
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } &&
3382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3383 { (case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_try") 2>&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; } &&
3392 { ac_try='test -s conftest.$ac_objext'
3393 { (case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_try") 2>&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; }; then
3402 ac_cv_prog_cc_c89=$ac_arg
3404 echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3410 rm -f core conftest.err conftest.$ac_objext
3411 test "x$ac_cv_prog_cc_c89" != "xno" && break
3413 rm -f conftest.$ac_ext
3418 case "x$ac_cv_prog_cc_c89" in
3420 { echo "$as_me:$LINENO: result: none needed" >&5
3421 echo "${ECHO_T}none needed" >&6; } ;;
3423 { echo "$as_me:$LINENO: result: unsupported" >&5
3424 echo "${ECHO_T}unsupported" >&6; } ;;
3426 CC="$CC $ac_cv_prog_cc_c89"
3427 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3428 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3433 ac_cpp='$CPP $CPPFLAGS'
3434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3445 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3446 # On Suns, sometimes $CPP names a directory.
3447 if test -n "$CPP" && test -d "$CPP"; then
3450 if test -z "$CPP"; then
3451 if test "${ac_cv_prog_CPP+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 # Double quotes because CPP needs to be expanded
3455 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3458 for ac_c_preproc_warn_flag in '' yes
3460 # Use a header file that comes with gcc, so configuring glibc
3461 # with a fresh cross-compiler works.
3462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3463 # <limits.h> exists even on freestanding compilers.
3464 # On the NeXT, cc -E runs the code through the compiler's parser,
3465 # not just through cpp. "Syntax error" is here to catch this case.
3466 cat >conftest.$ac_ext <<_ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3473 # include <limits.h>
3475 # include <assert.h>
3479 if { (ac_try="$ac_cpp conftest.$ac_ext"
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3487 grep -v '^ *+' conftest.er1 >conftest.err
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } >/dev/null; then
3492 if test -s conftest.err; then
3493 ac_cpp_err=$ac_c_preproc_warn_flag
3494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3501 if test -z "$ac_cpp_err"; then
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3507 # Broken: fails on valid input.
3511 rm -f conftest.err conftest.$ac_ext
3513 # OK, works on sane cases. Now check whether nonexistent headers
3514 # can be detected and how.
3515 cat >conftest.$ac_ext <<_ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3521 #include <ac_nonexistent.h>
3523 if { (ac_try="$ac_cpp conftest.$ac_ext"
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3531 grep -v '^ *+' conftest.er1 >conftest.err
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } >/dev/null; then
3536 if test -s conftest.err; then
3537 ac_cpp_err=$ac_c_preproc_warn_flag
3538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3545 if test -z "$ac_cpp_err"; then
3546 # Broken: success on invalid input.
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3552 # Passes both tests.
3557 rm -f conftest.err conftest.$ac_ext
3560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561 rm -f conftest.err conftest.$ac_ext
3562 if $ac_preproc_ok; then
3574 { echo "$as_me:$LINENO: result: $CPP" >&5
3575 echo "${ECHO_T}$CPP" >&6; }
3577 for ac_c_preproc_warn_flag in '' yes
3579 # Use a header file that comes with gcc, so configuring glibc
3580 # with a fresh cross-compiler works.
3581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3582 # <limits.h> exists even on freestanding compilers.
3583 # On the NeXT, cc -E runs the code through the compiler's parser,
3584 # not just through cpp. "Syntax error" is here to catch this case.
3585 cat >conftest.$ac_ext <<_ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3592 # include <limits.h>
3594 # include <assert.h>
3598 if { (ac_try="$ac_cpp conftest.$ac_ext"
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3606 grep -v '^ *+' conftest.er1 >conftest.err
3608 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } >/dev/null; then
3611 if test -s conftest.err; then
3612 ac_cpp_err=$ac_c_preproc_warn_flag
3613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3620 if test -z "$ac_cpp_err"; then
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3626 # Broken: fails on valid input.
3630 rm -f conftest.err conftest.$ac_ext
3632 # OK, works on sane cases. Now check whether nonexistent headers
3633 # can be detected and how.
3634 cat >conftest.$ac_ext <<_ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3640 #include <ac_nonexistent.h>
3642 if { (ac_try="$ac_cpp conftest.$ac_ext"
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3650 grep -v '^ *+' conftest.er1 >conftest.err
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } >/dev/null; then
3655 if test -s conftest.err; then
3656 ac_cpp_err=$ac_c_preproc_warn_flag
3657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3664 if test -z "$ac_cpp_err"; then
3665 # Broken: success on invalid input.
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3671 # Passes both tests.
3676 rm -f conftest.err conftest.$ac_ext
3679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3680 rm -f conftest.err conftest.$ac_ext
3681 if $ac_preproc_ok; then
3684 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3685 See \`config.log' for more details." >&5
3686 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3687 See \`config.log' for more details." >&2;}
3688 { (exit 1); exit 1; }; }
3692 ac_cpp='$CPP $CPPFLAGS'
3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3699 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3700 if test "${ac_cv_path_GREP+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 # Extract the first word of "grep ggrep" to use in msg output
3704 if test -z "$GREP"; then
3705 set dummy grep ggrep; ac_prog_name=$2
3706 if test "${ac_cv_path_GREP+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 ac_path_GREP_found=false
3710 # Loop through the user's path and test for each of PROGNAME-LIST
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3715 test -z "$as_dir" && as_dir=.
3716 for ac_prog in grep ggrep; do
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3719 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3720 # Check for GNU ac_path_GREP and select it if it is found.
3721 # Check for GNU $ac_path_GREP
3722 case `"$ac_path_GREP" --version 2>&1` in
3724 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3727 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3730 cat "conftest.in" "conftest.in" >"conftest.tmp"
3731 mv "conftest.tmp" "conftest.in"
3732 cp "conftest.in" "conftest.nl"
3733 echo 'GREP' >> "conftest.nl"
3734 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3736 ac_count=`expr $ac_count + 1`
3737 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3738 # Best one so far, save it but keep looking for a better one
3739 ac_cv_path_GREP="$ac_path_GREP"
3740 ac_path_GREP_max=$ac_count
3742 # 10*(2^10) chars as input seems more than enough
3743 test $ac_count -gt 10 && break
3745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3749 $ac_path_GREP_found && break 3
3759 GREP="$ac_cv_path_GREP"
3760 if test -z "$GREP"; then
3761 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3762 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3763 { (exit 1); exit 1; }; }
3767 ac_cv_path_GREP=$GREP
3772 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3773 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3774 GREP="$ac_cv_path_GREP"
3777 { echo "$as_me:$LINENO: checking for egrep" >&5
3778 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3779 if test "${ac_cv_path_EGREP+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3783 then ac_cv_path_EGREP="$GREP -E"
3785 # Extract the first word of "egrep" to use in msg output
3786 if test -z "$EGREP"; then
3787 set dummy egrep; ac_prog_name=$2
3788 if test "${ac_cv_path_EGREP+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 ac_path_EGREP_found=false
3792 # Loop through the user's path and test for each of PROGNAME-LIST
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3797 test -z "$as_dir" && as_dir=.
3798 for ac_prog in egrep; do
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3801 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3802 # Check for GNU ac_path_EGREP and select it if it is found.
3803 # Check for GNU $ac_path_EGREP
3804 case `"$ac_path_EGREP" --version 2>&1` in
3806 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3809 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3812 cat "conftest.in" "conftest.in" >"conftest.tmp"
3813 mv "conftest.tmp" "conftest.in"
3814 cp "conftest.in" "conftest.nl"
3815 echo 'EGREP' >> "conftest.nl"
3816 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3817 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3818 ac_count=`expr $ac_count + 1`
3819 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3820 # Best one so far, save it but keep looking for a better one
3821 ac_cv_path_EGREP="$ac_path_EGREP"
3822 ac_path_EGREP_max=$ac_count
3824 # 10*(2^10) chars as input seems more than enough
3825 test $ac_count -gt 10 && break
3827 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3831 $ac_path_EGREP_found && break 3
3841 EGREP="$ac_cv_path_EGREP"
3842 if test -z "$EGREP"; then
3843 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3844 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3845 { (exit 1); exit 1; }; }
3849 ac_cv_path_EGREP=$EGREP
3855 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3856 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3857 EGREP="$ac_cv_path_EGREP"
3860 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3861 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3862 if test "${ac_cv_header_stdc+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 cat >conftest.$ac_ext <<_ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3884 rm -f conftest.$ac_objext
3885 if { (ac_try="$ac_compile"
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891 (eval "$ac_compile") 2>conftest.er1
3893 grep -v '^ *+' conftest.er1 >conftest.err
3895 cat conftest.err >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } &&
3898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3899 { (case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3904 (eval "$ac_try") 2>&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest.$ac_objext'
3909 { (case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_try") 2>&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; }; then
3918 ac_cv_header_stdc=yes
3920 echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3923 ac_cv_header_stdc=no
3926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 if test $ac_cv_header_stdc = yes; then
3929 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3930 cat >conftest.$ac_ext <<_ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3940 $EGREP "memchr" >/dev/null 2>&1; then
3943 ac_cv_header_stdc=no
3949 if test $ac_cv_header_stdc = yes; then
3950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3951 cat >conftest.$ac_ext <<_ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3961 $EGREP "free" >/dev/null 2>&1; then
3964 ac_cv_header_stdc=no
3970 if test $ac_cv_header_stdc = yes; then
3971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3972 if test "$cross_compiling" = yes; then
3975 cat >conftest.$ac_ext <<_ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3983 #if ((' ' & 0x0FF) == 0x020)
3984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3987 # define ISLOWER(c) \
3988 (('a' <= (c) && (c) <= 'i') \
3989 || ('j' <= (c) && (c) <= 'r') \
3990 || ('s' <= (c) && (c) <= 'z'))
3991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3999 for (i = 0; i < 256; i++)
4000 if (XOR (islower (i), ISLOWER (i))
4001 || toupper (i) != TOUPPER (i))
4006 rm -f conftest$ac_exeext
4007 if { (ac_try="$ac_link"
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_link") 2>&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4017 { (case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_try") 2>&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4028 echo "$as_me: program exited with status $ac_status" >&5
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4033 ac_cv_header_stdc=no
4035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4041 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4042 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4043 if test $ac_cv_header_stdc = yes; then
4045 cat >>confdefs.h <<\_ACEOF
4046 #define STDC_HEADERS 1
4051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4061 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4062 inttypes.h stdint.h unistd.h
4064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 cat >conftest.$ac_ext <<_ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h. */
4076 $ac_includes_default
4078 #include <$ac_header>
4080 rm -f conftest.$ac_objext
4081 if { (ac_try="$ac_compile"
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_compile") 2>conftest.er1
4089 grep -v '^ *+' conftest.er1 >conftest.err
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4095 { (case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100 (eval "$ac_try") 2>&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; } &&
4104 { ac_try='test -s conftest.$ac_objext'
4105 { (case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110 (eval "$ac_try") 2>&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4114 eval "$as_ac_Header=yes"
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4119 eval "$as_ac_Header=no"
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 ac_res=`eval echo '${'$as_ac_Header'}'`
4125 { echo "$as_me:$LINENO: result: $ac_res" >&5
4126 echo "${ECHO_T}$ac_res" >&6; }
4127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4128 cat >>confdefs.h <<_ACEOF
4129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4137 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4138 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4139 if test "${ac_cv_c_bigendian+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 # See if sys/param.h defines the BYTE_ORDER macro.
4143 cat >conftest.$ac_ext <<_ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4149 #include <sys/types.h>
4150 #include <sys/param.h>
4155 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4163 rm -f conftest.$ac_objext
4164 if { (ac_try="$ac_compile"
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_compile") 2>conftest.er1
4172 grep -v '^ *+' conftest.er1 >conftest.err
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4178 { (case "(($ac_try" in
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183 (eval "$ac_try") 2>&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; } &&
4187 { ac_try='test -s conftest.$ac_objext'
4188 { (case "(($ac_try" in
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193 (eval "$ac_try") 2>&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4197 # It does; now see whether it defined to BIG_ENDIAN or not.
4198 cat >conftest.$ac_ext <<_ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4204 #include <sys/types.h>
4205 #include <sys/param.h>
4210 #if BYTE_ORDER != BIG_ENDIAN
4218 rm -f conftest.$ac_objext
4219 if { (ac_try="$ac_compile"
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_compile") 2>conftest.er1
4227 grep -v '^ *+' conftest.er1 >conftest.err
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4233 { (case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_try") 2>&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; } &&
4242 { ac_try='test -s conftest.$ac_objext'
4243 { (case "(($ac_try" in
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248 (eval "$ac_try") 2>&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; }; then
4252 ac_cv_c_bigendian=yes
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4257 ac_cv_c_bigendian=no
4260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4265 # It does not; compile a test program.
4266 if test "$cross_compiling" = yes; then
4267 # try to guess the endianness by grepping values into an object file
4268 ac_cv_c_bigendian=unknown
4269 cat >conftest.$ac_ext <<_ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4275 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4276 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4277 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4278 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4279 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4280 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4284 _ascii (); _ebcdic ();
4289 rm -f conftest.$ac_objext
4290 if { (ac_try="$ac_compile"
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_compile") 2>conftest.er1
4298 grep -v '^ *+' conftest.er1 >conftest.err
4300 cat conftest.err >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } &&
4303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4304 { (case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_try") 2>&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; } &&
4313 { ac_try='test -s conftest.$ac_objext'
4314 { (case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_try") 2>&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4324 ac_cv_c_bigendian=yes
4326 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4327 if test "$ac_cv_c_bigendian" = unknown; then
4328 ac_cv_c_bigendian=no
4330 # finding both strings is unlikely to happen, but who knows?
4331 ac_cv_c_bigendian=unknown
4335 echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 cat >conftest.$ac_ext <<_ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4349 $ac_includes_default
4354 /* Are we little or big endian? From Harbison&Steele. */
4358 char c[sizeof (long int)];
4361 return u.c[sizeof (long int) - 1] == 1;
4367 rm -f conftest$ac_exeext
4368 if { (ac_try="$ac_link"
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_link") 2>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4378 { (case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_try") 2>&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4387 ac_cv_c_bigendian=no
4389 echo "$as_me: program exited with status $ac_status" >&5
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4394 ac_cv_c_bigendian=yes
4396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4405 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4406 case $ac_cv_c_bigendian in
4414 { { echo "$as_me:$LINENO: error: unknown endianness
4415 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4416 echo "$as_me: error: unknown endianness
4417 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4418 { (exit 1); exit 1; }; } ;;
4422 if test "$cross_compiling" = yes; then
4423 LLVM_CROSS_COMPILING=1
4426 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4427 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4428 if test "${ac_cv_build_exeext+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4432 ac_cv_build_exeext=.exe
4434 ac_build_prefix=${build_alias}-
4436 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4437 set dummy ${ac_build_prefix}gcc; ac_word=$2
4438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4440 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 if test -n "$BUILD_CC"; then
4444 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 BUILD_CC=$ac_cv_prog_BUILD_CC
4464 if test -n "$BUILD_CC"; then
4465 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4466 echo "${ECHO_T}$BUILD_CC" >&6; }
4468 { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4473 if test -z "$BUILD_CC"; then
4474 # Extract the first word of "gcc", so it can be a program name with args.
4475 set dummy gcc; ac_word=$2
4476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4478 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 if test -n "$BUILD_CC"; then
4482 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4491 ac_cv_prog_BUILD_CC="gcc"
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 BUILD_CC=$ac_cv_prog_BUILD_CC
4502 if test -n "$BUILD_CC"; then
4503 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4504 echo "${ECHO_T}$BUILD_CC" >&6; }
4506 { echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6; }
4511 if test -z "$BUILD_CC"; then
4512 # Extract the first word of "cc", so it can be a program name with args.
4513 set dummy cc; ac_word=$2
4514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4516 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 if test -n "$BUILD_CC"; then
4520 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4530 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4531 ac_prog_rejected=yes
4534 ac_cv_prog_BUILD_CC="cc"
4535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 if test $ac_prog_rejected = yes; then
4543 # We found a bogon in the path, so make sure we never use it.
4544 set dummy $ac_cv_prog_BUILD_CC
4546 if test $# != 0; then
4547 # We chose a different compiler from the bogus one.
4548 # However, it has the same basename, so the bogon will be chosen
4549 # first if we set BUILD_CC to just the basename; use the full file name.
4551 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4556 BUILD_CC=$ac_cv_prog_BUILD_CC
4557 if test -n "$BUILD_CC"; then
4558 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4559 echo "${ECHO_T}$BUILD_CC" >&6; }
4561 { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4568 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4569 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4570 { (exit 1); exit 1; }; }
4571 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4573 echo 'int main () { return 0; }' > conftest.$ac_ext
4575 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4576 (eval $ac_build_link) 2>&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; then
4580 for file in conftest.*; do
4582 *.c | *.o | *.obj | *.dSYM) ;;
4583 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4587 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4588 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4589 { (exit 1); exit 1; }; }
4592 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4597 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4598 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4599 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4600 ac_build_exeext=$BUILD_EXEEXT
4602 ac_build_prefix=${build_alias}-
4603 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4604 set dummy ${ac_build_prefix}g++; ac_word=$2
4605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4607 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 if test -n "$BUILD_CXX"; then
4611 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4631 if test -n "$BUILD_CXX"; then
4632 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4633 echo "${ECHO_T}$BUILD_CXX" >&6; }
4635 { echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6; }
4640 if test -z "$BUILD_CXX"; then
4641 # Extract the first word of "g++", so it can be a program name with args.
4642 set dummy g++; ac_word=$2
4643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4645 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 if test -n "$BUILD_CXX"; then
4649 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_prog_BUILD_CXX="g++"
4659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4669 if test -n "$BUILD_CXX"; then
4670 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4671 echo "${ECHO_T}$BUILD_CXX" >&6; }
4673 { echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6; }
4678 if test -z "$BUILD_CXX"; then
4679 # Extract the first word of "c++", so it can be a program name with args.
4680 set dummy c++; ac_word=$2
4681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4683 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 if test -n "$BUILD_CXX"; then
4687 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4698 ac_prog_rejected=yes
4701 ac_cv_prog_BUILD_CXX="c++"
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 if test $ac_prog_rejected = yes; then
4710 # We found a bogon in the path, so make sure we never use it.
4711 set dummy $ac_cv_prog_BUILD_CXX
4713 if test $# != 0; then
4714 # We chose a different compiler from the bogus one.
4715 # However, it has the same basename, so the bogon will be chosen
4716 # first if we set BUILD_CXX to just the basename; use the full file name.
4718 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4723 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4724 if test -n "$BUILD_CXX"; then
4725 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4726 echo "${ECHO_T}$BUILD_CXX" >&6; }
4728 { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4736 LLVM_CROSS_COMPILING=0
4740 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4751 # Check whether --enable-optimized was given.
4752 if test "${enable_optimized+set}" = set; then
4753 enableval=$enable_optimized;
4758 if test ${enableval} = "no" ; then
4762 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4766 # Check whether --enable-profiling was given.
4767 if test "${enable_profiling+set}" = set; then
4768 enableval=$enable_profiling;
4773 if test ${enableval} = "no" ; then
4777 ENABLE_PROFILING=ENABLE_PROFILING=1
4781 # Check whether --enable-assertions was given.
4782 if test "${enable_assertions+set}" = set; then
4783 enableval=$enable_assertions;
4788 if test ${enableval} = "yes" ; then
4792 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4796 # Check whether --enable-expensive-checks was given.
4797 if test "${enable_expensive_checks+set}" = set; then
4798 enableval=$enable_expensive_checks;
4803 if test ${enableval} = "yes" ; then
4804 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4806 EXPENSIVE_CHECKS=yes
4809 ENABLE_EXPENSIVE_CHECKS=
4815 # Check whether --enable-debug-runtime was given.
4816 if test "${enable_debug_runtime+set}" = set; then
4817 enableval=$enable_debug_runtime;
4822 if test ${enableval} = "no" ; then
4826 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4830 # Check whether --enable-debug-symbols was given.
4831 if test "${enable_debug_symbols+set}" = set; then
4832 enableval=$enable_debug_symbols;
4837 if test ${enableval} = "no" ; then
4841 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4845 # Check whether --enable-jit was given.
4846 if test "${enable_jit+set}" = set; then
4847 enableval=$enable_jit;
4852 if test ${enableval} = "no"
4857 case "$llvm_cv_target_arch" in
4858 x86) TARGET_HAS_JIT=1
4860 Sparc) TARGET_HAS_JIT=0
4862 PowerPC) TARGET_HAS_JIT=1
4864 x86_64) TARGET_HAS_JIT=1
4866 Alpha) TARGET_HAS_JIT=0
4868 ARM) TARGET_HAS_JIT=1
4870 Mips) TARGET_HAS_JIT=1
4872 XCore) TARGET_HAS_JIT=0
4874 MSP430) TARGET_HAS_JIT=0
4876 SystemZ) TARGET_HAS_JIT=0
4878 Blackfin) TARGET_HAS_JIT=0
4880 MBlaze) TARGET_HAS_JIT=0
4882 PTX) TARGET_HAS_JIT=0
4889 # Check whether --enable-docs was given.
4890 if test "${enable_docs+set}" = set; then
4891 enableval=$enable_docs;
4896 case "$enableval" in
4901 default) ENABLE_DOCS=1
4903 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4904 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4905 { (exit 1); exit 1; }; } ;;
4908 # Check whether --enable-doxygen was given.
4909 if test "${enable_doxygen+set}" = set; then
4910 enableval=$enable_doxygen;
4915 case "$enableval" in
4916 yes) ENABLE_DOXYGEN=1
4918 no) ENABLE_DOXYGEN=0
4920 default) ENABLE_DOXYGEN=0
4922 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4923 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4924 { (exit 1); exit 1; }; } ;;
4927 # Check whether --enable-threads was given.
4928 if test "${enable_threads+set}" = set; then
4929 enableval=$enable_threads;
4934 case "$enableval" in
4935 yes) ENABLE_THREADS=1
4937 no) ENABLE_THREADS=0
4939 default) ENABLE_THREADS=1
4941 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4942 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4943 { (exit 1); exit 1; }; } ;;
4946 cat >>confdefs.h <<_ACEOF
4947 #define ENABLE_THREADS $ENABLE_THREADS
4951 # Check whether --enable-pthreads was given.
4952 if test "${enable_pthreads+set}" = set; then
4953 enableval=$enable_pthreads;
4958 case "$enableval" in
4959 yes) ENABLE_PTHREADS=1
4961 no) ENABLE_PTHREADS=0
4963 default) ENABLE_PTHREADS=1
4965 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4967 { (exit 1); exit 1; }; } ;;
4970 # Check whether --enable-pic was given.
4971 if test "${enable_pic+set}" = set; then
4972 enableval=$enable_pic;
4977 case "$enableval" in
4982 default) ENABLE_PIC=1
4984 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4985 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4986 { (exit 1); exit 1; }; } ;;
4989 cat >>confdefs.h <<_ACEOF
4990 #define ENABLE_PIC $ENABLE_PIC
4994 # Check whether --enable-shared was given.
4995 if test "${enable_shared+set}" = set; then
4996 enableval=$enable_shared;
5001 case "$enableval" in
5002 yes) ENABLE_SHARED=1
5006 default) ENABLE_SHARED=0
5008 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5009 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5010 { (exit 1); exit 1; }; } ;;
5013 # Check whether --enable-embed-stdcxx was given.
5014 if test "${enable_embed_stdcxx+set}" = set; then
5015 enableval=$enable_embed_stdcxx;
5020 case "$enableval" in
5021 yes) ENABLE_EMBED_STDCXX=1
5023 no) ENABLE_EMBED_STDCXX=0
5025 default) ENABLE_EMBED_STDCXX=1
5027 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5028 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5029 { (exit 1); exit 1; }; } ;;
5032 # Check whether --enable-timestamps was given.
5033 if test "${enable_timestamps+set}" = set; then
5034 enableval=$enable_timestamps;
5039 case "$enableval" in
5040 yes) ENABLE_TIMESTAMPS=1
5042 no) ENABLE_TIMESTAMPS=0
5044 default) ENABLE_TIMESTAMPS=1
5046 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5047 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5048 { (exit 1); exit 1; }; } ;;
5051 cat >>confdefs.h <<_ACEOF
5052 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5057 # Check whether --enable-targets was given.
5058 if test "${enable_targets+set}" = set; then
5059 enableval=$enable_targets;
5064 if test "$enableval" = host-only ; then
5067 case "$enableval" in
5068 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5069 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5071 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5072 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5073 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5074 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5075 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5076 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5077 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5078 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5079 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5080 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5081 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5082 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5083 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5084 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5085 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5086 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5087 host) case "$llvm_cv_target_arch" in
5088 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5089 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5090 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5091 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5092 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5093 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5094 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5095 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5096 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5097 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5098 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5099 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5100 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5101 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5102 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5103 echo "$as_me: error: Can not set target to build" >&2;}
5104 { (exit 1); exit 1; }; } ;;
5106 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5107 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5108 { (exit 1); exit 1; }; } ;;
5113 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5116 # Determine whether we are building LLVM support for the native architecture.
5117 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5118 for a_target in $TARGETS_TO_BUILD; do
5119 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5121 cat >>confdefs.h <<_ACEOF
5122 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5125 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5126 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5127 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5128 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5129 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5130 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5133 cat >>confdefs.h <<_ACEOF
5134 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5138 cat >>confdefs.h <<_ACEOF
5139 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5143 cat >>confdefs.h <<_ACEOF
5144 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5148 cat >>confdefs.h <<_ACEOF
5149 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5152 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5154 cat >>confdefs.h <<_ACEOF
5155 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5162 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5163 # target feature def files.
5164 LLVM_ENUM_TARGETS=""
5165 LLVM_ENUM_ASM_PRINTERS=""
5166 LLVM_ENUM_ASM_PARSERS=""
5167 LLVM_ENUM_DISASSEMBLERS=""
5168 for target_to_build in $TARGETS_TO_BUILD; do
5169 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5170 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5171 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5173 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5174 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5176 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5177 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5185 # Check whether --enable-cbe-printf-a was given.
5186 if test "${enable_cbe_printf_a+set}" = set; then
5187 enableval=$enable_cbe_printf_a;
5192 case "$enableval" in
5193 yes) ENABLE_CBE_PRINTF_A=1
5195 no) ENABLE_CBE_PRINTF_A=0
5197 default) ENABLE_CBE_PRINTF_A=1
5199 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5200 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5201 { (exit 1); exit 1; }; } ;;
5204 cat >>confdefs.h <<_ACEOF
5205 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5210 # Check whether --with-llvmgccdir was given.
5211 if test "${with_llvmgccdir+set}" = set; then
5212 withval=$with_llvmgccdir;
5218 default) WITH_LLVMGCCDIR=default ;;
5219 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5220 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5221 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5222 { (exit 1); exit 1; }; } ;;
5226 # Check whether --with-llvmgcc was given.
5227 if test "${with_llvmgcc+set}" = set; then
5228 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5234 # Check whether --with-llvmgxx was given.
5235 if test "${with_llvmgxx+set}" = set; then
5236 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5241 if test -n "$LLVMGCC"; then
5242 LLVMGCCCOMMAND="$LLVMGCC"
5245 if test -n "$LLVMGXX"; then
5246 LLVMGXXCOMMAND="$LLVMGXX"
5249 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5250 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5251 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5252 { (exit 1); exit 1; }; };
5255 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5256 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5257 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5258 { (exit 1); exit 1; }; };
5262 # Check whether --with-clang was given.
5263 if test "${with_clang+set}" = set; then
5264 withval=$with_clang;
5271 # Check whether --with-built-clang was given.
5272 if test "${with_built_clang+set}" = set; then
5273 withval=$with_built_clang;
5275 with_built_clang=check
5279 { echo "$as_me:$LINENO: checking clang compiler" >&5
5280 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5283 if test "$with_clang" != "default"; then
5284 WITH_CLANGPATH="$with_clang"
5285 if ! test -x "$WITH_CLANGPATH"; then
5286 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5287 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5288 { (exit 1); exit 1; }; }
5290 elif test "$with_built_clang" = "yes"; then
5292 elif test "$with_built_clang" = "no"; then
5295 if test "$with_built_clang" != "check"; then
5296 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5297 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5298 { (exit 1); exit 1; }; }
5301 if test -f ${srcdir}/tools/clang/README.txt; then
5306 if ! test -z "$WITH_CLANGPATH"; then
5307 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5308 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5309 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5310 elif test "$WITH_BUILT_CLANG" = "1"; then
5311 { echo "$as_me:$LINENO: result: built" >&5
5312 echo "${ECHO_T}built" >&6; }
5314 { echo "$as_me:$LINENO: result: none" >&5
5315 echo "${ECHO_T}none" >&6; }
5317 CLANGPATH=$WITH_CLANGPATH
5319 CLANGXXPATH=$WITH_CLANGXXPATH
5321 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5325 # Check whether --with-optimize-option was given.
5326 if test "${with_optimize_option+set}" = set; then
5327 withval=$with_optimize_option;
5332 { echo "$as_me:$LINENO: checking optimization flags" >&5
5333 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5336 case "$llvm_cv_os_type" in
5337 FreeBSD) optimize_option=-O2 ;;
5338 MingW) optimize_option=-O2 ;;
5339 *) optimize_option=-O3 ;;
5341 *) optimize_option="$withval" ;;
5343 OPTIMIZE_OPTION=$optimize_option
5345 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5346 echo "${ECHO_T}$optimize_option" >&6; }
5349 # Check whether --with-extra-options was given.
5350 if test "${with_extra_options+set}" = set; then
5351 withval=$with_extra_options;
5357 default) EXTRA_OPTIONS= ;;
5358 *) EXTRA_OPTIONS=$withval ;;
5360 EXTRA_OPTIONS=$EXTRA_OPTIONS
5364 # Check whether --with-extra-ld-options was given.
5365 if test "${with_extra_ld_options+set}" = set; then
5366 withval=$with_extra_ld_options;
5372 default) EXTRA_LD_OPTIONS= ;;
5373 *) EXTRA_LD_OPTIONS=$withval ;;
5375 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5378 # Check whether --enable-bindings was given.
5379 if test "${enable_bindings+set}" = set; then
5380 enableval=$enable_bindings;
5385 BINDINGS_TO_BUILD=""
5386 case "$enableval" in
5387 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5388 all ) BINDINGS_TO_BUILD="ocaml" ;;
5389 none | no) BINDINGS_TO_BUILD="" ;;
5390 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5391 case "$a_binding" in
5392 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5393 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5394 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5395 { (exit 1); exit 1; }; } ;;
5402 # Check whether --with-ocaml-libdir was given.
5403 if test "${with_ocaml_libdir+set}" = set; then
5404 withval=$with_ocaml_libdir;
5410 auto) with_ocaml_libdir="$withval" ;;
5411 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5412 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5413 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5414 { (exit 1); exit 1; }; } ;;
5418 # Check whether --with-clang-resource-dir was given.
5419 if test "${with_clang_resource_dir+set}" = set; then
5420 withval=$with_clang_resource_dir;
5426 cat >>confdefs.h <<_ACEOF
5427 #define CLANG_RESOURCE_DIR "$withval"
5432 # Check whether --with-c-include-dirs was given.
5433 if test "${with_c_include_dirs+set}" = set; then
5434 withval=$with_c_include_dirs;
5440 cat >>confdefs.h <<_ACEOF
5441 #define C_INCLUDE_DIRS "$withval"
5446 # Check whether --with-cxx-include-root was given.
5447 if test "${with_cxx_include_root+set}" = set; then
5448 withval=$with_cxx_include_root;
5454 cat >>confdefs.h <<_ACEOF
5455 #define CXX_INCLUDE_ROOT "$withval"
5460 # Check whether --with-cxx-include-arch was given.
5461 if test "${with_cxx_include_arch+set}" = set; then
5462 withval=$with_cxx_include_arch;
5468 cat >>confdefs.h <<_ACEOF
5469 #define CXX_INCLUDE_ARCH "$withval"
5474 # Check whether --with-cxx-include-32bit-dir was given.
5475 if test "${with_cxx_include_32bit_dir+set}" = set; then
5476 withval=$with_cxx_include_32bit_dir;
5482 cat >>confdefs.h <<_ACEOF
5483 #define CXX_INCLUDE_32BIT_DIR "$withval"
5488 # Check whether --with-cxx-include-64bit-dir was given.
5489 if test "${with_cxx_include_64bit_dir+set}" = set; then
5490 withval=$with_cxx_include_64bit_dir;
5496 cat >>confdefs.h <<_ACEOF
5497 #define CXX_INCLUDE_64BIT_DIR "$withval"
5502 # Check whether --with-binutils-include was given.
5503 if test "${with_binutils_include+set}" = set; then
5504 withval=$with_binutils_include;
5510 default) WITH_BINUTILS_INCDIR=default ;;
5511 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5512 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5513 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5514 { (exit 1); exit 1; }; } ;;
5516 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5517 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5519 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5520 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5521 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5522 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5523 { (exit 1); exit 1; }; };
5528 # Check whether --with-bug-report-url was given.
5529 if test "${with_bug_report_url+set}" = set; then
5530 withval=$with_bug_report_url;
5532 withval="http://llvm.org/bugs/"
5536 cat >>confdefs.h <<_ACEOF
5537 #define BUG_REPORT_URL "$withval"
5541 # Check whether --enable-libffi was given.
5542 if test "${enable_libffi+set}" = set; then
5543 enableval=$enable_libffi; case "$enableval" in
5544 yes) llvm_cv_enable_libffi="yes" ;;
5545 no) llvm_cv_enable_libffi="no" ;;
5546 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5547 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5548 { (exit 1); exit 1; }; } ;;
5551 llvm_cv_enable_libffi=no
5557 ac_cpp='$CPP $CPPFLAGS'
5558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5561 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5562 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5563 # On Suns, sometimes $CPP names a directory.
5564 if test -n "$CPP" && test -d "$CPP"; then
5567 if test -z "$CPP"; then
5568 if test "${ac_cv_prog_CPP+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 # Double quotes because CPP needs to be expanded
5572 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5575 for ac_c_preproc_warn_flag in '' yes
5577 # Use a header file that comes with gcc, so configuring glibc
5578 # with a fresh cross-compiler works.
5579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5580 # <limits.h> exists even on freestanding compilers.
5581 # On the NeXT, cc -E runs the code through the compiler's parser,
5582 # not just through cpp. "Syntax error" is here to catch this case.
5583 cat >conftest.$ac_ext <<_ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5590 # include <limits.h>
5592 # include <assert.h>
5596 if { (ac_try="$ac_cpp conftest.$ac_ext"
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } >/dev/null; then
5609 if test -s conftest.err; then
5610 ac_cpp_err=$ac_c_preproc_warn_flag
5611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5618 if test -z "$ac_cpp_err"; then
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5624 # Broken: fails on valid input.
5628 rm -f conftest.err conftest.$ac_ext
5630 # OK, works on sane cases. Now check whether nonexistent headers
5631 # can be detected and how.
5632 cat >conftest.$ac_ext <<_ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #include <ac_nonexistent.h>
5640 if { (ac_try="$ac_cpp conftest.$ac_ext"
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5648 grep -v '^ *+' conftest.er1 >conftest.err
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } >/dev/null; then
5653 if test -s conftest.err; then
5654 ac_cpp_err=$ac_c_preproc_warn_flag
5655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5662 if test -z "$ac_cpp_err"; then
5663 # Broken: success on invalid input.
5666 echo "$as_me: failed program was:" >&5
5667 sed 's/^/| /' conftest.$ac_ext >&5
5669 # Passes both tests.
5674 rm -f conftest.err conftest.$ac_ext
5677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5678 rm -f conftest.err conftest.$ac_ext
5679 if $ac_preproc_ok; then
5691 { echo "$as_me:$LINENO: result: $CPP" >&5
5692 echo "${ECHO_T}$CPP" >&6; }
5694 for ac_c_preproc_warn_flag in '' yes
5696 # Use a header file that comes with gcc, so configuring glibc
5697 # with a fresh cross-compiler works.
5698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5699 # <limits.h> exists even on freestanding compilers.
5700 # On the NeXT, cc -E runs the code through the compiler's parser,
5701 # not just through cpp. "Syntax error" is here to catch this case.
5702 cat >conftest.$ac_ext <<_ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5709 # include <limits.h>
5711 # include <assert.h>
5715 if { (ac_try="$ac_cpp conftest.$ac_ext"
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5723 grep -v '^ *+' conftest.er1 >conftest.err
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } >/dev/null; then
5728 if test -s conftest.err; then
5729 ac_cpp_err=$ac_c_preproc_warn_flag
5730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5737 if test -z "$ac_cpp_err"; then
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5743 # Broken: fails on valid input.
5747 rm -f conftest.err conftest.$ac_ext
5749 # OK, works on sane cases. Now check whether nonexistent headers
5750 # can be detected and how.
5751 cat >conftest.$ac_ext <<_ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5757 #include <ac_nonexistent.h>
5759 if { (ac_try="$ac_cpp conftest.$ac_ext"
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5767 grep -v '^ *+' conftest.er1 >conftest.err
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } >/dev/null; then
5772 if test -s conftest.err; then
5773 ac_cpp_err=$ac_c_preproc_warn_flag
5774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5781 if test -z "$ac_cpp_err"; then
5782 # Broken: success on invalid input.
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5788 # Passes both tests.
5793 rm -f conftest.err conftest.$ac_ext
5796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5797 rm -f conftest.err conftest.$ac_ext
5798 if $ac_preproc_ok; then
5801 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5802 See \`config.log' for more details." >&5
5803 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5804 See \`config.log' for more details." >&2;}
5805 { (exit 1); exit 1; }; }
5809 ac_cpp='$CPP $CPPFLAGS'
5810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5815 ac_cpp='$CPP $CPPFLAGS'
5816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5819 if test -n "$ac_tool_prefix"; then
5822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5826 if test "${ac_cv_prog_CC+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 if test -n "$CC"; then
5830 ac_cv_prog_CC="$CC" # Let the user override the test.
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 if test -n "$CC"; then
5851 { echo "$as_me:$LINENO: result: $CC" >&5
5852 echo "${ECHO_T}$CC" >&6; }
5854 { echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6; }
5859 test -n "$CC" && break
5862 if test -z "$CC"; then
5866 # Extract the first word of "$ac_prog", so it can be a program name with args.
5867 set dummy $ac_prog; ac_word=$2
5868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 if test -n "$ac_ct_CC"; then
5874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5883 ac_cv_prog_ac_ct_CC="$ac_prog"
5884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5894 if test -n "$ac_ct_CC"; then
5895 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5896 echo "${ECHO_T}$ac_ct_CC" >&6; }
5898 { echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6; }
5903 test -n "$ac_ct_CC" && break
5906 if test "x$ac_ct_CC" = x; then
5909 case $cross_compiling:$ac_tool_warned in
5911 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5912 whose name does not start with the host triplet. If you think this
5913 configuration is useful to you, please write to autoconf@gnu.org." >&5
5914 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5915 whose name does not start with the host triplet. If you think this
5916 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5917 ac_tool_warned=yes ;;
5924 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5925 See \`config.log' for more details." >&5
5926 echo "$as_me: error: no acceptable C compiler found in \$PATH
5927 See \`config.log' for more details." >&2;}
5928 { (exit 1); exit 1; }; }
5930 # Provide some information about the compiler.
5931 echo "$as_me:$LINENO: checking for C compiler version" >&5
5932 ac_compiler=`set X $ac_compile; echo $2`
5933 { (ac_try="$ac_compiler --version >&5"
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_compiler --version >&5") 2>&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }
5943 { (ac_try="$ac_compiler -v >&5"
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_compiler -v >&5") 2>&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }
5953 { (ac_try="$ac_compiler -V >&5"
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_compiler -V >&5") 2>&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }
5964 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5965 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5966 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 cat >conftest.$ac_ext <<_ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5987 rm -f conftest.$ac_objext
5988 if { (ac_try="$ac_compile"
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_compile") 2>conftest.er1
5996 grep -v '^ *+' conftest.er1 >conftest.err
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
6001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6002 { (case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_try") 2>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; } &&
6011 { ac_try='test -s conftest.$ac_objext'
6012 { (case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_try") 2>&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6033 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6034 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6035 GCC=`test $ac_compiler_gnu = yes && echo yes`
6036 ac_test_CFLAGS=${CFLAGS+set}
6037 ac_save_CFLAGS=$CFLAGS
6038 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6039 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6040 if test "${ac_cv_prog_cc_g+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 ac_save_c_werror_flag=$ac_c_werror_flag
6044 ac_c_werror_flag=yes
6047 cat >conftest.$ac_ext <<_ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6062 rm -f conftest.$ac_objext
6063 if { (ac_try="$ac_compile"
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_compile") 2>conftest.er1
6071 grep -v '^ *+' conftest.er1 >conftest.err
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } &&
6076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6077 { (case "(($ac_try" in
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082 (eval "$ac_try") 2>&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; } &&
6086 { ac_try='test -s conftest.$ac_objext'
6087 { (case "(($ac_try" in
6088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6092 (eval "$ac_try") 2>&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6102 cat >conftest.$ac_ext <<_ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6117 rm -f conftest.$ac_objext
6118 if { (ac_try="$ac_compile"
6120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124 (eval "$ac_compile") 2>conftest.er1
6126 grep -v '^ *+' conftest.er1 >conftest.err
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } &&
6131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6132 { (case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_try") 2>&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try='test -s conftest.$ac_objext'
6142 { (case "(($ac_try" in
6143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144 *) ac_try_echo=$ac_try;;
6146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_try") 2>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6156 ac_c_werror_flag=$ac_save_c_werror_flag
6158 cat >conftest.$ac_ext <<_ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6173 rm -f conftest.$ac_objext
6174 if { (ac_try="$ac_compile"
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_compile") 2>conftest.er1
6182 grep -v '^ *+' conftest.er1 >conftest.err
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6188 { (case "(($ac_try" in
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193 (eval "$ac_try") 2>&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; } &&
6197 { ac_try='test -s conftest.$ac_objext'
6198 { (case "(($ac_try" in
6199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200 *) ac_try_echo=$ac_try;;
6202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6203 (eval "$ac_try") 2>&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; }; then
6209 echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 ac_c_werror_flag=$ac_save_c_werror_flag
6224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6225 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6226 if test "$ac_test_CFLAGS" = set; then
6227 CFLAGS=$ac_save_CFLAGS
6228 elif test $ac_cv_prog_cc_g = yes; then
6229 if test "$GCC" = yes; then
6235 if test "$GCC" = yes; then
6241 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6242 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6243 if test "${ac_cv_prog_cc_c89+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 ac_cv_prog_cc_c89=no
6248 cat >conftest.$ac_ext <<_ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6256 #include <sys/types.h>
6257 #include <sys/stat.h>
6258 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6259 struct buf { int x; };
6260 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6261 static char *e (p, i)
6267 static char *f (char * (*g) (char **, int), char **p, ...)
6272 s = g (p, va_arg (v,int));
6277 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6278 function prototypes and stuff, but not '\xHH' hex character constants.
6279 These don't provoke an error unfortunately, instead are silently treated
6280 as 'x'. The following induces an error, until -std is added to get
6281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6282 array size at least. It's necessary to write '\x00'==0 to get something
6283 that's true only with -std. */
6284 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6286 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6287 inside strings and character constants. */
6289 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6291 int test (int i, double x);
6292 struct s1 {int (*f) (int a);};
6293 struct s2 {int (*f) (double a);};
6294 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6300 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6305 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6306 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6308 CC="$ac_save_CC $ac_arg"
6309 rm -f conftest.$ac_objext
6310 if { (ac_try="$ac_compile"
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316 (eval "$ac_compile") 2>conftest.er1
6318 grep -v '^ *+' conftest.er1 >conftest.err
6320 cat conftest.err >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } &&
6323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6324 { (case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_try") 2>&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; } &&
6333 { ac_try='test -s conftest.$ac_objext'
6334 { (case "(($ac_try" in
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_try") 2>&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; }; then
6343 ac_cv_prog_cc_c89=$ac_arg
6345 echo "$as_me: failed program was:" >&5
6346 sed 's/^/| /' conftest.$ac_ext >&5
6351 rm -f core conftest.err conftest.$ac_objext
6352 test "x$ac_cv_prog_cc_c89" != "xno" && break
6354 rm -f conftest.$ac_ext
6359 case "x$ac_cv_prog_cc_c89" in
6361 { echo "$as_me:$LINENO: result: none needed" >&5
6362 echo "${ECHO_T}none needed" >&6; } ;;
6364 { echo "$as_me:$LINENO: result: unsupported" >&5
6365 echo "${ECHO_T}unsupported" >&6; } ;;
6367 CC="$CC $ac_cv_prog_cc_c89"
6368 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6369 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6374 ac_cpp='$CPP $CPPFLAGS'
6375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6380 ac_cpp='$CXXCPP $CPPFLAGS'
6381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6384 if test -z "$CXX"; then
6385 if test -n "$CCC"; then
6388 if test -n "$ac_tool_prefix"; then
6391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6392 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6395 if test "${ac_cv_prog_CXX+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 if test -n "$CXX"; then
6399 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 if test -n "$CXX"; then
6420 { echo "$as_me:$LINENO: result: $CXX" >&5
6421 echo "${ECHO_T}$CXX" >&6; }
6423 { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6428 test -n "$CXX" && break
6431 if test -z "$CXX"; then
6435 # Extract the first word of "$ac_prog", so it can be a program name with args.
6436 set dummy $ac_prog; ac_word=$2
6437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6439 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 if test -n "$ac_ct_CXX"; then
6443 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6452 ac_cv_prog_ac_ct_CXX="$ac_prog"
6453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6463 if test -n "$ac_ct_CXX"; then
6464 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6465 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6467 { echo "$as_me:$LINENO: result: no" >&5
6468 echo "${ECHO_T}no" >&6; }
6472 test -n "$ac_ct_CXX" && break
6475 if test "x$ac_ct_CXX" = x; then
6478 case $cross_compiling:$ac_tool_warned in
6480 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6481 whose name does not start with the host triplet. If you think this
6482 configuration is useful to you, please write to autoconf@gnu.org." >&5
6483 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6484 whose name does not start with the host triplet. If you think this
6485 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6486 ac_tool_warned=yes ;;
6494 # Provide some information about the compiler.
6495 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6496 ac_compiler=`set X $ac_compile; echo $2`
6497 { (ac_try="$ac_compiler --version >&5"
6499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 (eval "$ac_compiler --version >&5") 2>&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }
6507 { (ac_try="$ac_compiler -v >&5"
6509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510 *) ac_try_echo=$ac_try;;
6512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513 (eval "$ac_compiler -v >&5") 2>&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }
6517 { (ac_try="$ac_compiler -V >&5"
6519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520 *) ac_try_echo=$ac_try;;
6522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6523 (eval "$ac_compiler -V >&5") 2>&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }
6528 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6529 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6530 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 cat >conftest.$ac_ext <<_ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6551 rm -f conftest.$ac_objext
6552 if { (ac_try="$ac_compile"
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_compile") 2>conftest.er1
6560 grep -v '^ *+' conftest.er1 >conftest.err
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } &&
6565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6566 { (case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571 (eval "$ac_try") 2>&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; } &&
6575 { ac_try='test -s conftest.$ac_objext'
6576 { (case "(($ac_try" in
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581 (eval "$ac_try") 2>&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6597 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6598 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6599 GXX=`test $ac_compiler_gnu = yes && echo yes`
6600 ac_test_CXXFLAGS=${CXXFLAGS+set}
6601 ac_save_CXXFLAGS=$CXXFLAGS
6602 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6603 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6604 if test "${ac_cv_prog_cxx_g+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6608 ac_cxx_werror_flag=yes
6611 cat >conftest.$ac_ext <<_ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6626 rm -f conftest.$ac_objext
6627 if { (ac_try="$ac_compile"
6629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6630 *) ac_try_echo=$ac_try;;
6632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6633 (eval "$ac_compile") 2>conftest.er1
6635 grep -v '^ *+' conftest.er1 >conftest.err
6637 cat conftest.err >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } &&
6640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6641 { (case "(($ac_try" in
6642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643 *) ac_try_echo=$ac_try;;
6645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6646 (eval "$ac_try") 2>&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try='test -s conftest.$ac_objext'
6651 { (case "(($ac_try" in
6652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6656 (eval "$ac_try") 2>&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6660 ac_cv_prog_cxx_g=yes
6662 echo "$as_me: failed program was:" >&5
6663 sed 's/^/| /' conftest.$ac_ext >&5
6666 cat >conftest.$ac_ext <<_ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6681 rm -f conftest.$ac_objext
6682 if { (ac_try="$ac_compile"
6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685 *) ac_try_echo=$ac_try;;
6687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6688 (eval "$ac_compile") 2>conftest.er1
6690 grep -v '^ *+' conftest.er1 >conftest.err
6692 cat conftest.err >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } &&
6695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6696 { (case "(($ac_try" in
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_try") 2>&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; } &&
6705 { ac_try='test -s conftest.$ac_objext'
6706 { (case "(($ac_try" in
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711 (eval "$ac_try") 2>&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6722 cat >conftest.$ac_ext <<_ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6737 rm -f conftest.$ac_objext
6738 if { (ac_try="$ac_compile"
6740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741 *) ac_try_echo=$ac_try;;
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_compile") 2>conftest.er1
6746 grep -v '^ *+' conftest.er1 >conftest.err
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } &&
6751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6752 { (case "(($ac_try" in
6753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6757 (eval "$ac_try") 2>&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; } &&
6761 { ac_try='test -s conftest.$ac_objext'
6762 { (case "(($ac_try" in
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767 (eval "$ac_try") 2>&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
6771 ac_cv_prog_cxx_g=yes
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6788 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6789 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6790 if test "$ac_test_CXXFLAGS" = set; then
6791 CXXFLAGS=$ac_save_CXXFLAGS
6792 elif test $ac_cv_prog_cxx_g = yes; then
6793 if test "$GXX" = yes; then
6799 if test "$GXX" = yes; then
6806 ac_cpp='$CPP $CPPFLAGS'
6807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6812 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6813 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6814 if test "${lt_cv_path_NM+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 if test -n "$NM"; then
6818 # Let the user override the test.
6821 lt_nm_to_check="${ac_tool_prefix}nm"
6822 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6823 lt_nm_to_check="$lt_nm_to_check nm"
6825 for lt_tmp_nm in $lt_nm_to_check; do
6826 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6827 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6829 test -z "$ac_dir" && ac_dir=.
6830 tmp_nm="$ac_dir/$lt_tmp_nm"
6831 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6832 # Check to see if the nm accepts a BSD-compat flag.
6833 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6834 # nm: unknown option "B" ignored
6835 # Tru64's nm complains that /dev/null is an invalid object file
6836 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6837 */dev/null* | *'Invalid file or object type'*)
6838 lt_cv_path_NM="$tmp_nm -B"
6842 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6844 lt_cv_path_NM="$tmp_nm -p"
6848 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6849 continue # so that we can try to find one that supports BSD flags
6858 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6861 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6862 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6867 { echo "$as_me:$LINENO: checking for GNU make" >&5
6868 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6869 if test "${llvm_cv_gnu_make_command+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 llvm_cv_gnu_make_command=''
6873 for a in "$MAKE" make gmake gnumake ; do
6874 if test -z "$a" ; then continue ; fi ;
6875 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6877 llvm_cv_gnu_make_command=$a ;
6882 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6883 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6884 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6888 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6889 echo "${ECHO_T}\"Not found\"" >&6; };
6893 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6894 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6896 if test "$LN_S" = "ln -s"; then
6897 { echo "$as_me:$LINENO: result: yes" >&5
6898 echo "${ECHO_T}yes" >&6; }
6900 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6901 echo "${ECHO_T}no, using $LN_S" >&6; }
6904 # Extract the first word of "cmp", so it can be a program name with args.
6905 set dummy cmp; ac_word=$2
6906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908 if test "${ac_cv_path_CMP+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6923 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6936 if test -n "$CMP"; then
6937 { echo "$as_me:$LINENO: result: $CMP" >&5
6938 echo "${ECHO_T}$CMP" >&6; }
6940 { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6945 # Extract the first word of "cp", so it can be a program name with args.
6946 set dummy cp; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_path_CP+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6977 if test -n "$CP"; then
6978 { echo "$as_me:$LINENO: result: $CP" >&5
6979 echo "${ECHO_T}$CP" >&6; }
6981 { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6986 # Extract the first word of "date", so it can be a program name with args.
6987 set dummy date; ac_word=$2
6988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990 if test "${ac_cv_path_DATE+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
7017 DATE=$ac_cv_path_DATE
7018 if test -n "$DATE"; then
7019 { echo "$as_me:$LINENO: result: $DATE" >&5
7020 echo "${ECHO_T}$DATE" >&6; }
7022 { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7027 # Extract the first word of "find", so it can be a program name with args.
7028 set dummy find; ac_word=$2
7029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7031 if test "${ac_cv_path_FIND+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7046 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7058 FIND=$ac_cv_path_FIND
7059 if test -n "$FIND"; then
7060 { echo "$as_me:$LINENO: result: $FIND" >&5
7061 echo "${ECHO_T}$FIND" >&6; }
7063 { echo "$as_me:$LINENO: result: no" >&5
7064 echo "${ECHO_T}no" >&6; }
7068 # Extract the first word of "grep", so it can be a program name with args.
7069 set dummy grep; ac_word=$2
7070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7072 if test "${ac_cv_path_GREP+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7077 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7087 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7099 GREP=$ac_cv_path_GREP
7100 if test -n "$GREP"; then
7101 { echo "$as_me:$LINENO: result: $GREP" >&5
7102 echo "${ECHO_T}$GREP" >&6; }
7104 { echo "$as_me:$LINENO: result: no" >&5
7105 echo "${ECHO_T}no" >&6; }
7109 # Extract the first word of "mkdir", so it can be a program name with args.
7110 set dummy mkdir; ac_word=$2
7111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7113 if test "${ac_cv_path_MKDIR+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7128 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7140 MKDIR=$ac_cv_path_MKDIR
7141 if test -n "$MKDIR"; then
7142 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7143 echo "${ECHO_T}$MKDIR" >&6; }
7145 { echo "$as_me:$LINENO: result: no" >&5
7146 echo "${ECHO_T}no" >&6; }
7150 # Extract the first word of "mv", so it can be a program name with args.
7151 set dummy mv; ac_word=$2
7152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7154 if test "${ac_cv_path_MV+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7169 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7182 if test -n "$MV"; then
7183 { echo "$as_me:$LINENO: result: $MV" >&5
7184 echo "${ECHO_T}$MV" >&6; }
7186 { echo "$as_me:$LINENO: result: no" >&5
7187 echo "${ECHO_T}no" >&6; }
7191 if test -n "$ac_tool_prefix"; then
7192 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7193 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196 if test "${ac_cv_prog_RANLIB+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 if test -n "$RANLIB"; then
7200 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7209 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 RANLIB=$ac_cv_prog_RANLIB
7220 if test -n "$RANLIB"; then
7221 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7222 echo "${ECHO_T}$RANLIB" >&6; }
7224 { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7230 if test -z "$ac_cv_prog_RANLIB"; then
7231 ac_ct_RANLIB=$RANLIB
7232 # Extract the first word of "ranlib", so it can be a program name with args.
7233 set dummy ranlib; ac_word=$2
7234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 if test -n "$ac_ct_RANLIB"; then
7240 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7249 ac_cv_prog_ac_ct_RANLIB="ranlib"
7250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7260 if test -n "$ac_ct_RANLIB"; then
7261 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7262 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7264 { echo "$as_me:$LINENO: result: no" >&5
7265 echo "${ECHO_T}no" >&6; }
7268 if test "x$ac_ct_RANLIB" = x; then
7271 case $cross_compiling:$ac_tool_warned in
7273 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7274 whose name does not start with the host triplet. If you think this
7275 configuration is useful to you, please write to autoconf@gnu.org." >&5
7276 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7277 whose name does not start with the host triplet. If you think this
7278 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7279 ac_tool_warned=yes ;;
7281 RANLIB=$ac_ct_RANLIB
7284 RANLIB="$ac_cv_prog_RANLIB"
7287 if test -n "$ac_tool_prefix"; then
7288 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7289 set dummy ${ac_tool_prefix}ar; ac_word=$2
7290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7292 if test "${ac_cv_prog_AR+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 if test -n "$AR"; then
7296 ac_cv_prog_AR="$AR" # Let the user override the test.
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7305 ac_cv_prog_AR="${ac_tool_prefix}ar"
7306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 if test -n "$AR"; then
7317 { echo "$as_me:$LINENO: result: $AR" >&5
7318 echo "${ECHO_T}$AR" >&6; }
7320 { echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6; }
7326 if test -z "$ac_cv_prog_AR"; then
7328 # Extract the first word of "ar", so it can be a program name with args.
7329 set dummy ar; ac_word=$2
7330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7332 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 if test -n "$ac_ct_AR"; then
7336 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_prog_ac_ct_AR="ar"
7346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7356 if test -n "$ac_ct_AR"; then
7357 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7358 echo "${ECHO_T}$ac_ct_AR" >&6; }
7360 { echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6; }
7364 if test "x$ac_ct_AR" = x; then
7367 case $cross_compiling:$ac_tool_warned in
7369 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7370 whose name does not start with the host triplet. If you think this
7371 configuration is useful to you, please write to autoconf@gnu.org." >&5
7372 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7373 whose name does not start with the host triplet. If you think this
7374 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7375 ac_tool_warned=yes ;;
7383 # Extract the first word of "rm", so it can be a program name with args.
7384 set dummy rm; ac_word=$2
7385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7387 if test "${ac_cv_path_RM+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7402 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7415 if test -n "$RM"; then
7416 { echo "$as_me:$LINENO: result: $RM" >&5
7417 echo "${ECHO_T}$RM" >&6; }
7419 { echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6; }
7424 # Extract the first word of "sed", so it can be a program name with args.
7425 set dummy sed; ac_word=$2
7426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428 if test "${ac_cv_path_SED+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7456 if test -n "$SED"; then
7457 { echo "$as_me:$LINENO: result: $SED" >&5
7458 echo "${ECHO_T}$SED" >&6; }
7460 { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7465 # Extract the first word of "tar", so it can be a program name with args.
7466 set dummy tar; ac_word=$2
7467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7469 if test "${ac_cv_path_TAR+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7484 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7497 if test -n "$TAR"; then
7498 { echo "$as_me:$LINENO: result: $TAR" >&5
7499 echo "${ECHO_T}$TAR" >&6; }
7501 { echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6; }
7506 # Extract the first word of "pwd", so it can be a program name with args.
7507 set dummy pwd; ac_word=$2
7508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7510 if test "${ac_cv_path_BINPWD+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7525 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7537 BINPWD=$ac_cv_path_BINPWD
7538 if test -n "$BINPWD"; then
7539 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7540 echo "${ECHO_T}$BINPWD" >&6; }
7542 { echo "$as_me:$LINENO: result: no" >&5
7543 echo "${ECHO_T}no" >&6; }
7548 # Extract the first word of "Graphviz", so it can be a program name with args.
7549 set dummy Graphviz; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7579 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7580 if test -n "$GRAPHVIZ"; then
7581 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7582 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7584 { echo "$as_me:$LINENO: result: no" >&5
7585 echo "${ECHO_T}no" >&6; }
7589 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7591 cat >>confdefs.h <<\_ACEOF
7592 #define HAVE_GRAPHVIZ 1
7595 if test "$llvm_cv_os_type" = "MingW" ; then
7596 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7599 cat >>confdefs.h <<_ACEOF
7600 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7604 # Extract the first word of "dot", so it can be a program name with args.
7605 set dummy dot; ac_word=$2
7606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7608 if test "${ac_cv_path_DOT+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7623 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7636 if test -n "$DOT"; then
7637 { echo "$as_me:$LINENO: result: $DOT" >&5
7638 echo "${ECHO_T}$DOT" >&6; }
7640 { echo "$as_me:$LINENO: result: no" >&5
7641 echo "${ECHO_T}no" >&6; }
7645 if test "$DOT" != "echo dot" ; then
7647 cat >>confdefs.h <<\_ACEOF
7651 if test "$llvm_cv_os_type" = "MingW" ; then
7652 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7655 cat >>confdefs.h <<_ACEOF
7656 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7660 # Extract the first word of "fdp", so it can be a program name with args.
7661 set dummy fdp; ac_word=$2
7662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7664 if test "${ac_cv_path_FDP+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7679 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7692 if test -n "$FDP"; then
7693 { echo "$as_me:$LINENO: result: $FDP" >&5
7694 echo "${ECHO_T}$FDP" >&6; }
7696 { echo "$as_me:$LINENO: result: no" >&5
7697 echo "${ECHO_T}no" >&6; }
7701 if test "$FDP" != "echo fdp" ; then
7703 cat >>confdefs.h <<\_ACEOF
7707 if test "$llvm_cv_os_type" = "MingW" ; then
7708 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7711 cat >>confdefs.h <<_ACEOF
7712 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7716 # Extract the first word of "neato", so it can be a program name with args.
7717 set dummy neato; ac_word=$2
7718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7720 if test "${ac_cv_path_NEATO+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7735 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7747 NEATO=$ac_cv_path_NEATO
7748 if test -n "$NEATO"; then
7749 { echo "$as_me:$LINENO: result: $NEATO" >&5
7750 echo "${ECHO_T}$NEATO" >&6; }
7752 { echo "$as_me:$LINENO: result: no" >&5
7753 echo "${ECHO_T}no" >&6; }
7757 if test "$NEATO" != "echo neato" ; then
7759 cat >>confdefs.h <<\_ACEOF
7760 #define HAVE_NEATO 1
7763 if test "$llvm_cv_os_type" = "MingW" ; then
7764 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7767 cat >>confdefs.h <<_ACEOF
7768 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7772 # Extract the first word of "twopi", so it can be a program name with args.
7773 set dummy twopi; ac_word=$2
7774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776 if test "${ac_cv_path_TWOPI+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7791 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7803 TWOPI=$ac_cv_path_TWOPI
7804 if test -n "$TWOPI"; then
7805 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7806 echo "${ECHO_T}$TWOPI" >&6; }
7808 { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7813 if test "$TWOPI" != "echo twopi" ; then
7815 cat >>confdefs.h <<\_ACEOF
7816 #define HAVE_TWOPI 1
7819 if test "$llvm_cv_os_type" = "MingW" ; then
7820 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7823 cat >>confdefs.h <<_ACEOF
7824 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7828 # Extract the first word of "circo", so it can be a program name with args.
7829 set dummy circo; ac_word=$2
7830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7832 if test "${ac_cv_path_CIRCO+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7847 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7859 CIRCO=$ac_cv_path_CIRCO
7860 if test -n "$CIRCO"; then
7861 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7862 echo "${ECHO_T}$CIRCO" >&6; }
7864 { echo "$as_me:$LINENO: result: no" >&5
7865 echo "${ECHO_T}no" >&6; }
7869 if test "$CIRCO" != "echo circo" ; then
7871 cat >>confdefs.h <<\_ACEOF
7872 #define HAVE_CIRCO 1
7875 if test "$llvm_cv_os_type" = "MingW" ; then
7876 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7879 cat >>confdefs.h <<_ACEOF
7880 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7884 for ac_prog in gv gsview32
7886 # Extract the first word of "$ac_prog", so it can be a program name with args.
7887 set dummy $ac_prog; ac_word=$2
7888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7890 if test "${ac_cv_path_GV+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7905 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 if test -n "$GV"; then
7918 { echo "$as_me:$LINENO: result: $GV" >&5
7919 echo "${ECHO_T}$GV" >&6; }
7921 { echo "$as_me:$LINENO: result: no" >&5
7922 echo "${ECHO_T}no" >&6; }
7926 test -n "$GV" && break
7928 test -n "$GV" || GV="echo gv"
7930 if test "$GV" != "echo gv" ; then
7932 cat >>confdefs.h <<\_ACEOF
7936 if test "$llvm_cv_os_type" = "MingW" ; then
7937 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7940 cat >>confdefs.h <<_ACEOF
7941 #define LLVM_PATH_GV "$GV${EXEEXT}"
7945 # Extract the first word of "dotty", so it can be a program name with args.
7946 set dummy dotty; ac_word=$2
7947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7949 if test "${ac_cv_path_DOTTY+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7964 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7976 DOTTY=$ac_cv_path_DOTTY
7977 if test -n "$DOTTY"; then
7978 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7979 echo "${ECHO_T}$DOTTY" >&6; }
7981 { echo "$as_me:$LINENO: result: no" >&5
7982 echo "${ECHO_T}no" >&6; }
7986 if test "$DOTTY" != "echo dotty" ; then
7988 cat >>confdefs.h <<\_ACEOF
7989 #define HAVE_DOTTY 1
7992 if test "$llvm_cv_os_type" = "MingW" ; then
7993 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7996 cat >>confdefs.h <<_ACEOF
7997 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
8001 # Extract the first word of "xdot.py", so it can be a program name with args.
8002 set dummy xdot.py; ac_word=$2
8003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8005 if test "${ac_cv_path_XDOT_PY+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 test -z "$as_dir" && as_dir=.
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8020 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
8021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8032 XDOT_PY=$ac_cv_path_XDOT_PY
8033 if test -n "$XDOT_PY"; then
8034 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8035 echo "${ECHO_T}$XDOT_PY" >&6; }
8037 { echo "$as_me:$LINENO: result: no" >&5
8038 echo "${ECHO_T}no" >&6; }
8042 if test "$XDOT_PY" != "echo xdot.py" ; then
8044 cat >>confdefs.h <<\_ACEOF
8045 #define HAVE_XDOT_PY 1
8048 if test "$llvm_cv_os_type" = "MingW" ; then
8049 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8052 cat >>confdefs.h <<_ACEOF
8053 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8059 # Extract the first word of "perl", so it can be a program name with args.
8060 set dummy perl; ac_word=$2
8061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8063 if test "${ac_cv_path_PERL+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8068 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075 test -z "$as_dir" && as_dir=.
8076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8078 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8090 PERL=$ac_cv_path_PERL
8091 if test -n "$PERL"; then
8092 { echo "$as_me:$LINENO: result: $PERL" >&5
8093 echo "${ECHO_T}$PERL" >&6; }
8095 { echo "$as_me:$LINENO: result: no" >&5
8096 echo "${ECHO_T}no" >&6; }
8100 if test "$PERL" != "none"; then
8101 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8102 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8103 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8104 { echo "$as_me:$LINENO: result: yes" >&5
8105 echo "${ECHO_T}yes" >&6; }
8108 { echo "$as_me:$LINENO: result: not found" >&5
8109 echo "${ECHO_T}not found" >&6; }
8114 if test x"$PERL" = xnone; then
8117 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8118 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8119 { (exit 1); exit 1; }; }
8125 # Find a good install program. We prefer a C program (faster),
8126 # so one script is as good as another. But avoid the broken or
8127 # incompatible versions:
8128 # SysV /etc/install, /usr/sbin/install
8129 # SunOS /usr/etc/install
8130 # IRIX /sbin/install
8132 # AmigaOS /C/install, which installs bootblocks on floppy discs
8133 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8134 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8135 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8136 # OS/2's system install, which has a completely different semantic
8137 # ./install, which can be erroneously created by make from ./install.sh.
8138 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8139 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8140 if test -z "$INSTALL"; then
8141 if test "${ac_cv_path_install+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148 test -z "$as_dir" && as_dir=.
8149 # Account for people who put trailing slashes in PATH elements.
8151 ./ | .// | /cC/* | \
8152 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8153 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8156 # OSF1 and SCO ODT 3.0 have their own names for install.
8157 # Don't use installbsd from OSF since it installs stuff as root
8159 for ac_prog in ginstall scoinst install; do
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8162 if test $ac_prog = install &&
8163 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8164 # AIX install. It has an incompatible calling convention.
8166 elif test $ac_prog = install &&
8167 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8168 # program-specific install script used by HP pwplus--don't use.
8171 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8184 if test "${ac_cv_path_install+set}" = set; then
8185 INSTALL=$ac_cv_path_install
8187 # As a last resort, use the slow shell script. Don't cache a
8188 # value for INSTALL within a source directory, because that will
8189 # break other packages using the cache if that directory is
8190 # removed, or if the value is a relative name.
8191 INSTALL=$ac_install_sh
8194 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8195 echo "${ECHO_T}$INSTALL" >&6; }
8197 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8198 # It thinks the first close brace ends the variable substitution.
8199 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8201 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8203 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8206 [\\/$]* | ?:[\\/]* ) ;;
8207 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8210 # Extract the first word of "bzip2", so it can be a program name with args.
8211 set dummy bzip2; ac_word=$2
8212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8214 if test "${ac_cv_path_BZIP2+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 test -z "$as_dir" && as_dir=.
8227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8229 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 BZIP2=$ac_cv_path_BZIP2
8241 if test -n "$BZIP2"; then
8242 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8243 echo "${ECHO_T}$BZIP2" >&6; }
8245 { echo "$as_me:$LINENO: result: no" >&5
8246 echo "${ECHO_T}no" >&6; }
8250 # Extract the first word of "cat", so it can be a program name with args.
8251 set dummy cat; ac_word=$2
8252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8254 if test "${ac_cv_path_CAT+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8269 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 if test -n "$CAT"; then
8282 { echo "$as_me:$LINENO: result: $CAT" >&5
8283 echo "${ECHO_T}$CAT" >&6; }
8285 { echo "$as_me:$LINENO: result: no" >&5
8286 echo "${ECHO_T}no" >&6; }
8290 # Extract the first word of "doxygen", so it can be a program name with args.
8291 set dummy doxygen; ac_word=$2
8292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8294 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8309 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8320 DOXYGEN=$ac_cv_path_DOXYGEN
8321 if test -n "$DOXYGEN"; then
8322 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8323 echo "${ECHO_T}$DOXYGEN" >&6; }
8325 { echo "$as_me:$LINENO: result: no" >&5
8326 echo "${ECHO_T}no" >&6; }
8330 # Extract the first word of "groff", so it can be a program name with args.
8331 set dummy groff; ac_word=$2
8332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8334 if test "${ac_cv_path_GROFF+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 test -z "$as_dir" && as_dir=.
8347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8349 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 GROFF=$ac_cv_path_GROFF
8361 if test -n "$GROFF"; then
8362 { echo "$as_me:$LINENO: result: $GROFF" >&5
8363 echo "${ECHO_T}$GROFF" >&6; }
8365 { echo "$as_me:$LINENO: result: no" >&5
8366 echo "${ECHO_T}no" >&6; }
8370 # Extract the first word of "gzip", so it can be a program name with args.
8371 set dummy gzip; ac_word=$2
8372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8374 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8379 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8389 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 GZIPBIN=$ac_cv_path_GZIPBIN
8401 if test -n "$GZIPBIN"; then
8402 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8403 echo "${ECHO_T}$GZIPBIN" >&6; }
8405 { echo "$as_me:$LINENO: result: no" >&5
8406 echo "${ECHO_T}no" >&6; }
8410 # Extract the first word of "pod2html", so it can be a program name with args.
8411 set dummy pod2html; ac_word=$2
8412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8414 if test "${ac_cv_path_POD2HTML+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8419 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 test -z "$as_dir" && as_dir=.
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8429 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8440 POD2HTML=$ac_cv_path_POD2HTML
8441 if test -n "$POD2HTML"; then
8442 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8443 echo "${ECHO_T}$POD2HTML" >&6; }
8445 { echo "$as_me:$LINENO: result: no" >&5
8446 echo "${ECHO_T}no" >&6; }
8450 # Extract the first word of "pod2man", so it can be a program name with args.
8451 set dummy pod2man; ac_word=$2
8452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8454 if test "${ac_cv_path_POD2MAN+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466 test -z "$as_dir" && as_dir=.
8467 for ac_exec_ext in '' $ac_executable_extensions; do
8468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8469 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8480 POD2MAN=$ac_cv_path_POD2MAN
8481 if test -n "$POD2MAN"; then
8482 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8483 echo "${ECHO_T}$POD2MAN" >&6; }
8485 { echo "$as_me:$LINENO: result: no" >&5
8486 echo "${ECHO_T}no" >&6; }
8490 # Extract the first word of "pdfroff", so it can be a program name with args.
8491 set dummy pdfroff; ac_word=$2
8492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8494 if test "${ac_cv_path_PDFROFF+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8509 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8520 PDFROFF=$ac_cv_path_PDFROFF
8521 if test -n "$PDFROFF"; then
8522 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8523 echo "${ECHO_T}$PDFROFF" >&6; }
8525 { echo "$as_me:$LINENO: result: no" >&5
8526 echo "${ECHO_T}no" >&6; }
8530 # Extract the first word of "runtest", so it can be a program name with args.
8531 set dummy runtest; ac_word=$2
8532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8534 if test "${ac_cv_path_RUNTEST+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8549 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8560 RUNTEST=$ac_cv_path_RUNTEST
8561 if test -n "$RUNTEST"; then
8562 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8563 echo "${ECHO_T}$RUNTEST" >&6; }
8565 { echo "$as_me:$LINENO: result: no" >&5
8566 echo "${ECHO_T}no" >&6; }
8572 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8573 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8575 # Check whether --with-tclinclude was given.
8576 if test "${with_tclinclude+set}" = set; then
8577 withval=$with_tclinclude; with_tclinclude=${withval}
8582 if test "${ac_cv_path_tclsh+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 if test x"${with_tclinclude}" != x ; then
8587 if test -f ${with_tclinclude}/tclsh ; then
8588 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8589 elif test -f ${with_tclinclude}/src/tclsh ; then
8590 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8592 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8593 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8594 { (exit 1); exit 1; }; }
8600 if test x"${ac_cv_path_tclsh}" = x ; then
8601 { echo "$as_me:$LINENO: result: none" >&5
8602 echo "${ECHO_T}none" >&6; }
8603 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
8605 # Extract the first word of "$ac_prog", so it can be a program name with args.
8606 set dummy $ac_prog; ac_word=$2
8607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8609 if test "${ac_cv_path_TCLSH+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8614 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 test -z "$as_dir" && as_dir=.
8622 for ac_exec_ext in '' $ac_executable_extensions; do
8623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8624 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8635 TCLSH=$ac_cv_path_TCLSH
8636 if test -n "$TCLSH"; then
8637 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8638 echo "${ECHO_T}$TCLSH" >&6; }
8640 { echo "$as_me:$LINENO: result: no" >&5
8641 echo "${ECHO_T}no" >&6; }
8645 test -n "$TCLSH" && break
8648 if test x"${TCLSH}" = x ; then
8649 ac_cv_path_tclsh='';
8651 ac_cv_path_tclsh="${TCLSH}";
8654 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8655 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8656 TCLSH="${ac_cv_path_tclsh}"
8660 # Extract the first word of "zip", so it can be a program name with args.
8661 set dummy zip; ac_word=$2
8662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8664 if test "${ac_cv_path_ZIP+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
8669 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8676 test -z "$as_dir" && as_dir=.
8677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8679 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8691 if test -n "$ZIP"; then
8692 { echo "$as_me:$LINENO: result: $ZIP" >&5
8693 echo "${ECHO_T}$ZIP" >&6; }
8695 { echo "$as_me:$LINENO: result: no" >&5
8696 echo "${ECHO_T}no" >&6; }
8700 for ac_prog in ocamlc
8702 # Extract the first word of "$ac_prog", so it can be a program name with args.
8703 set dummy $ac_prog; ac_word=$2
8704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8706 if test "${ac_cv_path_OCAMLC+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8711 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718 test -z "$as_dir" && as_dir=.
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8721 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8732 OCAMLC=$ac_cv_path_OCAMLC
8733 if test -n "$OCAMLC"; then
8734 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8735 echo "${ECHO_T}$OCAMLC" >&6; }
8737 { echo "$as_me:$LINENO: result: no" >&5
8738 echo "${ECHO_T}no" >&6; }
8742 test -n "$OCAMLC" && break
8745 for ac_prog in ocamlopt
8747 # Extract the first word of "$ac_prog", so it can be a program name with args.
8748 set dummy $ac_prog; ac_word=$2
8749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8751 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8763 test -z "$as_dir" && as_dir=.
8764 for ac_exec_ext in '' $ac_executable_extensions; do
8765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8766 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8777 OCAMLOPT=$ac_cv_path_OCAMLOPT
8778 if test -n "$OCAMLOPT"; then
8779 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8780 echo "${ECHO_T}$OCAMLOPT" >&6; }
8782 { echo "$as_me:$LINENO: result: no" >&5
8783 echo "${ECHO_T}no" >&6; }
8787 test -n "$OCAMLOPT" && break
8790 for ac_prog in ocamldep
8792 # Extract the first word of "$ac_prog", so it can be a program name with args.
8793 set dummy $ac_prog; ac_word=$2
8794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8796 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808 test -z "$as_dir" && as_dir=.
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8811 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8822 OCAMLDEP=$ac_cv_path_OCAMLDEP
8823 if test -n "$OCAMLDEP"; then
8824 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8825 echo "${ECHO_T}$OCAMLDEP" >&6; }
8827 { echo "$as_me:$LINENO: result: no" >&5
8828 echo "${ECHO_T}no" >&6; }
8832 test -n "$OCAMLDEP" && break
8835 for ac_prog in ocamldoc
8837 # Extract the first word of "$ac_prog", so it can be a program name with args.
8838 set dummy $ac_prog; ac_word=$2
8839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8841 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 test -z "$as_dir" && as_dir=.
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8856 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8867 OCAMLDOC=$ac_cv_path_OCAMLDOC
8868 if test -n "$OCAMLDOC"; then
8869 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8870 echo "${ECHO_T}$OCAMLDOC" >&6; }
8872 { echo "$as_me:$LINENO: result: no" >&5
8873 echo "${ECHO_T}no" >&6; }
8877 test -n "$OCAMLDOC" && break
8880 for ac_prog in gas as
8882 # Extract the first word of "$ac_prog", so it can be a program name with args.
8883 set dummy $ac_prog; ac_word=$2
8884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8886 if test "${ac_cv_path_GAS+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8898 test -z "$as_dir" && as_dir=.
8899 for ac_exec_ext in '' $ac_executable_extensions; do
8900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8901 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8913 if test -n "$GAS"; then
8914 { echo "$as_me:$LINENO: result: $GAS" >&5
8915 echo "${ECHO_T}$GAS" >&6; }
8917 { echo "$as_me:$LINENO: result: no" >&5
8918 echo "${ECHO_T}no" >&6; }
8922 test -n "$GAS" && break
8926 { echo "$as_me:$LINENO: checking for linker version" >&5
8927 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8928 if test "${llvm_cv_link_version+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 version_string="$(ld -v 2>&1 | head -1)"
8935 if (echo "$version_string" | grep -q "ld64"); then
8936 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8938 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8942 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8943 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8945 cat >>confdefs.h <<_ACEOF
8946 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8951 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8952 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8953 if test "${llvm_cv_link_use_r+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 ac_cpp='$CPP $CPPFLAGS'
8958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8963 CFLAGS="$CFLAGS -Wl,-R."
8964 cat >conftest.$ac_ext <<_ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8979 rm -f conftest.$ac_objext conftest$ac_exeext
8980 if { (ac_try="$ac_link"
8982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983 *) ac_try_echo=$ac_try;;
8985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986 (eval "$ac_link") 2>conftest.er1
8988 grep -v '^ *+' conftest.er1 >conftest.err
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8994 { (case "(($ac_try" in
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999 (eval "$ac_try") 2>&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; } &&
9003 { ac_try='test -s conftest$ac_exeext'
9004 { (case "(($ac_try" in
9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9009 (eval "$ac_try") 2>&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013 llvm_cv_link_use_r=yes
9015 echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9018 llvm_cv_link_use_r=no
9021 rm -f core conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9025 ac_cpp='$CPP $CPPFLAGS'
9026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9032 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9033 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
9034 if test "$llvm_cv_link_use_r" = yes ; then
9036 cat >>confdefs.h <<\_ACEOF
9037 #define HAVE_LINK_R 1
9043 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9044 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9045 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 ac_cpp='$CPP $CPPFLAGS'
9050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9055 CFLAGS="$CFLAGS -Wl,-export-dynamic"
9056 cat >conftest.$ac_ext <<_ACEOF
9059 cat confdefs.h >>conftest.$ac_ext
9060 cat >>conftest.$ac_ext <<_ACEOF
9061 /* end confdefs.h. */
9071 rm -f conftest.$ac_objext conftest$ac_exeext
9072 if { (ac_try="$ac_link"
9074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075 *) ac_try_echo=$ac_try;;
9077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078 (eval "$ac_link") 2>conftest.er1
9080 grep -v '^ *+' conftest.er1 >conftest.err
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } &&
9085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9086 { (case "(($ac_try" in
9087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088 *) ac_try_echo=$ac_try;;
9090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091 (eval "$ac_try") 2>&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; } &&
9095 { ac_try='test -s conftest$ac_exeext'
9096 { (case "(($ac_try" in
9097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098 *) ac_try_echo=$ac_try;;
9100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101 (eval "$ac_try") 2>&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
9105 llvm_cv_link_use_export_dynamic=yes
9107 echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9110 llvm_cv_link_use_export_dynamic=no
9113 rm -f core conftest.err conftest.$ac_objext \
9114 conftest$ac_exeext conftest.$ac_ext
9117 ac_cpp='$CPP $CPPFLAGS'
9118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9124 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9125 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9126 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9128 cat >>confdefs.h <<\_ACEOF
9129 #define HAVE_LINK_EXPORT_DYNAMIC 1
9135 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9136 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9137 if test "${llvm_cv_link_use_version_script+set}" = set; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9141 ac_cpp='$CPP $CPPFLAGS'
9142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9148 # The following code is from the autoconf manual,
9149 # "11.13: Limitations of Usual Tools".
9150 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9151 # Use mktemp if possible; otherwise fall back on mkdir,
9152 # with $RANDOM to make collisions less likely.
9156 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9158 test -n "$tmp" && test -d "$tmp"
9160 tmp=$TMPDIR/foo$$-$RANDOM
9161 (umask 077 && mkdir "$tmp")
9164 echo "{" > "$tmp/export.map"
9165 echo " global: main;" >> "$tmp/export.map"
9166 echo " local: *;" >> "$tmp/export.map"
9167 echo "};" >> "$tmp/export.map"
9169 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9170 cat >conftest.$ac_ext <<_ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9185 rm -f conftest.$ac_objext conftest$ac_exeext
9186 if { (ac_try="$ac_link"
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_link") 2>conftest.er1
9194 grep -v '^ *+' conftest.er1 >conftest.err
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9200 { (case "(($ac_try" in
9201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9202 *) ac_try_echo=$ac_try;;
9204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9205 (eval "$ac_try") 2>&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest$ac_exeext'
9210 { (case "(($ac_try" in
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_try") 2>&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; }; then
9219 llvm_cv_link_use_version_script=yes
9221 echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9224 llvm_cv_link_use_version_script=no
9227 rm -f core conftest.err conftest.$ac_objext \
9228 conftest$ac_exeext conftest.$ac_ext
9229 rm "$tmp/export.map"
9233 ac_cpp='$CPP $CPPFLAGS'
9234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9240 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9241 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9242 if test "$llvm_cv_link_use_version_script" = yes ; then
9243 HAVE_LINK_VERSION_SCRIPT=1
9250 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9251 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9252 if test "${ac_cv_c_const+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 cat >conftest.$ac_ext <<_ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h. */
9265 /* FIXME: Include the comments suggested by Paul. */
9267 /* Ultrix mips cc rejects this. */
9268 typedef int charset[2];
9270 /* SunOS 4.1.1 cc rejects this. */
9271 char const *const *ccp;
9273 /* NEC SVR4.0.2 mips cc rejects this. */
9274 struct point {int x, y;};
9275 static struct point const zero = {0,0};
9276 /* AIX XL C 1.02.0.0 rejects this.
9277 It does not let you subtract one const X* pointer from another in
9278 an arm of an if-expression whose if-part is not a constant
9280 const char *g = "string";
9281 ccp = &g + (g ? g-g : 0);
9282 /* HPUX 7.0 cc rejects these. */
9285 ccp = (char const *const *) p;
9286 { /* SCO 3.2v4 cc rejects this. */
9288 char const *s = 0 ? (char *) 0 : (char const *) 0;
9293 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9295 const int *foo = &x[0];
9298 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9299 typedef const int *iptr;
9303 { /* AIX XL C 1.02.0.0 rejects this saying
9304 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9305 struct s { int j; const int *ap[3]; };
9306 struct s *b; b->j = 5;
9308 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9312 return !x[0] && !zero.x;
9319 rm -f conftest.$ac_objext
9320 if { (ac_try="$ac_compile"
9322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9323 *) ac_try_echo=$ac_try;;
9325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9326 (eval "$ac_compile") 2>conftest.er1
9328 grep -v '^ *+' conftest.er1 >conftest.err
9330 cat conftest.err >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } &&
9333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9334 { (case "(($ac_try" in
9335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9336 *) ac_try_echo=$ac_try;;
9338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9339 (eval "$ac_try") 2>&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; } &&
9343 { ac_try='test -s conftest.$ac_objext'
9344 { (case "(($ac_try" in
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349 (eval "$ac_try") 2>&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; }; then
9355 echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9363 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9364 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9365 if test $ac_cv_c_const = no; then
9367 cat >>confdefs.h <<\_ACEOF
9379 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9380 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9381 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9382 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 cat >conftest.$ac_ext <<_ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392 #include <sys/types.h>
9404 rm -f conftest.$ac_objext
9405 if { (ac_try="$ac_compile"
9407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9408 *) ac_try_echo=$ac_try;;
9410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9411 (eval "$ac_compile") 2>conftest.er1
9413 grep -v '^ *+' conftest.er1 >conftest.err
9415 cat conftest.err >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } &&
9418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9419 { (case "(($ac_try" in
9420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424 (eval "$ac_try") 2>&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); }; } &&
9428 { ac_try='test -s conftest.$ac_objext'
9429 { (case "(($ac_try" in
9430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431 *) ac_try_echo=$ac_try;;
9433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9434 (eval "$ac_try") 2>&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 eval "$as_ac_Header=yes"
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9443 eval "$as_ac_Header=no"
9446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9448 ac_res=`eval echo '${'$as_ac_Header'}'`
9449 { echo "$as_me:$LINENO: result: $ac_res" >&5
9450 echo "${ECHO_T}$ac_res" >&6; }
9451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9452 cat >>confdefs.h <<_ACEOF
9453 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9456 ac_header_dirent=$ac_hdr; break
9460 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9461 if test $ac_header_dirent = dirent.h; then
9462 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9463 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9464 if test "${ac_cv_search_opendir+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9467 ac_func_search_save_LIBS=$LIBS
9468 cat >conftest.$ac_ext <<_ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9475 /* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
9490 for ac_lib in '' dir; do
9491 if test -z "$ac_lib"; then
9492 ac_res="none required"
9495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9497 rm -f conftest.$ac_objext conftest$ac_exeext
9498 if { (ac_try="$ac_link"
9500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501 *) ac_try_echo=$ac_try;;
9503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9504 (eval "$ac_link") 2>conftest.er1
9506 grep -v '^ *+' conftest.er1 >conftest.err
9508 cat conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
9511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9512 { (case "(($ac_try" in
9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517 (eval "$ac_try") 2>&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; } &&
9521 { ac_try='test -s conftest$ac_exeext'
9522 { (case "(($ac_try" in
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_try") 2>&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
9531 ac_cv_search_opendir=$ac_res
9533 echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9539 rm -f core conftest.err conftest.$ac_objext \
9541 if test "${ac_cv_search_opendir+set}" = set; then
9545 if test "${ac_cv_search_opendir+set}" = set; then
9548 ac_cv_search_opendir=no
9551 LIBS=$ac_func_search_save_LIBS
9553 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9554 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9555 ac_res=$ac_cv_search_opendir
9556 if test "$ac_res" != no; then
9557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9562 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9563 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9564 if test "${ac_cv_search_opendir+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 ac_func_search_save_LIBS=$LIBS
9568 cat >conftest.$ac_ext <<_ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9575 /* Override any GCC internal prototype to avoid an error.
9576 Use char because int might match the return type of a GCC
9577 builtin and then its argument prototype would still apply. */
9590 for ac_lib in '' x; do
9591 if test -z "$ac_lib"; then
9592 ac_res="none required"
9595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9597 rm -f conftest.$ac_objext conftest$ac_exeext
9598 if { (ac_try="$ac_link"
9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604 (eval "$ac_link") 2>conftest.er1
9606 grep -v '^ *+' conftest.er1 >conftest.err
9608 cat conftest.err >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } &&
9611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9612 { (case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_try") 2>&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; } &&
9621 { ac_try='test -s conftest$ac_exeext'
9622 { (case "(($ac_try" in
9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624 *) ac_try_echo=$ac_try;;
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627 (eval "$ac_try") 2>&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_cv_search_opendir=$ac_res
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9639 rm -f core conftest.err conftest.$ac_objext \
9641 if test "${ac_cv_search_opendir+set}" = set; then
9645 if test "${ac_cv_search_opendir+set}" = set; then
9648 ac_cv_search_opendir=no
9651 LIBS=$ac_func_search_save_LIBS
9653 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9654 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9655 ac_res=$ac_cv_search_opendir
9656 if test "$ac_res" != no; then
9657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9664 for ac_header in dlfcn.h
9666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 ac_res=`eval echo '${'$as_ac_Header'}'`
9674 { echo "$as_me:$LINENO: result: $ac_res" >&5
9675 echo "${ECHO_T}$ac_res" >&6; }
9677 # Is the header compilable?
9678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9680 cat >conftest.$ac_ext <<_ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9686 $ac_includes_default
9687 #include <$ac_header>
9689 rm -f conftest.$ac_objext
9690 if { (ac_try="$ac_compile"
9692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693 *) ac_try_echo=$ac_try;;
9695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696 (eval "$ac_compile") 2>conftest.er1
9698 grep -v '^ *+' conftest.er1 >conftest.err
9700 cat conftest.err >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } &&
9703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9704 { (case "(($ac_try" in
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_try") 2>&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; } &&
9713 { ac_try='test -s conftest.$ac_objext'
9714 { (case "(($ac_try" in
9715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716 *) ac_try_echo=$ac_try;;
9718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719 (eval "$ac_try") 2>&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 ac_header_compiler=yes
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9728 ac_header_compiler=no
9731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9733 echo "${ECHO_T}$ac_header_compiler" >&6; }
9735 # Is the header present?
9736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9738 cat >conftest.$ac_ext <<_ACEOF
9741 cat confdefs.h >>conftest.$ac_ext
9742 cat >>conftest.$ac_ext <<_ACEOF
9743 /* end confdefs.h. */
9744 #include <$ac_header>
9746 if { (ac_try="$ac_cpp conftest.$ac_ext"
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9754 grep -v '^ *+' conftest.er1 >conftest.err
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } >/dev/null; then
9759 if test -s conftest.err; then
9760 ac_cpp_err=$ac_c_preproc_warn_flag
9761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9768 if test -z "$ac_cpp_err"; then
9769 ac_header_preproc=yes
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9774 ac_header_preproc=no
9777 rm -f conftest.err conftest.$ac_ext
9778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9779 echo "${ECHO_T}$ac_header_preproc" >&6; }
9781 # So? What about this header?
9782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9788 ac_header_preproc=yes
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9804 ## ----------------------------------- ##
9805 ## Report this to llvmbugs@cs.uiuc.edu ##
9806 ## ----------------------------------- ##
9808 ) | sed "s/^/$as_me: WARNING: /" >&2
9811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 eval "$as_ac_Header=\$ac_header_preproc"
9818 ac_res=`eval echo '${'$as_ac_Header'}'`
9819 { echo "$as_me:$LINENO: result: $ac_res" >&5
9820 echo "${ECHO_T}$ac_res" >&6; }
9823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9824 cat >>confdefs.h <<_ACEOF
9825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9832 # Check whether --enable-ltdl-install was given.
9833 if test "${enable_ltdl_install+set}" = set; then
9834 enableval=$enable_ltdl_install;
9840 if test x"${enable_ltdl_install-no}" != xno; then
9842 INSTALL_LTDL_FALSE='#'
9844 INSTALL_LTDL_TRUE='#'
9850 if test x"${enable_ltdl_convenience-no}" != xno; then
9851 CONVENIENCE_LTDL_TRUE=
9852 CONVENIENCE_LTDL_FALSE='#'
9854 CONVENIENCE_LTDL_TRUE='#'
9855 CONVENIENCE_LTDL_FALSE=
9859 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9860 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9862 libname_spec='lib$name'
9870 shlibpath_overrides_runpath=unknown
9872 dynamic_linker="$host_os ld.so"
9873 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9874 if test "$GCC" = yes; then
9875 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9876 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9877 # if the path contains ";" then we assume it to be the separator
9878 # otherwise default to the standard path separator (i.e. ":") - it is
9879 # assumed that no part of a normal pathname contains ";" but that should
9880 # okay in the real world where ";" in dirpaths is itself problematic.
9881 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9883 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9886 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9888 need_lib_prefix=unknown
9889 hardcode_into_libs=no
9891 # when you set need_version to no, make sure it does not cause -set_version
9892 # flags to be left without arguments
9893 need_version=unknown
9898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9899 shlibpath_var=LIBPATH
9901 # AIX 3 has no versioning support, so we append a major version to the name.
9902 soname_spec='${libname}${release}${shared_ext}$major'
9909 hardcode_into_libs=yes
9910 if test "$host_cpu" = ia64; then
9911 # AIX 5 supports IA64
9912 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9913 shlibpath_var=LD_LIBRARY_PATH
9915 # With GCC up to 2.95.x, collect2 would create an import file
9916 # for dependence libraries. The import file would start with
9917 # the line `#! .'. This would cause the generated library to
9918 # depend on `.', always an invalid library. This was fixed in
9919 # development snapshots of GCC prior to 3.0.
9921 aix4 | aix4.[01] | aix4.[01].*)
9922 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9924 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9931 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9932 # soname into executable. Probably we can add versioning support to
9933 # collect2, so additional links can be useful in future.
9934 if test "$aix_use_runtimelinking" = yes; then
9935 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9936 # instead of lib<name>.a to let people know that these are not
9937 # typical AIX shared libraries.
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9940 # We preserve .a as extension for shared libraries through AIX4.2
9941 # and later when we are not doing run time linking.
9942 library_names_spec='${libname}${release}.a $libname.a'
9943 soname_spec='${libname}${release}${shared_ext}$major'
9945 shlibpath_var=LIBPATH
9950 library_names_spec='$libname.ixlibrary $libname.a'
9951 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9952 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'
9956 library_names_spec='${libname}${shared_ext}'
9957 dynamic_linker="$host_os ld.so"
9958 shlibpath_var=LIBRARY_PATH
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9967 shlibpath_var=LD_LIBRARY_PATH
9968 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9969 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9970 # the default ld.so.conf also contains /usr/contrib/lib and
9971 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9972 # libtool to hard-code these into programs
9975 cygwin* | mingw* | pw32*)
9976 version_type=windows
9981 case $GCC,$host_os in
9982 yes,cygwin* | yes,mingw* | yes,pw32*)
9983 library_names_spec='$libname.dll.a'
9984 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9985 postinstall_cmds='base_file=`basename \${file}`~
9986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9987 dldir=$destdir/`dirname \$dlpath`~
9988 test -d \$dldir || mkdir -p \$dldir~
9989 $install_prog $dir/$dlname \$dldir/$dlname~
9990 chmod a+x \$dldir/$dlname'
9991 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9992 dlpath=$dir/\$dldll~
9994 shlibpath_overrides_runpath=yes
9998 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9999 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10000 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10003 # MinGW DLLs use traditional 'lib' prefix
10004 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10006 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10007 # It is most probably a Windows format PATH printed by
10008 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10009 # path with ; separators, and with drive letters. We can handle the
10010 # drive letters (cygwin fileutils understands them), so leave them,
10011 # especially as we might pass files found there to a mingw objdump,
10012 # which wouldn't understand a cygwinified path. Ahh.
10013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10015 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10019 # pw32 DLLs use 'pw' prefix rather than 'lib'
10020 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10026 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10029 dynamic_linker='Win32 ld.exe'
10030 # FIXME: first we should search . and the directory the executable is in
10034 darwin* | rhapsody*)
10035 dynamic_linker="$host_os dyld"
10036 version_type=darwin
10039 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10040 soname_spec='${libname}${release}${major}$shared_ext'
10041 shlibpath_overrides_runpath=yes
10042 shlibpath_var=DYLD_LIBRARY_PATH
10043 shrext_cmds='.dylib'
10044 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10045 if test "$GCC" = yes; then
10046 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"`
10048 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10050 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10058 soname_spec='${libname}${release}${shared_ext}$major'
10059 shlibpath_var=LD_LIBRARY_PATH
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10071 soname_spec='${libname}${release}${shared_ext}$major'
10072 shlibpath_var=LD_LIBRARY_PATH
10073 shlibpath_overrides_runpath=no
10074 hardcode_into_libs=yes
10075 dynamic_linker='GNU ld.so'
10078 freebsd* | dragonfly*)
10079 # DragonFly does not have aout. When/if they implement a new
10080 # versioning mechanism, adjust this.
10081 if test -x /usr/bin/objformat; then
10082 objformat=`/usr/bin/objformat`
10085 freebsd[123]*) objformat=aout ;;
10086 *) objformat=elf ;;
10089 version_type=freebsd-$objformat
10090 case $version_type in
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10101 shlibpath_var=LD_LIBRARY_PATH
10104 shlibpath_overrides_runpath=yes
10106 freebsd3.[01]* | freebsdelf3.[01]*)
10107 shlibpath_overrides_runpath=yes
10108 hardcode_into_libs=yes
10110 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10111 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10112 shlibpath_overrides_runpath=no
10113 hardcode_into_libs=yes
10115 freebsd*) # from 4.6 on
10116 shlibpath_overrides_runpath=yes
10117 hardcode_into_libs=yes
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10127 soname_spec='${libname}${release}${shared_ext}$major'
10128 shlibpath_var=LD_LIBRARY_PATH
10129 hardcode_into_libs=yes
10132 hpux9* | hpux10* | hpux11*)
10133 # Give a soname corresponding to the major version so that dld.sl refuses to
10134 # link against other versions.
10141 hardcode_into_libs=yes
10142 dynamic_linker="$host_os dld.so"
10143 shlibpath_var=LD_LIBRARY_PATH
10144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 if test "X$HPUX_IA64_MODE" = X32; then
10148 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10150 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10152 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10156 hardcode_into_libs=yes
10157 dynamic_linker="$host_os dld.sl"
10158 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10167 dynamic_linker="$host_os dld.sl"
10168 shlibpath_var=SHLIB_PATH
10169 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10174 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10175 postinstall_cmds='chmod 555 $lib'
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10185 shlibpath_var=LD_LIBRARY_PATH
10186 shlibpath_overrides_runpath=no
10187 hardcode_into_libs=yes
10190 irix5* | irix6* | nonstopux*)
10192 nonstopux*) version_type=nonstopux ;;
10194 if test "$lt_cv_prog_gnu_ld" = yes; then
10202 soname_spec='${libname}${release}${shared_ext}$major'
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10205 irix5* | nonstopux*)
10206 libsuff= shlibsuff=
10209 case $LD in # libtool.m4 will add one of these switches to LD
10210 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10211 libsuff= shlibsuff= libmagic=32-bit;;
10212 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10213 libsuff=32 shlibsuff=N32 libmagic=N32;;
10214 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10215 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10216 *) libsuff= shlibsuff= libmagic=never-match;;
10220 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10221 shlibpath_overrides_runpath=no
10222 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10223 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10224 hardcode_into_libs=yes
10227 # No shared lib support for Linux oldld, aout, or coff.
10228 linux*oldld* | linux*aout* | linux*coff*)
10232 # This must be Linux ELF.
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238 soname_spec='${libname}${release}${shared_ext}$major'
10239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 shlibpath_overrides_runpath=no
10242 # This implies no fast_install, which is unacceptable.
10243 # Some rework will be needed to allow for fast_install
10244 # before this can be enabled.
10245 hardcode_into_libs=yes
10247 # Append ld.so.conf contents to the search path
10248 if test -f /etc/ld.so.conf; then
10249 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' ' '`
10250 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10253 # We used to test for /lib/ld.so.1 and disable shared libraries on
10254 # powerpc, because MkLinux only supported shared libraries with the
10255 # GNU dynamic linker. Since this was broken with cross compilers,
10256 # most powerpc-linux boxes support dynamic linking these days and
10257 # people can always --disable-shared, the test was removed, and we
10258 # assume the GNU/Linux dynamic linker is in use.
10259 dynamic_linker='GNU/Linux ld.so'
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 shlibpath_overrides_runpath=no
10270 hardcode_into_libs=yes
10271 dynamic_linker='GNU ld.so'
10278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10281 dynamic_linker='NetBSD (a.out) ld.so'
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10284 soname_spec='${libname}${release}${shared_ext}$major'
10285 dynamic_linker='NetBSD ld.elf_so'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10289 hardcode_into_libs=yes
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 shlibpath_overrides_runpath=yes
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes
10311 sys_lib_dlsearch_path_spec="/usr/lib"
10313 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10315 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10316 *) need_version=no ;;
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10323 openbsd2.[89] | openbsd2.[89].*)
10324 shlibpath_overrides_runpath=no
10327 shlibpath_overrides_runpath=yes
10331 shlibpath_overrides_runpath=yes
10336 libname_spec='$name'
10339 library_names_spec='$libname${shared_ext} $libname.a'
10340 dynamic_linker='OS/2 ld.exe'
10341 shlibpath_var=LIBPATH
10344 osf3* | osf4* | osf5*)
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 shlibpath_var=LD_LIBRARY_PATH
10351 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10352 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 shlibpath_overrides_runpath=yes
10363 hardcode_into_libs=yes
10364 # ldd complains unless libraries are executable
10365 postinstall_cmds='chmod +x $lib'
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10371 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=yes
10374 if test "$with_gnu_ld" = yes; then
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 case $host_vendor in
10387 shlibpath_overrides_runpath=no
10389 export_dynamic_flag_spec='${wl}-Blargedynsym'
10390 runpath_var=LD_RUN_PATH
10398 shlibpath_overrides_runpath=no
10399 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10405 if test -d /usr/nec ;then
10407 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10408 soname_spec='$libname${shared_ext}.$major'
10409 shlibpath_var=LD_LIBRARY_PATH
10413 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10414 version_type=freebsd-elf
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 hardcode_into_libs=yes
10421 if test "$with_gnu_ld" = yes; then
10422 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10423 shlibpath_overrides_runpath=no
10425 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10426 shlibpath_overrides_runpath=yes
10429 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10433 sys_lib_dlsearch_path_spec='/usr/lib'
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 shlibpath_var=LD_LIBRARY_PATH
10447 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10448 echo "${ECHO_T}$dynamic_linker" >&6; }
10449 test "$dynamic_linker" = no && can_build_shared=no
10451 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10452 if test "$GCC" = yes; then
10453 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10457 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10458 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10459 if test "${libltdl_cv_shlibext+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10464 eval libltdl_cv_shlibext=$shrext_cmds
10467 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10468 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10469 if test -n "$libltdl_cv_shlibext"; then
10471 cat >>confdefs.h <<_ACEOF
10472 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10478 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10479 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10480 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 libltdl_cv_shlibpath_var="$shlibpath_var"
10485 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10486 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10487 if test -n "$libltdl_cv_shlibpath_var"; then
10489 cat >>confdefs.h <<_ACEOF
10490 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10496 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10497 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10498 if test "${libltdl_cv_sys_search_path+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10503 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10504 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10505 if test -n "$libltdl_cv_sys_search_path"; then
10507 for dir in $libltdl_cv_sys_search_path; do
10508 if test -z "$sys_search_path"; then
10509 sys_search_path="$dir"
10511 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10515 cat >>confdefs.h <<_ACEOF
10516 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10521 { echo "$as_me:$LINENO: checking for objdir" >&5
10522 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10523 if test "${libltdl_cv_objdir+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 libltdl_cv_objdir="$objdir"
10527 if test -n "$objdir"; then
10530 rm -f .libs 2>/dev/null
10531 mkdir .libs 2>/dev/null
10532 if test -d .libs; then
10533 libltdl_cv_objdir=.libs
10535 # MS-DOS does not allow filenames that begin with a dot.
10536 libltdl_cv_objdir=_libs
10538 rmdir .libs 2>/dev/null
10542 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10543 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10545 cat >>confdefs.h <<_ACEOF
10546 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10554 # Check for command to grab the raw symbol name followed by C symbol from nm.
10555 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10556 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10557 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 # These are sane defaults that work on at least a few old systems.
10562 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10564 # Character class describing NM global symbol codes.
10565 symcode='[BCDEGRST]'
10567 # Regexp to match symbols that can be accessed directly from C.
10568 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10570 # Transform an extracted symbol line into a proper C declaration
10571 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10573 # Transform an extracted symbol line into symbol name and symbol address
10574 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'"
10576 # Define system-specific variables.
10581 cygwin* | mingw* | pw32*)
10582 symcode='[ABCDGISTW]'
10584 hpux*) # Its linker distinguishes data from code symbols
10585 if test "$host_cpu" = ia64; then
10586 symcode='[ABCDEGRST]'
10588 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10589 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'"
10592 if test "$host_cpu" = ia64; then
10593 symcode='[ABCDGIRSTW]'
10594 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10595 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'"
10598 irix* | nonstopux*)
10599 symcode='[BCDEGRST]'
10602 symcode='[BCDEGQRST]'
10613 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10621 # Handle CRLF in mingw tool chain
10625 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10629 # If we're using GNU nm, then use its standard symbol codes.
10630 case `$NM -V 2>&1` in
10631 *GNU* | *'with BFD'*)
10632 symcode='[ABCDGIRSTW]' ;;
10635 # Try without a prefix undercore, then with it.
10636 for ac_symprfx in "" "_"; do
10638 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10639 symxfrm="\\1 $ac_symprfx\\2 \\2"
10641 # Write the raw and C identifiers.
10642 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10644 # Check to see that the pipe works correctly.
10648 cat > conftest.$ac_ext <<EOF
10653 void nm_test_func(){}
10657 int main(){nm_test_var='a';nm_test_func();return(0);}
10660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10661 (eval $ac_compile) 2>&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; then
10665 # Now try to grab the symbols.
10667 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10668 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } && test -s "$nlist"; then
10672 # Try sorting and uniquifying the output.
10673 if sort "$nlist" | uniq > "$nlist"T; then
10674 mv -f "$nlist"T "$nlist"
10679 # Make sure that we snagged all the symbols we need.
10680 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10681 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10682 cat <<EOF > conftest.$ac_ext
10688 # Now generate the symbol file.
10689 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10691 cat <<EOF >> conftest.$ac_ext
10692 #if defined (__STDC__) && __STDC__
10693 # define lt_ptr_t void *
10695 # define lt_ptr_t char *
10699 /* The mapping between symbol names and symbols. */
10704 lt_preloaded_symbols[] =
10707 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10708 cat <<\EOF >> conftest.$ac_ext
10716 # Now try linking the two files.
10717 mv conftest.$ac_objext conftstm.$ac_objext
10718 lt_save_LIBS="$LIBS"
10719 lt_save_CFLAGS="$CFLAGS"
10720 LIBS="conftstm.$ac_objext"
10721 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10723 (eval $ac_link) 2>&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10729 LIBS="$lt_save_LIBS"
10730 CFLAGS="$lt_save_CFLAGS"
10732 echo "cannot find nm_test_func in $nlist" >&5
10735 echo "cannot find nm_test_var in $nlist" >&5
10738 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10741 echo "$progname: failed program was:" >&5
10742 cat conftest.$ac_ext >&5
10744 rm -f conftest* conftst*
10746 # Do not use the global_symbol_pipe unless it works.
10747 if test "$pipe_works" = yes; then
10750 lt_cv_sys_global_symbol_pipe=
10756 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10757 lt_cv_sys_global_symbol_to_cdecl=
10759 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10760 { echo "$as_me:$LINENO: result: failed" >&5
10761 echo "${ECHO_T}failed" >&6; }
10763 { echo "$as_me:$LINENO: result: ok" >&5
10764 echo "${ECHO_T}ok" >&6; }
10768 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10769 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10770 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10774 libltdl_cv_preloaded_symbols=yes
10776 libltdl_cv_preloaded_symbols=no
10780 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10781 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10782 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10784 cat >>confdefs.h <<\_ACEOF
10785 #define HAVE_PRELOADED_SYMBOLS 1
10793 ac_cpp='$CPP $CPPFLAGS'
10794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10799 { echo "$as_me:$LINENO: checking for shl_load" >&5
10800 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10801 if test "${ac_cv_func_shl_load+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 cat >conftest.$ac_ext <<_ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10812 #define shl_load innocuous_shl_load
10814 /* System header to define __stub macros and hopefully few prototypes,
10815 which can conflict with char shl_load (); below.
10816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10817 <limits.h> exists even on freestanding compilers. */
10820 # include <limits.h>
10822 # include <assert.h>
10827 /* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
10834 /* The GNU C library defines this for functions which it implements
10835 to always fail with ENOSYS. Some functions are actually named
10836 something starting with __ and the normal name is an alias. */
10837 #if defined __stub_shl_load || defined __stub___shl_load
10844 return shl_load ();
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (ac_try="$ac_link"
10851 case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_link") 2>conftest.er1
10858 grep -v '^ *+' conftest.er1 >conftest.err
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
10863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10864 { (case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_try") 2>&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; } &&
10873 { ac_try='test -s conftest$ac_exeext'
10874 { (case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_try") 2>&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
10883 ac_cv_func_shl_load=yes
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10888 ac_cv_func_shl_load=no
10891 rm -f core conftest.err conftest.$ac_objext \
10892 conftest$ac_exeext conftest.$ac_ext
10894 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10895 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10896 if test $ac_cv_func_shl_load = yes; then
10898 cat >>confdefs.h <<\_ACEOF
10899 #define HAVE_SHL_LOAD 1
10903 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10904 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10905 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 ac_check_lib_save_LIBS=$LIBS
10910 cat >conftest.$ac_ext <<_ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h. */
10917 /* Override any GCC internal prototype to avoid an error.
10918 Use char because int might match the return type of a GCC
10919 builtin and then its argument prototype would still apply. */
10927 return shl_load ();
10932 rm -f conftest.$ac_objext conftest$ac_exeext
10933 if { (ac_try="$ac_link"
10934 case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_link") 2>conftest.er1
10941 grep -v '^ *+' conftest.er1 >conftest.err
10943 cat conftest.err >&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } &&
10946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10947 { (case "(($ac_try" in
10948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949 *) ac_try_echo=$ac_try;;
10951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10952 (eval "$ac_try") 2>&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; } &&
10956 { ac_try='test -s conftest$ac_exeext'
10957 { (case "(($ac_try" in
10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962 (eval "$ac_try") 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 ac_cv_lib_dld_shl_load=yes
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 ac_cv_lib_dld_shl_load=no
10974 rm -f core conftest.err conftest.$ac_objext \
10975 conftest$ac_exeext conftest.$ac_ext
10976 LIBS=$ac_check_lib_save_LIBS
10978 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10979 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10980 if test $ac_cv_lib_dld_shl_load = yes; then
10982 cat >>confdefs.h <<\_ACEOF
10983 #define HAVE_SHL_LOAD 1
10986 LIBADD_DL="$LIBADD_DL -ldld"
10988 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10989 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10990 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 ac_check_lib_save_LIBS=$LIBS
10995 cat >conftest.$ac_ext <<_ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11002 /* Override any GCC internal prototype to avoid an error.
11003 Use char because int might match the return type of a GCC
11004 builtin and then its argument prototype would still apply. */
11017 rm -f conftest.$ac_objext conftest$ac_exeext
11018 if { (ac_try="$ac_link"
11019 case "(($ac_try" in
11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024 (eval "$ac_link") 2>conftest.er1
11026 grep -v '^ *+' conftest.er1 >conftest.err
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } &&
11031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11032 { (case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_try") 2>&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; } &&
11041 { ac_try='test -s conftest$ac_exeext'
11042 { (case "(($ac_try" in
11043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044 *) ac_try_echo=$ac_try;;
11046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11047 (eval "$ac_try") 2>&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; }; then
11051 ac_cv_lib_dl_dlopen=yes
11053 echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11056 ac_cv_lib_dl_dlopen=no
11059 rm -f core conftest.err conftest.$ac_objext \
11060 conftest$ac_exeext conftest.$ac_ext
11061 LIBS=$ac_check_lib_save_LIBS
11063 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11064 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11065 if test $ac_cv_lib_dl_dlopen = yes; then
11067 cat >>confdefs.h <<\_ACEOF
11068 #define HAVE_LIBDL 1
11071 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11073 cat >conftest.$ac_ext <<_ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h. */
11080 # include <dlfcn.h>
11091 rm -f conftest.$ac_objext conftest$ac_exeext
11092 if { (ac_try="$ac_link"
11093 case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_link") 2>conftest.er1
11100 grep -v '^ *+' conftest.er1 >conftest.err
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } &&
11105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11106 { (case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_try") 2>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; } &&
11115 { ac_try='test -s conftest$ac_exeext'
11116 { (case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121 (eval "$ac_try") 2>&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; }; then
11126 cat >>confdefs.h <<\_ACEOF
11127 #define HAVE_LIBDL 1
11129 libltdl_cv_func_dlopen="yes"
11131 echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11134 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11135 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11136 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 ac_check_lib_save_LIBS=$LIBS
11140 LIBS="-lsvld $LIBS"
11141 cat >conftest.$ac_ext <<_ACEOF
11144 cat confdefs.h >>conftest.$ac_ext
11145 cat >>conftest.$ac_ext <<_ACEOF
11146 /* end confdefs.h. */
11148 /* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11163 rm -f conftest.$ac_objext conftest$ac_exeext
11164 if { (ac_try="$ac_link"
11165 case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_link") 2>conftest.er1
11172 grep -v '^ *+' conftest.er1 >conftest.err
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); } &&
11177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11178 { (case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_try") 2>&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest$ac_exeext'
11188 { (case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_try") 2>&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
11197 ac_cv_lib_svld_dlopen=yes
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11202 ac_cv_lib_svld_dlopen=no
11205 rm -f core conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11207 LIBS=$ac_check_lib_save_LIBS
11209 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11210 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11211 if test $ac_cv_lib_svld_dlopen = yes; then
11213 cat >>confdefs.h <<\_ACEOF
11214 #define HAVE_LIBDL 1
11217 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11219 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11220 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11221 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 ac_check_lib_save_LIBS=$LIBS
11226 cat >conftest.$ac_ext <<_ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11233 /* Override any GCC internal prototype to avoid an error.
11234 Use char because int might match the return type of a GCC
11235 builtin and then its argument prototype would still apply. */
11243 return dld_link ();
11248 rm -f conftest.$ac_objext conftest$ac_exeext
11249 if { (ac_try="$ac_link"
11250 case "(($ac_try" in
11251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252 *) ac_try_echo=$ac_try;;
11254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255 (eval "$ac_link") 2>conftest.er1
11257 grep -v '^ *+' conftest.er1 >conftest.err
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } &&
11262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11263 { (case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268 (eval "$ac_try") 2>&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; } &&
11272 { ac_try='test -s conftest$ac_exeext'
11273 { (case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_try") 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 ac_cv_lib_dld_dld_link=yes
11284 echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11287 ac_cv_lib_dld_dld_link=no
11290 rm -f core conftest.err conftest.$ac_objext \
11291 conftest$ac_exeext conftest.$ac_ext
11292 LIBS=$ac_check_lib_save_LIBS
11294 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11295 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11296 if test $ac_cv_lib_dld_dld_link = yes; then
11298 cat >>confdefs.h <<\_ACEOF
11302 LIBADD_DL="$LIBADD_DL -ldld"
11304 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11305 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11306 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 cat >conftest.$ac_ext <<_ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11317 #define _dyld_func_lookup innocuous__dyld_func_lookup
11319 /* System header to define __stub macros and hopefully few prototypes,
11320 which can conflict with char _dyld_func_lookup (); below.
11321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11322 <limits.h> exists even on freestanding compilers. */
11325 # include <limits.h>
11327 # include <assert.h>
11330 #undef _dyld_func_lookup
11332 /* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
11338 char _dyld_func_lookup ();
11339 /* The GNU C library defines this for functions which it implements
11340 to always fail with ENOSYS. Some functions are actually named
11341 something starting with __ and the normal name is an alias. */
11342 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11349 return _dyld_func_lookup ();
11354 rm -f conftest.$ac_objext conftest$ac_exeext
11355 if { (ac_try="$ac_link"
11356 case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_link") 2>conftest.er1
11363 grep -v '^ *+' conftest.er1 >conftest.err
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
11368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11369 { (case "(($ac_try" in
11370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371 *) ac_try_echo=$ac_try;;
11373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374 (eval "$ac_try") 2>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; } &&
11378 { ac_try='test -s conftest$ac_exeext'
11379 { (case "(($ac_try" in
11380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381 *) ac_try_echo=$ac_try;;
11383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11384 (eval "$ac_try") 2>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_cv_func__dyld_func_lookup=yes
11390 echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11393 ac_cv_func__dyld_func_lookup=no
11396 rm -f core conftest.err conftest.$ac_objext \
11397 conftest$ac_exeext conftest.$ac_ext
11399 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11400 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11401 if test $ac_cv_func__dyld_func_lookup = yes; then
11403 cat >>confdefs.h <<\_ACEOF
11404 #define HAVE_DYLD 1
11418 rm -f core conftest.err conftest.$ac_objext \
11419 conftest$ac_exeext conftest.$ac_ext
11430 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11432 lt_save_LIBS="$LIBS"
11433 LIBS="$LIBS $LIBADD_DL"
11435 for ac_func in dlerror
11437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 cat >conftest.$ac_ext <<_ACEOF
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h. */
11449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11451 #define $ac_func innocuous_$ac_func
11453 /* System header to define __stub macros and hopefully few prototypes,
11454 which can conflict with char $ac_func (); below.
11455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11456 <limits.h> exists even on freestanding compilers. */
11459 # include <limits.h>
11461 # include <assert.h>
11466 /* Override any GCC internal prototype to avoid an error.
11467 Use char because int might match the return type of a GCC
11468 builtin and then its argument prototype would still apply. */
11473 /* The GNU C library defines this for functions which it implements
11474 to always fail with ENOSYS. Some functions are actually named
11475 something starting with __ and the normal name is an alias. */
11476 #if defined __stub_$ac_func || defined __stub___$ac_func
11483 return $ac_func ();
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (ac_try="$ac_link"
11490 case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_link") 2>conftest.er1
11497 grep -v '^ *+' conftest.er1 >conftest.err
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } &&
11502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11503 { (case "(($ac_try" in
11504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505 *) ac_try_echo=$ac_try;;
11507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508 (eval "$ac_try") 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; } &&
11512 { ac_try='test -s conftest$ac_exeext'
11513 { (case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_try") 2>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; }; then
11522 eval "$as_ac_var=yes"
11524 echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11527 eval "$as_ac_var=no"
11530 rm -f core conftest.err conftest.$ac_objext \
11531 conftest$ac_exeext conftest.$ac_ext
11533 ac_res=`eval echo '${'$as_ac_var'}'`
11534 { echo "$as_me:$LINENO: result: $ac_res" >&5
11535 echo "${ECHO_T}$ac_res" >&6; }
11536 if test `eval echo '${'$as_ac_var'}'` = yes; then
11537 cat >>confdefs.h <<_ACEOF
11538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11544 LIBS="$lt_save_LIBS"
11547 ac_cpp='$CPP $CPPFLAGS'
11548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11554 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11555 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11556 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11559 ac_cv_sys_symbol_underscore=no
11560 cat > conftest.$ac_ext <<EOF
11561 void nm_test_func(){}
11562 int main(){nm_test_func;return 0;}
11564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11565 (eval $ac_compile) 2>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; then
11569 # Now try to grab the symbols.
11570 ac_nlist=conftest.nm
11571 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11572 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } && test -s "$ac_nlist"; then
11576 # See whether the symbols have a leading underscore.
11577 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11578 ac_cv_sys_symbol_underscore=yes
11580 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11583 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11587 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11590 echo "configure: failed program was:" >&5
11596 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11597 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11600 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11601 if test x"$libltdl_cv_func_dlopen" = xyes ||
11602 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11603 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11604 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11605 if test "${libltdl_cv_need_uscore+set}" = set; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 libltdl_cv_need_uscore=unknown
11610 LIBS="$LIBS $LIBADD_DL"
11611 if test "$cross_compiling" = yes; then :
11612 libltdl_cv_need_uscore=cross
11614 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11615 lt_status=$lt_dlunknown
11616 cat > conftest.$ac_ext <<EOF
11617 #line 11617 "configure"
11618 #include "confdefs.h"
11627 # define LT_DLGLOBAL RTLD_GLOBAL
11630 # define LT_DLGLOBAL DL_GLOBAL
11632 # define LT_DLGLOBAL 0
11636 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11637 find out it does not work in some platform. */
11638 #ifndef LT_DLLAZY_OR_NOW
11640 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11643 # define LT_DLLAZY_OR_NOW DL_LAZY
11646 # define LT_DLLAZY_OR_NOW RTLD_NOW
11649 # define LT_DLLAZY_OR_NOW DL_NOW
11651 # define LT_DLLAZY_OR_NOW 0
11659 extern "C" void exit (int);
11662 void fnord() { int i=42;}
11665 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11666 int status = $lt_dlunknown;
11670 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11671 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11672 /* dlclose (self); */
11680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11681 (eval $ac_link) 2>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11685 (./conftest; exit; ) >&5 2>/dev/null
11687 case x$lt_status in
11688 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11689 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11690 x$lt_dlunknown|x*) ;;
11693 # compilation failed
11702 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11703 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11707 if test x"$libltdl_cv_need_uscore" = xyes; then
11709 cat >>confdefs.h <<\_ACEOF
11710 #define NEED_USCORE 1
11716 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11717 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11718 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 # PORTME does your system automatically load deplibs for dlopen?
11722 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11723 # For now, we just catch OSes we know something about -- in the
11724 # future, we'll try test this programmatically.
11725 libltdl_cv_sys_dlopen_deplibs=unknown
11727 aix3*|aix4.1.*|aix4.2.*)
11728 # Unknown whether this is true for these versions of AIX, but
11729 # we want this `case' here to explicitly catch those versions.
11730 libltdl_cv_sys_dlopen_deplibs=unknown
11733 libltdl_cv_sys_dlopen_deplibs=yes
11736 # Assuming the user has installed a libdl from somewhere, this is true
11737 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11738 libltdl_cv_sys_dlopen_deplibs=yes
11740 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11741 # GNU and its variants, using gnu ld.so (Glibc)
11742 libltdl_cv_sys_dlopen_deplibs=yes
11745 libltdl_cv_sys_dlopen_deplibs=yes
11748 libltdl_cv_sys_dlopen_deplibs=yes
11750 irix[12345]*|irix6.[01]*)
11751 # Catch all versions of IRIX before 6.2, and indicate that we don't
11752 # know how it worked for any of those versions.
11753 libltdl_cv_sys_dlopen_deplibs=unknown
11756 # The case above catches anything before 6.2, and it's known that
11757 # at 6.2 and later dlopen does load deplibs.
11758 libltdl_cv_sys_dlopen_deplibs=yes
11761 libltdl_cv_sys_dlopen_deplibs=yes
11764 libltdl_cv_sys_dlopen_deplibs=yes
11767 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11768 # it did *not* use an RPATH in a shared library to find objects the
11769 # library depends on, so we explicitly say `no'.
11770 libltdl_cv_sys_dlopen_deplibs=no
11772 osf5.0|osf5.0a|osf5.1)
11773 # dlopen *does* load deplibs and with the right loader patch applied
11774 # it even uses RPATH in a shared library to search for shared objects
11775 # that the library depends on, but there's no easy way to know if that
11776 # patch is installed. Since this is the case, all we can really
11777 # say is unknown -- it depends on the patch being installed. If
11778 # it is, this changes to `yes'. Without it, it would be `no'.
11779 libltdl_cv_sys_dlopen_deplibs=unknown
11782 # the two cases above should catch all versions of osf <= 5.1. Read
11783 # the comments above for what we know about them.
11784 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11785 # is used to find them so we can finally say `yes'.
11786 libltdl_cv_sys_dlopen_deplibs=yes
11789 libltdl_cv_sys_dlopen_deplibs=yes
11791 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11792 libltdl_cv_sys_dlopen_deplibs=yes
11797 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11798 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11799 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11801 cat >>confdefs.h <<\_ACEOF
11802 #define LTDL_DLOPEN_DEPLIBS 1
11808 for ac_header in argz.h
11810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 ac_res=`eval echo '${'$as_ac_Header'}'`
11818 { echo "$as_me:$LINENO: result: $ac_res" >&5
11819 echo "${ECHO_T}$ac_res" >&6; }
11821 # Is the header compilable?
11822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11824 cat >conftest.$ac_ext <<_ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830 $ac_includes_default
11831 #include <$ac_header>
11833 rm -f conftest.$ac_objext
11834 if { (ac_try="$ac_compile"
11835 case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_compile") 2>conftest.er1
11842 grep -v '^ *+' conftest.er1 >conftest.err
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } &&
11847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11848 { (case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_try") 2>&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; } &&
11857 { ac_try='test -s conftest.$ac_objext'
11858 { (case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_try") 2>&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; }; then
11867 ac_header_compiler=yes
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11872 ac_header_compiler=no
11875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11877 echo "${ECHO_T}$ac_header_compiler" >&6; }
11879 # Is the header present?
11880 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11882 cat >conftest.$ac_ext <<_ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 #include <$ac_header>
11890 if { (ac_try="$ac_cpp conftest.$ac_ext"
11891 case "(($ac_try" in
11892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893 *) ac_try_echo=$ac_try;;
11895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11898 grep -v '^ *+' conftest.er1 >conftest.err
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } >/dev/null; then
11903 if test -s conftest.err; then
11904 ac_cpp_err=$ac_c_preproc_warn_flag
11905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11912 if test -z "$ac_cpp_err"; then
11913 ac_header_preproc=yes
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11918 ac_header_preproc=no
11921 rm -f conftest.err conftest.$ac_ext
11922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11923 echo "${ECHO_T}$ac_header_preproc" >&6; }
11925 # So? What about this header?
11926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11932 ac_header_preproc=yes
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11942 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11948 ## ----------------------------------- ##
11949 ## Report this to llvmbugs@cs.uiuc.edu ##
11950 ## ----------------------------------- ##
11952 ) | sed "s/^/$as_me: WARNING: /" >&2
11955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11960 eval "$as_ac_Header=\$ac_header_preproc"
11962 ac_res=`eval echo '${'$as_ac_Header'}'`
11963 { echo "$as_me:$LINENO: result: $ac_res" >&5
11964 echo "${ECHO_T}$ac_res" >&6; }
11967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11968 cat >>confdefs.h <<_ACEOF
11969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11977 { echo "$as_me:$LINENO: checking for error_t" >&5
11978 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11979 if test "${ac_cv_type_error_t+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11982 cat >conftest.$ac_ext <<_ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11992 typedef error_t ac__type_new_;
11996 if ((ac__type_new_ *) 0)
11998 if (sizeof (ac__type_new_))
12004 rm -f conftest.$ac_objext
12005 if { (ac_try="$ac_compile"
12006 case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011 (eval "$ac_compile") 2>conftest.er1
12013 grep -v '^ *+' conftest.er1 >conftest.err
12015 cat conftest.err >&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } &&
12018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12019 { (case "(($ac_try" in
12020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021 *) ac_try_echo=$ac_try;;
12023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12024 (eval "$ac_try") 2>&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; } &&
12028 { ac_try='test -s conftest.$ac_objext'
12029 { (case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_try") 2>&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; }; then
12038 ac_cv_type_error_t=yes
12040 echo "$as_me: failed program was:" >&5
12041 sed 's/^/| /' conftest.$ac_ext >&5
12043 ac_cv_type_error_t=no
12046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12048 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12049 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12050 if test $ac_cv_type_error_t = yes; then
12052 cat >>confdefs.h <<_ACEOF
12053 #define HAVE_ERROR_T 1
12059 cat >>confdefs.h <<\_ACEOF
12060 #define error_t int
12071 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12079 cat >conftest.$ac_ext <<_ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h. */
12085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12087 #define $ac_func innocuous_$ac_func
12089 /* System header to define __stub macros and hopefully few prototypes,
12090 which can conflict with char $ac_func (); below.
12091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12092 <limits.h> exists even on freestanding compilers. */
12095 # include <limits.h>
12097 # include <assert.h>
12102 /* Override any GCC internal prototype to avoid an error.
12103 Use char because int might match the return type of a GCC
12104 builtin and then its argument prototype would still apply. */
12109 /* The GNU C library defines this for functions which it implements
12110 to always fail with ENOSYS. Some functions are actually named
12111 something starting with __ and the normal name is an alias. */
12112 #if defined __stub_$ac_func || defined __stub___$ac_func
12119 return $ac_func ();
12124 rm -f conftest.$ac_objext conftest$ac_exeext
12125 if { (ac_try="$ac_link"
12126 case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_link") 2>conftest.er1
12133 grep -v '^ *+' conftest.er1 >conftest.err
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12139 { (case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_try") 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } &&
12148 { ac_try='test -s conftest$ac_exeext'
12149 { (case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_try") 2>&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; }; then
12158 eval "$as_ac_var=yes"
12160 echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12163 eval "$as_ac_var=no"
12166 rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext conftest.$ac_ext
12169 ac_res=`eval echo '${'$as_ac_var'}'`
12170 { echo "$as_me:$LINENO: result: $ac_res" >&5
12171 echo "${ECHO_T}$ac_res" >&6; }
12172 if test `eval echo '${'$as_ac_var'}'` = yes; then
12173 cat >>confdefs.h <<_ACEOF
12174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12207 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12217 ac_res=`eval echo '${'$as_ac_Header'}'`
12218 { echo "$as_me:$LINENO: result: $ac_res" >&5
12219 echo "${ECHO_T}$ac_res" >&6; }
12221 # Is the header compilable?
12222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12224 cat >conftest.$ac_ext <<_ACEOF
12227 cat confdefs.h >>conftest.$ac_ext
12228 cat >>conftest.$ac_ext <<_ACEOF
12229 /* end confdefs.h. */
12230 $ac_includes_default
12231 #include <$ac_header>
12233 rm -f conftest.$ac_objext
12234 if { (ac_try="$ac_compile"
12235 case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12242 grep -v '^ *+' conftest.er1 >conftest.err
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12248 { (case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_try") 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest.$ac_objext'
12258 { (case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_try") 2>&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
12267 ac_header_compiler=yes
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272 ac_header_compiler=no
12275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12277 echo "${ECHO_T}$ac_header_compiler" >&6; }
12279 # Is the header present?
12280 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12282 cat >conftest.$ac_ext <<_ACEOF
12285 cat confdefs.h >>conftest.$ac_ext
12286 cat >>conftest.$ac_ext <<_ACEOF
12287 /* end confdefs.h. */
12288 #include <$ac_header>
12290 if { (ac_try="$ac_cpp conftest.$ac_ext"
12291 case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12298 grep -v '^ *+' conftest.er1 >conftest.err
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } >/dev/null; then
12303 if test -s conftest.err; then
12304 ac_cpp_err=$ac_c_preproc_warn_flag
12305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12312 if test -z "$ac_cpp_err"; then
12313 ac_header_preproc=yes
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12318 ac_header_preproc=no
12321 rm -f conftest.err conftest.$ac_ext
12322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12323 echo "${ECHO_T}$ac_header_preproc" >&6; }
12325 # So? What about this header?
12326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12332 ac_header_preproc=yes
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12342 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12348 ## ----------------------------------- ##
12349 ## Report this to llvmbugs@cs.uiuc.edu ##
12350 ## ----------------------------------- ##
12352 ) | sed "s/^/$as_me: WARNING: /" >&2
12355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12358 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 eval "$as_ac_Header=\$ac_header_preproc"
12362 ac_res=`eval echo '${'$as_ac_Header'}'`
12363 { echo "$as_me:$LINENO: result: $ac_res" >&5
12364 echo "${ECHO_T}$ac_res" >&6; }
12367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12368 cat >>confdefs.h <<_ACEOF
12369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12380 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 ac_res=`eval echo '${'$as_ac_Header'}'`
12390 { echo "$as_me:$LINENO: result: $ac_res" >&5
12391 echo "${ECHO_T}$ac_res" >&6; }
12393 # Is the header compilable?
12394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12396 cat >conftest.$ac_ext <<_ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12402 $ac_includes_default
12403 #include <$ac_header>
12405 rm -f conftest.$ac_objext
12406 if { (ac_try="$ac_compile"
12407 case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_compile") 2>conftest.er1
12414 grep -v '^ *+' conftest.er1 >conftest.err
12416 cat conftest.err >&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } &&
12419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12420 { (case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_try") 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; } &&
12429 { ac_try='test -s conftest.$ac_objext'
12430 { (case "(($ac_try" in
12431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432 *) ac_try_echo=$ac_try;;
12434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12435 (eval "$ac_try") 2>&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; }; then
12439 ac_header_compiler=yes
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 ac_header_compiler=no
12447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12448 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12449 echo "${ECHO_T}$ac_header_compiler" >&6; }
12451 # Is the header present?
12452 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12454 cat >conftest.$ac_ext <<_ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12460 #include <$ac_header>
12462 if { (ac_try="$ac_cpp conftest.$ac_ext"
12463 case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12470 grep -v '^ *+' conftest.er1 >conftest.err
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } >/dev/null; then
12475 if test -s conftest.err; then
12476 ac_cpp_err=$ac_c_preproc_warn_flag
12477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12484 if test -z "$ac_cpp_err"; then
12485 ac_header_preproc=yes
12487 echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12490 ac_header_preproc=no
12493 rm -f conftest.err conftest.$ac_ext
12494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12495 echo "${ECHO_T}$ac_header_preproc" >&6; }
12497 # So? What about this header?
12498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12504 ac_header_preproc=yes
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12520 ## ----------------------------------- ##
12521 ## Report this to llvmbugs@cs.uiuc.edu ##
12522 ## ----------------------------------- ##
12524 ) | sed "s/^/$as_me: WARNING: /" >&2
12527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 eval "$as_ac_Header=\$ac_header_preproc"
12534 ac_res=`eval echo '${'$as_ac_Header'}'`
12535 { echo "$as_me:$LINENO: result: $ac_res" >&5
12536 echo "${ECHO_T}$ac_res" >&6; }
12539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12540 cat >>confdefs.h <<_ACEOF
12541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12550 for ac_header in string.h strings.h
12552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 ac_res=`eval echo '${'$as_ac_Header'}'`
12560 { echo "$as_me:$LINENO: result: $ac_res" >&5
12561 echo "${ECHO_T}$ac_res" >&6; }
12563 # Is the header compilable?
12564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12566 cat >conftest.$ac_ext <<_ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12572 $ac_includes_default
12573 #include <$ac_header>
12575 rm -f conftest.$ac_objext
12576 if { (ac_try="$ac_compile"
12577 case "(($ac_try" in
12578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579 *) ac_try_echo=$ac_try;;
12581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582 (eval "$ac_compile") 2>conftest.er1
12584 grep -v '^ *+' conftest.er1 >conftest.err
12586 cat conftest.err >&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); } &&
12589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12590 { (case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_try") 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; } &&
12599 { ac_try='test -s conftest.$ac_objext'
12600 { (case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_try") 2>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12609 ac_header_compiler=yes
12611 echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12614 ac_header_compiler=no
12617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12619 echo "${ECHO_T}$ac_header_compiler" >&6; }
12621 # Is the header present?
12622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12624 cat >conftest.$ac_ext <<_ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12630 #include <$ac_header>
12632 if { (ac_try="$ac_cpp conftest.$ac_ext"
12633 case "(($ac_try" in
12634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635 *) ac_try_echo=$ac_try;;
12637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12640 grep -v '^ *+' conftest.er1 >conftest.err
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } >/dev/null; then
12645 if test -s conftest.err; then
12646 ac_cpp_err=$ac_c_preproc_warn_flag
12647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12654 if test -z "$ac_cpp_err"; then
12655 ac_header_preproc=yes
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12660 ac_header_preproc=no
12663 rm -f conftest.err conftest.$ac_ext
12664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12665 echo "${ECHO_T}$ac_header_preproc" >&6; }
12667 # So? What about this header?
12668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12674 ac_header_preproc=yes
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12684 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12690 ## ----------------------------------- ##
12691 ## Report this to llvmbugs@cs.uiuc.edu ##
12692 ## ----------------------------------- ##
12694 ) | sed "s/^/$as_me: WARNING: /" >&2
12697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 eval "$as_ac_Header=\$ac_header_preproc"
12704 ac_res=`eval echo '${'$as_ac_Header'}'`
12705 { echo "$as_me:$LINENO: result: $ac_res" >&5
12706 echo "${ECHO_T}$ac_res" >&6; }
12709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12710 cat >>confdefs.h <<_ACEOF
12711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12721 for ac_func in strchr index
12723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12727 echo $ECHO_N "(cached) $ECHO_C" >&6
12729 cat >conftest.$ac_ext <<_ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h. */
12735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12737 #define $ac_func innocuous_$ac_func
12739 /* System header to define __stub macros and hopefully few prototypes,
12740 which can conflict with char $ac_func (); below.
12741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12742 <limits.h> exists even on freestanding compilers. */
12745 # include <limits.h>
12747 # include <assert.h>
12752 /* Override any GCC internal prototype to avoid an error.
12753 Use char because int might match the return type of a GCC
12754 builtin and then its argument prototype would still apply. */
12759 /* The GNU C library defines this for functions which it implements
12760 to always fail with ENOSYS. Some functions are actually named
12761 something starting with __ and the normal name is an alias. */
12762 #if defined __stub_$ac_func || defined __stub___$ac_func
12769 return $ac_func ();
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (ac_try="$ac_link"
12776 case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781 (eval "$ac_link") 2>conftest.er1
12783 grep -v '^ *+' conftest.er1 >conftest.err
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12789 { (case "(($ac_try" in
12790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791 *) ac_try_echo=$ac_try;;
12793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 (eval "$ac_try") 2>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; } &&
12798 { ac_try='test -s conftest$ac_exeext'
12799 { (case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_try") 2>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; }; then
12808 eval "$as_ac_var=yes"
12810 echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12813 eval "$as_ac_var=no"
12816 rm -f core conftest.err conftest.$ac_objext \
12817 conftest$ac_exeext conftest.$ac_ext
12819 ac_res=`eval echo '${'$as_ac_var'}'`
12820 { echo "$as_me:$LINENO: result: $ac_res" >&5
12821 echo "${ECHO_T}$ac_res" >&6; }
12822 if test `eval echo '${'$as_ac_var'}'` = yes; then
12823 cat >>confdefs.h <<_ACEOF
12824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12832 for ac_func in strrchr rindex
12834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12840 cat >conftest.$ac_ext <<_ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h. */
12846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12848 #define $ac_func innocuous_$ac_func
12850 /* System header to define __stub macros and hopefully few prototypes,
12851 which can conflict with char $ac_func (); below.
12852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12853 <limits.h> exists even on freestanding compilers. */
12856 # include <limits.h>
12858 # include <assert.h>
12863 /* Override any GCC internal prototype to avoid an error.
12864 Use char because int might match the return type of a GCC
12865 builtin and then its argument prototype would still apply. */
12870 /* The GNU C library defines this for functions which it implements
12871 to always fail with ENOSYS. Some functions are actually named
12872 something starting with __ and the normal name is an alias. */
12873 #if defined __stub_$ac_func || defined __stub___$ac_func
12880 return $ac_func ();
12885 rm -f conftest.$ac_objext conftest$ac_exeext
12886 if { (ac_try="$ac_link"
12887 case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_link") 2>conftest.er1
12894 grep -v '^ *+' conftest.er1 >conftest.err
12896 cat conftest.err >&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } &&
12899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12900 { (case "(($ac_try" in
12901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902 *) ac_try_echo=$ac_try;;
12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905 (eval "$ac_try") 2>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; } &&
12909 { ac_try='test -s conftest$ac_exeext'
12910 { (case "(($ac_try" in
12911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912 *) ac_try_echo=$ac_try;;
12914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12915 (eval "$ac_try") 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 eval "$as_ac_var=yes"
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12924 eval "$as_ac_var=no"
12927 rm -f core conftest.err conftest.$ac_objext \
12928 conftest$ac_exeext conftest.$ac_ext
12930 ac_res=`eval echo '${'$as_ac_var'}'`
12931 { echo "$as_me:$LINENO: result: $ac_res" >&5
12932 echo "${ECHO_T}$ac_res" >&6; }
12933 if test `eval echo '${'$as_ac_var'}'` = yes; then
12934 cat >>confdefs.h <<_ACEOF
12935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12943 for ac_func in memcpy bcopy
12945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12951 cat >conftest.$ac_ext <<_ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12959 #define $ac_func innocuous_$ac_func
12961 /* System header to define __stub macros and hopefully few prototypes,
12962 which can conflict with char $ac_func (); below.
12963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12964 <limits.h> exists even on freestanding compilers. */
12967 # include <limits.h>
12969 # include <assert.h>
12974 /* Override any GCC internal prototype to avoid an error.
12975 Use char because int might match the return type of a GCC
12976 builtin and then its argument prototype would still apply. */
12981 /* The GNU C library defines this for functions which it implements
12982 to always fail with ENOSYS. Some functions are actually named
12983 something starting with __ and the normal name is an alias. */
12984 #if defined __stub_$ac_func || defined __stub___$ac_func
12991 return $ac_func ();
12996 rm -f conftest.$ac_objext conftest$ac_exeext
12997 if { (ac_try="$ac_link"
12998 case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_link") 2>conftest.er1
13005 grep -v '^ *+' conftest.er1 >conftest.err
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } &&
13010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13011 { (case "(($ac_try" in
13012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013 *) ac_try_echo=$ac_try;;
13015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016 (eval "$ac_try") 2>&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; } &&
13020 { ac_try='test -s conftest$ac_exeext'
13021 { (case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 (eval "$ac_try") 2>&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; }; then
13030 eval "$as_ac_var=yes"
13032 echo "$as_me: failed program was:" >&5
13033 sed 's/^/| /' conftest.$ac_ext >&5
13035 eval "$as_ac_var=no"
13038 rm -f core conftest.err conftest.$ac_objext \
13039 conftest$ac_exeext conftest.$ac_ext
13041 ac_res=`eval echo '${'$as_ac_var'}'`
13042 { echo "$as_me:$LINENO: result: $ac_res" >&5
13043 echo "${ECHO_T}$ac_res" >&6; }
13044 if test `eval echo '${'$as_ac_var'}'` = yes; then
13045 cat >>confdefs.h <<_ACEOF
13046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13054 for ac_func in memmove strcmp
13056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13057 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13060 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 cat >conftest.$ac_ext <<_ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h. */
13068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13070 #define $ac_func innocuous_$ac_func
13072 /* System header to define __stub macros and hopefully few prototypes,
13073 which can conflict with char $ac_func (); below.
13074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13075 <limits.h> exists even on freestanding compilers. */
13078 # include <limits.h>
13080 # include <assert.h>
13085 /* Override any GCC internal prototype to avoid an error.
13086 Use char because int might match the return type of a GCC
13087 builtin and then its argument prototype would still apply. */
13092 /* The GNU C library defines this for functions which it implements
13093 to always fail with ENOSYS. Some functions are actually named
13094 something starting with __ and the normal name is an alias. */
13095 #if defined __stub_$ac_func || defined __stub___$ac_func
13102 return $ac_func ();
13107 rm -f conftest.$ac_objext conftest$ac_exeext
13108 if { (ac_try="$ac_link"
13109 case "(($ac_try" in
13110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13111 *) ac_try_echo=$ac_try;;
13113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13114 (eval "$ac_link") 2>conftest.er1
13116 grep -v '^ *+' conftest.er1 >conftest.err
13118 cat conftest.err >&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } &&
13121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13122 { (case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_try") 2>&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; } &&
13131 { ac_try='test -s conftest$ac_exeext'
13132 { (case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_try") 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13141 eval "$as_ac_var=yes"
13143 echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13146 eval "$as_ac_var=no"
13149 rm -f core conftest.err conftest.$ac_objext \
13150 conftest$ac_exeext conftest.$ac_ext
13152 ac_res=`eval echo '${'$as_ac_var'}'`
13153 { echo "$as_me:$LINENO: result: $ac_res" >&5
13154 echo "${ECHO_T}$ac_res" >&6; }
13155 if test `eval echo '${'$as_ac_var'}'` = yes; then
13156 cat >>confdefs.h <<_ACEOF
13157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13166 for ac_func in closedir opendir readdir
13168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 cat >conftest.$ac_ext <<_ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13182 #define $ac_func innocuous_$ac_func
13184 /* System header to define __stub macros and hopefully few prototypes,
13185 which can conflict with char $ac_func (); below.
13186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13187 <limits.h> exists even on freestanding compilers. */
13190 # include <limits.h>
13192 # include <assert.h>
13197 /* Override any GCC internal prototype to avoid an error.
13198 Use char because int might match the return type of a GCC
13199 builtin and then its argument prototype would still apply. */
13204 /* The GNU C library defines this for functions which it implements
13205 to always fail with ENOSYS. Some functions are actually named
13206 something starting with __ and the normal name is an alias. */
13207 #if defined __stub_$ac_func || defined __stub___$ac_func
13214 return $ac_func ();
13219 rm -f conftest.$ac_objext conftest$ac_exeext
13220 if { (ac_try="$ac_link"
13221 case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_link") 2>conftest.er1
13228 grep -v '^ *+' conftest.er1 >conftest.err
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } &&
13233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13234 { (case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_try") 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; } &&
13243 { ac_try='test -s conftest$ac_exeext'
13244 { (case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_try") 2>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13253 eval "$as_ac_var=yes"
13255 echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13258 eval "$as_ac_var=no"
13261 rm -f core conftest.err conftest.$ac_objext \
13262 conftest$ac_exeext conftest.$ac_ext
13264 ac_res=`eval echo '${'$as_ac_var'}'`
13265 { echo "$as_me:$LINENO: result: $ac_res" >&5
13266 echo "${ECHO_T}$ac_res" >&6; }
13267 if test `eval echo '${'$as_ac_var'}'` = yes; then
13268 cat >>confdefs.h <<_ACEOF
13269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13277 if test "$WITH_LLVMGCCDIR" = "default" ; then
13278 LLVMGCC="llvm-gcc${EXEEXT}"
13279 LLVMGXX="llvm-g++${EXEEXT}"
13280 LLVMGCCCOMMAND="$LLVMGCC"
13281 LLVMGXXCOMMAND="$LLVMGXX"
13282 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13284 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13286 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13287 set dummy $LLVMGCC; ac_word=$2
13288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13290 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299 for as_dir in $PATH
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13305 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13316 LLVMGCC=$ac_cv_path_LLVMGCC
13317 if test -n "$LLVMGCC"; then
13318 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13319 echo "${ECHO_T}$LLVMGCC" >&6; }
13321 { echo "$as_me:$LINENO: result: no" >&5
13322 echo "${ECHO_T}no" >&6; }
13326 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13327 set dummy $LLVMGXX; ac_word=$2
13328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13330 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339 for as_dir in $PATH
13342 test -z "$as_dir" && as_dir=.
13343 for ac_exec_ext in '' $ac_executable_extensions; do
13344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13345 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13356 LLVMGXX=$ac_cv_path_LLVMGXX
13357 if test -n "$LLVMGXX"; then
13358 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13359 echo "${ECHO_T}$LLVMGXX" >&6; }
13361 { echo "$as_me:$LINENO: result: no" >&5
13362 echo "${ECHO_T}no" >&6; }
13367 if test -z "$LLVMGCC"; then
13368 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13369 LLVMGCCCOMMAND="$LLVMGCC"
13371 if test -z "$LLVMGXX"; then
13372 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13373 LLVMGXXCOMMAND="$LLVMGXX"
13380 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13382 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13387 # Check whether --with-llvmcc was given.
13388 if test "${with_llvmcc+set}" = set; then
13389 withval=$with_llvmcc;
13394 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13395 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13396 if test "$with_llvmcc" != "check"; then
13397 if (test "$with_llvmcc" != "llvm-gcc" &&
13398 test "$with_llvmcc" != "clang" &&
13399 test "$with_llvmcc" != "none"); then
13400 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13401 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13402 { (exit 1); exit 1; }; }
13404 WITH_LLVMCC="$with_llvmcc"
13405 elif test -n "$LLVMGCC"; then
13406 WITH_LLVMCC=llvm-gcc
13407 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13412 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13413 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13414 LLVMCC_OPTION=$WITH_LLVMCC
13417 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13418 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13431 if test "$GCC" != "yes" && test "$ICC" != "yes"
13433 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13434 echo "$as_me: error: gcc|icc required but not found" >&2;}
13435 { (exit 1); exit 1; }; }
13438 if test "$GXX" != "yes" && test "$IXX" != "yes"
13440 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13441 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13442 { (exit 1); exit 1; }; }
13445 if test "$GCC" = "yes"
13447 cat >conftest.$ac_ext <<_ACEOF
13448 #if !defined(__GNUC__) || __GNUC__ < 3
13449 #error Unsupported GCC version
13453 rm -f conftest.$ac_objext
13454 if { (ac_try="$ac_compile"
13455 case "(($ac_try" in
13456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460 (eval "$ac_compile") 2>conftest.er1
13462 grep -v '^ *+' conftest.er1 >conftest.err
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
13467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13468 { (case "(($ac_try" in
13469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470 *) ac_try_echo=$ac_try;;
13472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473 (eval "$ac_try") 2>&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; } &&
13477 { ac_try='test -s conftest.$ac_objext'
13478 { (case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_try") 2>&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; }; then
13489 echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13492 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13493 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13494 { (exit 1); exit 1; }; }
13497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13500 if test -z "$llvm_cv_gnu_make_command"
13502 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13503 echo "$as_me: error: GNU Make required but not found" >&2;}
13504 { (exit 1); exit 1; }; }
13507 { echo "$as_me:$LINENO: result: ok" >&5
13508 echo "${ECHO_T}ok" >&6; }
13510 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13511 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13512 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13514 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13516 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13517 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13521 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13522 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13523 if test "${ac_cv_lib_m_sin+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13526 ac_check_lib_save_LIBS=$LIBS
13528 cat >conftest.$ac_ext <<_ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h. */
13535 /* Override any GCC internal prototype to avoid an error.
13536 Use char because int might match the return type of a GCC
13537 builtin and then its argument prototype would still apply. */
13550 rm -f conftest.$ac_objext conftest$ac_exeext
13551 if { (ac_try="$ac_link"
13552 case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_link") 2>conftest.er1
13559 grep -v '^ *+' conftest.er1 >conftest.err
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13565 { (case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_try") 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } &&
13574 { ac_try='test -s conftest$ac_exeext'
13575 { (case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_try") 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584 ac_cv_lib_m_sin=yes
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13592 rm -f core conftest.err conftest.$ac_objext \
13593 conftest$ac_exeext conftest.$ac_ext
13594 LIBS=$ac_check_lib_save_LIBS
13596 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13597 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13598 if test $ac_cv_lib_m_sin = yes; then
13599 cat >>confdefs.h <<_ACEOF
13600 #define HAVE_LIBM 1
13607 if test "$llvm_cv_os_type" = "MingW" ; then
13609 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13610 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13611 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13614 ac_check_lib_save_LIBS=$LIBS
13615 LIBS="-limagehlp $LIBS"
13616 cat >conftest.$ac_ext <<_ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h. */
13632 rm -f conftest.$ac_objext conftest$ac_exeext
13633 if { (ac_try="$ac_link"
13634 case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_link") 2>conftest.er1
13641 grep -v '^ *+' conftest.er1 >conftest.err
13643 cat conftest.err >&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } &&
13646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13647 { (case "(($ac_try" in
13648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649 *) ac_try_echo=$ac_try;;
13651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652 (eval "$ac_try") 2>&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; } &&
13656 { ac_try='test -s conftest$ac_exeext'
13657 { (case "(($ac_try" in
13658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659 *) ac_try_echo=$ac_try;;
13661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662 (eval "$ac_try") 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13666 ac_cv_lib_imagehlp_main=yes
13668 echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13671 ac_cv_lib_imagehlp_main=no
13674 rm -f core conftest.err conftest.$ac_objext \
13675 conftest$ac_exeext conftest.$ac_ext
13676 LIBS=$ac_check_lib_save_LIBS
13678 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13679 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13680 if test $ac_cv_lib_imagehlp_main = yes; then
13681 cat >>confdefs.h <<_ACEOF
13682 #define HAVE_LIBIMAGEHLP 1
13685 LIBS="-limagehlp $LIBS"
13690 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13691 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13692 if test "${ac_cv_lib_psapi_main+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13695 ac_check_lib_save_LIBS=$LIBS
13696 LIBS="-lpsapi $LIBS"
13697 cat >conftest.$ac_ext <<_ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13713 rm -f conftest.$ac_objext conftest$ac_exeext
13714 if { (ac_try="$ac_link"
13715 case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_link") 2>conftest.er1
13722 grep -v '^ *+' conftest.er1 >conftest.err
13724 cat conftest.err >&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } &&
13727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13728 { (case "(($ac_try" in
13729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730 *) ac_try_echo=$ac_try;;
13732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_try") 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; } &&
13737 { ac_try='test -s conftest$ac_exeext'
13738 { (case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_try") 2>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
13747 ac_cv_lib_psapi_main=yes
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13752 ac_cv_lib_psapi_main=no
13755 rm -f core conftest.err conftest.$ac_objext \
13756 conftest$ac_exeext conftest.$ac_ext
13757 LIBS=$ac_check_lib_save_LIBS
13759 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13760 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13761 if test $ac_cv_lib_psapi_main = yes; then
13762 cat >>confdefs.h <<_ACEOF
13763 #define HAVE_LIBPSAPI 1
13766 LIBS="-lpsapi $LIBS"
13772 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13773 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13774 if test "${ac_cv_search_dlopen+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13777 ac_func_search_save_LIBS=$LIBS
13778 cat >conftest.$ac_ext <<_ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13785 /* Override any GCC internal prototype to avoid an error.
13786 Use char because int might match the return type of a GCC
13787 builtin and then its argument prototype would still apply. */
13800 for ac_lib in '' dl; do
13801 if test -z "$ac_lib"; then
13802 ac_res="none required"
13805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13807 rm -f conftest.$ac_objext conftest$ac_exeext
13808 if { (ac_try="$ac_link"
13809 case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_link") 2>conftest.er1
13816 grep -v '^ *+' conftest.er1 >conftest.err
13818 cat conftest.err >&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13822 { (case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_try") 2>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; } &&
13831 { ac_try='test -s conftest$ac_exeext'
13832 { (case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837 (eval "$ac_try") 2>&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; }; then
13841 ac_cv_search_dlopen=$ac_res
13843 echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13849 rm -f core conftest.err conftest.$ac_objext \
13851 if test "${ac_cv_search_dlopen+set}" = set; then
13855 if test "${ac_cv_search_dlopen+set}" = set; then
13858 ac_cv_search_dlopen=no
13860 rm conftest.$ac_ext
13861 LIBS=$ac_func_search_save_LIBS
13863 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13864 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13865 ac_res=$ac_cv_search_dlopen
13866 if test "$ac_res" != no; then
13867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13869 cat >>confdefs.h <<\_ACEOF
13870 #define HAVE_DLOPEN 1
13874 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13875 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13879 if test "$llvm_cv_enable_libffi" = "yes" ; then
13880 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13881 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13882 if test "${ac_cv_search_ffi_call+set}" = set; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 ac_func_search_save_LIBS=$LIBS
13886 cat >conftest.$ac_ext <<_ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13893 /* Override any GCC internal prototype to avoid an error.
13894 Use char because int might match the return type of a GCC
13895 builtin and then its argument prototype would still apply. */
13903 return ffi_call ();
13908 for ac_lib in '' ffi; do
13909 if test -z "$ac_lib"; then
13910 ac_res="none required"
13913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13915 rm -f conftest.$ac_objext conftest$ac_exeext
13916 if { (ac_try="$ac_link"
13917 case "(($ac_try" in
13918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13919 *) ac_try_echo=$ac_try;;
13921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13922 (eval "$ac_link") 2>conftest.er1
13924 grep -v '^ *+' conftest.er1 >conftest.err
13926 cat conftest.err >&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); } &&
13929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13930 { (case "(($ac_try" in
13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 (eval "$ac_try") 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; } &&
13939 { ac_try='test -s conftest$ac_exeext'
13940 { (case "(($ac_try" in
13941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13942 *) ac_try_echo=$ac_try;;
13944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13945 (eval "$ac_try") 2>&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; }; then
13949 ac_cv_search_ffi_call=$ac_res
13951 echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13957 rm -f core conftest.err conftest.$ac_objext \
13959 if test "${ac_cv_search_ffi_call+set}" = set; then
13963 if test "${ac_cv_search_ffi_call+set}" = set; then
13966 ac_cv_search_ffi_call=no
13968 rm conftest.$ac_ext
13969 LIBS=$ac_func_search_save_LIBS
13971 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13972 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13973 ac_res=$ac_cv_search_ffi_call
13974 if test "$ac_res" != no; then
13975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13977 cat >>confdefs.h <<\_ACEOF
13978 #define HAVE_FFI_CALL 1
13982 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13983 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13984 { (exit 1); exit 1; }; }
13989 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13990 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13991 if test "${ac_cv_search_mallinfo+set}" = set; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 ac_func_search_save_LIBS=$LIBS
13995 cat >conftest.$ac_ext <<_ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14002 /* Override any GCC internal prototype to avoid an error.
14003 Use char because int might match the return type of a GCC
14004 builtin and then its argument prototype would still apply. */
14012 return mallinfo ();
14017 for ac_lib in '' malloc; do
14018 if test -z "$ac_lib"; then
14019 ac_res="none required"
14022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14024 rm -f conftest.$ac_objext conftest$ac_exeext
14025 if { (ac_try="$ac_link"
14026 case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031 (eval "$ac_link") 2>conftest.er1
14033 grep -v '^ *+' conftest.er1 >conftest.err
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } &&
14038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14039 { (case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_try") 2>&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; } &&
14048 { ac_try='test -s conftest$ac_exeext'
14049 { (case "(($ac_try" in
14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054 (eval "$ac_try") 2>&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; }; then
14058 ac_cv_search_mallinfo=$ac_res
14060 echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14066 rm -f core conftest.err conftest.$ac_objext \
14068 if test "${ac_cv_search_mallinfo+set}" = set; then
14072 if test "${ac_cv_search_mallinfo+set}" = set; then
14075 ac_cv_search_mallinfo=no
14077 rm conftest.$ac_ext
14078 LIBS=$ac_func_search_save_LIBS
14080 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14081 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14082 ac_res=$ac_cv_search_mallinfo
14083 if test "$ac_res" != no; then
14084 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14086 cat >>confdefs.h <<\_ACEOF
14087 #define HAVE_MALLINFO 1
14093 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14095 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14096 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14097 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14100 ac_check_lib_save_LIBS=$LIBS
14101 LIBS="-lpthread $LIBS"
14102 cat >conftest.$ac_ext <<_ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14109 /* Override any GCC internal prototype to avoid an error.
14110 Use char because int might match the return type of a GCC
14111 builtin and then its argument prototype would still apply. */
14115 char pthread_mutex_init ();
14119 return pthread_mutex_init ();
14124 rm -f conftest.$ac_objext conftest$ac_exeext
14125 if { (ac_try="$ac_link"
14126 case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_link") 2>conftest.er1
14133 grep -v '^ *+' conftest.er1 >conftest.err
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } &&
14138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14139 { (case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144 (eval "$ac_try") 2>&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; } &&
14148 { ac_try='test -s conftest$ac_exeext'
14149 { (case "(($ac_try" in
14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_try") 2>&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }; then
14158 ac_cv_lib_pthread_pthread_mutex_init=yes
14160 echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14163 ac_cv_lib_pthread_pthread_mutex_init=no
14166 rm -f core conftest.err conftest.$ac_objext \
14167 conftest$ac_exeext conftest.$ac_ext
14168 LIBS=$ac_check_lib_save_LIBS
14170 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14171 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14172 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14173 cat >>confdefs.h <<_ACEOF
14174 #define HAVE_LIBPTHREAD 1
14177 LIBS="-lpthread $LIBS"
14181 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14182 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14183 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 ac_func_search_save_LIBS=$LIBS
14187 cat >conftest.$ac_ext <<_ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h. */
14194 /* Override any GCC internal prototype to avoid an error.
14195 Use char because int might match the return type of a GCC
14196 builtin and then its argument prototype would still apply. */
14200 char pthread_mutex_lock ();
14204 return pthread_mutex_lock ();
14209 for ac_lib in '' pthread; do
14210 if test -z "$ac_lib"; then
14211 ac_res="none required"
14214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14216 rm -f conftest.$ac_objext conftest$ac_exeext
14217 if { (ac_try="$ac_link"
14218 case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_link") 2>conftest.er1
14225 grep -v '^ *+' conftest.er1 >conftest.err
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
14230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; } &&
14240 { ac_try='test -s conftest$ac_exeext'
14241 { (case "(($ac_try" in
14242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14246 (eval "$ac_try") 2>&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; }; then
14250 ac_cv_search_pthread_mutex_lock=$ac_res
14252 echo "$as_me: failed program was:" >&5
14253 sed 's/^/| /' conftest.$ac_ext >&5
14258 rm -f core conftest.err conftest.$ac_objext \
14260 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14264 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14267 ac_cv_search_pthread_mutex_lock=no
14269 rm conftest.$ac_ext
14270 LIBS=$ac_func_search_save_LIBS
14272 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14273 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14274 ac_res=$ac_cv_search_pthread_mutex_lock
14275 if test "$ac_res" != no; then
14276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14278 cat >>confdefs.h <<\_ACEOF
14279 #define HAVE_PTHREAD_MUTEX_LOCK 1
14284 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14285 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14286 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14289 ac_func_search_save_LIBS=$LIBS
14290 cat >conftest.$ac_ext <<_ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14297 /* Override any GCC internal prototype to avoid an error.
14298 Use char because int might match the return type of a GCC
14299 builtin and then its argument prototype would still apply. */
14303 char pthread_rwlock_init ();
14307 return pthread_rwlock_init ();
14312 for ac_lib in '' pthread; do
14313 if test -z "$ac_lib"; then
14314 ac_res="none required"
14317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14319 rm -f conftest.$ac_objext conftest$ac_exeext
14320 if { (ac_try="$ac_link"
14321 case "(($ac_try" in
14322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323 *) ac_try_echo=$ac_try;;
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326 (eval "$ac_link") 2>conftest.er1
14328 grep -v '^ *+' conftest.er1 >conftest.err
14330 cat conftest.err >&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); } &&
14333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14334 { (case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_try") 2>&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; } &&
14343 { ac_try='test -s conftest$ac_exeext'
14344 { (case "(($ac_try" in
14345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346 *) ac_try_echo=$ac_try;;
14348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349 (eval "$ac_try") 2>&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14353 ac_cv_search_pthread_rwlock_init=$ac_res
14355 echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14361 rm -f core conftest.err conftest.$ac_objext \
14363 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14367 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14370 ac_cv_search_pthread_rwlock_init=no
14372 rm conftest.$ac_ext
14373 LIBS=$ac_func_search_save_LIBS
14375 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14376 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14377 ac_res=$ac_cv_search_pthread_rwlock_init
14378 if test "$ac_res" != no; then
14379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14381 cat >>confdefs.h <<\_ACEOF
14382 #define HAVE_PTHREAD_RWLOCK_INIT 1
14387 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14388 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14389 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
14392 ac_func_search_save_LIBS=$LIBS
14393 cat >conftest.$ac_ext <<_ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14400 /* Override any GCC internal prototype to avoid an error.
14401 Use char because int might match the return type of a GCC
14402 builtin and then its argument prototype would still apply. */
14406 char pthread_getspecific ();
14410 return pthread_getspecific ();
14415 for ac_lib in '' pthread; do
14416 if test -z "$ac_lib"; then
14417 ac_res="none required"
14420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14422 rm -f conftest.$ac_objext conftest$ac_exeext
14423 if { (ac_try="$ac_link"
14424 case "(($ac_try" in
14425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426 *) ac_try_echo=$ac_try;;
14428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429 (eval "$ac_link") 2>conftest.er1
14431 grep -v '^ *+' conftest.er1 >conftest.err
14433 cat conftest.err >&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
14436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14437 { (case "(($ac_try" in
14438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439 *) ac_try_echo=$ac_try;;
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442 (eval "$ac_try") 2>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; } &&
14446 { ac_try='test -s conftest$ac_exeext'
14447 { (case "(($ac_try" in
14448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452 (eval "$ac_try") 2>&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14456 ac_cv_search_pthread_getspecific=$ac_res
14458 echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14464 rm -f core conftest.err conftest.$ac_objext \
14466 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14470 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14473 ac_cv_search_pthread_getspecific=no
14475 rm conftest.$ac_ext
14476 LIBS=$ac_func_search_save_LIBS
14478 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14479 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14480 ac_res=$ac_cv_search_pthread_getspecific
14481 if test "$ac_res" != no; then
14482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14484 cat >>confdefs.h <<\_ACEOF
14485 #define HAVE_PTHREAD_GETSPECIFIC 1
14493 # Check whether --with-udis86 was given.
14494 if test "${with_udis86+set}" = set; then
14495 withval=$with_udis86;
14500 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14503 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14504 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14505 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 ac_check_lib_save_LIBS=$LIBS
14509 LIBS="-ludis86 $LIBS"
14510 cat >conftest.$ac_ext <<_ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14517 /* Override any GCC internal prototype to avoid an error.
14518 Use char because int might match the return type of a GCC
14519 builtin and then its argument prototype would still apply. */
14532 rm -f conftest.$ac_objext conftest$ac_exeext
14533 if { (ac_try="$ac_link"
14534 case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_link") 2>conftest.er1
14541 grep -v '^ *+' conftest.er1 >conftest.err
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
14546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14547 { (case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_try") 2>&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; } &&
14556 { ac_try='test -s conftest$ac_exeext'
14557 { (case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_try") 2>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 ac_cv_lib_udis86_ud_init=yes
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14571 ac_cv_lib_udis86_ud_init=no
14574 rm -f core conftest.err conftest.$ac_objext \
14575 conftest$ac_exeext conftest.$ac_ext
14576 LIBS=$ac_check_lib_save_LIBS
14578 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14579 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14580 if test $ac_cv_lib_udis86_ud_init = yes; then
14581 cat >>confdefs.h <<_ACEOF
14582 #define HAVE_LIBUDIS86 1
14585 LIBS="-ludis86 $LIBS"
14589 echo "Error! You need to have libudis86 around."
14601 cat >>confdefs.h <<_ACEOF
14602 #define USE_UDIS86 $USE_UDIS86
14607 # Check whether --with-oprofile was given.
14608 if test "${with_oprofile+set}" = set; then
14609 withval=$with_oprofile;
14613 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14614 no) llvm_cv_oppath=
14617 *) llvm_cv_oppath="${withval}/lib/oprofile"
14618 CPPFLAGS="-I${withval}/include";;
14620 if test -n "$llvm_cv_oppath" ; then
14621 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14622 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14623 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14624 if test "${ac_cv_search_bfd_init+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 ac_func_search_save_LIBS=$LIBS
14628 cat >conftest.$ac_ext <<_ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h. */
14635 /* Override any GCC internal prototype to avoid an error.
14636 Use char because int might match the return type of a GCC
14637 builtin and then its argument prototype would still apply. */
14645 return bfd_init ();
14650 for ac_lib in '' bfd; do
14651 if test -z "$ac_lib"; then
14652 ac_res="none required"
14655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14657 rm -f conftest.$ac_objext conftest$ac_exeext
14658 if { (ac_try="$ac_link"
14659 case "(($ac_try" in
14660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661 *) ac_try_echo=$ac_try;;
14663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14664 (eval "$ac_link") 2>conftest.er1
14666 grep -v '^ *+' conftest.er1 >conftest.err
14668 cat conftest.err >&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } &&
14671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14672 { (case "(($ac_try" in
14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677 (eval "$ac_try") 2>&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; } &&
14681 { ac_try='test -s conftest$ac_exeext'
14682 { (case "(($ac_try" in
14683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687 (eval "$ac_try") 2>&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); }; }; then
14691 ac_cv_search_bfd_init=$ac_res
14693 echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14699 rm -f core conftest.err conftest.$ac_objext \
14701 if test "${ac_cv_search_bfd_init+set}" = set; then
14705 if test "${ac_cv_search_bfd_init+set}" = set; then
14708 ac_cv_search_bfd_init=no
14710 rm conftest.$ac_ext
14711 LIBS=$ac_func_search_save_LIBS
14713 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14714 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14715 ac_res=$ac_cv_search_bfd_init
14716 if test "$ac_res" != no; then
14717 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14721 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14722 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14723 if test "${ac_cv_search_op_open_agent+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 ac_func_search_save_LIBS=$LIBS
14727 cat >conftest.$ac_ext <<_ACEOF
14730 cat confdefs.h >>conftest.$ac_ext
14731 cat >>conftest.$ac_ext <<_ACEOF
14732 /* end confdefs.h. */
14734 /* Override any GCC internal prototype to avoid an error.
14735 Use char because int might match the return type of a GCC
14736 builtin and then its argument prototype would still apply. */
14740 char op_open_agent ();
14744 return op_open_agent ();
14749 for ac_lib in '' opagent; do
14750 if test -z "$ac_lib"; then
14751 ac_res="none required"
14754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14756 rm -f conftest.$ac_objext conftest$ac_exeext
14757 if { (ac_try="$ac_link"
14758 case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_link") 2>conftest.er1
14765 grep -v '^ *+' conftest.er1 >conftest.err
14767 cat conftest.err >&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } &&
14770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14771 { (case "(($ac_try" in
14772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773 *) ac_try_echo=$ac_try;;
14775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776 (eval "$ac_try") 2>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; } &&
14780 { ac_try='test -s conftest$ac_exeext'
14781 { (case "(($ac_try" in
14782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783 *) ac_try_echo=$ac_try;;
14785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786 (eval "$ac_try") 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; }; then
14790 ac_cv_search_op_open_agent=$ac_res
14792 echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14798 rm -f core conftest.err conftest.$ac_objext \
14800 if test "${ac_cv_search_op_open_agent+set}" = set; then
14804 if test "${ac_cv_search_op_open_agent+set}" = set; then
14807 ac_cv_search_op_open_agent=no
14809 rm conftest.$ac_ext
14810 LIBS=$ac_func_search_save_LIBS
14812 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14813 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14814 ac_res=$ac_cv_search_op_open_agent
14815 if test "$ac_res" != no; then
14816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14820 echo "Error! You need to have libopagent around."
14825 if test "${ac_cv_header_opagent_h+set}" = set; then
14826 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14827 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14828 if test "${ac_cv_header_opagent_h+set}" = set; then
14829 echo $ECHO_N "(cached) $ECHO_C" >&6
14831 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14832 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14834 # Is the header compilable?
14835 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14836 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14837 cat >conftest.$ac_ext <<_ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14843 $ac_includes_default
14844 #include <opagent.h>
14846 rm -f conftest.$ac_objext
14847 if { (ac_try="$ac_compile"
14848 case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_compile") 2>conftest.er1
14855 grep -v '^ *+' conftest.er1 >conftest.err
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
14860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14861 { (case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_try") 2>&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; } &&
14870 { ac_try='test -s conftest.$ac_objext'
14871 { (case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_try") 2>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; }; then
14880 ac_header_compiler=yes
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14885 ac_header_compiler=no
14888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14890 echo "${ECHO_T}$ac_header_compiler" >&6; }
14892 # Is the header present?
14893 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14894 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14895 cat >conftest.$ac_ext <<_ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14901 #include <opagent.h>
14903 if { (ac_try="$ac_cpp conftest.$ac_ext"
14904 case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14911 grep -v '^ *+' conftest.er1 >conftest.err
14913 cat conftest.err >&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } >/dev/null; then
14916 if test -s conftest.err; then
14917 ac_cpp_err=$ac_c_preproc_warn_flag
14918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14925 if test -z "$ac_cpp_err"; then
14926 ac_header_preproc=yes
14928 echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.$ac_ext >&5
14931 ac_header_preproc=no
14934 rm -f conftest.err conftest.$ac_ext
14935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14936 echo "${ECHO_T}$ac_header_preproc" >&6; }
14938 # So? What about this header?
14939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14941 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14942 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14943 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14944 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14945 ac_header_preproc=yes
14948 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14949 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14950 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14951 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14953 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14955 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14957 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14958 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14959 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14961 ## ----------------------------------- ##
14962 ## Report this to llvmbugs@cs.uiuc.edu ##
14963 ## ----------------------------------- ##
14965 ) | sed "s/^/$as_me: WARNING: /" >&2
14968 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14969 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14970 if test "${ac_cv_header_opagent_h+set}" = set; then
14971 echo $ECHO_N "(cached) $ECHO_C" >&6
14973 ac_cv_header_opagent_h=$ac_header_preproc
14975 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14976 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14979 if test $ac_cv_header_opagent_h = yes; then
14983 echo "Error! You need to have opagent.h around."
14999 cat >>confdefs.h <<_ACEOF
15000 #define USE_OPROFILE $USE_OPROFILE
15010 ac_header_dirent=no
15011 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15012 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15013 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15014 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15018 cat >conftest.$ac_ext <<_ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h. */
15024 #include <sys/types.h>
15036 rm -f conftest.$ac_objext
15037 if { (ac_try="$ac_compile"
15038 case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_compile") 2>conftest.er1
15045 grep -v '^ *+' conftest.er1 >conftest.err
15047 cat conftest.err >&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } &&
15050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15051 { (case "(($ac_try" in
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053 *) ac_try_echo=$ac_try;;
15055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15056 (eval "$ac_try") 2>&5
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); }; } &&
15060 { ac_try='test -s conftest.$ac_objext'
15061 { (case "(($ac_try" in
15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063 *) ac_try_echo=$ac_try;;
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066 (eval "$ac_try") 2>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 eval "$as_ac_Header=yes"
15072 echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15075 eval "$as_ac_Header=no"
15078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080 ac_res=`eval echo '${'$as_ac_Header'}'`
15081 { echo "$as_me:$LINENO: result: $ac_res" >&5
15082 echo "${ECHO_T}$ac_res" >&6; }
15083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15084 cat >>confdefs.h <<_ACEOF
15085 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15088 ac_header_dirent=$ac_hdr; break
15092 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15093 if test $ac_header_dirent = dirent.h; then
15094 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15095 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15096 if test "${ac_cv_search_opendir+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15099 ac_func_search_save_LIBS=$LIBS
15100 cat >conftest.$ac_ext <<_ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15107 /* Override any GCC internal prototype to avoid an error.
15108 Use char because int might match the return type of a GCC
15109 builtin and then its argument prototype would still apply. */
15122 for ac_lib in '' dir; do
15123 if test -z "$ac_lib"; then
15124 ac_res="none required"
15127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15129 rm -f conftest.$ac_objext conftest$ac_exeext
15130 if { (ac_try="$ac_link"
15131 case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136 (eval "$ac_link") 2>conftest.er1
15138 grep -v '^ *+' conftest.er1 >conftest.err
15140 cat conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } &&
15143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15144 { (case "(($ac_try" in
15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146 *) ac_try_echo=$ac_try;;
15148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149 (eval "$ac_try") 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; } &&
15153 { ac_try='test -s conftest$ac_exeext'
15154 { (case "(($ac_try" in
15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156 *) ac_try_echo=$ac_try;;
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159 (eval "$ac_try") 2>&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }; then
15163 ac_cv_search_opendir=$ac_res
15165 echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15171 rm -f core conftest.err conftest.$ac_objext \
15173 if test "${ac_cv_search_opendir+set}" = set; then
15177 if test "${ac_cv_search_opendir+set}" = set; then
15180 ac_cv_search_opendir=no
15182 rm conftest.$ac_ext
15183 LIBS=$ac_func_search_save_LIBS
15185 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15186 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15187 ac_res=$ac_cv_search_opendir
15188 if test "$ac_res" != no; then
15189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15194 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15195 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15196 if test "${ac_cv_search_opendir+set}" = set; then
15197 echo $ECHO_N "(cached) $ECHO_C" >&6
15199 ac_func_search_save_LIBS=$LIBS
15200 cat >conftest.$ac_ext <<_ACEOF
15203 cat confdefs.h >>conftest.$ac_ext
15204 cat >>conftest.$ac_ext <<_ACEOF
15205 /* end confdefs.h. */
15207 /* Override any GCC internal prototype to avoid an error.
15208 Use char because int might match the return type of a GCC
15209 builtin and then its argument prototype would still apply. */
15222 for ac_lib in '' x; do
15223 if test -z "$ac_lib"; then
15224 ac_res="none required"
15227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15229 rm -f conftest.$ac_objext conftest$ac_exeext
15230 if { (ac_try="$ac_link"
15231 case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_link") 2>conftest.er1
15238 grep -v '^ *+' conftest.er1 >conftest.err
15240 cat conftest.err >&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15244 { (case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_try") 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try='test -s conftest$ac_exeext'
15254 { (case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259 (eval "$ac_try") 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 ac_cv_search_opendir=$ac_res
15265 echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15271 rm -f core conftest.err conftest.$ac_objext \
15273 if test "${ac_cv_search_opendir+set}" = set; then
15277 if test "${ac_cv_search_opendir+set}" = set; then
15280 ac_cv_search_opendir=no
15282 rm conftest.$ac_ext
15283 LIBS=$ac_func_search_save_LIBS
15285 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15286 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15287 ac_res=$ac_cv_search_opendir
15288 if test "$ac_res" != no; then
15289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15295 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15296 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15297 if test "${ac_cv_header_mmap_anon+set}" = set; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15301 ac_cpp='$CPP $CPPFLAGS'
15302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15306 cat >conftest.$ac_ext <<_ACEOF
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15312 #include <sys/mman.h>
15313 #include <unistd.h>
15318 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15323 rm -f conftest.$ac_objext
15324 if { (ac_try="$ac_compile"
15325 case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_compile") 2>conftest.er1
15332 grep -v '^ *+' conftest.er1 >conftest.err
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15338 { (case "(($ac_try" in
15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340 *) ac_try_echo=$ac_try;;
15342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343 (eval "$ac_try") 2>&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; } &&
15347 { ac_try='test -s conftest.$ac_objext'
15348 { (case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_try") 2>&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 ac_cv_header_mmap_anon=yes
15359 echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15362 ac_cv_header_mmap_anon=no
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15367 ac_cpp='$CPP $CPPFLAGS'
15368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15374 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15375 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15376 if test "$ac_cv_header_mmap_anon" = yes; then
15378 cat >>confdefs.h <<\_ACEOF
15379 #define HAVE_MMAP_ANONYMOUS 1
15384 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15385 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15386 if test "${ac_cv_header_stat_broken+set}" = set; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 cat >conftest.$ac_ext <<_ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15395 #include <sys/types.h>
15396 #include <sys/stat.h>
15398 #if defined S_ISBLK && defined S_IFDIR
15399 # if S_ISBLK (S_IFDIR)
15404 #if defined S_ISBLK && defined S_IFCHR
15405 # if S_ISBLK (S_IFCHR)
15410 #if defined S_ISLNK && defined S_IFREG
15411 # if S_ISLNK (S_IFREG)
15416 #if defined S_ISSOCK && defined S_IFREG
15417 # if S_ISSOCK (S_IFREG)
15423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15424 $EGREP "You lose" >/dev/null 2>&1; then
15425 ac_cv_header_stat_broken=yes
15427 ac_cv_header_stat_broken=no
15432 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15433 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15434 if test $ac_cv_header_stat_broken = yes; then
15436 cat >>confdefs.h <<\_ACEOF
15437 #define STAT_MACROS_BROKEN 1
15442 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15443 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15444 if test "${ac_cv_header_stdc+set}" = set; then
15445 echo $ECHO_N "(cached) $ECHO_C" >&6
15447 cat >conftest.$ac_ext <<_ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15453 #include <stdlib.h>
15454 #include <stdarg.h>
15455 #include <string.h>
15466 rm -f conftest.$ac_objext
15467 if { (ac_try="$ac_compile"
15468 case "(($ac_try" in
15469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470 *) ac_try_echo=$ac_try;;
15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473 (eval "$ac_compile") 2>conftest.er1
15475 grep -v '^ *+' conftest.er1 >conftest.err
15477 cat conftest.err >&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
15480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15481 { (case "(($ac_try" in
15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486 (eval "$ac_try") 2>&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }; } &&
15490 { ac_try='test -s conftest.$ac_objext'
15491 { (case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496 (eval "$ac_try") 2>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_cv_header_stdc=yes
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15505 ac_cv_header_stdc=no
15508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15510 if test $ac_cv_header_stdc = yes; then
15511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15512 cat >conftest.$ac_ext <<_ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15518 #include <string.h>
15521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15522 $EGREP "memchr" >/dev/null 2>&1; then
15525 ac_cv_header_stdc=no
15531 if test $ac_cv_header_stdc = yes; then
15532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15533 cat >conftest.$ac_ext <<_ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15539 #include <stdlib.h>
15542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15543 $EGREP "free" >/dev/null 2>&1; then
15546 ac_cv_header_stdc=no
15552 if test $ac_cv_header_stdc = yes; then
15553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15554 if test "$cross_compiling" = yes; then
15557 cat >conftest.$ac_ext <<_ACEOF
15560 cat confdefs.h >>conftest.$ac_ext
15561 cat >>conftest.$ac_ext <<_ACEOF
15562 /* end confdefs.h. */
15564 #include <stdlib.h>
15565 #if ((' ' & 0x0FF) == 0x020)
15566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15569 # define ISLOWER(c) \
15570 (('a' <= (c) && (c) <= 'i') \
15571 || ('j' <= (c) && (c) <= 'r') \
15572 || ('s' <= (c) && (c) <= 'z'))
15573 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15581 for (i = 0; i < 256; i++)
15582 if (XOR (islower (i), ISLOWER (i))
15583 || toupper (i) != TOUPPER (i))
15588 rm -f conftest$ac_exeext
15589 if { (ac_try="$ac_link"
15590 case "(($ac_try" in
15591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592 *) ac_try_echo=$ac_try;;
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595 (eval "$ac_link") 2>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15599 { (case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_try") 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15610 echo "$as_me: program exited with status $ac_status" >&5
15611 echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15614 ( exit $ac_status )
15615 ac_cv_header_stdc=no
15617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15623 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15624 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15625 if test $ac_cv_header_stdc = yes; then
15627 cat >>confdefs.h <<\_ACEOF
15628 #define STDC_HEADERS 1
15633 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15634 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15635 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15636 echo $ECHO_N "(cached) $ECHO_C" >&6
15638 cat >conftest.$ac_ext <<_ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 #include <sys/types.h>
15645 #include <sys/wait.h>
15646 #ifndef WEXITSTATUS
15647 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15650 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15658 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15663 rm -f conftest.$ac_objext
15664 if { (ac_try="$ac_compile"
15665 case "(($ac_try" in
15666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670 (eval "$ac_compile") 2>conftest.er1
15672 grep -v '^ *+' conftest.er1 >conftest.err
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15678 { (case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_try") 2>&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; } &&
15687 { ac_try='test -s conftest.$ac_objext'
15688 { (case "(($ac_try" in
15689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690 *) ac_try_echo=$ac_try;;
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693 (eval "$ac_try") 2>&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; }; then
15697 ac_cv_header_sys_wait_h=yes
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15702 ac_cv_header_sys_wait_h=no
15705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15707 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15708 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15709 if test $ac_cv_header_sys_wait_h = yes; then
15711 cat >>confdefs.h <<\_ACEOF
15712 #define HAVE_SYS_WAIT_H 1
15717 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15718 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15719 if test "${ac_cv_header_time+set}" = set; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15722 cat >conftest.$ac_ext <<_ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h. */
15728 #include <sys/types.h>
15729 #include <sys/time.h>
15735 if ((struct tm *) 0)
15741 rm -f conftest.$ac_objext
15742 if { (ac_try="$ac_compile"
15743 case "(($ac_try" in
15744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745 *) ac_try_echo=$ac_try;;
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748 (eval "$ac_compile") 2>conftest.er1
15750 grep -v '^ *+' conftest.er1 >conftest.err
15752 cat conftest.err >&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } &&
15755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15756 { (case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_try") 2>&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; } &&
15765 { ac_try='test -s conftest.$ac_objext'
15766 { (case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_try") 2>&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; }; then
15775 ac_cv_header_time=yes
15777 echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15780 ac_cv_header_time=no
15783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15786 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15787 if test $ac_cv_header_time = yes; then
15789 cat >>confdefs.h <<\_ACEOF
15790 #define TIME_WITH_SYS_TIME 1
15802 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15811 ac_res=`eval echo '${'$as_ac_Header'}'`
15812 { echo "$as_me:$LINENO: result: $ac_res" >&5
15813 echo "${ECHO_T}$ac_res" >&6; }
15815 # Is the header compilable?
15816 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15818 cat >conftest.$ac_ext <<_ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 $ac_includes_default
15825 #include <$ac_header>
15827 rm -f conftest.$ac_objext
15828 if { (ac_try="$ac_compile"
15829 case "(($ac_try" in
15830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831 *) ac_try_echo=$ac_try;;
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834 (eval "$ac_compile") 2>conftest.er1
15836 grep -v '^ *+' conftest.er1 >conftest.err
15838 cat conftest.err >&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } &&
15841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15842 { (case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847 (eval "$ac_try") 2>&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; } &&
15851 { ac_try='test -s conftest.$ac_objext'
15852 { (case "(($ac_try" in
15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854 *) ac_try_echo=$ac_try;;
15856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857 (eval "$ac_try") 2>&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15861 ac_header_compiler=yes
15863 echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15866 ac_header_compiler=no
15869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15871 echo "${ECHO_T}$ac_header_compiler" >&6; }
15873 # Is the header present?
15874 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15876 cat >conftest.$ac_ext <<_ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 #include <$ac_header>
15884 if { (ac_try="$ac_cpp conftest.$ac_ext"
15885 case "(($ac_try" in
15886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887 *) ac_try_echo=$ac_try;;
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15892 grep -v '^ *+' conftest.er1 >conftest.err
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } >/dev/null; then
15897 if test -s conftest.err; then
15898 ac_cpp_err=$ac_c_preproc_warn_flag
15899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15906 if test -z "$ac_cpp_err"; then
15907 ac_header_preproc=yes
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15912 ac_header_preproc=no
15915 rm -f conftest.err conftest.$ac_ext
15916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15917 echo "${ECHO_T}$ac_header_preproc" >&6; }
15919 # So? What about this header?
15920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15926 ac_header_preproc=yes
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15932 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15936 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15942 ## ----------------------------------- ##
15943 ## Report this to llvmbugs@cs.uiuc.edu ##
15944 ## ----------------------------------- ##
15946 ) | sed "s/^/$as_me: WARNING: /" >&2
15949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15952 echo $ECHO_N "(cached) $ECHO_C" >&6
15954 eval "$as_ac_Header=\$ac_header_preproc"
15956 ac_res=`eval echo '${'$as_ac_Header'}'`
15957 { echo "$as_me:$LINENO: result: $ac_res" >&5
15958 echo "${ECHO_T}$ac_res" >&6; }
15961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15962 cat >>confdefs.h <<_ACEOF
15963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15976 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 ac_res=`eval echo '${'$as_ac_Header'}'`
15986 { echo "$as_me:$LINENO: result: $ac_res" >&5
15987 echo "${ECHO_T}$ac_res" >&6; }
15989 # Is the header compilable?
15990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15992 cat >conftest.$ac_ext <<_ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 $ac_includes_default
15999 #include <$ac_header>
16001 rm -f conftest.$ac_objext
16002 if { (ac_try="$ac_compile"
16003 case "(($ac_try" in
16004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005 *) ac_try_echo=$ac_try;;
16007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16008 (eval "$ac_compile") 2>conftest.er1
16010 grep -v '^ *+' conftest.er1 >conftest.err
16012 cat conftest.err >&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } &&
16015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16016 { (case "(($ac_try" in
16017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018 *) ac_try_echo=$ac_try;;
16020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021 (eval "$ac_try") 2>&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; } &&
16025 { ac_try='test -s conftest.$ac_objext'
16026 { (case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_try") 2>&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 ac_header_compiler=yes
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16040 ac_header_compiler=no
16043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16045 echo "${ECHO_T}$ac_header_compiler" >&6; }
16047 # Is the header present?
16048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16050 cat >conftest.$ac_ext <<_ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h. */
16056 #include <$ac_header>
16058 if { (ac_try="$ac_cpp conftest.$ac_ext"
16059 case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16066 grep -v '^ *+' conftest.er1 >conftest.err
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } >/dev/null; then
16071 if test -s conftest.err; then
16072 ac_cpp_err=$ac_c_preproc_warn_flag
16073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16080 if test -z "$ac_cpp_err"; then
16081 ac_header_preproc=yes
16083 echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16086 ac_header_preproc=no
16089 rm -f conftest.err conftest.$ac_ext
16090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16091 echo "${ECHO_T}$ac_header_preproc" >&6; }
16093 # So? What about this header?
16094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16100 ac_header_preproc=yes
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16116 ## ----------------------------------- ##
16117 ## Report this to llvmbugs@cs.uiuc.edu ##
16118 ## ----------------------------------- ##
16120 ) | sed "s/^/$as_me: WARNING: /" >&2
16123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16128 eval "$as_ac_Header=\$ac_header_preproc"
16130 ac_res=`eval echo '${'$as_ac_Header'}'`
16131 { echo "$as_me:$LINENO: result: $ac_res" >&5
16132 echo "${ECHO_T}$ac_res" >&6; }
16135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16136 cat >>confdefs.h <<_ACEOF
16137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16146 for ac_header in utime.h windows.h
16148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 ac_res=`eval echo '${'$as_ac_Header'}'`
16156 { echo "$as_me:$LINENO: result: $ac_res" >&5
16157 echo "${ECHO_T}$ac_res" >&6; }
16159 # Is the header compilable?
16160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16162 cat >conftest.$ac_ext <<_ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h. */
16168 $ac_includes_default
16169 #include <$ac_header>
16171 rm -f conftest.$ac_objext
16172 if { (ac_try="$ac_compile"
16173 case "(($ac_try" in
16174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175 *) ac_try_echo=$ac_try;;
16177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178 (eval "$ac_compile") 2>conftest.er1
16180 grep -v '^ *+' conftest.er1 >conftest.err
16182 cat conftest.err >&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } &&
16185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16186 { (case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191 (eval "$ac_try") 2>&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; } &&
16195 { ac_try='test -s conftest.$ac_objext'
16196 { (case "(($ac_try" in
16197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198 *) ac_try_echo=$ac_try;;
16200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16201 (eval "$ac_try") 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; }; then
16205 ac_header_compiler=yes
16207 echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16210 ac_header_compiler=no
16213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16215 echo "${ECHO_T}$ac_header_compiler" >&6; }
16217 # Is the header present?
16218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16220 cat >conftest.$ac_ext <<_ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16226 #include <$ac_header>
16228 if { (ac_try="$ac_cpp conftest.$ac_ext"
16229 case "(($ac_try" in
16230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231 *) ac_try_echo=$ac_try;;
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16236 grep -v '^ *+' conftest.er1 >conftest.err
16238 cat conftest.err >&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } >/dev/null; then
16241 if test -s conftest.err; then
16242 ac_cpp_err=$ac_c_preproc_warn_flag
16243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16250 if test -z "$ac_cpp_err"; then
16251 ac_header_preproc=yes
16253 echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16256 ac_header_preproc=no
16259 rm -f conftest.err conftest.$ac_ext
16260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16261 echo "${ECHO_T}$ac_header_preproc" >&6; }
16263 # So? What about this header?
16264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16270 ac_header_preproc=yes
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16286 ## ----------------------------------- ##
16287 ## Report this to llvmbugs@cs.uiuc.edu ##
16288 ## ----------------------------------- ##
16290 ) | sed "s/^/$as_me: WARNING: /" >&2
16293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16298 eval "$as_ac_Header=\$ac_header_preproc"
16300 ac_res=`eval echo '${'$as_ac_Header'}'`
16301 { echo "$as_me:$LINENO: result: $ac_res" >&5
16302 echo "${ECHO_T}$ac_res" >&6; }
16305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16306 cat >>confdefs.h <<_ACEOF
16307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16319 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
16321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16326 echo $ECHO_N "(cached) $ECHO_C" >&6
16328 ac_res=`eval echo '${'$as_ac_Header'}'`
16329 { echo "$as_me:$LINENO: result: $ac_res" >&5
16330 echo "${ECHO_T}$ac_res" >&6; }
16332 # Is the header compilable?
16333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16335 cat >conftest.$ac_ext <<_ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 $ac_includes_default
16342 #include <$ac_header>
16344 rm -f conftest.$ac_objext
16345 if { (ac_try="$ac_compile"
16346 case "(($ac_try" in
16347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348 *) ac_try_echo=$ac_try;;
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351 (eval "$ac_compile") 2>conftest.er1
16353 grep -v '^ *+' conftest.er1 >conftest.err
16355 cat conftest.err >&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } &&
16358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16359 { (case "(($ac_try" in
16360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364 (eval "$ac_try") 2>&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; } &&
16368 { ac_try='test -s conftest.$ac_objext'
16369 { (case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_try") 2>&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; }; then
16378 ac_header_compiler=yes
16380 echo "$as_me: failed program was:" >&5
16381 sed 's/^/| /' conftest.$ac_ext >&5
16383 ac_header_compiler=no
16386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16388 echo "${ECHO_T}$ac_header_compiler" >&6; }
16390 # Is the header present?
16391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16393 cat >conftest.$ac_ext <<_ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 #include <$ac_header>
16401 if { (ac_try="$ac_cpp conftest.$ac_ext"
16402 case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16409 grep -v '^ *+' conftest.er1 >conftest.err
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } >/dev/null; then
16414 if test -s conftest.err; then
16415 ac_cpp_err=$ac_c_preproc_warn_flag
16416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16423 if test -z "$ac_cpp_err"; then
16424 ac_header_preproc=yes
16426 echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16429 ac_header_preproc=no
16432 rm -f conftest.err conftest.$ac_ext
16433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16434 echo "${ECHO_T}$ac_header_preproc" >&6; }
16436 # So? What about this header?
16437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16443 ac_header_preproc=yes
16446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16459 ## ----------------------------------- ##
16460 ## Report this to llvmbugs@cs.uiuc.edu ##
16461 ## ----------------------------------- ##
16463 ) | sed "s/^/$as_me: WARNING: /" >&2
16466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16469 echo $ECHO_N "(cached) $ECHO_C" >&6
16471 eval "$as_ac_Header=\$ac_header_preproc"
16473 ac_res=`eval echo '${'$as_ac_Header'}'`
16474 { echo "$as_me:$LINENO: result: $ac_res" >&5
16475 echo "${ECHO_T}$ac_res" >&6; }
16478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16479 cat >>confdefs.h <<_ACEOF
16480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16491 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 ac_res=`eval echo '${'$as_ac_Header'}'`
16501 { echo "$as_me:$LINENO: result: $ac_res" >&5
16502 echo "${ECHO_T}$ac_res" >&6; }
16504 # Is the header compilable?
16505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16507 cat >conftest.$ac_ext <<_ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16513 $ac_includes_default
16514 #include <$ac_header>
16516 rm -f conftest.$ac_objext
16517 if { (ac_try="$ac_compile"
16518 case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_compile") 2>conftest.er1
16525 grep -v '^ *+' conftest.er1 >conftest.err
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } &&
16530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16531 { (case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_try") 2>&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; } &&
16540 { ac_try='test -s conftest.$ac_objext'
16541 { (case "(($ac_try" in
16542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543 *) ac_try_echo=$ac_try;;
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546 (eval "$ac_try") 2>&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; }; then
16550 ac_header_compiler=yes
16552 echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16555 ac_header_compiler=no
16558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16560 echo "${ECHO_T}$ac_header_compiler" >&6; }
16562 # Is the header present?
16563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16565 cat >conftest.$ac_ext <<_ACEOF
16568 cat confdefs.h >>conftest.$ac_ext
16569 cat >>conftest.$ac_ext <<_ACEOF
16570 /* end confdefs.h. */
16571 #include <$ac_header>
16573 if { (ac_try="$ac_cpp conftest.$ac_ext"
16574 case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16581 grep -v '^ *+' conftest.er1 >conftest.err
16583 cat conftest.err >&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } >/dev/null; then
16586 if test -s conftest.err; then
16587 ac_cpp_err=$ac_c_preproc_warn_flag
16588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16595 if test -z "$ac_cpp_err"; then
16596 ac_header_preproc=yes
16598 echo "$as_me: failed program was:" >&5
16599 sed 's/^/| /' conftest.$ac_ext >&5
16601 ac_header_preproc=no
16604 rm -f conftest.err conftest.$ac_ext
16605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16606 echo "${ECHO_T}$ac_header_preproc" >&6; }
16608 # So? What about this header?
16609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16615 ac_header_preproc=yes
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16631 ## ----------------------------------- ##
16632 ## Report this to llvmbugs@cs.uiuc.edu ##
16633 ## ----------------------------------- ##
16635 ) | sed "s/^/$as_me: WARNING: /" >&2
16638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16641 echo $ECHO_N "(cached) $ECHO_C" >&6
16643 eval "$as_ac_Header=\$ac_header_preproc"
16645 ac_res=`eval echo '${'$as_ac_Header'}'`
16646 { echo "$as_me:$LINENO: result: $ac_res" >&5
16647 echo "${ECHO_T}$ac_res" >&6; }
16650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16651 cat >>confdefs.h <<_ACEOF
16652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16660 for ac_header in valgrind/valgrind.h
16662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16667 echo $ECHO_N "(cached) $ECHO_C" >&6
16669 ac_res=`eval echo '${'$as_ac_Header'}'`
16670 { echo "$as_me:$LINENO: result: $ac_res" >&5
16671 echo "${ECHO_T}$ac_res" >&6; }
16673 # Is the header compilable?
16674 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16676 cat >conftest.$ac_ext <<_ACEOF
16679 cat confdefs.h >>conftest.$ac_ext
16680 cat >>conftest.$ac_ext <<_ACEOF
16681 /* end confdefs.h. */
16682 $ac_includes_default
16683 #include <$ac_header>
16685 rm -f conftest.$ac_objext
16686 if { (ac_try="$ac_compile"
16687 case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692 (eval "$ac_compile") 2>conftest.er1
16694 grep -v '^ *+' conftest.er1 >conftest.err
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16700 { (case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16705 (eval "$ac_try") 2>&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; } &&
16709 { ac_try='test -s conftest.$ac_objext'
16710 { (case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_try") 2>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; }; then
16719 ac_header_compiler=yes
16721 echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16724 ac_header_compiler=no
16727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16729 echo "${ECHO_T}$ac_header_compiler" >&6; }
16731 # Is the header present?
16732 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16734 cat >conftest.$ac_ext <<_ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h. */
16740 #include <$ac_header>
16742 if { (ac_try="$ac_cpp conftest.$ac_ext"
16743 case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16750 grep -v '^ *+' conftest.er1 >conftest.err
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } >/dev/null; then
16755 if test -s conftest.err; then
16756 ac_cpp_err=$ac_c_preproc_warn_flag
16757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16764 if test -z "$ac_cpp_err"; then
16765 ac_header_preproc=yes
16767 echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16770 ac_header_preproc=no
16773 rm -f conftest.err conftest.$ac_ext
16774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16775 echo "${ECHO_T}$ac_header_preproc" >&6; }
16777 # So? What about this header?
16778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16784 ac_header_preproc=yes
16787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16800 ## ----------------------------------- ##
16801 ## Report this to llvmbugs@cs.uiuc.edu ##
16802 ## ----------------------------------- ##
16804 ) | sed "s/^/$as_me: WARNING: /" >&2
16807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16810 echo $ECHO_N "(cached) $ECHO_C" >&6
16812 eval "$as_ac_Header=\$ac_header_preproc"
16814 ac_res=`eval echo '${'$as_ac_Header'}'`
16815 { echo "$as_me:$LINENO: result: $ac_res" >&5
16816 echo "${ECHO_T}$ac_res" >&6; }
16819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16820 cat >>confdefs.h <<_ACEOF
16821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16829 for ac_header in fenv.h
16831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16836 echo $ECHO_N "(cached) $ECHO_C" >&6
16838 ac_res=`eval echo '${'$as_ac_Header'}'`
16839 { echo "$as_me:$LINENO: result: $ac_res" >&5
16840 echo "${ECHO_T}$ac_res" >&6; }
16842 # Is the header compilable?
16843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16845 cat >conftest.$ac_ext <<_ACEOF
16848 cat confdefs.h >>conftest.$ac_ext
16849 cat >>conftest.$ac_ext <<_ACEOF
16850 /* end confdefs.h. */
16851 $ac_includes_default
16852 #include <$ac_header>
16854 rm -f conftest.$ac_objext
16855 if { (ac_try="$ac_compile"
16856 case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_compile") 2>conftest.er1
16863 grep -v '^ *+' conftest.er1 >conftest.err
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
16868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16869 { (case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874 (eval "$ac_try") 2>&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; } &&
16878 { ac_try='test -s conftest.$ac_objext'
16879 { (case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884 (eval "$ac_try") 2>&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 ac_header_compiler=yes
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 ac_header_compiler=no
16896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16898 echo "${ECHO_T}$ac_header_compiler" >&6; }
16900 # Is the header present?
16901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16903 cat >conftest.$ac_ext <<_ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909 #include <$ac_header>
16911 if { (ac_try="$ac_cpp conftest.$ac_ext"
16912 case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16919 grep -v '^ *+' conftest.er1 >conftest.err
16921 cat conftest.err >&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } >/dev/null; then
16924 if test -s conftest.err; then
16925 ac_cpp_err=$ac_c_preproc_warn_flag
16926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16933 if test -z "$ac_cpp_err"; then
16934 ac_header_preproc=yes
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16939 ac_header_preproc=no
16942 rm -f conftest.err conftest.$ac_ext
16943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16944 echo "${ECHO_T}$ac_header_preproc" >&6; }
16946 # So? What about this header?
16947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16953 ac_header_preproc=yes
16956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16963 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16969 ## ----------------------------------- ##
16970 ## Report this to llvmbugs@cs.uiuc.edu ##
16971 ## ----------------------------------- ##
16973 ) | sed "s/^/$as_me: WARNING: /" >&2
16976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16981 eval "$as_ac_Header=\$ac_header_preproc"
16983 ac_res=`eval echo '${'$as_ac_Header'}'`
16984 { echo "$as_me:$LINENO: result: $ac_res" >&5
16985 echo "${ECHO_T}$ac_res" >&6; }
16988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16989 cat >>confdefs.h <<_ACEOF
16990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16997 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16999 for ac_header in pthread.h
17001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17008 ac_res=`eval echo '${'$as_ac_Header'}'`
17009 { echo "$as_me:$LINENO: result: $ac_res" >&5
17010 echo "${ECHO_T}$ac_res" >&6; }
17012 # Is the header compilable?
17013 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17015 cat >conftest.$ac_ext <<_ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17021 $ac_includes_default
17022 #include <$ac_header>
17024 rm -f conftest.$ac_objext
17025 if { (ac_try="$ac_compile"
17026 case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_compile") 2>conftest.er1
17033 grep -v '^ *+' conftest.er1 >conftest.err
17035 cat conftest.err >&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } &&
17038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17039 { (case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_try") 2>&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; } &&
17048 { ac_try='test -s conftest.$ac_objext'
17049 { (case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054 (eval "$ac_try") 2>&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; }; then
17058 ac_header_compiler=yes
17060 echo "$as_me: failed program was:" >&5
17061 sed 's/^/| /' conftest.$ac_ext >&5
17063 ac_header_compiler=no
17066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17068 echo "${ECHO_T}$ac_header_compiler" >&6; }
17070 # Is the header present?
17071 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17073 cat >conftest.$ac_ext <<_ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079 #include <$ac_header>
17081 if { (ac_try="$ac_cpp conftest.$ac_ext"
17082 case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17089 grep -v '^ *+' conftest.er1 >conftest.err
17091 cat conftest.err >&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); } >/dev/null; then
17094 if test -s conftest.err; then
17095 ac_cpp_err=$ac_c_preproc_warn_flag
17096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17103 if test -z "$ac_cpp_err"; then
17104 ac_header_preproc=yes
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17109 ac_header_preproc=no
17112 rm -f conftest.err conftest.$ac_ext
17113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17114 echo "${ECHO_T}$ac_header_preproc" >&6; }
17116 # So? What about this header?
17117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17123 ac_header_preproc=yes
17126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17139 ## ----------------------------------- ##
17140 ## Report this to llvmbugs@cs.uiuc.edu ##
17141 ## ----------------------------------- ##
17143 ) | sed "s/^/$as_me: WARNING: /" >&2
17146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 eval "$as_ac_Header=\$ac_header_preproc"
17153 ac_res=`eval echo '${'$as_ac_Header'}'`
17154 { echo "$as_me:$LINENO: result: $ac_res" >&5
17155 echo "${ECHO_T}$ac_res" >&6; }
17158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17159 cat >>confdefs.h <<_ACEOF
17160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17176 if test "$llvm_cv_enable_libffi" = "yes" ; then
17179 for ac_header in ffi.h ffi/ffi.h
17181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17188 ac_res=`eval echo '${'$as_ac_Header'}'`
17189 { echo "$as_me:$LINENO: result: $ac_res" >&5
17190 echo "${ECHO_T}$ac_res" >&6; }
17192 # Is the header compilable?
17193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17195 cat >conftest.$ac_ext <<_ACEOF
17198 cat confdefs.h >>conftest.$ac_ext
17199 cat >>conftest.$ac_ext <<_ACEOF
17200 /* end confdefs.h. */
17201 $ac_includes_default
17202 #include <$ac_header>
17204 rm -f conftest.$ac_objext
17205 if { (ac_try="$ac_compile"
17206 case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_compile") 2>conftest.er1
17213 grep -v '^ *+' conftest.er1 >conftest.err
17215 cat conftest.err >&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } &&
17218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17219 { (case "(($ac_try" in
17220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221 *) ac_try_echo=$ac_try;;
17223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224 (eval "$ac_try") 2>&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; } &&
17228 { ac_try='test -s conftest.$ac_objext'
17229 { (case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_try") 2>&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; }; then
17238 ac_header_compiler=yes
17240 echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.$ac_ext >&5
17243 ac_header_compiler=no
17246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17248 echo "${ECHO_T}$ac_header_compiler" >&6; }
17250 # Is the header present?
17251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17253 cat >conftest.$ac_ext <<_ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h. */
17259 #include <$ac_header>
17261 if { (ac_try="$ac_cpp conftest.$ac_ext"
17262 case "(($ac_try" in
17263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264 *) ac_try_echo=$ac_try;;
17266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17269 grep -v '^ *+' conftest.er1 >conftest.err
17271 cat conftest.err >&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } >/dev/null; then
17274 if test -s conftest.err; then
17275 ac_cpp_err=$ac_c_preproc_warn_flag
17276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17283 if test -z "$ac_cpp_err"; then
17284 ac_header_preproc=yes
17286 echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17289 ac_header_preproc=no
17292 rm -f conftest.err conftest.$ac_ext
17293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17294 echo "${ECHO_T}$ac_header_preproc" >&6; }
17296 # So? What about this header?
17297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17303 ac_header_preproc=yes
17306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17313 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17319 ## ----------------------------------- ##
17320 ## Report this to llvmbugs@cs.uiuc.edu ##
17321 ## ----------------------------------- ##
17323 ) | sed "s/^/$as_me: WARNING: /" >&2
17326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17331 eval "$as_ac_Header=\$ac_header_preproc"
17333 ac_res=`eval echo '${'$as_ac_Header'}'`
17334 { echo "$as_me:$LINENO: result: $ac_res" >&5
17335 echo "${ECHO_T}$ac_res" >&6; }
17338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17339 cat >>confdefs.h <<_ACEOF
17340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17350 for ac_header in CrashReporterClient.h
17352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17359 ac_res=`eval echo '${'$as_ac_Header'}'`
17360 { echo "$as_me:$LINENO: result: $ac_res" >&5
17361 echo "${ECHO_T}$ac_res" >&6; }
17363 # Is the header compilable?
17364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17366 cat >conftest.$ac_ext <<_ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17372 $ac_includes_default
17373 #include <$ac_header>
17375 rm -f conftest.$ac_objext
17376 if { (ac_try="$ac_compile"
17377 case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_compile") 2>conftest.er1
17384 grep -v '^ *+' conftest.er1 >conftest.err
17386 cat conftest.err >&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } &&
17389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17390 { (case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_try") 2>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } &&
17399 { ac_try='test -s conftest.$ac_objext'
17400 { (case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_try") 2>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409 ac_header_compiler=yes
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17414 ac_header_compiler=no
17417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17419 echo "${ECHO_T}$ac_header_compiler" >&6; }
17421 # Is the header present?
17422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17424 cat >conftest.$ac_ext <<_ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430 #include <$ac_header>
17432 if { (ac_try="$ac_cpp conftest.$ac_ext"
17433 case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17440 grep -v '^ *+' conftest.er1 >conftest.err
17442 cat conftest.err >&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } >/dev/null; then
17445 if test -s conftest.err; then
17446 ac_cpp_err=$ac_c_preproc_warn_flag
17447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17454 if test -z "$ac_cpp_err"; then
17455 ac_header_preproc=yes
17457 echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17460 ac_header_preproc=no
17463 rm -f conftest.err conftest.$ac_ext
17464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17465 echo "${ECHO_T}$ac_header_preproc" >&6; }
17467 # So? What about this header?
17468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17474 ac_header_preproc=yes
17477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17490 ## ----------------------------------- ##
17491 ## Report this to llvmbugs@cs.uiuc.edu ##
17492 ## ----------------------------------- ##
17494 ) | sed "s/^/$as_me: WARNING: /" >&2
17497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 eval "$as_ac_Header=\$ac_header_preproc"
17504 ac_res=`eval echo '${'$as_ac_Header'}'`
17505 { echo "$as_me:$LINENO: result: $ac_res" >&5
17506 echo "${ECHO_T}$ac_res" >&6; }
17509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17510 cat >>confdefs.h <<_ACEOF
17511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17519 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17520 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17521 cat >conftest.$ac_ext <<_ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h. */
17527 extern const char *__crashreporter_info__;
17529 __crashreporter_info__ = "test";
17534 rm -f conftest.$ac_objext conftest$ac_exeext
17535 if { (ac_try="$ac_link"
17536 case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_link") 2>conftest.er1
17543 grep -v '^ *+' conftest.er1 >conftest.err
17545 cat conftest.err >&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); } &&
17548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17549 { (case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_try") 2>&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try='test -s conftest$ac_exeext'
17559 { (case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_try") 2>&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 { echo "$as_me:$LINENO: result: yes" >&5
17569 echo "${ECHO_T}yes" >&6; }
17571 cat >>confdefs.h <<\_ACEOF
17572 #define HAVE_CRASHREPORTER_INFO 1
17576 echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17579 { echo "$as_me:$LINENO: result: no" >&5
17580 echo "${ECHO_T}no" >&6; }
17582 cat >>confdefs.h <<\_ACEOF
17583 #define HAVE_CRASHREPORTER_INFO 0
17588 rm -f core conftest.err conftest.$ac_objext \
17589 conftest$ac_exeext conftest.$ac_ext
17594 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17595 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17596 if test "${ac_cv_huge_val_sanity+set}" = set; then
17597 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 ac_cpp='$CXXCPP $CPPFLAGS'
17602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17606 ac_save_CXXFLAGS=$CXXFLAGS
17608 if test "$cross_compiling" = yes; then
17609 ac_cv_huge_val_sanity=yes
17611 cat >conftest.$ac_ext <<_ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h. */
17621 double x = HUGE_VAL; return x != x;
17626 rm -f conftest$ac_exeext
17627 if { (ac_try="$ac_link"
17628 case "(($ac_try" in
17629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630 *) ac_try_echo=$ac_try;;
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633 (eval "$ac_link") 2>&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17637 { (case "(($ac_try" in
17638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639 *) ac_try_echo=$ac_try;;
17641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642 (eval "$ac_try") 2>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_huge_val_sanity=yes
17648 echo "$as_me: program exited with status $ac_status" >&5
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17652 ( exit $ac_status )
17653 ac_cv_huge_val_sanity=no
17655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17659 CXXFLAGS=$ac_save_CXXFLAGS
17661 ac_cpp='$CPP $CPPFLAGS'
17662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17668 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17669 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17670 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17673 { echo "$as_me:$LINENO: checking for pid_t" >&5
17674 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17675 if test "${ac_cv_type_pid_t+set}" = set; then
17676 echo $ECHO_N "(cached) $ECHO_C" >&6
17678 cat >conftest.$ac_ext <<_ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 $ac_includes_default
17685 typedef pid_t ac__type_new_;
17689 if ((ac__type_new_ *) 0)
17691 if (sizeof (ac__type_new_))
17697 rm -f conftest.$ac_objext
17698 if { (ac_try="$ac_compile"
17699 case "(($ac_try" in
17700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701 *) ac_try_echo=$ac_try;;
17703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704 (eval "$ac_compile") 2>conftest.er1
17706 grep -v '^ *+' conftest.er1 >conftest.err
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
17711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712 { (case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_try") 2>&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; } &&
17721 { ac_try='test -s conftest.$ac_objext'
17722 { (case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_try") 2>&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; }; then
17731 ac_cv_type_pid_t=yes
17733 echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17736 ac_cv_type_pid_t=no
17739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17741 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17742 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17743 if test $ac_cv_type_pid_t = yes; then
17747 cat >>confdefs.h <<_ACEOF
17753 { echo "$as_me:$LINENO: checking for size_t" >&5
17754 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17755 if test "${ac_cv_type_size_t+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 cat >conftest.$ac_ext <<_ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h. */
17764 $ac_includes_default
17765 typedef size_t ac__type_new_;
17769 if ((ac__type_new_ *) 0)
17771 if (sizeof (ac__type_new_))
17777 rm -f conftest.$ac_objext
17778 if { (ac_try="$ac_compile"
17779 case "(($ac_try" in
17780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781 *) ac_try_echo=$ac_try;;
17783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17784 (eval "$ac_compile") 2>conftest.er1
17786 grep -v '^ *+' conftest.er1 >conftest.err
17788 cat conftest.err >&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); } &&
17791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17792 { (case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_try") 2>&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); }; } &&
17801 { ac_try='test -s conftest.$ac_objext'
17802 { (case "(($ac_try" in
17803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17804 *) ac_try_echo=$ac_try;;
17806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17807 (eval "$ac_try") 2>&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; }; then
17811 ac_cv_type_size_t=yes
17813 echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17816 ac_cv_type_size_t=no
17819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17821 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17822 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17823 if test $ac_cv_type_size_t = yes; then
17827 cat >>confdefs.h <<_ACEOF
17828 #define size_t unsigned int
17834 cat >>confdefs.h <<_ACEOF
17835 #define RETSIGTYPE void
17838 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17839 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17840 if test "${ac_cv_struct_tm+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17843 cat >conftest.$ac_ext <<_ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849 #include <sys/types.h>
17855 struct tm *tp; tp->tm_sec;
17860 rm -f conftest.$ac_objext
17861 if { (ac_try="$ac_compile"
17862 case "(($ac_try" in
17863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17864 *) ac_try_echo=$ac_try;;
17866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17867 (eval "$ac_compile") 2>conftest.er1
17869 grep -v '^ *+' conftest.er1 >conftest.err
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17875 { (case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_try") 2>&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; } &&
17884 { ac_try='test -s conftest.$ac_objext'
17885 { (case "(($ac_try" in
17886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17887 *) ac_try_echo=$ac_try;;
17889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17890 (eval "$ac_try") 2>&5
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; }; then
17894 ac_cv_struct_tm=time.h
17896 echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17899 ac_cv_struct_tm=sys/time.h
17902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17904 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17905 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17906 if test $ac_cv_struct_tm = sys/time.h; then
17908 cat >>confdefs.h <<\_ACEOF
17909 #define TM_IN_SYS_TIME 1
17914 { echo "$as_me:$LINENO: checking for int64_t" >&5
17915 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17916 if test "${ac_cv_type_int64_t+set}" = set; then
17917 echo $ECHO_N "(cached) $ECHO_C" >&6
17919 cat >conftest.$ac_ext <<_ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17925 $ac_includes_default
17926 typedef int64_t ac__type_new_;
17930 if ((ac__type_new_ *) 0)
17932 if (sizeof (ac__type_new_))
17938 rm -f conftest.$ac_objext
17939 if { (ac_try="$ac_compile"
17940 case "(($ac_try" in
17941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942 *) ac_try_echo=$ac_try;;
17944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945 (eval "$ac_compile") 2>conftest.er1
17947 grep -v '^ *+' conftest.er1 >conftest.err
17949 cat conftest.err >&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } &&
17952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17953 { (case "(($ac_try" in
17954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955 *) ac_try_echo=$ac_try;;
17957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958 (eval "$ac_try") 2>&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; } &&
17962 { ac_try='test -s conftest.$ac_objext'
17963 { (case "(($ac_try" in
17964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17965 *) ac_try_echo=$ac_try;;
17967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17968 (eval "$ac_try") 2>&5
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); }; }; then
17972 ac_cv_type_int64_t=yes
17974 echo "$as_me: failed program was:" >&5
17975 sed 's/^/| /' conftest.$ac_ext >&5
17977 ac_cv_type_int64_t=no
17980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17982 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17983 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17984 if test $ac_cv_type_int64_t = yes; then
17986 cat >>confdefs.h <<_ACEOF
17987 #define HAVE_INT64_T 1
17992 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17993 echo "$as_me: error: Type int64_t required but not found" >&2;}
17994 { (exit 1); exit 1; }; }
17997 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17998 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17999 if test "${ac_cv_type_uint64_t+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18002 cat >conftest.$ac_ext <<_ACEOF
18005 cat confdefs.h >>conftest.$ac_ext
18006 cat >>conftest.$ac_ext <<_ACEOF
18007 /* end confdefs.h. */
18008 $ac_includes_default
18009 typedef uint64_t ac__type_new_;
18013 if ((ac__type_new_ *) 0)
18015 if (sizeof (ac__type_new_))
18021 rm -f conftest.$ac_objext
18022 if { (ac_try="$ac_compile"
18023 case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_compile") 2>conftest.er1
18030 grep -v '^ *+' conftest.er1 >conftest.err
18032 cat conftest.err >&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } &&
18035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18036 { (case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041 (eval "$ac_try") 2>&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; } &&
18045 { ac_try='test -s conftest.$ac_objext'
18046 { (case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_try") 2>&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
18055 ac_cv_type_uint64_t=yes
18057 echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18060 ac_cv_type_uint64_t=no
18063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18065 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18066 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18067 if test $ac_cv_type_uint64_t = yes; then
18069 cat >>confdefs.h <<_ACEOF
18070 #define HAVE_UINT64_T 1
18075 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18076 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18077 if test "${ac_cv_type_u_int64_t+set}" = set; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18080 cat >conftest.$ac_ext <<_ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18086 $ac_includes_default
18087 typedef u_int64_t ac__type_new_;
18091 if ((ac__type_new_ *) 0)
18093 if (sizeof (ac__type_new_))
18099 rm -f conftest.$ac_objext
18100 if { (ac_try="$ac_compile"
18101 case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_compile") 2>conftest.er1
18108 grep -v '^ *+' conftest.er1 >conftest.err
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114 { (case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_try") 2>&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest.$ac_objext'
18124 { (case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_try") 2>&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 ac_cv_type_u_int64_t=yes
18135 echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18138 ac_cv_type_u_int64_t=no
18141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18143 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18144 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18145 if test $ac_cv_type_u_int64_t = yes; then
18147 cat >>confdefs.h <<_ACEOF
18148 #define HAVE_U_INT64_T 1
18153 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18154 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18155 { (exit 1); exit 1; }; }
18169 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18175 echo $ECHO_N "(cached) $ECHO_C" >&6
18177 cat >conftest.$ac_ext <<_ACEOF
18180 cat confdefs.h >>conftest.$ac_ext
18181 cat >>conftest.$ac_ext <<_ACEOF
18182 /* end confdefs.h. */
18183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18185 #define $ac_func innocuous_$ac_func
18187 /* System header to define __stub macros and hopefully few prototypes,
18188 which can conflict with char $ac_func (); below.
18189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18190 <limits.h> exists even on freestanding compilers. */
18193 # include <limits.h>
18195 # include <assert.h>
18200 /* Override any GCC internal prototype to avoid an error.
18201 Use char because int might match the return type of a GCC
18202 builtin and then its argument prototype would still apply. */
18207 /* The GNU C library defines this for functions which it implements
18208 to always fail with ENOSYS. Some functions are actually named
18209 something starting with __ and the normal name is an alias. */
18210 #if defined __stub_$ac_func || defined __stub___$ac_func
18217 return $ac_func ();
18222 rm -f conftest.$ac_objext conftest$ac_exeext
18223 if { (ac_try="$ac_link"
18224 case "(($ac_try" in
18225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226 *) ac_try_echo=$ac_try;;
18228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18229 (eval "$ac_link") 2>conftest.er1
18231 grep -v '^ *+' conftest.er1 >conftest.err
18233 cat conftest.err >&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } &&
18236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18237 { (case "(($ac_try" in
18238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239 *) ac_try_echo=$ac_try;;
18241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18242 (eval "$ac_try") 2>&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; } &&
18246 { ac_try='test -s conftest$ac_exeext'
18247 { (case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252 (eval "$ac_try") 2>&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; }; then
18256 eval "$as_ac_var=yes"
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18261 eval "$as_ac_var=no"
18264 rm -f core conftest.err conftest.$ac_objext \
18265 conftest$ac_exeext conftest.$ac_ext
18267 ac_res=`eval echo '${'$as_ac_var'}'`
18268 { echo "$as_me:$LINENO: result: $ac_res" >&5
18269 echo "${ECHO_T}$ac_res" >&6; }
18270 if test `eval echo '${'$as_ac_var'}'` = yes; then
18271 cat >>confdefs.h <<_ACEOF
18272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18282 for ac_func in powf fmodf strtof round
18284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18288 echo $ECHO_N "(cached) $ECHO_C" >&6
18290 cat >conftest.$ac_ext <<_ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h. */
18296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18298 #define $ac_func innocuous_$ac_func
18300 /* System header to define __stub macros and hopefully few prototypes,
18301 which can conflict with char $ac_func (); below.
18302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18303 <limits.h> exists even on freestanding compilers. */
18306 # include <limits.h>
18308 # include <assert.h>
18313 /* Override any GCC internal prototype to avoid an error.
18314 Use char because int might match the return type of a GCC
18315 builtin and then its argument prototype would still apply. */
18320 /* The GNU C library defines this for functions which it implements
18321 to always fail with ENOSYS. Some functions are actually named
18322 something starting with __ and the normal name is an alias. */
18323 #if defined __stub_$ac_func || defined __stub___$ac_func
18330 return $ac_func ();
18335 rm -f conftest.$ac_objext conftest$ac_exeext
18336 if { (ac_try="$ac_link"
18337 case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_link") 2>conftest.er1
18344 grep -v '^ *+' conftest.er1 >conftest.err
18346 cat conftest.err >&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } &&
18349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18350 { (case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_try") 2>&5
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; } &&
18359 { ac_try='test -s conftest$ac_exeext'
18360 { (case "(($ac_try" in
18361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362 *) ac_try_echo=$ac_try;;
18364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18365 (eval "$ac_try") 2>&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; }; then
18369 eval "$as_ac_var=yes"
18371 echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.$ac_ext >&5
18374 eval "$as_ac_var=no"
18377 rm -f core conftest.err conftest.$ac_objext \
18378 conftest$ac_exeext conftest.$ac_ext
18380 ac_res=`eval echo '${'$as_ac_var'}'`
18381 { echo "$as_me:$LINENO: result: $ac_res" >&5
18382 echo "${ECHO_T}$ac_res" >&6; }
18383 if test `eval echo '${'$as_ac_var'}'` = yes; then
18384 cat >>confdefs.h <<_ACEOF
18385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18396 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
18404 cat >conftest.$ac_ext <<_ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
18410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18412 #define $ac_func innocuous_$ac_func
18414 /* System header to define __stub macros and hopefully few prototypes,
18415 which can conflict with char $ac_func (); below.
18416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18417 <limits.h> exists even on freestanding compilers. */
18420 # include <limits.h>
18422 # include <assert.h>
18427 /* Override any GCC internal prototype to avoid an error.
18428 Use char because int might match the return type of a GCC
18429 builtin and then its argument prototype would still apply. */
18434 /* The GNU C library defines this for functions which it implements
18435 to always fail with ENOSYS. Some functions are actually named
18436 something starting with __ and the normal name is an alias. */
18437 #if defined __stub_$ac_func || defined __stub___$ac_func
18444 return $ac_func ();
18449 rm -f conftest.$ac_objext conftest$ac_exeext
18450 if { (ac_try="$ac_link"
18451 case "(($ac_try" in
18452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453 *) ac_try_echo=$ac_try;;
18455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18456 (eval "$ac_link") 2>conftest.er1
18458 grep -v '^ *+' conftest.er1 >conftest.err
18460 cat conftest.err >&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } &&
18463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18464 { (case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_try") 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; } &&
18473 { ac_try='test -s conftest$ac_exeext'
18474 { (case "(($ac_try" in
18475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476 *) ac_try_echo=$ac_try;;
18478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479 (eval "$ac_try") 2>&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; }; then
18483 eval "$as_ac_var=yes"
18485 echo "$as_me: failed program was:" >&5
18486 sed 's/^/| /' conftest.$ac_ext >&5
18488 eval "$as_ac_var=no"
18491 rm -f core conftest.err conftest.$ac_objext \
18492 conftest$ac_exeext conftest.$ac_ext
18494 ac_res=`eval echo '${'$as_ac_var'}'`
18495 { echo "$as_me:$LINENO: result: $ac_res" >&5
18496 echo "${ECHO_T}$ac_res" >&6; }
18497 if test `eval echo '${'$as_ac_var'}'` = yes; then
18498 cat >>confdefs.h <<_ACEOF
18499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18508 for ac_func in isatty mkdtemp mkstemp
18510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18511 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18514 echo $ECHO_N "(cached) $ECHO_C" >&6
18516 cat >conftest.$ac_ext <<_ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18524 #define $ac_func innocuous_$ac_func
18526 /* System header to define __stub macros and hopefully few prototypes,
18527 which can conflict with char $ac_func (); below.
18528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18529 <limits.h> exists even on freestanding compilers. */
18532 # include <limits.h>
18534 # include <assert.h>
18539 /* Override any GCC internal prototype to avoid an error.
18540 Use char because int might match the return type of a GCC
18541 builtin and then its argument prototype would still apply. */
18546 /* The GNU C library defines this for functions which it implements
18547 to always fail with ENOSYS. Some functions are actually named
18548 something starting with __ and the normal name is an alias. */
18549 #if defined __stub_$ac_func || defined __stub___$ac_func
18556 return $ac_func ();
18561 rm -f conftest.$ac_objext conftest$ac_exeext
18562 if { (ac_try="$ac_link"
18563 case "(($ac_try" in
18564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565 *) ac_try_echo=$ac_try;;
18567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568 (eval "$ac_link") 2>conftest.er1
18570 grep -v '^ *+' conftest.er1 >conftest.err
18572 cat conftest.err >&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); } &&
18575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18576 { (case "(($ac_try" in
18577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578 *) ac_try_echo=$ac_try;;
18580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18581 (eval "$ac_try") 2>&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); }; } &&
18585 { ac_try='test -s conftest$ac_exeext'
18586 { (case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591 (eval "$ac_try") 2>&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; }; then
18595 eval "$as_ac_var=yes"
18597 echo "$as_me: failed program was:" >&5
18598 sed 's/^/| /' conftest.$ac_ext >&5
18600 eval "$as_ac_var=no"
18603 rm -f core conftest.err conftest.$ac_objext \
18604 conftest$ac_exeext conftest.$ac_ext
18606 ac_res=`eval echo '${'$as_ac_var'}'`
18607 { echo "$as_me:$LINENO: result: $ac_res" >&5
18608 echo "${ECHO_T}$ac_res" >&6; }
18609 if test `eval echo '${'$as_ac_var'}'` = yes; then
18610 cat >>confdefs.h <<_ACEOF
18611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18623 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18626 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18628 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18629 echo $ECHO_N "(cached) $ECHO_C" >&6
18631 cat >conftest.$ac_ext <<_ACEOF
18634 cat confdefs.h >>conftest.$ac_ext
18635 cat >>conftest.$ac_ext <<_ACEOF
18636 /* end confdefs.h. */
18637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18639 #define $ac_func innocuous_$ac_func
18641 /* System header to define __stub macros and hopefully few prototypes,
18642 which can conflict with char $ac_func (); below.
18643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18644 <limits.h> exists even on freestanding compilers. */
18647 # include <limits.h>
18649 # include <assert.h>
18654 /* Override any GCC internal prototype to avoid an error.
18655 Use char because int might match the return type of a GCC
18656 builtin and then its argument prototype would still apply. */
18661 /* The GNU C library defines this for functions which it implements
18662 to always fail with ENOSYS. Some functions are actually named
18663 something starting with __ and the normal name is an alias. */
18664 #if defined __stub_$ac_func || defined __stub___$ac_func
18671 return $ac_func ();
18676 rm -f conftest.$ac_objext conftest$ac_exeext
18677 if { (ac_try="$ac_link"
18678 case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_link") 2>conftest.er1
18685 grep -v '^ *+' conftest.er1 >conftest.err
18687 cat conftest.err >&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
18690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18691 { (case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_try") 2>&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; } &&
18700 { ac_try='test -s conftest$ac_exeext'
18701 { (case "(($ac_try" in
18702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703 *) ac_try_echo=$ac_try;;
18705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706 (eval "$ac_try") 2>&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; }; then
18710 eval "$as_ac_var=yes"
18712 echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18715 eval "$as_ac_var=no"
18718 rm -f core conftest.err conftest.$ac_objext \
18719 conftest$ac_exeext conftest.$ac_ext
18721 ac_res=`eval echo '${'$as_ac_var'}'`
18722 { echo "$as_me:$LINENO: result: $ac_res" >&5
18723 echo "${ECHO_T}$ac_res" >&6; }
18724 if test `eval echo '${'$as_ac_var'}'` = yes; then
18725 cat >>confdefs.h <<_ACEOF
18726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18735 for ac_func in strerror strerror_r setenv
18737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18743 cat >conftest.$ac_ext <<_ACEOF
18746 cat confdefs.h >>conftest.$ac_ext
18747 cat >>conftest.$ac_ext <<_ACEOF
18748 /* end confdefs.h. */
18749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18751 #define $ac_func innocuous_$ac_func
18753 /* System header to define __stub macros and hopefully few prototypes,
18754 which can conflict with char $ac_func (); below.
18755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18756 <limits.h> exists even on freestanding compilers. */
18759 # include <limits.h>
18761 # include <assert.h>
18766 /* Override any GCC internal prototype to avoid an error.
18767 Use char because int might match the return type of a GCC
18768 builtin and then its argument prototype would still apply. */
18773 /* The GNU C library defines this for functions which it implements
18774 to always fail with ENOSYS. Some functions are actually named
18775 something starting with __ and the normal name is an alias. */
18776 #if defined __stub_$ac_func || defined __stub___$ac_func
18783 return $ac_func ();
18788 rm -f conftest.$ac_objext conftest$ac_exeext
18789 if { (ac_try="$ac_link"
18790 case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_link") 2>conftest.er1
18797 grep -v '^ *+' conftest.er1 >conftest.err
18799 cat conftest.err >&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } &&
18802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18803 { (case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_try") 2>&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; } &&
18812 { ac_try='test -s conftest$ac_exeext'
18813 { (case "(($ac_try" in
18814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815 *) ac_try_echo=$ac_try;;
18817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18818 (eval "$ac_try") 2>&5
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); }; }; then
18822 eval "$as_ac_var=yes"
18824 echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18827 eval "$as_ac_var=no"
18830 rm -f core conftest.err conftest.$ac_objext \
18831 conftest$ac_exeext conftest.$ac_ext
18833 ac_res=`eval echo '${'$as_ac_var'}'`
18834 { echo "$as_me:$LINENO: result: $ac_res" >&5
18835 echo "${ECHO_T}$ac_res" >&6; }
18836 if test `eval echo '${'$as_ac_var'}'` = yes; then
18837 cat >>confdefs.h <<_ACEOF
18838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18848 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
18856 cat >conftest.$ac_ext <<_ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18864 #define $ac_func innocuous_$ac_func
18866 /* System header to define __stub macros and hopefully few prototypes,
18867 which can conflict with char $ac_func (); below.
18868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18869 <limits.h> exists even on freestanding compilers. */
18872 # include <limits.h>
18874 # include <assert.h>
18879 /* Override any GCC internal prototype to avoid an error.
18880 Use char because int might match the return type of a GCC
18881 builtin and then its argument prototype would still apply. */
18886 /* The GNU C library defines this for functions which it implements
18887 to always fail with ENOSYS. Some functions are actually named
18888 something starting with __ and the normal name is an alias. */
18889 #if defined __stub_$ac_func || defined __stub___$ac_func
18896 return $ac_func ();
18901 rm -f conftest.$ac_objext conftest$ac_exeext
18902 if { (ac_try="$ac_link"
18903 case "(($ac_try" in
18904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905 *) ac_try_echo=$ac_try;;
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908 (eval "$ac_link") 2>conftest.er1
18910 grep -v '^ *+' conftest.er1 >conftest.err
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } &&
18915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18916 { (case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_try") 2>&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); }; } &&
18925 { ac_try='test -s conftest$ac_exeext'
18926 { (case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_try") 2>&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; }; then
18935 eval "$as_ac_var=yes"
18937 echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.$ac_ext >&5
18940 eval "$as_ac_var=no"
18943 rm -f core conftest.err conftest.$ac_objext \
18944 conftest$ac_exeext conftest.$ac_ext
18946 ac_res=`eval echo '${'$as_ac_var'}'`
18947 { echo "$as_me:$LINENO: result: $ac_res" >&5
18948 echo "${ECHO_T}$ac_res" >&6; }
18949 if test `eval echo '${'$as_ac_var'}'` = yes; then
18950 cat >>confdefs.h <<_ACEOF
18951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18962 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18970 cat >conftest.$ac_ext <<_ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h. */
18976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18978 #define $ac_func innocuous_$ac_func
18980 /* System header to define __stub macros and hopefully few prototypes,
18981 which can conflict with char $ac_func (); below.
18982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18983 <limits.h> exists even on freestanding compilers. */
18986 # include <limits.h>
18988 # include <assert.h>
18993 /* Override any GCC internal prototype to avoid an error.
18994 Use char because int might match the return type of a GCC
18995 builtin and then its argument prototype would still apply. */
19000 /* The GNU C library defines this for functions which it implements
19001 to always fail with ENOSYS. Some functions are actually named
19002 something starting with __ and the normal name is an alias. */
19003 #if defined __stub_$ac_func || defined __stub___$ac_func
19010 return $ac_func ();
19015 rm -f conftest.$ac_objext conftest$ac_exeext
19016 if { (ac_try="$ac_link"
19017 case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_link") 2>conftest.er1
19024 grep -v '^ *+' conftest.er1 >conftest.err
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } &&
19029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19030 { (case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_try") 2>&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; } &&
19039 { ac_try='test -s conftest$ac_exeext'
19040 { (case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_try") 2>&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; }; then
19049 eval "$as_ac_var=yes"
19051 echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19054 eval "$as_ac_var=no"
19057 rm -f core conftest.err conftest.$ac_objext \
19058 conftest$ac_exeext conftest.$ac_ext
19060 ac_res=`eval echo '${'$as_ac_var'}'`
19061 { echo "$as_me:$LINENO: result: $ac_res" >&5
19062 echo "${ECHO_T}$ac_res" >&6; }
19063 if test `eval echo '${'$as_ac_var'}'` = yes; then
19064 cat >>confdefs.h <<_ACEOF
19065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19071 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19072 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19073 if test "${llvm_cv_c_printf_a+set}" = set; then
19074 echo $ECHO_N "(cached) $ECHO_C" >&6
19077 ac_cpp='$CPP $CPPFLAGS'
19078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19082 if test "$cross_compiling" = yes; then
19083 llvmac_cv_c_printf_a=no
19085 cat >conftest.$ac_ext <<_ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h. */
19094 #include <stdlib.h>
19100 volatile double A, B;
19104 sprintf(Buffer, "%a", A);
19108 if (A != 0x1.999999999999ap-4)
19115 rm -f conftest$ac_exeext
19116 if { (ac_try="$ac_link"
19117 case "(($ac_try" in
19118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119 *) ac_try_echo=$ac_try;;
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122 (eval "$ac_link") 2>&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19126 { (case "(($ac_try" in
19127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128 *) ac_try_echo=$ac_try;;
19130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19131 (eval "$ac_try") 2>&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; }; then
19135 llvm_cv_c_printf_a=yes
19137 echo "$as_me: program exited with status $ac_status" >&5
19138 echo "$as_me: failed program was:" >&5
19139 sed 's/^/| /' conftest.$ac_ext >&5
19141 ( exit $ac_status )
19142 llvmac_cv_c_printf_a=no
19144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19149 ac_cpp='$CPP $CPPFLAGS'
19150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19155 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19156 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19157 if test "$llvm_cv_c_printf_a" = "yes"; then
19159 cat >>confdefs.h <<\_ACEOF
19160 #define HAVE_PRINTF_A 1
19166 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19167 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19168 if test "${ac_cv_func_rand48+set}" = set; then
19169 echo $ECHO_N "(cached) $ECHO_C" >&6
19172 ac_cpp='$CXXCPP $CPPFLAGS'
19173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19177 cat >conftest.$ac_ext <<_ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h. */
19183 #include <stdlib.h>
19187 srand48(0);lrand48();drand48();
19192 rm -f conftest.$ac_objext
19193 if { (ac_try="$ac_compile"
19194 case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199 (eval "$ac_compile") 2>conftest.er1
19201 grep -v '^ *+' conftest.er1 >conftest.err
19203 cat conftest.err >&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); } &&
19206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19207 { (case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_try") 2>&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); }; } &&
19216 { ac_try='test -s conftest.$ac_objext'
19217 { (case "(($ac_try" in
19218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219 *) ac_try_echo=$ac_try;;
19221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222 (eval "$ac_try") 2>&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); }; }; then
19226 ac_cv_func_rand48=yes
19228 echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19231 ac_cv_func_rand48=no
19234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19236 ac_cpp='$CPP $CPPFLAGS'
19237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19242 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19243 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19245 if test "$ac_cv_func_rand48" = "yes" ; then
19247 cat >>confdefs.h <<\_ACEOF
19248 #define HAVE_RAND48 1
19254 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19255 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19256 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19257 echo $ECHO_N "(cached) $ECHO_C" >&6
19259 cat >conftest.$ac_ext <<_ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h. */
19265 $ac_includes_default
19270 char *p = (char *) strerror_s;
19278 rm -f conftest.$ac_objext
19279 if { (ac_try="$ac_compile"
19280 case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_compile") 2>conftest.er1
19287 grep -v '^ *+' conftest.er1 >conftest.err
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } &&
19292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19293 { (case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_try") 2>&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; } &&
19302 { ac_try='test -s conftest.$ac_objext'
19303 { (case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_try") 2>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312 ac_cv_have_decl_strerror_s=yes
19314 echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19317 ac_cv_have_decl_strerror_s=no
19320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19322 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19323 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19324 if test $ac_cv_have_decl_strerror_s = yes; then
19326 cat >>confdefs.h <<_ACEOF
19327 #define HAVE_DECL_STRERROR_S 1
19332 cat >>confdefs.h <<_ACEOF
19333 #define HAVE_DECL_STRERROR_S 0
19341 if test "$llvm_cv_os_type" = "MingW" ; then
19342 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19343 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19344 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19347 ac_check_lib_save_LIBS=$LIBS
19349 cat >conftest.$ac_ext <<_ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h. */
19356 /* Override any GCC internal prototype to avoid an error.
19357 Use char because int might match the return type of a GCC
19358 builtin and then its argument prototype would still apply. */
19371 rm -f conftest.$ac_objext conftest$ac_exeext
19372 if { (ac_try="$ac_link"
19373 case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378 (eval "$ac_link") 2>conftest.er1
19380 grep -v '^ *+' conftest.er1 >conftest.err
19382 cat conftest.err >&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); } &&
19385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19386 { (case "(($ac_try" in
19387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388 *) ac_try_echo=$ac_try;;
19390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19391 (eval "$ac_try") 2>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest$ac_exeext'
19396 { (case "(($ac_try" in
19397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398 *) ac_try_echo=$ac_try;;
19400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401 (eval "$ac_try") 2>&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; }; then
19405 ac_cv_lib_gcc__alloca=yes
19407 echo "$as_me: failed program was:" >&5
19408 sed 's/^/| /' conftest.$ac_ext >&5
19410 ac_cv_lib_gcc__alloca=no
19413 rm -f core conftest.err conftest.$ac_objext \
19414 conftest$ac_exeext conftest.$ac_ext
19415 LIBS=$ac_check_lib_save_LIBS
19417 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19418 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19419 if test $ac_cv_lib_gcc__alloca = yes; then
19421 cat >>confdefs.h <<\_ACEOF
19422 #define HAVE__ALLOCA 1
19427 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19428 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19429 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19430 echo $ECHO_N "(cached) $ECHO_C" >&6
19432 ac_check_lib_save_LIBS=$LIBS
19434 cat >conftest.$ac_ext <<_ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19441 /* Override any GCC internal prototype to avoid an error.
19442 Use char because int might match the return type of a GCC
19443 builtin and then its argument prototype would still apply. */
19451 return __alloca ();
19456 rm -f conftest.$ac_objext conftest$ac_exeext
19457 if { (ac_try="$ac_link"
19458 case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_link") 2>conftest.er1
19465 grep -v '^ *+' conftest.er1 >conftest.err
19467 cat conftest.err >&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
19470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19471 { (case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_try") 2>&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; } &&
19480 { ac_try='test -s conftest$ac_exeext'
19481 { (case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_try") 2>&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; }; then
19490 ac_cv_lib_gcc___alloca=yes
19492 echo "$as_me: failed program was:" >&5
19493 sed 's/^/| /' conftest.$ac_ext >&5
19495 ac_cv_lib_gcc___alloca=no
19498 rm -f core conftest.err conftest.$ac_objext \
19499 conftest$ac_exeext conftest.$ac_ext
19500 LIBS=$ac_check_lib_save_LIBS
19502 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19503 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19504 if test $ac_cv_lib_gcc___alloca = yes; then
19506 cat >>confdefs.h <<\_ACEOF
19507 #define HAVE___ALLOCA 1
19512 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19513 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19514 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19517 ac_check_lib_save_LIBS=$LIBS
19519 cat >conftest.$ac_ext <<_ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19526 /* Override any GCC internal prototype to avoid an error.
19527 Use char because int might match the return type of a GCC
19528 builtin and then its argument prototype would still apply. */
19536 return __chkstk ();
19541 rm -f conftest.$ac_objext conftest$ac_exeext
19542 if { (ac_try="$ac_link"
19543 case "(($ac_try" in
19544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545 *) ac_try_echo=$ac_try;;
19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548 (eval "$ac_link") 2>conftest.er1
19550 grep -v '^ *+' conftest.er1 >conftest.err
19552 cat conftest.err >&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } &&
19555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19556 { (case "(($ac_try" in
19557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558 *) ac_try_echo=$ac_try;;
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561 (eval "$ac_try") 2>&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; } &&
19565 { ac_try='test -s conftest$ac_exeext'
19566 { (case "(($ac_try" in
19567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19568 *) ac_try_echo=$ac_try;;
19570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19571 (eval "$ac_try") 2>&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; }; then
19575 ac_cv_lib_gcc___chkstk=yes
19577 echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19580 ac_cv_lib_gcc___chkstk=no
19583 rm -f core conftest.err conftest.$ac_objext \
19584 conftest$ac_exeext conftest.$ac_ext
19585 LIBS=$ac_check_lib_save_LIBS
19587 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19588 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19589 if test $ac_cv_lib_gcc___chkstk = yes; then
19591 cat >>confdefs.h <<\_ACEOF
19592 #define HAVE___CHKSTK 1
19597 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19598 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19599 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19600 echo $ECHO_N "(cached) $ECHO_C" >&6
19602 ac_check_lib_save_LIBS=$LIBS
19604 cat >conftest.$ac_ext <<_ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19611 /* Override any GCC internal prototype to avoid an error.
19612 Use char because int might match the return type of a GCC
19613 builtin and then its argument prototype would still apply. */
19621 return ___chkstk ();
19626 rm -f conftest.$ac_objext conftest$ac_exeext
19627 if { (ac_try="$ac_link"
19628 case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_link") 2>conftest.er1
19635 grep -v '^ *+' conftest.er1 >conftest.err
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } &&
19640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; } &&
19650 { ac_try='test -s conftest$ac_exeext'
19651 { (case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_try") 2>&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
19660 ac_cv_lib_gcc____chkstk=yes
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19665 ac_cv_lib_gcc____chkstk=no
19668 rm -f core conftest.err conftest.$ac_objext \
19669 conftest$ac_exeext conftest.$ac_ext
19670 LIBS=$ac_check_lib_save_LIBS
19672 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19673 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19674 if test $ac_cv_lib_gcc____chkstk = yes; then
19676 cat >>confdefs.h <<\_ACEOF
19677 #define HAVE____CHKSTK 1
19683 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19684 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19685 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19688 ac_check_lib_save_LIBS=$LIBS
19690 cat >conftest.$ac_ext <<_ACEOF
19693 cat confdefs.h >>conftest.$ac_ext
19694 cat >>conftest.$ac_ext <<_ACEOF
19695 /* end confdefs.h. */
19697 /* Override any GCC internal prototype to avoid an error.
19698 Use char because int might match the return type of a GCC
19699 builtin and then its argument prototype would still apply. */
19707 return __ashldi3 ();
19712 rm -f conftest.$ac_objext conftest$ac_exeext
19713 if { (ac_try="$ac_link"
19714 case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_link") 2>conftest.er1
19721 grep -v '^ *+' conftest.er1 >conftest.err
19723 cat conftest.err >&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } &&
19726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19727 { (case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_try") 2>&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; } &&
19736 { ac_try='test -s conftest$ac_exeext'
19737 { (case "(($ac_try" in
19738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739 *) ac_try_echo=$ac_try;;
19741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19742 (eval "$ac_try") 2>&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; }; then
19746 ac_cv_lib_gcc___ashldi3=yes
19748 echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19751 ac_cv_lib_gcc___ashldi3=no
19754 rm -f core conftest.err conftest.$ac_objext \
19755 conftest$ac_exeext conftest.$ac_ext
19756 LIBS=$ac_check_lib_save_LIBS
19758 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19759 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19760 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE___ASHLDI3 1
19768 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19769 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19770 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 ac_check_lib_save_LIBS=$LIBS
19775 cat >conftest.$ac_ext <<_ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19782 /* Override any GCC internal prototype to avoid an error.
19783 Use char because int might match the return type of a GCC
19784 builtin and then its argument prototype would still apply. */
19792 return __ashrdi3 ();
19797 rm -f conftest.$ac_objext conftest$ac_exeext
19798 if { (ac_try="$ac_link"
19799 case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_link") 2>conftest.er1
19806 grep -v '^ *+' conftest.er1 >conftest.err
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } &&
19811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19812 { (case "(($ac_try" in
19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_try") 2>&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; } &&
19821 { ac_try='test -s conftest$ac_exeext'
19822 { (case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827 (eval "$ac_try") 2>&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
19831 ac_cv_lib_gcc___ashrdi3=yes
19833 echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19836 ac_cv_lib_gcc___ashrdi3=no
19839 rm -f core conftest.err conftest.$ac_objext \
19840 conftest$ac_exeext conftest.$ac_ext
19841 LIBS=$ac_check_lib_save_LIBS
19843 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19844 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19845 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19847 cat >>confdefs.h <<\_ACEOF
19848 #define HAVE___ASHRDI3 1
19853 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19854 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19855 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19858 ac_check_lib_save_LIBS=$LIBS
19860 cat >conftest.$ac_ext <<_ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19867 /* Override any GCC internal prototype to avoid an error.
19868 Use char because int might match the return type of a GCC
19869 builtin and then its argument prototype would still apply. */
19877 return __divdi3 ();
19882 rm -f conftest.$ac_objext conftest$ac_exeext
19883 if { (ac_try="$ac_link"
19884 case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_link") 2>conftest.er1
19891 grep -v '^ *+' conftest.er1 >conftest.err
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } &&
19896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19897 { (case "(($ac_try" in
19898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899 *) ac_try_echo=$ac_try;;
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902 (eval "$ac_try") 2>&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; } &&
19906 { ac_try='test -s conftest$ac_exeext'
19907 { (case "(($ac_try" in
19908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909 *) ac_try_echo=$ac_try;;
19911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19912 (eval "$ac_try") 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; }; then
19916 ac_cv_lib_gcc___divdi3=yes
19918 echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19921 ac_cv_lib_gcc___divdi3=no
19924 rm -f core conftest.err conftest.$ac_objext \
19925 conftest$ac_exeext conftest.$ac_ext
19926 LIBS=$ac_check_lib_save_LIBS
19928 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19929 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19930 if test $ac_cv_lib_gcc___divdi3 = yes; then
19932 cat >>confdefs.h <<\_ACEOF
19933 #define HAVE___DIVDI3 1
19938 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19939 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19940 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19943 ac_check_lib_save_LIBS=$LIBS
19945 cat >conftest.$ac_ext <<_ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h. */
19952 /* Override any GCC internal prototype to avoid an error.
19953 Use char because int might match the return type of a GCC
19954 builtin and then its argument prototype would still apply. */
19962 return __fixdfdi ();
19967 rm -f conftest.$ac_objext conftest$ac_exeext
19968 if { (ac_try="$ac_link"
19969 case "(($ac_try" in
19970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971 *) ac_try_echo=$ac_try;;
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974 (eval "$ac_link") 2>conftest.er1
19976 grep -v '^ *+' conftest.er1 >conftest.err
19978 cat conftest.err >&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } &&
19981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19982 { (case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_try") 2>&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; } &&
19991 { ac_try='test -s conftest$ac_exeext'
19992 { (case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_try") 2>&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; }; then
20001 ac_cv_lib_gcc___fixdfdi=yes
20003 echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 ac_cv_lib_gcc___fixdfdi=no
20009 rm -f core conftest.err conftest.$ac_objext \
20010 conftest$ac_exeext conftest.$ac_ext
20011 LIBS=$ac_check_lib_save_LIBS
20013 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20014 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20015 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20017 cat >>confdefs.h <<\_ACEOF
20018 #define HAVE___FIXDFDI 1
20023 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20024 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20025 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20026 echo $ECHO_N "(cached) $ECHO_C" >&6
20028 ac_check_lib_save_LIBS=$LIBS
20030 cat >conftest.$ac_ext <<_ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20037 /* Override any GCC internal prototype to avoid an error.
20038 Use char because int might match the return type of a GCC
20039 builtin and then its argument prototype would still apply. */
20047 return __fixsfdi ();
20052 rm -f conftest.$ac_objext conftest$ac_exeext
20053 if { (ac_try="$ac_link"
20054 case "(($ac_try" in
20055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056 *) ac_try_echo=$ac_try;;
20058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20059 (eval "$ac_link") 2>conftest.er1
20061 grep -v '^ *+' conftest.er1 >conftest.err
20063 cat conftest.err >&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } &&
20066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20067 { (case "(($ac_try" in
20068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069 *) ac_try_echo=$ac_try;;
20071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072 (eval "$ac_try") 2>&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; } &&
20076 { ac_try='test -s conftest$ac_exeext'
20077 { (case "(($ac_try" in
20078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079 *) ac_try_echo=$ac_try;;
20081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20082 (eval "$ac_try") 2>&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); }; }; then
20086 ac_cv_lib_gcc___fixsfdi=yes
20088 echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20091 ac_cv_lib_gcc___fixsfdi=no
20094 rm -f core conftest.err conftest.$ac_objext \
20095 conftest$ac_exeext conftest.$ac_ext
20096 LIBS=$ac_check_lib_save_LIBS
20098 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20099 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20100 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20102 cat >>confdefs.h <<\_ACEOF
20103 #define HAVE___FIXSFDI 1
20108 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20109 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20110 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20111 echo $ECHO_N "(cached) $ECHO_C" >&6
20113 ac_check_lib_save_LIBS=$LIBS
20115 cat >conftest.$ac_ext <<_ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h. */
20122 /* Override any GCC internal prototype to avoid an error.
20123 Use char because int might match the return type of a GCC
20124 builtin and then its argument prototype would still apply. */
20128 char __floatdidf ();
20132 return __floatdidf ();
20137 rm -f conftest.$ac_objext conftest$ac_exeext
20138 if { (ac_try="$ac_link"
20139 case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_link") 2>conftest.er1
20146 grep -v '^ *+' conftest.er1 >conftest.err
20148 cat conftest.err >&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } &&
20151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20152 { (case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_try") 2>&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; } &&
20161 { ac_try='test -s conftest$ac_exeext'
20162 { (case "(($ac_try" in
20163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20164 *) ac_try_echo=$ac_try;;
20166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20167 (eval "$ac_try") 2>&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); }; }; then
20171 ac_cv_lib_gcc___floatdidf=yes
20173 echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20176 ac_cv_lib_gcc___floatdidf=no
20179 rm -f core conftest.err conftest.$ac_objext \
20180 conftest$ac_exeext conftest.$ac_ext
20181 LIBS=$ac_check_lib_save_LIBS
20183 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20184 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20185 if test $ac_cv_lib_gcc___floatdidf = yes; then
20187 cat >>confdefs.h <<\_ACEOF
20188 #define HAVE___FLOATDIDF 1
20193 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20194 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20195 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20198 ac_check_lib_save_LIBS=$LIBS
20200 cat >conftest.$ac_ext <<_ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h. */
20207 /* Override any GCC internal prototype to avoid an error.
20208 Use char because int might match the return type of a GCC
20209 builtin and then its argument prototype would still apply. */
20217 return __lshrdi3 ();
20222 rm -f conftest.$ac_objext conftest$ac_exeext
20223 if { (ac_try="$ac_link"
20224 case "(($ac_try" in
20225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20226 *) ac_try_echo=$ac_try;;
20228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20229 (eval "$ac_link") 2>conftest.er1
20231 grep -v '^ *+' conftest.er1 >conftest.err
20233 cat conftest.err >&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); } &&
20236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20237 { (case "(($ac_try" in
20238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239 *) ac_try_echo=$ac_try;;
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_try") 2>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; } &&
20246 { ac_try='test -s conftest$ac_exeext'
20247 { (case "(($ac_try" in
20248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249 *) ac_try_echo=$ac_try;;
20251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252 (eval "$ac_try") 2>&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; }; then
20256 ac_cv_lib_gcc___lshrdi3=yes
20258 echo "$as_me: failed program was:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20261 ac_cv_lib_gcc___lshrdi3=no
20264 rm -f core conftest.err conftest.$ac_objext \
20265 conftest$ac_exeext conftest.$ac_ext
20266 LIBS=$ac_check_lib_save_LIBS
20268 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20269 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20270 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20272 cat >>confdefs.h <<\_ACEOF
20273 #define HAVE___LSHRDI3 1
20278 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20279 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20280 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20281 echo $ECHO_N "(cached) $ECHO_C" >&6
20283 ac_check_lib_save_LIBS=$LIBS
20285 cat >conftest.$ac_ext <<_ACEOF
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h. */
20292 /* Override any GCC internal prototype to avoid an error.
20293 Use char because int might match the return type of a GCC
20294 builtin and then its argument prototype would still apply. */
20302 return __moddi3 ();
20307 rm -f conftest.$ac_objext conftest$ac_exeext
20308 if { (ac_try="$ac_link"
20309 case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_link") 2>conftest.er1
20316 grep -v '^ *+' conftest.er1 >conftest.err
20318 cat conftest.err >&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } &&
20321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20322 { (case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327 (eval "$ac_try") 2>&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); }; } &&
20331 { ac_try='test -s conftest$ac_exeext'
20332 { (case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337 (eval "$ac_try") 2>&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; }; then
20341 ac_cv_lib_gcc___moddi3=yes
20343 echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20346 ac_cv_lib_gcc___moddi3=no
20349 rm -f core conftest.err conftest.$ac_objext \
20350 conftest$ac_exeext conftest.$ac_ext
20351 LIBS=$ac_check_lib_save_LIBS
20353 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20354 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20355 if test $ac_cv_lib_gcc___moddi3 = yes; then
20357 cat >>confdefs.h <<\_ACEOF
20358 #define HAVE___MODDI3 1
20363 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20364 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20365 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
20368 ac_check_lib_save_LIBS=$LIBS
20370 cat >conftest.$ac_ext <<_ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h. */
20377 /* Override any GCC internal prototype to avoid an error.
20378 Use char because int might match the return type of a GCC
20379 builtin and then its argument prototype would still apply. */
20387 return __udivdi3 ();
20392 rm -f conftest.$ac_objext conftest$ac_exeext
20393 if { (ac_try="$ac_link"
20394 case "(($ac_try" in
20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396 *) ac_try_echo=$ac_try;;
20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399 (eval "$ac_link") 2>conftest.er1
20401 grep -v '^ *+' conftest.er1 >conftest.err
20403 cat conftest.err >&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } &&
20406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20407 { (case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_try") 2>&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; } &&
20416 { ac_try='test -s conftest$ac_exeext'
20417 { (case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_try") 2>&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; }; then
20426 ac_cv_lib_gcc___udivdi3=yes
20428 echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20431 ac_cv_lib_gcc___udivdi3=no
20434 rm -f core conftest.err conftest.$ac_objext \
20435 conftest$ac_exeext conftest.$ac_ext
20436 LIBS=$ac_check_lib_save_LIBS
20438 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20439 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20440 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20442 cat >>confdefs.h <<\_ACEOF
20443 #define HAVE___UDIVDI3 1
20448 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20449 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20450 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20451 echo $ECHO_N "(cached) $ECHO_C" >&6
20453 ac_check_lib_save_LIBS=$LIBS
20455 cat >conftest.$ac_ext <<_ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20462 /* Override any GCC internal prototype to avoid an error.
20463 Use char because int might match the return type of a GCC
20464 builtin and then its argument prototype would still apply. */
20472 return __umoddi3 ();
20477 rm -f conftest.$ac_objext conftest$ac_exeext
20478 if { (ac_try="$ac_link"
20479 case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_link") 2>conftest.er1
20486 grep -v '^ *+' conftest.er1 >conftest.err
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } &&
20491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20492 { (case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_try") 2>&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } &&
20501 { ac_try='test -s conftest$ac_exeext'
20502 { (case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_try") 2>&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20511 ac_cv_lib_gcc___umoddi3=yes
20513 echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20516 ac_cv_lib_gcc___umoddi3=no
20519 rm -f core conftest.err conftest.$ac_objext \
20520 conftest$ac_exeext conftest.$ac_ext
20521 LIBS=$ac_check_lib_save_LIBS
20523 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20524 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20525 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20527 cat >>confdefs.h <<\_ACEOF
20528 #define HAVE___UMODDI3 1
20534 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20535 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20536 if test "${ac_cv_lib_gcc___main+set}" = set; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20539 ac_check_lib_save_LIBS=$LIBS
20541 cat >conftest.$ac_ext <<_ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h. */
20548 /* Override any GCC internal prototype to avoid an error.
20549 Use char because int might match the return type of a GCC
20550 builtin and then its argument prototype would still apply. */
20563 rm -f conftest.$ac_objext conftest$ac_exeext
20564 if { (ac_try="$ac_link"
20565 case "(($ac_try" in
20566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567 *) ac_try_echo=$ac_try;;
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570 (eval "$ac_link") 2>conftest.er1
20572 grep -v '^ *+' conftest.er1 >conftest.err
20574 cat conftest.err >&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } &&
20577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20578 { (case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_try") 2>&5
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; } &&
20587 { ac_try='test -s conftest$ac_exeext'
20588 { (case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_try") 2>&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; }; then
20597 ac_cv_lib_gcc___main=yes
20599 echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20602 ac_cv_lib_gcc___main=no
20605 rm -f core conftest.err conftest.$ac_objext \
20606 conftest$ac_exeext conftest.$ac_ext
20607 LIBS=$ac_check_lib_save_LIBS
20609 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20610 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20611 if test $ac_cv_lib_gcc___main = yes; then
20613 cat >>confdefs.h <<\_ACEOF
20614 #define HAVE___MAIN 1
20619 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20620 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20621 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20622 echo $ECHO_N "(cached) $ECHO_C" >&6
20624 ac_check_lib_save_LIBS=$LIBS
20626 cat >conftest.$ac_ext <<_ACEOF
20629 cat confdefs.h >>conftest.$ac_ext
20630 cat >>conftest.$ac_ext <<_ACEOF
20631 /* end confdefs.h. */
20633 /* Override any GCC internal prototype to avoid an error.
20634 Use char because int might match the return type of a GCC
20635 builtin and then its argument prototype would still apply. */
20643 return __cmpdi2 ();
20648 rm -f conftest.$ac_objext conftest$ac_exeext
20649 if { (ac_try="$ac_link"
20650 case "(($ac_try" in
20651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20652 *) ac_try_echo=$ac_try;;
20654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20655 (eval "$ac_link") 2>conftest.er1
20657 grep -v '^ *+' conftest.er1 >conftest.err
20659 cat conftest.err >&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } &&
20662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20663 { (case "(($ac_try" in
20664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665 *) ac_try_echo=$ac_try;;
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668 (eval "$ac_try") 2>&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; } &&
20672 { ac_try='test -s conftest$ac_exeext'
20673 { (case "(($ac_try" in
20674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675 *) ac_try_echo=$ac_try;;
20677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678 (eval "$ac_try") 2>&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); }; }; then
20682 ac_cv_lib_gcc___cmpdi2=yes
20684 echo "$as_me: failed program was:" >&5
20685 sed 's/^/| /' conftest.$ac_ext >&5
20687 ac_cv_lib_gcc___cmpdi2=no
20690 rm -f core conftest.err conftest.$ac_objext \
20691 conftest$ac_exeext conftest.$ac_ext
20692 LIBS=$ac_check_lib_save_LIBS
20694 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20695 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20696 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20698 cat >>confdefs.h <<\_ACEOF
20699 #define HAVE___CMPDI2 1
20706 if test "$llvm_cv_os_type" = "MingW" ; then
20707 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20708 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20709 cat >conftest.$ac_ext <<_ACEOF
20710 #include <windows.h>
20711 #include <imagehlp.h>
20712 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20713 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20715 rm -f conftest.$ac_objext
20716 if { (ac_try="$ac_compile"
20717 case "(($ac_try" in
20718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719 *) ac_try_echo=$ac_try;;
20721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722 (eval "$ac_compile") 2>conftest.er1
20724 grep -v '^ *+' conftest.er1 >conftest.err
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } &&
20729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20730 { (case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_try") 2>&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; } &&
20739 { ac_try='test -s conftest.$ac_objext'
20740 { (case "(($ac_try" in
20741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742 *) ac_try_echo=$ac_try;;
20744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745 (eval "$ac_try") 2>&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); }; }; then
20750 { echo "$as_me:$LINENO: result: yes" >&5
20751 echo "${ECHO_T}yes" >&6; }
20752 llvm_cv_win32_elmcb_pcstr="PCSTR"
20755 echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20759 { echo "$as_me:$LINENO: result: no" >&5
20760 echo "${ECHO_T}no" >&6; }
20761 llvm_cv_win32_elmcb_pcstr="PSTR"
20765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20767 cat >>confdefs.h <<_ACEOF
20768 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20774 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20775 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20776 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
20780 ac_cpp='$CXXCPP $CPPFLAGS'
20781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20785 cat >conftest.$ac_ext <<_ACEOF
20788 cat confdefs.h >>conftest.$ac_ext
20789 cat >>conftest.$ac_ext <<_ACEOF
20790 /* end confdefs.h. */
20800 rm -f conftest.$ac_objext
20801 if { (ac_try="$ac_compile"
20802 case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807 (eval "$ac_compile") 2>conftest.er1
20809 grep -v '^ *+' conftest.er1 >conftest.err
20811 cat conftest.err >&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } &&
20814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20815 { (case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820 (eval "$ac_try") 2>&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; } &&
20824 { ac_try='test -s conftest.$ac_objext'
20825 { (case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_try") 2>&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; }; then
20834 ac_cv_func_isnan_in_math_h=yes
20836 echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20839 ac_cv_func_isnan_in_math_h=no
20842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20844 ac_cpp='$CPP $CPPFLAGS'
20845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20850 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20851 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20854 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20856 cat >>confdefs.h <<\_ACEOF
20857 #define HAVE_ISNAN_IN_MATH_H 1
20862 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20863 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20864 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20868 ac_cpp='$CXXCPP $CPPFLAGS'
20869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20873 cat >conftest.$ac_ext <<_ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h. */
20888 rm -f conftest.$ac_objext
20889 if { (ac_try="$ac_compile"
20890 case "(($ac_try" in
20891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892 *) ac_try_echo=$ac_try;;
20894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895 (eval "$ac_compile") 2>conftest.er1
20897 grep -v '^ *+' conftest.er1 >conftest.err
20899 cat conftest.err >&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } &&
20902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20903 { (case "(($ac_try" in
20904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905 *) ac_try_echo=$ac_try;;
20907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20908 (eval "$ac_try") 2>&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; } &&
20912 { ac_try='test -s conftest.$ac_objext'
20913 { (case "(($ac_try" in
20914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915 *) ac_try_echo=$ac_try;;
20917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918 (eval "$ac_try") 2>&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; }; then
20922 ac_cv_func_isnan_in_cmath=yes
20924 echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20927 ac_cv_func_isnan_in_cmath=no
20930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20932 ac_cpp='$CPP $CPPFLAGS'
20933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20938 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20939 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20941 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20943 cat >>confdefs.h <<\_ACEOF
20944 #define HAVE_ISNAN_IN_CMATH 1
20949 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20950 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20951 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
20955 ac_cpp='$CXXCPP $CPPFLAGS'
20956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20960 cat >conftest.$ac_ext <<_ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h. */
20970 float f; std::isnan(f);
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_compile") 2>conftest.er1
20984 grep -v '^ *+' conftest.er1 >conftest.err
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } &&
20989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20990 { (case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_try") 2>&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; } &&
20999 { ac_try='test -s conftest.$ac_objext'
21000 { (case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_try") 2>&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009 ac_cv_func_std_isnan_in_cmath=yes
21011 echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21014 ac_cv_func_std_isnan_in_cmath=no
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019 ac_cpp='$CPP $CPPFLAGS'
21020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21025 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21026 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21028 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21030 cat >>confdefs.h <<\_ACEOF
21031 #define HAVE_STD_ISNAN_IN_CMATH 1
21037 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21038 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21039 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21040 echo $ECHO_N "(cached) $ECHO_C" >&6
21043 ac_cpp='$CXXCPP $CPPFLAGS'
21044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21048 cat >conftest.$ac_ext <<_ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21063 rm -f conftest.$ac_objext
21064 if { (ac_try="$ac_compile"
21065 case "(($ac_try" in
21066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067 *) ac_try_echo=$ac_try;;
21069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21070 (eval "$ac_compile") 2>conftest.er1
21072 grep -v '^ *+' conftest.er1 >conftest.err
21074 cat conftest.err >&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); } &&
21077 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21078 { (case "(($ac_try" in
21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083 (eval "$ac_try") 2>&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; } &&
21087 { ac_try='test -s conftest.$ac_objext'
21088 { (case "(($ac_try" in
21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090 *) ac_try_echo=$ac_try;;
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093 (eval "$ac_try") 2>&5
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); }; }; then
21097 ac_cv_func_isinf_in_math_h=yes
21099 echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21102 ac_cv_func_isinf_in_math_h=no
21105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21107 ac_cpp='$CPP $CPPFLAGS'
21108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21113 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21114 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21116 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21118 cat >>confdefs.h <<\_ACEOF
21119 #define HAVE_ISINF_IN_MATH_H 1
21124 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21125 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21126 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21127 echo $ECHO_N "(cached) $ECHO_C" >&6
21130 ac_cpp='$CXXCPP $CPPFLAGS'
21131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21135 cat >conftest.$ac_ext <<_ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h. */
21150 rm -f conftest.$ac_objext
21151 if { (ac_try="$ac_compile"
21152 case "(($ac_try" in
21153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154 *) ac_try_echo=$ac_try;;
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157 (eval "$ac_compile") 2>conftest.er1
21159 grep -v '^ *+' conftest.er1 >conftest.err
21161 cat conftest.err >&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); } &&
21164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21165 { (case "(($ac_try" in
21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167 *) ac_try_echo=$ac_try;;
21169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21170 (eval "$ac_try") 2>&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; } &&
21174 { ac_try='test -s conftest.$ac_objext'
21175 { (case "(($ac_try" in
21176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177 *) ac_try_echo=$ac_try;;
21179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180 (eval "$ac_try") 2>&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); }; }; then
21184 ac_cv_func_isinf_in_cmath=yes
21186 echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21189 ac_cv_func_isinf_in_cmath=no
21192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21194 ac_cpp='$CPP $CPPFLAGS'
21195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21200 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21201 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21203 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21205 cat >>confdefs.h <<\_ACEOF
21206 #define HAVE_ISINF_IN_CMATH 1
21211 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21212 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21213 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 ac_cpp='$CXXCPP $CPPFLAGS'
21218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21222 cat >conftest.$ac_ext <<_ACEOF
21225 cat confdefs.h >>conftest.$ac_ext
21226 cat >>conftest.$ac_ext <<_ACEOF
21227 /* end confdefs.h. */
21232 float f; std::isinf(f)}
21237 rm -f conftest.$ac_objext
21238 if { (ac_try="$ac_compile"
21239 case "(($ac_try" in
21240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241 *) ac_try_echo=$ac_try;;
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244 (eval "$ac_compile") 2>conftest.er1
21246 grep -v '^ *+' conftest.er1 >conftest.err
21248 cat conftest.err >&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } &&
21251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21252 { (case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257 (eval "$ac_try") 2>&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; } &&
21261 { ac_try='test -s conftest.$ac_objext'
21262 { (case "(($ac_try" in
21263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264 *) ac_try_echo=$ac_try;;
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267 (eval "$ac_try") 2>&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; }; then
21271 ac_cv_func_std_isinf_in_cmath=yes
21273 echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21276 ac_cv_func_std_isinf_in_cmath=no
21279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21281 ac_cpp='$CPP $CPPFLAGS'
21282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21287 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21288 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21290 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21292 cat >>confdefs.h <<\_ACEOF
21293 #define HAVE_STD_ISINF_IN_CMATH 1
21298 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21299 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21300 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21301 echo $ECHO_N "(cached) $ECHO_C" >&6
21304 ac_cpp='$CXXCPP $CPPFLAGS'
21305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21309 cat >conftest.$ac_ext <<_ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h. */
21315 #include <ieeefp.h>
21319 float f; finite(f);
21324 rm -f conftest.$ac_objext
21325 if { (ac_try="$ac_compile"
21326 case "(($ac_try" in
21327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328 *) ac_try_echo=$ac_try;;
21330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21331 (eval "$ac_compile") 2>conftest.er1
21333 grep -v '^ *+' conftest.er1 >conftest.err
21335 cat conftest.err >&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } &&
21338 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21339 { (case "(($ac_try" in
21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341 *) ac_try_echo=$ac_try;;
21343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344 (eval "$ac_try") 2>&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; } &&
21348 { ac_try='test -s conftest.$ac_objext'
21349 { (case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354 (eval "$ac_try") 2>&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; }; then
21358 ac_cv_func_finite_in_ieeefp_h=yes
21360 echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.$ac_ext >&5
21363 ac_cv_func_finite_in_ieeefp_h=no
21366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21368 ac_cpp='$CPP $CPPFLAGS'
21369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21374 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21375 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21377 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21379 cat >>confdefs.h <<\_ACEOF
21380 #define HAVE_FINITE_IN_IEEEFP_H 1
21387 if test "$llvm_cv_platform_type" = "Unix" ; then
21390 for ac_header in stdlib.h unistd.h
21392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21399 ac_res=`eval echo '${'$as_ac_Header'}'`
21400 { echo "$as_me:$LINENO: result: $ac_res" >&5
21401 echo "${ECHO_T}$ac_res" >&6; }
21403 # Is the header compilable?
21404 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21406 cat >conftest.$ac_ext <<_ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h. */
21412 $ac_includes_default
21413 #include <$ac_header>
21415 rm -f conftest.$ac_objext
21416 if { (ac_try="$ac_compile"
21417 case "(($ac_try" in
21418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419 *) ac_try_echo=$ac_try;;
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422 (eval "$ac_compile") 2>conftest.er1
21424 grep -v '^ *+' conftest.er1 >conftest.err
21426 cat conftest.err >&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } &&
21429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21430 { (case "(($ac_try" in
21431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432 *) ac_try_echo=$ac_try;;
21434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21435 (eval "$ac_try") 2>&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; } &&
21439 { ac_try='test -s conftest.$ac_objext'
21440 { (case "(($ac_try" in
21441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21442 *) ac_try_echo=$ac_try;;
21444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445 (eval "$ac_try") 2>&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; }; then
21449 ac_header_compiler=yes
21451 echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21454 ac_header_compiler=no
21457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21459 echo "${ECHO_T}$ac_header_compiler" >&6; }
21461 # Is the header present?
21462 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21464 cat >conftest.$ac_ext <<_ACEOF
21467 cat confdefs.h >>conftest.$ac_ext
21468 cat >>conftest.$ac_ext <<_ACEOF
21469 /* end confdefs.h. */
21470 #include <$ac_header>
21472 if { (ac_try="$ac_cpp conftest.$ac_ext"
21473 case "(($ac_try" in
21474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475 *) ac_try_echo=$ac_try;;
21477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21480 grep -v '^ *+' conftest.er1 >conftest.err
21482 cat conftest.err >&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } >/dev/null; then
21485 if test -s conftest.err; then
21486 ac_cpp_err=$ac_c_preproc_warn_flag
21487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21494 if test -z "$ac_cpp_err"; then
21495 ac_header_preproc=yes
21497 echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21500 ac_header_preproc=no
21503 rm -f conftest.err conftest.$ac_ext
21504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21505 echo "${ECHO_T}$ac_header_preproc" >&6; }
21507 # So? What about this header?
21508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21514 ac_header_preproc=yes
21517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21530 ## ----------------------------------- ##
21531 ## Report this to llvmbugs@cs.uiuc.edu ##
21532 ## ----------------------------------- ##
21534 ) | sed "s/^/$as_me: WARNING: /" >&2
21537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21542 eval "$as_ac_Header=\$ac_header_preproc"
21544 ac_res=`eval echo '${'$as_ac_Header'}'`
21545 { echo "$as_me:$LINENO: result: $ac_res" >&5
21546 echo "${ECHO_T}$ac_res" >&6; }
21549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21550 cat >>confdefs.h <<_ACEOF
21551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21559 for ac_func in getpagesize
21561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21562 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21565 echo $ECHO_N "(cached) $ECHO_C" >&6
21567 cat >conftest.$ac_ext <<_ACEOF
21570 cat confdefs.h >>conftest.$ac_ext
21571 cat >>conftest.$ac_ext <<_ACEOF
21572 /* end confdefs.h. */
21573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21575 #define $ac_func innocuous_$ac_func
21577 /* System header to define __stub macros and hopefully few prototypes,
21578 which can conflict with char $ac_func (); below.
21579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21580 <limits.h> exists even on freestanding compilers. */
21583 # include <limits.h>
21585 # include <assert.h>
21590 /* Override any GCC internal prototype to avoid an error.
21591 Use char because int might match the return type of a GCC
21592 builtin and then its argument prototype would still apply. */
21597 /* The GNU C library defines this for functions which it implements
21598 to always fail with ENOSYS. Some functions are actually named
21599 something starting with __ and the normal name is an alias. */
21600 #if defined __stub_$ac_func || defined __stub___$ac_func
21607 return $ac_func ();
21612 rm -f conftest.$ac_objext conftest$ac_exeext
21613 if { (ac_try="$ac_link"
21614 case "(($ac_try" in
21615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616 *) ac_try_echo=$ac_try;;
21618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21619 (eval "$ac_link") 2>conftest.er1
21621 grep -v '^ *+' conftest.er1 >conftest.err
21623 cat conftest.err >&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } &&
21626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21627 { (case "(($ac_try" in
21628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629 *) ac_try_echo=$ac_try;;
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632 (eval "$ac_try") 2>&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; } &&
21636 { ac_try='test -s conftest$ac_exeext'
21637 { (case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642 (eval "$ac_try") 2>&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); }; }; then
21646 eval "$as_ac_var=yes"
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21651 eval "$as_ac_var=no"
21654 rm -f core conftest.err conftest.$ac_objext \
21655 conftest$ac_exeext conftest.$ac_ext
21657 ac_res=`eval echo '${'$as_ac_var'}'`
21658 { echo "$as_me:$LINENO: result: $ac_res" >&5
21659 echo "${ECHO_T}$ac_res" >&6; }
21660 if test `eval echo '${'$as_ac_var'}'` = yes; then
21661 cat >>confdefs.h <<_ACEOF
21662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21668 { echo "$as_me:$LINENO: checking for working mmap" >&5
21669 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21670 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21671 echo $ECHO_N "(cached) $ECHO_C" >&6
21673 if test "$cross_compiling" = yes; then
21674 ac_cv_func_mmap_fixed_mapped=no
21676 cat >conftest.$ac_ext <<_ACEOF
21679 cat confdefs.h >>conftest.$ac_ext
21680 cat >>conftest.$ac_ext <<_ACEOF
21681 /* end confdefs.h. */
21682 $ac_includes_default
21683 /* malloc might have been renamed as rpl_malloc. */
21686 /* Thanks to Mike Haertel and Jim Avera for this test.
21687 Here is a matrix of mmap possibilities:
21688 mmap private not fixed
21689 mmap private fixed at somewhere currently unmapped
21690 mmap private fixed at somewhere already mapped
21691 mmap shared not fixed
21692 mmap shared fixed at somewhere currently unmapped
21693 mmap shared fixed at somewhere already mapped
21694 For private mappings, we should verify that changes cannot be read()
21695 back from the file, nor mmap's back from the file at a different
21696 address. (There have been systems where private was not correctly
21697 implemented like the infamous i386 svr4.0, and systems where the
21698 VM page cache was not coherent with the file system buffer cache
21699 like early versions of FreeBSD and possibly contemporary NetBSD.)
21700 For shared mappings, we should conversely verify that changes get
21701 propagated back to all the places they're supposed to be.
21703 Grep wants private fixed already mapped.
21704 The main things grep needs to know about mmap are:
21705 * does it exist and is it safe to write into the mmap'd area
21706 * how to use it (BSD variants) */
21709 #include <sys/mman.h>
21711 #if !STDC_HEADERS && !HAVE_STDLIB_H
21715 /* This mess was copied from the GNU getpagesize.h. */
21716 #if !HAVE_GETPAGESIZE
21717 /* Assume that all systems that can run configure have sys/param.h. */
21718 # if !HAVE_SYS_PARAM_H
21719 # define HAVE_SYS_PARAM_H 1
21722 # ifdef _SC_PAGESIZE
21723 # define getpagesize() sysconf(_SC_PAGESIZE)
21724 # else /* no _SC_PAGESIZE */
21725 # if HAVE_SYS_PARAM_H
21726 # include <sys/param.h>
21727 # ifdef EXEC_PAGESIZE
21728 # define getpagesize() EXEC_PAGESIZE
21729 # else /* no EXEC_PAGESIZE */
21731 # define getpagesize() NBPG * CLSIZE
21734 # endif /* no CLSIZE */
21735 # else /* no NBPG */
21737 # define getpagesize() NBPC
21738 # else /* no NBPC */
21740 # define getpagesize() PAGESIZE
21741 # endif /* PAGESIZE */
21742 # endif /* no NBPC */
21743 # endif /* no NBPG */
21744 # endif /* no EXEC_PAGESIZE */
21745 # else /* no HAVE_SYS_PARAM_H */
21746 # define getpagesize() 8192 /* punt totally */
21747 # endif /* no HAVE_SYS_PARAM_H */
21748 # endif /* no _SC_PAGESIZE */
21750 #endif /* no HAVE_GETPAGESIZE */
21755 char *data, *data2, *data3;
21759 pagesize = getpagesize ();
21761 /* First, make a file with some known garbage in it. */
21762 data = (char *) malloc (pagesize);
21765 for (i = 0; i < pagesize; ++i)
21766 *(data + i) = rand ();
21768 fd = creat ("conftest.mmap", 0600);
21771 if (write (fd, data, pagesize) != pagesize)
21775 /* Next, try to mmap the file at a fixed address which already has
21776 something else allocated at it. If we can, also make sure that
21777 we see the same garbage. */
21778 fd = open ("conftest.mmap", O_RDWR);
21781 data2 = (char *) malloc (2 * pagesize);
21784 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21785 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21786 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21788 for (i = 0; i < pagesize; ++i)
21789 if (*(data + i) != *(data2 + i))
21792 /* Finally, make sure that changes to the mapped area do not
21793 percolate back to the file as seen by read(). (This is a bug on
21794 some variants of i386 svr4.0.) */
21795 for (i = 0; i < pagesize; ++i)
21796 *(data2 + i) = *(data2 + i) + 1;
21797 data3 = (char *) malloc (pagesize);
21800 if (read (fd, data3, pagesize) != pagesize)
21802 for (i = 0; i < pagesize; ++i)
21803 if (*(data + i) != *(data3 + i))
21809 rm -f conftest$ac_exeext
21810 if { (ac_try="$ac_link"
21811 case "(($ac_try" in
21812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813 *) ac_try_echo=$ac_try;;
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816 (eval "$ac_link") 2>&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21820 { (case "(($ac_try" in
21821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21822 *) ac_try_echo=$ac_try;;
21824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21825 (eval "$ac_try") 2>&5
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); }; }; then
21829 ac_cv_func_mmap_fixed_mapped=yes
21831 echo "$as_me: program exited with status $ac_status" >&5
21832 echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21835 ( exit $ac_status )
21836 ac_cv_func_mmap_fixed_mapped=no
21838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21843 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21844 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21845 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21847 cat >>confdefs.h <<\_ACEOF
21848 #define HAVE_MMAP 1
21852 rm -f conftest.mmap
21854 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21855 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21856 if test "${ac_cv_func_mmap_file+set}" = set; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21860 ac_cpp='$CPP $CPPFLAGS'
21861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21865 if test "$cross_compiling" = yes; then
21866 ac_cv_func_mmap_file=no
21868 cat >conftest.$ac_ext <<_ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h. */
21876 #include <sys/types.h>
21877 #include <sys/mman.h>
21885 fd = creat ("foo",0777);
21886 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21888 return (fd != (int) MAP_FAILED);
21893 rm -f conftest$ac_exeext
21894 if { (ac_try="$ac_link"
21895 case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_link") 2>&5
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21904 { (case "(($ac_try" in
21905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909 (eval "$ac_try") 2>&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; }; then
21913 ac_cv_func_mmap_file=yes
21915 echo "$as_me: program exited with status $ac_status" >&5
21916 echo "$as_me: failed program was:" >&5
21917 sed 's/^/| /' conftest.$ac_ext >&5
21919 ( exit $ac_status )
21920 ac_cv_func_mmap_file=no
21922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21927 ac_cpp='$CPP $CPPFLAGS'
21928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21934 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21935 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21936 if test "$ac_cv_func_mmap_file" = yes; then
21938 cat >>confdefs.h <<\_ACEOF
21939 #define HAVE_MMAP_FILE
21946 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21947 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21948 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21949 echo $ECHO_N "(cached) $ECHO_C" >&6
21951 if test "$llvm_cv_os_type" = "Interix" ; then
21952 ac_cv_need_dev_zero_for_mmap=yes
21954 ac_cv_need_dev_zero_for_mmap=no
21958 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21959 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21960 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21962 cat >>confdefs.h <<\_ACEOF
21963 #define NEED_DEV_ZERO_FOR_MMAP 1
21968 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21970 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21971 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21973 if test "$ac_cv_func_mmap_file" = "no"
21975 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21976 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21980 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21981 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21983 ac_cpp='$CXXCPP $CPPFLAGS'
21984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21988 cat >conftest.$ac_ext <<_ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h. */
21995 volatile unsigned long val = 1;
21996 __sync_synchronize();
21997 __sync_val_compare_and_swap(&val, 1, 0);
21998 __sync_add_and_fetch(&val, 1);
21999 __sync_sub_and_fetch(&val, 1);
22004 rm -f conftest.$ac_objext conftest$ac_exeext
22005 if { (ac_try="$ac_link"
22006 case "(($ac_try" in
22007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22008 *) ac_try_echo=$ac_try;;
22010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22011 (eval "$ac_link") 2>conftest.er1
22013 grep -v '^ *+' conftest.er1 >conftest.err
22015 cat conftest.err >&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } &&
22018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22019 { (case "(($ac_try" in
22020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22021 *) ac_try_echo=$ac_try;;
22023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22024 (eval "$ac_try") 2>&5
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); }; } &&
22028 { ac_try='test -s conftest$ac_exeext'
22029 { (case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034 (eval "$ac_try") 2>&5
22036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); }; }; then
22039 ac_cpp='$CPP $CPPFLAGS'
22040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22044 { echo "$as_me:$LINENO: result: yes" >&5
22045 echo "${ECHO_T}yes" >&6; }
22047 cat >>confdefs.h <<\_ACEOF
22048 #define LLVM_MULTITHREADED 1
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22055 { echo "$as_me:$LINENO: result: no" >&5
22056 echo "${ECHO_T}no" >&6; }
22058 cat >>confdefs.h <<\_ACEOF
22059 #define LLVM_MULTITHREADED 0
22062 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22063 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22066 rm -f core conftest.err conftest.$ac_objext \
22067 conftest$ac_exeext conftest.$ac_ext
22070 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22071 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22072 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22073 if test "${llvm_cv_linux_mixed+set}" = set; then
22074 echo $ECHO_N "(cached) $ECHO_C" >&6
22077 ac_cpp='$CPP $CPPFLAGS'
22078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22082 cat >conftest.$ac_ext <<_ACEOF
22085 cat confdefs.h >>conftest.$ac_ext
22086 cat >>conftest.$ac_ext <<_ACEOF
22087 /* end confdefs.h. */
22089 error: Not x86-64 even if uname says so!
22100 rm -f conftest.$ac_objext
22101 if { (ac_try="$ac_compile"
22102 case "(($ac_try" in
22103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22104 *) ac_try_echo=$ac_try;;
22106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22107 (eval "$ac_compile") 2>conftest.er1
22109 grep -v '^ *+' conftest.er1 >conftest.err
22111 cat conftest.err >&5
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } &&
22114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22115 { (case "(($ac_try" in
22116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117 *) ac_try_echo=$ac_try;;
22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120 (eval "$ac_try") 2>&5
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; } &&
22124 { ac_try='test -s conftest.$ac_objext'
22125 { (case "(($ac_try" in
22126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127 *) ac_try_echo=$ac_try;;
22129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22130 (eval "$ac_try") 2>&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); }; }; then
22134 llvm_cv_linux_mixed=no
22136 echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22139 llvm_cv_linux_mixed=yes
22142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22144 ac_cpp='$CPP $CPPFLAGS'
22145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22151 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22152 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22154 if test "$llvm_cv_linux_mixed" = "yes"; then
22155 llvm_cv_target_arch="x86"
22161 for ac_func in __dso_handle
22163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22164 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22167 echo $ECHO_N "(cached) $ECHO_C" >&6
22169 cat >conftest.$ac_ext <<_ACEOF
22172 cat confdefs.h >>conftest.$ac_ext
22173 cat >>conftest.$ac_ext <<_ACEOF
22174 /* end confdefs.h. */
22175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22177 #define $ac_func innocuous_$ac_func
22179 /* System header to define __stub macros and hopefully few prototypes,
22180 which can conflict with char $ac_func (); below.
22181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22182 <limits.h> exists even on freestanding compilers. */
22185 # include <limits.h>
22187 # include <assert.h>
22192 /* Override any GCC internal prototype to avoid an error.
22193 Use char because int might match the return type of a GCC
22194 builtin and then its argument prototype would still apply. */
22199 /* The GNU C library defines this for functions which it implements
22200 to always fail with ENOSYS. Some functions are actually named
22201 something starting with __ and the normal name is an alias. */
22202 #if defined __stub_$ac_func || defined __stub___$ac_func
22209 return $ac_func ();
22214 rm -f conftest.$ac_objext conftest$ac_exeext
22215 if { (ac_try="$ac_link"
22216 case "(($ac_try" in
22217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22218 *) ac_try_echo=$ac_try;;
22220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22221 (eval "$ac_link") 2>conftest.er1
22223 grep -v '^ *+' conftest.er1 >conftest.err
22225 cat conftest.err >&5
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); } &&
22228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22229 { (case "(($ac_try" in
22230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22234 (eval "$ac_try") 2>&5
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); }; } &&
22238 { ac_try='test -s conftest$ac_exeext'
22239 { (case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_try") 2>&5
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); }; }; then
22248 eval "$as_ac_var=yes"
22250 echo "$as_me: failed program was:" >&5
22251 sed 's/^/| /' conftest.$ac_ext >&5
22253 eval "$as_ac_var=no"
22256 rm -f core conftest.err conftest.$ac_objext \
22257 conftest$ac_exeext conftest.$ac_ext
22259 ac_res=`eval echo '${'$as_ac_var'}'`
22260 { echo "$as_me:$LINENO: result: $ac_res" >&5
22261 echo "${ECHO_T}$ac_res" >&6; }
22262 if test `eval echo '${'$as_ac_var'}'` = yes; then
22263 cat >>confdefs.h <<_ACEOF
22264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22271 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22272 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22273 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22274 echo $ECHO_N "(cached) $ECHO_C" >&6
22276 llvm_cv_llvmgcc_dragonegg="no"
22277 if test -n "$LLVMGCC" ; then
22278 cp /dev/null conftest.c
22279 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22280 if test $? -eq 0 ; then
22281 llvm_cv_llvmgcc_dragonegg="yes"
22286 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22287 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22289 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22290 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22291 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
22293 LLVMCC_EMITIR_FLAG="-emit-llvm"
22294 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22299 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22300 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22301 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22302 echo $ECHO_N "(cached) $ECHO_C" >&6
22304 llvm_cv_llvmgcc_sanity="no"
22305 if test -n "$LLVMGCC" ; then
22306 cp /dev/null conftest.c
22307 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22308 grep 'target datalayout =' > /dev/null 2>&1
22309 if test $? -eq 0 ; then
22310 llvm_cv_llvmgcc_sanity="yes"
22315 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22316 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22318 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22319 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22320 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22321 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
22322 LLVMCC1=$llvmcc1path
22324 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
22325 LLVMCC1PLUS=$llvmcc1pluspath
22327 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22328 LLVMGCCDIR=$llvmgccdir
22330 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22331 LLVMGCC_LANGS=$llvmgcclangs
22333 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22336 { echo "$as_me:$LINENO: result: ok" >&5
22337 echo "${ECHO_T}ok" >&6; }
22340 SHLIBEXT=$libltdl_cv_shlibext
22343 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22346 # Translate the various configuration directories and other basic
22347 # information into substitutions that will end up in Makefile.config.in
22348 # that these configured values can be used by the makefiles
22349 if test "${prefix}" = "NONE" ; then
22350 prefix="/usr/local"
22352 eval LLVM_PREFIX="${prefix}";
22353 eval LLVM_BINDIR="${prefix}/bin";
22354 eval LLVM_LIBDIR="${prefix}/lib";
22355 eval LLVM_DATADIR="${prefix}/share/llvm";
22356 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22357 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22358 eval LLVM_INCLUDEDIR="${prefix}/include";
22359 eval LLVM_INFODIR="${prefix}/info";
22360 eval LLVM_MANDIR="${prefix}/man";
22361 LLVM_CONFIGTIME=`date`
22373 # Place the various directores into the config.h file as #defines so that we
22374 # can know about the installation paths within LLVM.
22376 cat >>confdefs.h <<_ACEOF
22377 #define LLVM_PREFIX "$LLVM_PREFIX"
22381 cat >>confdefs.h <<_ACEOF
22382 #define LLVM_BINDIR "$LLVM_BINDIR"
22386 cat >>confdefs.h <<_ACEOF
22387 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22391 cat >>confdefs.h <<_ACEOF
22392 #define LLVM_DATADIR "$LLVM_DATADIR"
22396 cat >>confdefs.h <<_ACEOF
22397 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22401 cat >>confdefs.h <<_ACEOF
22402 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22406 cat >>confdefs.h <<_ACEOF
22407 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22411 cat >>confdefs.h <<_ACEOF
22412 #define LLVM_INFODIR "$LLVM_INFODIR"
22416 cat >>confdefs.h <<_ACEOF
22417 #define LLVM_MANDIR "$LLVM_MANDIR"
22421 cat >>confdefs.h <<_ACEOF
22422 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22426 cat >>confdefs.h <<_ACEOF
22427 #define LLVM_HOSTTRIPLE "$host"
22431 # Determine which bindings to build.
22432 if test "$BINDINGS_TO_BUILD" = auto ; then
22433 BINDINGS_TO_BUILD=""
22434 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22435 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22438 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22441 # This isn't really configurey, but it avoids having to repeat the list in
22446 # Do any work necessary to ensure that bindings have what they need.
22447 binding_prereqs_failed=0
22448 for a_binding in $BINDINGS_TO_BUILD ; do
22449 case "$a_binding" in
22451 if test "x$OCAMLC" = x ; then
22452 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22453 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22454 binding_prereqs_failed=1
22456 if test "x$OCAMLDEP" = x ; then
22457 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22458 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22459 binding_prereqs_failed=1
22461 if test "x$OCAMLOPT" = x ; then
22462 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22463 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22465 if test "x$with_ocaml_libdir" != xauto ; then
22466 OCAML_LIBDIR=$with_ocaml_libdir
22469 ocaml_stdlib="`"$OCAMLC" -where`"
22470 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22472 # ocaml stdlib is beneath our prefix; use stdlib
22473 OCAML_LIBDIR=$ocaml_stdlib
22476 # ocaml stdlib is outside our prefix; use libdir/ocaml
22477 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22484 if test "$binding_prereqs_failed" = 1 ; then
22485 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22486 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22487 { (exit 1); exit 1; }; }
22490 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22491 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22492 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22493 echo $ECHO_N "(cached) $ECHO_C" >&6
22496 ac_cpp='$CXXCPP $CPPFLAGS'
22497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22501 oldcxxflags="$CXXFLAGS"
22502 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22503 cat >conftest.$ac_ext <<_ACEOF
22506 cat confdefs.h >>conftest.$ac_ext
22507 cat >>conftest.$ac_ext <<_ACEOF
22508 /* end confdefs.h. */
22518 rm -f conftest.$ac_objext
22519 if { (ac_try="$ac_compile"
22520 case "(($ac_try" in
22521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22522 *) ac_try_echo=$ac_try;;
22524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22525 (eval "$ac_compile") 2>conftest.er1
22527 grep -v '^ *+' conftest.er1 >conftest.err
22529 cat conftest.err >&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } &&
22532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22533 { (case "(($ac_try" in
22534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22535 *) ac_try_echo=$ac_try;;
22537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22538 (eval "$ac_try") 2>&5
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); }; } &&
22542 { ac_try='test -s conftest.$ac_objext'
22543 { (case "(($ac_try" in
22544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545 *) ac_try_echo=$ac_try;;
22547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22548 (eval "$ac_try") 2>&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); }; }; then
22552 llvm_cv_cxx_visibility_inlines_hidden=yes
22554 echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22557 llvm_cv_cxx_visibility_inlines_hidden=no
22560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22561 CXXFLAGS="$oldcxxflags"
22563 ac_cpp='$CPP $CPPFLAGS'
22564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22570 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22571 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22572 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22573 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22576 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22581 if test "$llvm_cv_link_use_r" = "yes" ; then
22588 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22589 RDYNAMIC="-Wl,-export-dynamic"
22596 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22603 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22605 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22607 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22609 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22611 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22614 ac_config_files="$ac_config_files Makefile.config"
22617 ac_config_files="$ac_config_files llvm.spec"
22620 ac_config_files="$ac_config_files docs/doxygen.cfg"
22622 if test -f ${srcdir}/tools/clang/README.txt; then
22623 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22627 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
22630 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
22633 ac_config_commands="$ac_config_commands setup"
22635 ac_config_commands="$ac_config_commands Makefile"
22638 ac_config_commands="$ac_config_commands Makefile.common"
22641 ac_config_commands="$ac_config_commands examples/Makefile"
22644 ac_config_commands="$ac_config_commands lib/Makefile"
22647 ac_config_commands="$ac_config_commands runtime/Makefile"
22650 ac_config_commands="$ac_config_commands test/Makefile"
22653 ac_config_commands="$ac_config_commands test/Makefile.tests"
22656 ac_config_commands="$ac_config_commands unittests/Makefile"
22659 ac_config_commands="$ac_config_commands tools/Makefile"
22662 ac_config_commands="$ac_config_commands utils/Makefile"
22665 ac_config_commands="$ac_config_commands projects/Makefile"
22668 ac_config_commands="$ac_config_commands bindings/Makefile"
22671 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22675 cat >confcache <<\_ACEOF
22676 # This file is a shell script that caches the results of configure
22677 # tests run on this system so they can be shared between configure
22678 # scripts and configure runs, see configure's option --config-cache.
22679 # It is not useful on other systems. If it contains results you don't
22680 # want to keep, you may remove or edit it.
22682 # config.status only pays attention to the cache file if you give it
22683 # the --recheck option to rerun configure.
22685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22687 # following values.
22691 # The following way of writing the cache mishandles newlines in values,
22692 # but we know of no workaround that is simple, portable, and efficient.
22693 # So, we kill variables containing newlines.
22694 # Ultrix sh set writes to stderr and can't be redirected directly,
22695 # and sets the high bit in the cache file unless we assign to the vars.
22697 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22698 eval ac_val=\$$ac_var
22702 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22706 _ | IFS | as_nl) ;; #(
22707 *) $as_unset $ac_var ;;
22713 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22714 *${as_nl}ac_space=\ *)
22715 # `set' does not quote correctly, so add quotes (double-quote
22716 # substitution turns \\\\ into \\, and sed turns \\ into \).
22719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22722 # `set' quotes correctly as required by POSIX, so do not add quotes.
22723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22732 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22734 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22736 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22737 if test -w "$cache_file"; then
22738 test "x$cache_file" != "x/dev/null" &&
22739 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22740 echo "$as_me: updating cache $cache_file" >&6;}
22741 cat confcache >$cache_file
22743 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22744 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22749 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22750 # Let make expand exec_prefix.
22751 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22753 DEFS=-DHAVE_CONFIG_H
22757 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22758 # 1. Remove the extension, and $U if already installed.
22759 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22760 ac_i=`echo "$ac_i" | sed "$ac_script"`
22761 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22762 # will be set to the directory where LIBOBJS objects are built.
22763 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22764 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22766 LIBOBJS=$ac_libobjs
22768 LTLIBOBJS=$ac_ltlibobjs
22771 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22772 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22773 Usually this means the macro was only invoked conditionally." >&5
22774 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22775 Usually this means the macro was only invoked conditionally." >&2;}
22776 { (exit 1); exit 1; }; }
22778 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22779 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22780 Usually this means the macro was only invoked conditionally." >&5
22781 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22782 Usually this means the macro was only invoked conditionally." >&2;}
22783 { (exit 1); exit 1; }; }
22786 : ${CONFIG_STATUS=./config.status}
22787 ac_clean_files_save=$ac_clean_files
22788 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22789 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22790 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22791 cat >$CONFIG_STATUS <<_ACEOF
22793 # Generated by $as_me.
22794 # Run this file to recreate the current configuration.
22795 # Compiler output produced by configure, useful for debugging
22796 # configure, is in config.log if it exists.
22799 ac_cs_recheck=false
22801 SHELL=\${CONFIG_SHELL-$SHELL}
22804 cat >>$CONFIG_STATUS <<\_ACEOF
22805 ## --------------------- ##
22806 ## M4sh Initialization. ##
22807 ## --------------------- ##
22809 # Be Bourne compatible
22810 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22813 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22814 # is contrary to our usage. Disable this feature.
22815 alias -g '${1+"$@"}'='"$@"'
22816 setopt NO_GLOB_SUBST
22818 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22820 BIN_SH=xpg4; export BIN_SH # for Tru64
22821 DUALCASE=1; export DUALCASE # for MKS sh
22825 # Avoid depending upon Character Ranges.
22826 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22827 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22828 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22829 as_cr_digits='0123456789'
22830 as_cr_alnum=$as_cr_Letters$as_cr_digits
22832 # The user is always right.
22833 if test "${PATH_SEPARATOR+set}" != set; then
22834 echo "#! /bin/sh" >conf$$.sh
22835 echo "exit 0" >>conf$$.sh
22837 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22845 # Support unset when possible.
22846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22854 # We need space, tab and new line, in precisely that order. Quoting is
22855 # there to prevent editors from complaining about space-tab.
22856 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22857 # splitting by setting IFS to empty value.)
22862 # Find who we are. Look in the path if we contain no directory separator.
22864 *[\\/]* ) as_myself=$0 ;;
22865 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22866 for as_dir in $PATH
22869 test -z "$as_dir" && as_dir=.
22870 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22876 # We did not find ourselves, most probably we were run as `sh COMMAND'
22877 # in which case we are not to be found in the path.
22878 if test "x$as_myself" = x; then
22881 if test ! -f "$as_myself"; then
22882 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22883 { (exit 1); exit 1; }
22886 # Work around bugs in pre-3.0 UWIN ksh.
22887 for as_var in ENV MAIL MAILPATH
22888 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22896 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22897 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22898 LC_TELEPHONE LC_TIME
22900 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22901 eval $as_var=C; export $as_var
22903 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22907 # Required to use basename.
22908 if expr a : '\(a\)' >/dev/null 2>&1 &&
22909 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22915 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22916 as_basename=basename
22922 # Name of the executable.
22923 as_me=`$as_basename -- "$0" ||
22924 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22925 X"$0" : 'X\(//\)$' \| \
22926 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22928 sed '/^.*\/\([^/][^/]*\)\/*$/{
22947 as_lineno_1=$LINENO
22948 as_lineno_2=$LINENO
22949 test "x$as_lineno_1" != "x$as_lineno_2" &&
22950 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22952 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22953 # uniformly replaced by the line number. The first 'sed' inserts a
22954 # line-number line after each line using $LINENO; the second 'sed'
22955 # does the real work. The second script uses 'N' to pair each
22956 # line-number line with the line containing $LINENO, and appends
22957 # trailing '-' during substitution so that $LINENO is not a special
22958 # case at line end.
22959 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22960 # scripts with optimization help from Paolo Bonzini. Blame Lee
22961 # E. McMahon (1931-1989) for sed's syntax. :-)
22973 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22976 ' >$as_me.lineno &&
22977 chmod +x "$as_me.lineno" ||
22978 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22979 { (exit 1); exit 1; }; }
22981 # Don't try to exec as it changes $[0], causing all sort of problems
22982 # (the dirname of $[0] is not the place where we might find the
22983 # original and so on. Autoconf is especially sensitive to this).
22984 . "./$as_me.lineno"
22985 # Exit status is that of the last command.
22990 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22996 ECHO_C= ECHO_N= ECHO_T=
22997 case `echo -n x` in
22999 case `echo 'x\c'` in
23000 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23007 if expr a : '\(a\)' >/dev/null 2>&1 &&
23008 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23014 rm -f conf$$ conf$$.exe conf$$.file
23015 if test -d conf$$.dir; then
23016 rm -f conf$$.dir/conf$$.file
23022 if ln -s conf$$.file conf$$ 2>/dev/null; then
23024 # ... but there are two gotchas:
23025 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23026 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23027 # In both cases, we have to default to `cp -p'.
23028 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23030 elif ln conf$$.file conf$$ 2>/dev/null; then
23035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23036 rmdir conf$$.dir 2>/dev/null
23038 if mkdir -p . 2>/dev/null; then
23041 test -d ./-p && rmdir ./-p
23045 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23046 # systems may use methods other than mode bits to determine executability.
23047 cat >conf$$.file <<_ASEOF
23051 chmod +x conf$$.file
23052 if test -x conf$$.file >/dev/null 2>&1; then
23053 as_executable_p="test -x"
23059 # Sed expression to map a string onto a valid CPP name.
23060 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23062 # Sed expression to map a string onto a valid variable name.
23063 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23068 # Save the log message, to keep $[0] and so on meaningful, and to
23069 # report actual input values of CONFIG_FILES etc. instead of their
23070 # values after options handling.
23072 This file was extended by llvm $as_me 3.0svn, which was
23073 generated by GNU Autoconf 2.60. Invocation command line was
23075 CONFIG_FILES = $CONFIG_FILES
23076 CONFIG_HEADERS = $CONFIG_HEADERS
23077 CONFIG_LINKS = $CONFIG_LINKS
23078 CONFIG_COMMANDS = $CONFIG_COMMANDS
23081 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23086 cat >>$CONFIG_STATUS <<_ACEOF
23087 # Files that config.status was made for.
23088 config_files="$ac_config_files"
23089 config_headers="$ac_config_headers"
23090 config_commands="$ac_config_commands"
23094 cat >>$CONFIG_STATUS <<\_ACEOF
23096 \`$as_me' instantiates files from templates according to the
23097 current configuration.
23099 Usage: $0 [OPTIONS] [FILE]...
23101 -h, --help print this help, then exit
23102 -V, --version print version number, then exit
23103 -q, --quiet do not print progress messages
23104 -d, --debug don't remove temporary files
23105 --recheck update $as_me by reconfiguring in the same conditions
23106 --file=FILE[:TEMPLATE]
23107 instantiate the configuration file FILE
23108 --header=FILE[:TEMPLATE]
23109 instantiate the configuration header FILE
23111 Configuration files:
23114 Configuration headers:
23117 Configuration commands:
23120 Report bugs to <bug-autoconf@gnu.org>."
23123 cat >>$CONFIG_STATUS <<_ACEOF
23125 llvm config.status 3.0svn
23126 configured by $0, generated by GNU Autoconf 2.60,
23127 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23129 Copyright (C) 2006 Free Software Foundation, Inc.
23130 This config.status script is free software; the Free Software Foundation
23131 gives unlimited permission to copy, distribute and modify it."
23138 cat >>$CONFIG_STATUS <<\_ACEOF
23139 # If no file are specified by the user, then we need to provide default
23140 # value. By we need to know if files were specified by the user.
23146 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23147 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23158 # Handling of the options.
23159 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23161 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23162 echo "$ac_cs_version"; exit ;;
23163 --debug | --debu | --deb | --de | --d | -d )
23165 --file | --fil | --fi | --f )
23167 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23168 ac_need_defaults=false;;
23169 --header | --heade | --head | --hea )
23171 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23172 ac_need_defaults=false;;
23174 # Conflict between --help and --header
23175 { echo "$as_me: error: ambiguous option: $1
23176 Try \`$0 --help' for more information." >&2
23177 { (exit 1); exit 1; }; };;
23178 --help | --hel | -h )
23179 echo "$ac_cs_usage"; exit ;;
23180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23181 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23184 # This is an error.
23185 -*) { echo "$as_me: error: unrecognized option: $1
23186 Try \`$0 --help' for more information." >&2
23187 { (exit 1); exit 1; }; } ;;
23189 *) ac_config_targets="$ac_config_targets $1"
23190 ac_need_defaults=false ;;
23196 ac_configure_extra_args=
23198 if $ac_cs_silent; then
23200 ac_configure_extra_args="$ac_configure_extra_args --silent"
23204 cat >>$CONFIG_STATUS <<_ACEOF
23205 if \$ac_cs_recheck; then
23206 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23207 CONFIG_SHELL=$SHELL
23208 export CONFIG_SHELL
23209 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23213 cat >>$CONFIG_STATUS <<\_ACEOF
23217 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23218 ## Running $as_me. ##
23224 cat >>$CONFIG_STATUS <<_ACEOF
23228 llvm_src="${srcdir}"
23232 cat >>$CONFIG_STATUS <<\_ACEOF
23234 # Handling of arguments.
23235 for ac_config_target in $ac_config_targets
23237 case $ac_config_target in
23238 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23239 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23240 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23241 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23242 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23243 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23244 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23245 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23246 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23247 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23248 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
23249 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23250 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23251 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23252 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23253 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23254 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23255 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23256 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23257 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23258 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23259 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23260 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23261 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23262 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23263 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23264 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23266 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23267 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23268 { (exit 1); exit 1; }; };;
23273 # If the user did not use the arguments to specify the items to instantiate,
23274 # then the envvar interface is used. Set only those that are not.
23275 # We use the long form for the default assignment because of an extremely
23276 # bizarre bug on SunOS 4.1.3.
23277 if $ac_need_defaults; then
23278 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23279 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23280 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23283 # Have a temporary directory for convenience. Make it in the build tree
23284 # simply because there is no reason against having it here, and in addition,
23285 # creating and moving files from /tmp can sometimes cause problems.
23286 # Hook for its removal unless debugging.
23287 # Note that there is a small window in which the directory will not be cleaned:
23288 # after its creation but before its name has been assigned to `$tmp'.
23292 trap 'exit_status=$?
23293 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23295 trap '{ (exit 1); exit 1; }' 1 2 13 15
23297 # Create a (secure) tmp directory for tmp files.
23300 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23301 test -n "$tmp" && test -d "$tmp"
23304 tmp=./conf$$-$RANDOM
23305 (umask 077 && mkdir "$tmp")
23308 echo "$me: cannot create a temporary directory in ." >&2
23309 { (exit 1); exit 1; }
23313 # Set up the sed scripts for CONFIG_FILES section.
23316 # No need to generate the scripts if there are no CONFIG_FILES.
23317 # This happens for instance when ./config.status config.h
23318 if test -n "$CONFIG_FILES"; then
23325 for ac_last_try in false false false false false :; do
23326 cat >conf$$subs.sed <<_ACEOF
23327 SHELL!$SHELL$ac_delim
23328 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23329 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23330 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23331 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23332 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23333 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23334 exec_prefix!$exec_prefix$ac_delim
23335 prefix!$prefix$ac_delim
23336 program_transform_name!$program_transform_name$ac_delim
23337 bindir!$bindir$ac_delim
23338 sbindir!$sbindir$ac_delim
23339 libexecdir!$libexecdir$ac_delim
23340 datarootdir!$datarootdir$ac_delim
23341 datadir!$datadir$ac_delim
23342 sysconfdir!$sysconfdir$ac_delim
23343 sharedstatedir!$sharedstatedir$ac_delim
23344 localstatedir!$localstatedir$ac_delim
23345 includedir!$includedir$ac_delim
23346 oldincludedir!$oldincludedir$ac_delim
23347 docdir!$docdir$ac_delim
23348 infodir!$infodir$ac_delim
23349 htmldir!$htmldir$ac_delim
23350 dvidir!$dvidir$ac_delim
23351 pdfdir!$pdfdir$ac_delim
23352 psdir!$psdir$ac_delim
23353 libdir!$libdir$ac_delim
23354 localedir!$localedir$ac_delim
23355 mandir!$mandir$ac_delim
23356 DEFS!$DEFS$ac_delim
23357 ECHO_C!$ECHO_C$ac_delim
23358 ECHO_N!$ECHO_N$ac_delim
23359 ECHO_T!$ECHO_T$ac_delim
23360 LIBS!$LIBS$ac_delim
23361 build_alias!$build_alias$ac_delim
23362 host_alias!$host_alias$ac_delim
23363 target_alias!$target_alias$ac_delim
23364 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23365 subdirs!$subdirs$ac_delim
23366 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23367 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23368 build!$build$ac_delim
23369 build_cpu!$build_cpu$ac_delim
23370 build_vendor!$build_vendor$ac_delim
23371 build_os!$build_os$ac_delim
23372 host!$host$ac_delim
23373 host_cpu!$host_cpu$ac_delim
23374 host_vendor!$host_vendor$ac_delim
23375 host_os!$host_os$ac_delim
23376 target!$target$ac_delim
23377 target_cpu!$target_cpu$ac_delim
23378 target_vendor!$target_vendor$ac_delim
23379 target_os!$target_os$ac_delim
23381 HOST_OS!$HOST_OS$ac_delim
23382 TARGET_OS!$TARGET_OS$ac_delim
23383 LINKALL!$LINKALL$ac_delim
23384 NOLINKALL!$NOLINKALL$ac_delim
23385 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23386 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23387 ARCH!$ARCH$ac_delim
23388 ENDIAN!$ENDIAN$ac_delim
23390 CFLAGS!$CFLAGS$ac_delim
23391 LDFLAGS!$LDFLAGS$ac_delim
23392 CPPFLAGS!$CPPFLAGS$ac_delim
23393 ac_ct_CC!$ac_ct_CC$ac_delim
23394 EXEEXT!$EXEEXT$ac_delim
23395 OBJEXT!$OBJEXT$ac_delim
23397 GREP!$GREP$ac_delim
23398 EGREP!$EGREP$ac_delim
23399 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23400 BUILD_CC!$BUILD_CC$ac_delim
23401 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23402 BUILD_CXX!$BUILD_CXX$ac_delim
23403 CVSBUILD!$CVSBUILD$ac_delim
23404 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23405 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23406 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23407 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23408 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23409 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23410 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23412 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23413 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23414 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23415 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23416 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23417 ENABLE_PIC!$ENABLE_PIC$ac_delim
23418 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23419 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23420 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23421 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23422 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23423 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23426 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23428 elif $ac_last_try; then
23429 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23430 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23431 { (exit 1); exit 1; }; }
23433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23437 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23438 if test -n "$ac_eof"; then
23439 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23440 ac_eof=`expr $ac_eof + 1`
23443 cat >>$CONFIG_STATUS <<_ACEOF
23444 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23445 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23448 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23449 s/^/s,@/; s/!/@,|#_!!_#|/
23452 s/'"$ac_delim"'$/,g/; t
23454 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23455 ' >>$CONFIG_STATUS <conf$$subs.sed
23456 rm -f conf$$subs.sed
23457 cat >>$CONFIG_STATUS <<_ACEOF
23463 for ac_last_try in false false false false false :; do
23464 cat >conf$$subs.sed <<_ACEOF
23465 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23466 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23467 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23468 CLANGPATH!$CLANGPATH$ac_delim
23469 CLANGXXPATH!$CLANGXXPATH$ac_delim
23470 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23471 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23472 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23473 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23474 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23476 CXXFLAGS!$CXXFLAGS$ac_delim
23477 ac_ct_CXX!$ac_ct_CXX$ac_delim
23479 ifGNUmake!$ifGNUmake$ac_delim
23480 LN_S!$LN_S$ac_delim
23483 DATE!$DATE$ac_delim
23484 FIND!$FIND$ac_delim
23485 MKDIR!$MKDIR$ac_delim
23487 RANLIB!$RANLIB$ac_delim
23492 BINPWD!$BINPWD$ac_delim
23493 GRAPHVIZ!$GRAPHVIZ$ac_delim
23496 NEATO!$NEATO$ac_delim
23497 TWOPI!$TWOPI$ac_delim
23498 CIRCO!$CIRCO$ac_delim
23500 DOTTY!$DOTTY$ac_delim
23501 XDOT_PY!$XDOT_PY$ac_delim
23502 PERL!$PERL$ac_delim
23503 HAVE_PERL!$HAVE_PERL$ac_delim
23504 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23505 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23506 INSTALL_DATA!$INSTALL_DATA$ac_delim
23507 BZIP2!$BZIP2$ac_delim
23509 DOXYGEN!$DOXYGEN$ac_delim
23510 GROFF!$GROFF$ac_delim
23511 GZIPBIN!$GZIPBIN$ac_delim
23512 POD2HTML!$POD2HTML$ac_delim
23513 POD2MAN!$POD2MAN$ac_delim
23514 PDFROFF!$PDFROFF$ac_delim
23515 RUNTEST!$RUNTEST$ac_delim
23516 TCLSH!$TCLSH$ac_delim
23518 OCAMLC!$OCAMLC$ac_delim
23519 OCAMLOPT!$OCAMLOPT$ac_delim
23520 OCAMLDEP!$OCAMLDEP$ac_delim
23521 OCAMLDOC!$OCAMLDOC$ac_delim
23523 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23524 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23525 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23526 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23527 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23528 LIBADD_DL!$LIBADD_DL$ac_delim
23529 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23530 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23531 LLVMGCC!$LLVMGCC$ac_delim
23532 LLVMGXX!$LLVMGXX$ac_delim
23533 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23534 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23535 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23536 USE_UDIS86!$USE_UDIS86$ac_delim
23537 USE_OPROFILE!$USE_OPROFILE$ac_delim
23538 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23539 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23540 MMAP_FILE!$MMAP_FILE$ac_delim
23541 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23542 LLVMCC1!$LLVMCC1$ac_delim
23543 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23544 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23545 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23546 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23547 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23548 SHLIBEXT!$SHLIBEXT$ac_delim
23549 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23550 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23551 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23552 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23553 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23554 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23555 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23556 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23557 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23558 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23559 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23560 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23561 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23564 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23566 elif $ac_last_try; then
23567 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23568 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23569 { (exit 1); exit 1; }; }
23571 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23575 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23576 if test -n "$ac_eof"; then
23577 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23578 ac_eof=`expr $ac_eof + 1`
23581 cat >>$CONFIG_STATUS <<_ACEOF
23582 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23583 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23586 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23587 s/^/s,@/; s/!/@,|#_!!_#|/
23590 s/'"$ac_delim"'$/,g/; t
23592 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23593 ' >>$CONFIG_STATUS <conf$$subs.sed
23594 rm -f conf$$subs.sed
23595 cat >>$CONFIG_STATUS <<_ACEOF
23601 for ac_last_try in false false false false false :; do
23602 cat >conf$$subs.sed <<_ACEOF
23603 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23604 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23605 RPATH!$RPATH$ac_delim
23606 RDYNAMIC!$RDYNAMIC$ac_delim
23607 LIBOBJS!$LIBOBJS$ac_delim
23608 LTLIBOBJS!$LTLIBOBJS$ac_delim
23611 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23613 elif $ac_last_try; then
23614 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23615 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23616 { (exit 1); exit 1; }; }
23618 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23622 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23623 if test -n "$ac_eof"; then
23624 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23625 ac_eof=`expr $ac_eof + 1`
23628 cat >>$CONFIG_STATUS <<_ACEOF
23629 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23630 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23633 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23634 s/^/s,@/; s/!/@,|#_!!_#|/
23637 s/'"$ac_delim"'$/,g/; t
23639 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23640 ' >>$CONFIG_STATUS <conf$$subs.sed
23641 rm -f conf$$subs.sed
23642 cat >>$CONFIG_STATUS <<_ACEOF
23649 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23650 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23651 # trailing colons and then remove the whole line if VPATH becomes empty
23652 # (actually we leave an empty line to preserve line numbers).
23653 if test "x$srcdir" = x.; then
23654 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23655 s/:*\$(srcdir):*/:/
23656 s/:*\${srcdir}:*/:/
23658 s/^\([^=]*=[ ]*\):*/\1/
23664 cat >>$CONFIG_STATUS <<\_ACEOF
23665 fi # test -n "$CONFIG_FILES"
23668 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23671 :[FHLC]) ac_mode=$ac_tag; continue;;
23673 case $ac_mode$ac_tag in
23675 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23676 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23677 { (exit 1); exit 1; }; };;
23678 :[FH]-) ac_tag=-:-;;
23679 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23696 -) ac_f="$tmp/stdin";;
23697 *) # Look for the file first in the build tree, then in the source tree
23698 # (if the path is not absolute). The absolute path cannot be DOS-style,
23699 # because $ac_f cannot contain `:'.
23703 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23705 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23706 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23707 { (exit 1); exit 1; }; };;
23709 ac_file_inputs="$ac_file_inputs $ac_f"
23712 # Let's still pretend it is `configure' which instantiates (i.e., don't
23713 # use $as_me), people would be surprised to read:
23714 # /* config.h. Generated by config.status. */
23715 configure_input="Generated from "`IFS=:
23716 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23717 if test x"$ac_file" != x-; then
23718 configure_input="$ac_file. $configure_input"
23719 { echo "$as_me:$LINENO: creating $ac_file" >&5
23720 echo "$as_me: creating $ac_file" >&6;}
23724 *:-:* | *:-) cat >"$tmp/stdin";;
23729 ac_dir=`$as_dirname -- "$ac_file" ||
23730 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23731 X"$ac_file" : 'X\(//\)[^/]' \| \
23732 X"$ac_file" : 'X\(//\)$' \| \
23733 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23739 /^X\(\/\/\)[^/].*/{
23754 -*) as_dir=./$as_dir;;
23756 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23760 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23761 *) as_qdir=$as_dir;;
23763 as_dirs="'$as_qdir' $as_dirs"
23764 as_dir=`$as_dirname -- "$as_dir" ||
23765 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23766 X"$as_dir" : 'X\(//\)[^/]' \| \
23767 X"$as_dir" : 'X\(//\)$' \| \
23768 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23774 /^X\(\/\/\)[^/].*/{
23787 test -d "$as_dir" && break
23789 test -z "$as_dirs" || eval "mkdir $as_dirs"
23790 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23791 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23792 { (exit 1); exit 1; }; }; }
23796 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23798 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23799 # A ".." for each directory in $ac_dir_suffix.
23800 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23801 case $ac_top_builddir_sub in
23802 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23803 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23806 ac_abs_top_builddir=$ac_pwd
23807 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23808 # for backward compatibility:
23809 ac_top_builddir=$ac_top_build_prefix
23812 .) # We are building in place.
23814 ac_top_srcdir=$ac_top_builddir_sub
23815 ac_abs_top_srcdir=$ac_pwd ;;
23816 [\\/]* | ?:[\\/]* ) # Absolute name.
23817 ac_srcdir=$srcdir$ac_dir_suffix;
23818 ac_top_srcdir=$srcdir
23819 ac_abs_top_srcdir=$srcdir ;;
23820 *) # Relative name.
23821 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23822 ac_top_srcdir=$ac_top_build_prefix$srcdir
23823 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23825 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23835 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23836 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23840 cat >>$CONFIG_STATUS <<\_ACEOF
23841 # If the template does not know about datarootdir, expand it.
23842 # FIXME: This hack should be removed a few years after 2.60.
23843 ac_datarootdir_hack=; ac_datarootdir_seen=
23845 case `sed -n '/datarootdir/ {
23854 ' $ac_file_inputs` in
23855 *datarootdir*) ac_datarootdir_seen=yes;;
23856 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23857 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23858 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23860 cat >>$CONFIG_STATUS <<_ACEOF
23861 ac_datarootdir_hack='
23862 s&@datadir@&$datadir&g
23863 s&@docdir@&$docdir&g
23864 s&@infodir@&$infodir&g
23865 s&@localedir@&$localedir&g
23866 s&@mandir@&$mandir&g
23867 s&\\\${datarootdir}&$datarootdir&g' ;;
23871 # Neutralize VPATH when `$srcdir' = `.'.
23872 # Shell code in configure.ac might set extrasub.
23873 # FIXME: do we really want to maintain this feature?
23874 cat >>$CONFIG_STATUS <<_ACEOF
23878 cat >>$CONFIG_STATUS <<\_ACEOF
23880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23881 s&@configure_input@&$configure_input&;t t
23882 s&@top_builddir@&$ac_top_builddir_sub&;t t
23883 s&@srcdir@&$ac_srcdir&;t t
23884 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23885 s&@top_srcdir@&$ac_top_srcdir&;t t
23886 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23887 s&@builddir@&$ac_builddir&;t t
23888 s&@abs_builddir@&$ac_abs_builddir&;t t
23889 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23890 s&@INSTALL@&$ac_INSTALL&;t t
23891 $ac_datarootdir_hack
23892 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23894 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23895 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23896 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23897 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23898 which seems to be undefined. Please make sure it is defined." >&5
23899 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23900 which seems to be undefined. Please make sure it is defined." >&2;}
23904 -) cat "$tmp/out"; rm -f "$tmp/out";;
23905 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23914 # Transform confdefs.h into a sed script `conftest.defines', that
23915 # substitutes the proper values into config.h.in to produce config.h.
23916 rm -f conftest.defines conftest.tail
23917 # First, append a space to every undef/define line, to ease matching.
23918 echo 's/$/ /' >conftest.defines
23919 # Then, protect against being on the right side of a sed subst, or in
23920 # an unquoted here document, in config.status. If some macros were
23921 # called several times there might be several #defines for the same
23922 # symbol, which is useless. But do not sort them, since the last
23923 # AC_DEFINE must be honored.
23924 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23925 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23926 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23927 # PARAMS is the parameter list in the macro definition--in most cases, it's
23928 # just an empty string.
23929 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23930 ac_dB='\\)[ (].*,\\1define\\2'
23938 s/^[ ]*#[ ]*define[ ][ ]*//
23943 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23944 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23945 ' >>conftest.defines
23947 # Remove the space that was appended to ease matching.
23948 # Then replace #undef with comments. This is necessary, for
23949 # example, in the case of _POSIX_SOURCE, which is predefined and required
23950 # on some systems where configure will not decide to define it.
23951 # (The regexp can be short, since the line contains either #define or #undef.)
23953 s,^[ #]*u.*,/* & */,' >>conftest.defines
23955 # Break up conftest.defines:
23956 ac_max_sed_lines=50
23958 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23959 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23960 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23962 ac_in='$ac_file_inputs'
23963 ac_out='"$tmp/out1"'
23964 ac_nxt='"$tmp/out2"'
23968 # Write a here document:
23969 cat >>$CONFIG_STATUS <<_ACEOF
23970 # First, check the format of the line:
23971 cat >"\$tmp/defines.sed" <<\\CEOF
23972 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23973 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23977 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23979 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23980 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23981 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23982 grep . conftest.tail >/dev/null || break
23983 rm -f conftest.defines
23984 mv conftest.tail conftest.defines
23986 rm -f conftest.defines conftest.tail
23988 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23989 cat >>$CONFIG_STATUS <<\_ACEOF
23990 if test x"$ac_file" != x-; then
23991 echo "/* $configure_input */" >"$tmp/config.h"
23992 cat "$ac_result" >>"$tmp/config.h"
23993 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23994 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23995 echo "$as_me: $ac_file is unchanged" >&6;}
23998 mv "$tmp/config.h" $ac_file
24001 echo "/* $configure_input */"
24007 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24008 echo "$as_me: executing $ac_file commands" >&6;}
24013 case $ac_file$ac_mode in
24014 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
24015 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
24016 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
24017 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24018 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24019 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24020 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24021 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24022 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24023 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24024 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24025 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24026 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24027 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24028 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24029 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24030 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24031 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24032 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24033 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24034 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24035 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24036 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24037 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24038 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24039 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24045 { (exit 0); exit 0; }
24047 chmod +x $CONFIG_STATUS
24048 ac_clean_files=$ac_clean_files_save
24051 # configure is writing to config.log, and then calls config.status.
24052 # config.status does its own redirection, appending to config.log.
24053 # Unfortunately, on DOS this fails, as config.log is still kept open
24054 # by configure, so config.status won't be able to write to it; its
24055 # output is simply discarded. So we exec the FD to /dev/null,
24056 # effectively closing config.log, so it can be properly (re)opened and
24057 # appended to by config.status. When coming back to configure, we
24058 # need to make the FD available again.
24059 if test "$no_create" != yes; then
24061 ac_config_status_args=
24062 test "$silent" = yes &&
24063 ac_config_status_args="$ac_config_status_args --quiet"
24065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24068 # would make configure fail if this is the last instruction.
24069 $ac_cs_success || { (exit 1); exit 1; }
24073 # CONFIG_SUBDIRS section.
24075 if test "$no_recursion" != yes; then
24077 # Remove --cache-file and --srcdir arguments so they do not pile up.
24078 ac_sub_configure_args=
24080 eval "set x $ac_configure_args"
24084 if test -n "$ac_prev"; then
24089 -cache-file | --cache-file | --cache-fil | --cache-fi \
24090 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24091 ac_prev=cache_file ;;
24092 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24093 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24096 --config-cache | -C)
24098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24108 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24110 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24114 # Always prepend --prefix to ensure using the same prefix
24115 # in subdir configurations.
24116 ac_arg="--prefix=$prefix"
24118 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24120 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24123 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24125 # Do not complain, so a configure script can configure whichever
24126 # parts of a large source tree are present.
24127 test -d "$srcdir/$ac_dir" || continue
24129 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24130 echo "$as_me:$LINENO: $ac_msg" >&5
24134 -*) as_dir=./$as_dir;;
24136 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24140 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24141 *) as_qdir=$as_dir;;
24143 as_dirs="'$as_qdir' $as_dirs"
24144 as_dir=`$as_dirname -- "$as_dir" ||
24145 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24146 X"$as_dir" : 'X\(//\)[^/]' \| \
24147 X"$as_dir" : 'X\(//\)$' \| \
24148 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24154 /^X\(\/\/\)[^/].*/{
24167 test -d "$as_dir" && break
24169 test -z "$as_dirs" || eval "mkdir $as_dirs"
24170 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24171 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24172 { (exit 1); exit 1; }; }; }
24176 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24178 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24179 # A ".." for each directory in $ac_dir_suffix.
24180 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24181 case $ac_top_builddir_sub in
24182 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24183 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24186 ac_abs_top_builddir=$ac_pwd
24187 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24188 # for backward compatibility:
24189 ac_top_builddir=$ac_top_build_prefix
24192 .) # We are building in place.
24194 ac_top_srcdir=$ac_top_builddir_sub
24195 ac_abs_top_srcdir=$ac_pwd ;;
24196 [\\/]* | ?:[\\/]* ) # Absolute name.
24197 ac_srcdir=$srcdir$ac_dir_suffix;
24198 ac_top_srcdir=$srcdir
24199 ac_abs_top_srcdir=$srcdir ;;
24200 *) # Relative name.
24201 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24202 ac_top_srcdir=$ac_top_build_prefix$srcdir
24203 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24205 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24210 # Check for guested configure; otherwise get Cygnus style configure.
24211 if test -f "$ac_srcdir/configure.gnu"; then
24212 ac_sub_configure=$ac_srcdir/configure.gnu
24213 elif test -f "$ac_srcdir/configure"; then
24214 ac_sub_configure=$ac_srcdir/configure
24215 elif test -f "$ac_srcdir/configure.in"; then
24216 # This should be Cygnus configure.
24217 ac_sub_configure=$ac_aux_dir/configure
24219 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24220 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24224 # The recursion is here.
24225 if test -n "$ac_sub_configure"; then
24226 # Make the cache file name correct relative to the subdirectory.
24227 case $cache_file in
24228 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24229 *) # Relative name.
24230 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24233 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24234 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24235 # The eval makes quoting arguments work.
24236 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24237 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24238 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24239 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24240 { (exit 1); exit 1; }; }