2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.0svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
28 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
29 DUALCASE
=1; export DUALCASE
# for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /usr
/bin
/posix
$PATH_SEPARATOR/bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
251 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
252 DUALCASE
=1; export DUALCASE
# for MKS sh
257 CONFIG_SHELL
=$as_shell
259 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
271 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
272 DUALCASE
=1; export DUALCASE
# for MKS sh
284 as_func_ret_success
() {
287 as_func_ret_failure
() {
292 if as_func_success
; then
296 echo as_func_success failed.
299 if as_func_failure
; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success
; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure
; then
313 echo as_func_ret_failure succeeded.
316 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) ||
{ (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x
; then
341 for as_var
in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no
; then
350 echo This
script requires a shell
more modern than all the
351 echo shells that I found on your system. Please
install a
352 echo modern shell
, or manually run the
script under such a
353 echo shell
if you
do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") ||
{
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system
,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x
"$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
470 ECHO_C
= ECHO_N
= ECHO_T
=
474 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
481 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
488 rm -f conf$$ conf$$.exe conf$$.
file
489 if test -d conf$$.dir
; then
490 rm -f conf$$.dir
/conf$$.
file
496 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
504 elif ln conf$$.
file conf$$
2>/dev
/null
; then
509 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
510 rmdir conf$$.dir
2>/dev
/null
512 if mkdir
-p .
2>/dev
/null
; then
515 test -d .
/-p && rmdir .
/-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.
file <<_ASEOF
526 if test -x conf$$.
file >/dev
/null
2>&1; then
527 as_executable_p
="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev
/null
6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix
=/usr
/local
553 ac_config_libobj_dir
=.
559 SHELL
=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME
='-llvm-'
564 PACKAGE_VERSION
='3.0svn'
565 PACKAGE_STRING
='llvm 3.0svn'
566 PACKAGE_BUGREPORT
='llvmbugs@cs.uiuc.edu'
568 ac_unique_file
="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default
="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
685 ENABLE_EXPENSIVE_CHECKS
701 LLVM_ENUM_ASM_PRINTERS
702 LLVM_ENUM_ASM_PARSERS
703 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
772 NO_MISSING_FIELD_INITIALIZERS
784 LLVMCC_DISABLEOPT_FLAGS
800 ENABLE_VISIBILITY_INLINES_HIDDEN
806 ac_precious_vars
='build_alias
817 ac_subdirs_all
='projects/llvm-gcc
821 projects/llvm-poolalloc
824 projects/llvm-stacker
832 # Initialize some variables set by options.
834 ac_init_version
=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
844 program_transform_name
=s
,x
,x
,
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir
='${exec_prefix}/bin'
859 sbindir
='${exec_prefix}/sbin'
860 libexecdir
='${exec_prefix}/libexec'
861 datarootdir
='${prefix}/share'
862 datadir
='${datarootdir}'
863 sysconfdir
='${prefix}/etc'
864 sharedstatedir
='${prefix}/com'
865 localstatedir
='${prefix}/var'
866 includedir
='${prefix}/include'
867 oldincludedir
='/usr/include'
868 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir
='${datarootdir}/info'
874 libdir
='${exec_prefix}/lib'
875 localedir
='${datarootdir}/locale'
876 mandir
='${datarootdir}/man'
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\
$ac_option
890 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
900 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
902 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
905 -build |
--build |
--buil |
--bui |
--bu)
906 ac_prev
=build_alias
;;
907 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
908 build_alias
=$ac_optarg ;;
910 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
911 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
912 ac_prev
=cache_file
;;
913 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
914 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
915 cache_file
=$ac_optarg ;;
918 cache_file
=config.cache
;;
920 -datadir |
--datadir |
--datadi |
--datad)
922 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
923 datadir
=$ac_optarg ;;
925 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
926 |
--dataroo |
--dataro |
--datar)
927 ac_prev
=datarootdir
;;
928 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
929 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
930 datarootdir
=$ac_optarg ;;
932 -disable-* |
--disable-*)
933 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_
$ac_feature=no
;;
941 -docdir |
--docdir |
--docdi |
--doc |
--do)
943 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
946 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
948 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
951 -enable-* |
--enable-*)
952 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_
$ac_feature=\
$ac_optarg ;;
960 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
961 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
962 |
--exec |
--exe |
--ex)
963 ac_prev
=exec_prefix
;;
964 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
965 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
966 |
--exec=* |
--exe=* |
--ex=*)
967 exec_prefix
=$ac_optarg ;;
969 -gas |
--gas |
--ga |
--g)
970 # Obsolete; use --with-gas.
973 -help |
--help |
--hel |
--he |
-h)
975 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
976 ac_init_help
=recursive
;;
977 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
978 ac_init_help
=short
;;
980 -host |
--host |
--hos |
--ho)
981 ac_prev
=host_alias
;;
982 -host=* |
--host=* |
--hos=* |
--ho=*)
983 host_alias
=$ac_optarg ;;
985 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
987 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
989 htmldir
=$ac_optarg ;;
991 -includedir |
--includedir |
--includedi |
--included |
--include \
992 |
--includ |
--inclu |
--incl |
--inc)
993 ac_prev
=includedir
;;
994 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
995 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
996 includedir
=$ac_optarg ;;
998 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1000 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1001 infodir
=$ac_optarg ;;
1003 -libdir |
--libdir |
--libdi |
--libd)
1005 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1006 libdir
=$ac_optarg ;;
1008 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1009 |
--libexe |
--libex |
--libe)
1010 ac_prev
=libexecdir
;;
1011 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1012 |
--libexe=* |
--libex=* |
--libe=*)
1013 libexecdir
=$ac_optarg ;;
1015 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1016 ac_prev
=localedir
;;
1017 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1018 localedir
=$ac_optarg ;;
1020 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1021 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1022 ac_prev
=localstatedir
;;
1023 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1024 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1025 localstatedir
=$ac_optarg ;;
1027 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1029 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1030 mandir
=$ac_optarg ;;
1032 -nfp |
--nfp |
--nf)
1033 # Obsolete; use --without-fp.
1036 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1037 |
--no-cr |
--no-c |
-n)
1040 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1041 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1044 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1045 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1046 |
--oldin |
--oldi |
--old |
--ol |
--o)
1047 ac_prev
=oldincludedir
;;
1048 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1049 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1050 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1051 oldincludedir
=$ac_optarg ;;
1053 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1055 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1056 prefix
=$ac_optarg ;;
1058 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1059 |
--program-pre |
--program-pr |
--program-p)
1060 ac_prev
=program_prefix
;;
1061 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1062 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1063 program_prefix
=$ac_optarg ;;
1065 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1066 |
--program-suf |
--program-su |
--program-s)
1067 ac_prev
=program_suffix
;;
1068 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1069 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1070 program_suffix
=$ac_optarg ;;
1072 -program-transform-name |
--program-transform-name \
1073 |
--program-transform-nam |
--program-transform-na \
1074 |
--program-transform-n |
--program-transform- \
1075 |
--program-transform |
--program-transfor \
1076 |
--program-transfo |
--program-transf \
1077 |
--program-trans |
--program-tran \
1078 |
--progr-tra |
--program-tr |
--program-t)
1079 ac_prev
=program_transform_name
;;
1080 -program-transform-name=* |
--program-transform-name=* \
1081 |
--program-transform-nam=* |
--program-transform-na=* \
1082 |
--program-transform-n=* |
--program-transform-=* \
1083 |
--program-transform=* |
--program-transfor=* \
1084 |
--program-transfo=* |
--program-transf=* \
1085 |
--program-trans=* |
--program-tran=* \
1086 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1087 program_transform_name
=$ac_optarg ;;
1089 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1091 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1092 pdfdir
=$ac_optarg ;;
1094 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1096 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1099 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1100 |
-silent |
--silent |
--silen |
--sile |
--sil)
1103 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1105 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1107 sbindir
=$ac_optarg ;;
1109 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1110 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1111 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1113 ac_prev
=sharedstatedir
;;
1114 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1115 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1116 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1118 sharedstatedir
=$ac_optarg ;;
1120 -site |
--site |
--sit)
1122 -site=* |
--site=* |
--sit=*)
1125 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1127 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1128 srcdir
=$ac_optarg ;;
1130 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1131 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1132 ac_prev
=sysconfdir
;;
1133 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1134 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1135 sysconfdir
=$ac_optarg ;;
1137 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1138 ac_prev
=target_alias
;;
1139 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1140 target_alias
=$ac_optarg ;;
1142 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1145 -version |
--version |
--versio |
--versi |
--vers |
-V)
1146 ac_init_version
=: ;;
1149 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_
$ac_package=\
$ac_optarg ;;
1157 -without-* |
--without-*)
1158 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_
$ac_package=no
;;
1167 # Obsolete; use --with-x.
1170 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1171 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1172 ac_prev
=x_includes
;;
1173 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1174 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1175 x_includes
=$ac_optarg ;;
1177 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1178 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1179 ac_prev
=x_libraries
;;
1180 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1181 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1182 x_libraries
=$ac_optarg ;;
1184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
1190 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
1195 eval $ac_envvar=\
$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1209 if test -n "$ac_prev"; then
1210 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
1215 # Be sure to have absolute directory names.
1216 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val
=\$
$ac_var
1223 [\\/$
]* | ?
:[\\/]* ) continue;;
1224 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1235 target
=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x
; then
1239 if test "x$build_alias" = x
; then
1240 cross_compiling
=maybe
1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1249 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1251 test "$silent" = yes && exec 6>/dev
/null
1254 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di
=`ls -di .` &&
1256 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted
=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir
=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1296 ac_srcdir_defaulted
=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
1303 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1316 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 for ac_var
in $ac_precious_vars; do
1319 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1321 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1332 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1390 --build=BUILD configure
for building on BUILD
[guessed
]
1391 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1392 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive
) echo "Configuration of llvm 3.0svn:";;
1403 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1404 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1405 --enable-polly Use polly
if available
(default is YES
)
1406 --enable-optimized Compile with optimizations enabled
(default is NO
)
1407 --enable-profiling Compile with profiling enabled
(default is NO
)
1408 --enable-assertions Compile with assertion checks enabled
(default is
1410 --enable-expensive-checks
1411 Compile with expensive debug checks enabled
(default
1413 --enable-debug-runtime Build runtime libs with debug symbols
(default is
1415 --enable-debug-symbols Build compiler with debug symbols
(default is NO
if
1416 optimization is on and YES
if it
's off)
1417 --enable-jit Enable Just In Time Compiling (default is YES)
1418 --enable-docs Build documents (default is YES)
1419 --enable-doxygen Build doxygen documentation (default is NO)
1420 --enable-threads Use threads if available (default is YES)
1421 --enable-pthreads Use pthreads if available (default is YES)
1422 --enable-pic Build LLVM with Position Independent Code (default
1424 --enable-shared Build a shared library and link tools against it
1426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is YES)
1428 --enable-timestamps Enable embedding timestamp information in build
1430 --enable-targets Build specific host targets: all or
1431 target1,target2,... Valid targets are: host, x86,
1432 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1435 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1437 --enable-bindings Build specific language bindings:
1438 all,auto,none,{binding-name} (default=auto)
1439 --enable-libffi Check for the presence of libffi (default is NO)
1440 --enable-ltdl-install install libltdl
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1445 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1447 --with-llvmgcc Specify location of llvm-gcc driver (default
1449 --with-llvmgxx Specify location of llvm-g++ driver (default
1451 --with-clang Specify location of clang compiler (default is
1453 --with-built-clang Use the compiled Clang as the LLVM compiler
1455 --with-optimize-option Select the compiler options to use for optimized
1457 --with-extra-options Specify additional options to compile LLVM with
1458 --with-extra-ld-options Specify additional options to link LLVM with
1459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1464 --with-c-include-dirs Colon separated list of directories clang will
1466 --with-cxx-include-root Directory with the libstdc++ headers.
1467 --with-cxx-include-arch Architecture of the libstdc++ headers.
1468 --with-cxx-include-32bit-dir
1469 32 bit multilib dir.
1470 --with-cxx-include-64bit-dir
1471 64 bit multilib directory.
1472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
1474 --with-tclinclude directory where tcl headers are
1475 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1476 clang, or none; default=check)
1477 --with-udis86=<path> Use udis86 external x86 disassembler library
1478 --with-oprofile=<prefix>
1479 Tell OProfile >= 0.9.4 how to symbolize JIT output
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1489 CXX C++ compiler command
1490 CXXFLAGS C++ compiler flags
1492 Use these variables to override the choices made by `configure' or to
help
1493 it to
find libraries and programs with nonstandard names
/locations.
1495 Report bugs to
<llvmbugs@cs.uiuc.edu
>.
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1503 test -d "$ac_dir" ||
continue
1507 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1509 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1514 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1517 ac_abs_top_builddir
=$ac_pwd
1518 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir
=$ac_top_build_prefix
1523 .
) # We are building in place.
1525 ac_top_srcdir
=$ac_top_builddir_sub
1526 ac_abs_top_srcdir
=$ac_pwd ;;
1527 [\\/]* | ?
:[\\/]* ) # Absolute name.
1528 ac_srcdir
=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir
=$srcdir
1530 ac_abs_top_srcdir
=$srcdir ;;
1532 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1536 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1538 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1556 llvm configure
3.0svn
1557 generated by GNU Autoconf
2.60
1559 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1561 This configure
script is free software
; the Free Software Foundation
1562 gives unlimited permission to copy
, distribute and modify it.
1564 Copyright
(c
) 2003-2011 University of Illinois
at Urbana-Champaign.
1568 cat >config.log
<<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1572 It was created by llvm $as_me 3.0svn, which was
1573 generated by GNU Autoconf 2.60. Invocation command line was
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1594 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1598 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1608 test -z "$as_dir" && as_dir
=.
1609 echo "PATH: $as_dir"
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1633 ac_must_keep_next
=false
1639 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1640 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1641 |
-silent |
--silent |
--silen |
--sile |
--sil)
1644 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1649 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1650 if test $ac_must_keep_next = true
; then
1651 ac_must_keep_next
=false
# Got value, back to normal.
1654 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1655 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1656 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1657 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 -* ) ac_must_keep_next
=true
;;
1665 ac_configure_args
="$ac_configure_args '$ac_arg'"
1670 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1671 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log. We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1689 # The following way of writing the cache mishandles newlines in values,
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700 _ | IFS | as_nl) ;; #(
1701 *) $as_unset $ac_var ;;
1706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
1709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1726 for ac_var in $ac_subst_vars
1728 eval ac_val=\$$ac_var
1730 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732 echo "$ac_var='\''$ac_val'\''"
1736 if test -n "$ac_subst_files"; then
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1743 for ac_var
in $ac_subst_files
1745 eval ac_val
=\$
$ac_var
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 echo "$ac_var='\''$ac_val'\''"
1754 if test -s confdefs.h; then
1764 test "$ac_signal" != 0 &&
1765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
1768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772 for ac_signal
in 1 2 13 15; do
1773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest
* confdefs.h
1780 # Predefined preprocessor variables.
1782 cat >>confdefs.h
<<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1787 cat >>confdefs.h
<<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1792 cat >>confdefs.h
<<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1797 cat >>confdefs.h
<<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1802 cat >>confdefs.h
<<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810 set x
"$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE
; then
1812 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1814 set x
"$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
1820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823 sed 's/^/| /' "$ac_site_file" >&5
1828 if test -r "$cache_file"; then
1829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1835 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1836 *) .
"./$cache_file";;
1840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1845 # Check that the precious variables saved in the cache have kept the same
1847 ac_cache_corrupted
=false
1848 for ac_var
in $ac_precious_vars; do
1849 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1850 eval ac_new_set
=\
$ac_env_${ac_var}_set
1851 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1852 eval ac_new_val
=\
$ac_env_${ac_var}_value
1853 case $ac_old_set,$ac_new_set in
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857 ac_cache_corrupted
=: ;;
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861 ac_cache_corrupted
=: ;;
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
1865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868 echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870 echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted
=:
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1877 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 *) ac_arg
=$ac_var=$ac_new_val ;;
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1882 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1886 if $ac_cache_corrupted; then
1887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
1919 ac_cpp
='$CPP $CPPFLAGS'
1920 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1926 LLVM_COPYRIGHT
="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1935 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
1936 if test -f "$ac_dir/install-sh"; then
1938 ac_install_sh
="$ac_aux_dir/install-sh -c"
1940 elif test -f "$ac_dir/install.sh"; then
1942 ac_install_sh
="$ac_aux_dir/install.sh -c"
1944 elif test -f "$ac_dir/shtool"; then
1946 ac_install_sh
="$ac_aux_dir/shtool install -c"
1950 if test -z "$ac_aux_dir"; then
1951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953 { (exit 1); exit 1; }; }
1956 # These three variables are undocumented and unsupported,
1957 # and are intended to be withdrawn in a future Autoconf release.
1958 # They can cause serious problems if a builder's source tree is in a directory
1959 # whose full name contains unusual characters.
1960 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1966 if test ${srcdir} != "." ; then
1967 if test -f ${srcdir}/include
/llvm
/Config
/config.h
; then
1968 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1969 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1970 { (exit 1); exit 1; }; }
1976 if test -d ${srcdir}/projects
/llvm-gcc
; then
1977 subdirs
="$subdirs projects/llvm-gcc"
1981 if test -d ${srcdir}/projects
/test-suite
; then
1982 subdirs
="$subdirs projects/test-suite"
1986 if test -d ${srcdir}/projects
/llvm-test
; then
1987 subdirs
="$subdirs projects/llvm-test"
1991 if test -d ${srcdir}/projects
/poolalloc
; then
1992 subdirs
="$subdirs projects/poolalloc"
1996 if test -d ${srcdir}/projects
/llvm-poolalloc
; then
1997 subdirs
="$subdirs projects/llvm-poolalloc"
2001 for i
in `ls ${srcdir}/projects`
2003 if test -d ${srcdir}/projects
/${i} ; then
2005 sample
) subdirs
="$subdirs projects/sample"
2007 privbracket
) subdirs
="$subdirs projects/privbracket"
2009 llvm-stacker
) subdirs
="$subdirs projects/llvm-stacker"
2011 llvm-reopt
) subdirs
="$subdirs projects/llvm-reopt"
2013 llvm-java
) subdirs
="$subdirs projects/llvm-java"
2015 llvm-tv
) subdirs
="$subdirs projects/llvm-tv"
2017 safecode
) subdirs
="$subdirs projects/safecode"
2019 llvm-kernel
) subdirs
="$subdirs projects/llvm-kernel"
2027 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2028 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2034 # Check whether --enable-polly was given.
2035 if test "${enable_polly+set}" = set; then
2036 enableval
=$enable_polly;
2041 case "$enableval" in
2046 default
) ENABLE_POLLY
=1
2048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2049 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2050 { (exit 1); exit 1; }; } ;;
2054 if (test -d ${srcdir}/tools
/polly
) && (test $ENABLE_POLLY -eq 1) ; then
2057 subdirs
="$subdirs tools/polly"
2062 # Make sure we can run config.sub.
2063 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2064 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2065 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2066 { (exit 1); exit 1; }; }
2068 { echo "$as_me:$LINENO: checking build system type" >&5
2069 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2070 if test "${ac_cv_build+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 ac_build_alias
=$build_alias
2074 test "x$ac_build_alias" = x
&&
2075 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2076 test "x$ac_build_alias" = x
&&
2077 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2078 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2079 { (exit 1); exit 1; }; }
2080 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2082 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2083 { (exit 1); exit 1; }; }
2086 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2087 echo "${ECHO_T}$ac_cv_build" >&6; }
2088 case $ac_cv_build in
2090 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2091 echo "$as_me: error: invalid value of canonical build" >&2;}
2092 { (exit 1); exit 1; }; };;
2095 ac_save_IFS
=$IFS; IFS
='-'
2101 # Remember, the first character of IFS is used to create $*,
2102 # except with old shells:
2105 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2108 { echo "$as_me:$LINENO: checking host system type" >&5
2109 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2110 if test "${ac_cv_host+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 if test "x$host_alias" = x
; then
2114 ac_cv_host
=$ac_cv_build
2116 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2117 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2118 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2119 { (exit 1); exit 1; }; }
2123 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2124 echo "${ECHO_T}$ac_cv_host" >&6; }
2127 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2128 echo "$as_me: error: invalid value of canonical host" >&2;}
2129 { (exit 1); exit 1; }; };;
2132 ac_save_IFS
=$IFS; IFS
='-'
2138 # Remember, the first character of IFS is used to create $*,
2139 # except with old shells:
2142 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2145 { echo "$as_me:$LINENO: checking target system type" >&5
2146 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2147 if test "${ac_cv_target+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 if test "x$target_alias" = x
; then
2151 ac_cv_target
=$ac_cv_host
2153 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2154 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2155 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2156 { (exit 1); exit 1; }; }
2160 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2161 echo "${ECHO_T}$ac_cv_target" >&6; }
2162 case $ac_cv_target in
2164 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2165 echo "$as_me: error: invalid value of canonical target" >&2;}
2166 { (exit 1); exit 1; }; };;
2168 target
=$ac_cv_target
2169 ac_save_IFS
=$IFS; IFS
='-'
2175 # Remember, the first character of IFS is used to create $*,
2176 # except with old shells:
2179 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2182 # The aliases save the names the user supplied, while $host etc.
2183 # will get canonicalized.
2184 test -n "$target_alias" &&
2185 test "$program_prefix$program_suffix$program_transform_name" = \
2187 program_prefix
=${target_alias}-
2189 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2190 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2191 if test "${llvm_cv_os_type+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 llvm_cv_link_all_option
="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2198 llvm_cv_os_type
="AIX"
2199 llvm_cv_platform_type
="Unix" ;;
2201 llvm_cv_link_all_option
="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2203 llvm_cv_os_type
="IRIX"
2204 llvm_cv_platform_type
="Unix" ;;
2206 llvm_cv_link_all_option
="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2208 llvm_cv_os_type
="Cygwin"
2209 llvm_cv_platform_type
="Unix" ;;
2211 llvm_cv_link_all_option
="-Wl,-all_load"
2212 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2213 llvm_cv_os_type
="Darwin"
2214 llvm_cv_platform_type
="Unix" ;;
2216 llvm_cv_link_all_option
="-Wl,-all_load"
2217 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2218 llvm_cv_os_type
="Minix"
2219 llvm_cv_platform_type
="Unix" ;;
2221 llvm_cv_link_all_option
="-Wl,--whole-archive"
2222 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2223 llvm_cv_os_type
="FreeBSD"
2224 llvm_cv_platform_type
="Unix" ;;
2226 llvm_cv_link_all_option
="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2228 llvm_cv_os_type
="OpenBSD"
2229 llvm_cv_platform_type
="Unix" ;;
2231 llvm_cv_link_all_option
="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2233 llvm_cv_os_type
="NetBSD"
2234 llvm_cv_platform_type
="Unix" ;;
2236 llvm_cv_link_all_option
="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2238 llvm_cv_os_type
="DragonFly"
2239 llvm_cv_platform_type
="Unix" ;;
2241 llvm_cv_link_all_option
="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2243 llvm_cv_os_type
="HP-UX"
2244 llvm_cv_platform_type
="Unix" ;;
2246 llvm_cv_link_all_option
="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2248 llvm_cv_os_type
="Interix"
2249 llvm_cv_platform_type
="Unix" ;;
2251 llvm_cv_link_all_option
="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2253 llvm_cv_os_type
="Linux"
2254 llvm_cv_platform_type
="Unix" ;;
2256 llvm_cv_link_all_option
="-Wl,-z,allextract"
2257 llvm_cv_no_link_all_option
="-Wl,-z,defaultextract"
2258 llvm_cv_os_type
="SunOS"
2259 llvm_cv_platform_type
="Unix" ;;
2261 llvm_cv_link_all_option
="-Wl,-z,allextract"
2262 llvm_cv_link_all_option
="-Wl,-z,defaultextract"
2263 llvm_cv_os_type
="AuroraUX"
2264 llvm_cv_platform_type
="Unix" ;;
2266 llvm_cv_link_all_option
="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2268 llvm_cv_os_type
="Win32"
2269 llvm_cv_platform_type
="Win32" ;;
2271 llvm_cv_link_all_option
="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2273 llvm_cv_os_type
="MingW"
2274 llvm_cv_platform_type
="Win32" ;;
2276 llvm_cv_link_all_option
="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2278 llvm_cv_os_type
="Haiku"
2279 llvm_cv_platform_type
="Unix" ;;
2281 llvm_cv_link_all_option
="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2283 llvm_cv_os_type
="Freestanding"
2284 llvm_cv_platform_type
="Unix" ;;
2286 llvm_cv_link_all_option
="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2288 llvm_cv_os_type
="Freestanding"
2289 llvm_cv_platform_type
="Unix" ;;
2291 llvm_cv_link_all_option
=""
2292 llvm_cv_no_link_all_option
=""
2293 llvm_cv_os_type
="Unknown"
2294 llvm_cv_platform_type
="Unknown" ;;
2297 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2298 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2300 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2301 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2302 if test "${llvm_cv_target_os_type+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 llvm_cv_target_os_type
="AIX" ;;
2309 llvm_cv_target_os_type
="IRIX" ;;
2311 llvm_cv_target_os_type
="Cygwin" ;;
2313 llvm_cv_target_os_type
="Darwin" ;;
2315 llvm_cv_target_os_type
="Minix" ;;
2317 llvm_cv_target_os_type
="FreeBSD" ;;
2319 llvm_cv_target_os_type
="OpenBSD" ;;
2321 llvm_cv_target_os_type
="NetBSD" ;;
2323 llvm_cv_target_os_type
="DragonFly" ;;
2325 llvm_cv_target_os_type
="HP-UX" ;;
2327 llvm_cv_target_os_type
="Interix" ;;
2329 llvm_cv_target_os_type
="Linux" ;;
2331 llvm_cv_target_os_type
="SunOS" ;;
2333 llvm_cv_target_os_type
="AuroraUX" ;;
2335 llvm_cv_target_os_type
="Win32" ;;
2337 llvm_cv_target_os_type
="MingW" ;;
2339 llvm_cv_target_os_type
="Haiku" ;;
2341 llvm_cv_target_os_type
="Freestanding" ;;
2343 llvm_cv_target_os_type
="Unknown" ;;
2346 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2347 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2349 if test "$llvm_cv_os_type" = "Unknown" ; then
2350 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2351 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2352 { (exit 1); exit 1; }; }
2357 HOST_OS
=$llvm_cv_os_type
2359 TARGET_OS
=$llvm_cv_target_os_type
2362 LINKALL
=$llvm_cv_link_all_option
2364 NOLINKALL
=$llvm_cv_no_link_all_option
2367 case $llvm_cv_platform_type in
2370 cat >>confdefs.h
<<\_ACEOF
2371 #define LLVM_ON_UNIX 1
2381 cat >>confdefs.h
<<\_ACEOF
2382 #define LLVM_ON_WIN32 1
2392 { echo "$as_me:$LINENO: checking target architecture" >&5
2393 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2394 if test "${llvm_cv_target_arch+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 i?
86-*) llvm_cv_target_arch
="x86" ;;
2399 amd64-
* | x86_64-
*) llvm_cv_target_arch
="x86_64" ;;
2400 sparc
*-*) llvm_cv_target_arch
="Sparc" ;;
2401 powerpc
*-*) llvm_cv_target_arch
="PowerPC" ;;
2402 alpha
*-*) llvm_cv_target_arch
="Alpha" ;;
2403 arm
*-*) llvm_cv_target_arch
="ARM" ;;
2404 mips-
*) llvm_cv_target_arch
="Mips" ;;
2405 xcore-
*) llvm_cv_target_arch
="XCore" ;;
2406 msp430-
*) llvm_cv_target_arch
="MSP430" ;;
2407 s390x-
*) llvm_cv_target_arch
="SystemZ" ;;
2408 bfin-
*) llvm_cv_target_arch
="Blackfin" ;;
2409 mblaze-
*) llvm_cv_target_arch
="MBlaze" ;;
2410 ptx-
*) llvm_cv_target_arch
="PTX" ;;
2411 *) llvm_cv_target_arch
="Unknown" ;;
2414 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2415 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2417 if test "$llvm_cv_target_arch" = "Unknown" ; then
2418 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2419 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2422 # Determine the LLVM native architecture for the target
2423 case "$llvm_cv_target_arch" in
2424 x86
) LLVM_NATIVE_ARCH
="X86" ;;
2425 x86_64
) LLVM_NATIVE_ARCH
="X86" ;;
2426 *) LLVM_NATIVE_ARCH
="$llvm_cv_target_arch" ;;
2429 ARCH
=$llvm_cv_target_arch
2433 ac_cpp
='$CPP $CPPFLAGS'
2434 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2437 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2439 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC
="$CC" # Let the user override the test.
2448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir
=.
2453 for ac_exec_ext
in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 if test -n "$CC"; then
2467 { echo "$as_me:$LINENO: result: $CC" >&5
2468 echo "${ECHO_T}$CC" >&6; }
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2476 if test -z "$ac_cv_prog_CC"; then
2478 # Extract the first word of "gcc", so it can be a program name with args.
2479 set dummy gcc
; ac_word
=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test -n "$ac_ct_CC"; then
2486 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir
=.
2493 for ac_exec_ext
in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_ac_ct_CC
="gcc"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2506 if test -n "$ac_ct_CC"; then
2507 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2508 echo "${ECHO_T}$ac_ct_CC" >&6; }
2510 { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2514 if test "x$ac_ct_CC" = x
; then
2517 case $cross_compiling:$ac_tool_warned in
2519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet. If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&5
2522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2523 whose name does not start with the host triplet. If you think this
2524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2525 ac_tool_warned
=yes ;;
2533 if test -z "$CC"; then
2534 if test -n "$ac_tool_prefix"; then
2535 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2536 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC
="$CC" # Let the user override the test.
2545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2549 test -z "$as_dir" && as_dir
=.
2550 for ac_exec_ext
in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 if test -n "$CC"; then
2564 { echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6; }
2567 { echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6; }
2574 if test -z "$CC"; then
2575 # Extract the first word of "cc", so it can be a program name with args.
2576 set dummy cc
; ac_word
=$2
2577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_CC+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 if test -n "$CC"; then
2583 ac_cv_prog_CC
="$CC" # Let the user override the test.
2586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir
=.
2591 for ac_exec_ext
in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2593 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2594 ac_prog_rejected
=yes
2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 if test $ac_prog_rejected = yes; then
2606 # We found a bogon in the path, so make sure we never use it.
2607 set dummy
$ac_cv_prog_CC
2609 if test $# != 0; then
2610 # We chose a different compiler from the bogus one.
2611 # However, it has the same basename, so the bogon will be chosen
2612 # first if we set CC to just the basename; use the full file name.
2614 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2620 if test -n "$CC"; then
2621 { echo "$as_me:$LINENO: result: $CC" >&5
2622 echo "${ECHO_T}$CC" >&6; }
2624 { echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6; }
2630 if test -z "$CC"; then
2631 if test -n "$ac_tool_prefix"; then
2632 for ac_prog
in cl.exe
2634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2635 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_CC+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 if test -n "$CC"; then
2642 ac_cv_prog_CC
="$CC" # Let the user override the test.
2644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2648 test -z "$as_dir" && as_dir
=.
2649 for ac_exec_ext
in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 if test -n "$CC"; then
2663 { echo "$as_me:$LINENO: result: $CC" >&5
2664 echo "${ECHO_T}$CC" >&6; }
2666 { echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6; }
2671 test -n "$CC" && break
2674 if test -z "$CC"; then
2676 for ac_prog
in cl.exe
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy
$ac_prog; ac_word
=$2
2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir
=.
2693 for ac_exec_ext
in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_ac_ct_CC
="$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2706 if test -n "$ac_ct_CC"; then
2707 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2708 echo "${ECHO_T}$ac_ct_CC" >&6; }
2710 { echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6; }
2715 test -n "$ac_ct_CC" && break
2718 if test "x$ac_ct_CC" = x
; then
2721 case $cross_compiling:$ac_tool_warned in
2723 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2724 whose name does not start with the host triplet. If you think this
2725 configuration is useful to you, please write to autoconf@gnu.org." >&5
2726 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2727 whose name does not start with the host triplet. If you think this
2728 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2729 ac_tool_warned
=yes ;;
2738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&5
2740 echo "$as_me: error: no acceptable C compiler found in \$PATH
2741 See \`config.log' for more details." >&2;}
2742 { (exit 1); exit 1; }; }
2744 # Provide some information about the compiler.
2745 echo "$as_me:$LINENO: checking for C compiler version" >&5
2746 ac_compiler
=`set X $ac_compile; echo $2`
2747 { (ac_try
="$ac_compiler --version >&5"
2749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compiler --version >&5") 2>&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }
2757 { (ac_try="$ac_compiler -v >&5"
2759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2760 *) ac_try_echo
=$ac_try;;
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_compiler -v >&5") 2>&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }
2767 { (ac_try
="$ac_compiler -V >&5"
2769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compiler -V >&5") 2>&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }
2778 cat >conftest.$ac_ext <<_ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2793 ac_clean_files_save=$ac_clean_files
2794 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2795 # Try to create an executable without -o first, disregard a.out.
2796 # It will help us diagnose broken compilers, and finding out an intuition
2798 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2799 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2800 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2802 # List of possible output files, starting from the most likely.
2803 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2804 # only as a last resort. b.out is created by i960 compilers.
2805 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2807 # The IRIX 6 linker writes into existing files which may not be
2808 # executable, retaining their permissions. Remove them first so a
2809 # subsequent execution test works.
2811 for ac_file in $ac_files
2814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2815 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2820 if { (ac_try="$ac_link_default"
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826 (eval "$ac_link_default") 2>&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; then
2830 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2831 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2832 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2833 # so that the user can short-circuit this test for compilers unknown to
2835 for ac_file
in $ac_files
2837 test -f "$ac_file" ||
continue
2839 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2842 # We found the default executable, but exeext='' is most
2846 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2848 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2850 # We set ac_cv_exeext here because the later test for it is not
2851 # safe: cross compilers may not add the suffix if given an `-o'
2852 # argument, so we may need to know it at that point already.
2853 # Even if this section looks crufty: it has the advantage of
2860 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.
$ac_ext >&5
2866 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2867 See \`config.log' for more details." >&5
2868 echo "$as_me: error: C compiler cannot create executables
2869 See \`config.log' for more details." >&2;}
2870 { (exit 77); exit 77; }; }
2873 ac_exeext
=$ac_cv_exeext
2874 { echo "$as_me:$LINENO: result: $ac_file" >&5
2875 echo "${ECHO_T}$ac_file" >&6; }
2877 # Check that the compiler produces executables we can run. If not, either
2878 # the compiler is broken, or we cross compile.
2879 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2880 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2881 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2882 # If not cross compiling, check that we can run a simple program.
2883 if test "$cross_compiling" != yes; then
2884 if { ac_try
='./$ac_file'
2885 { (case "(($ac_try" in
2886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_try") 2>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2896 if test "$cross_compiling" = maybe; then
2899 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2900 If you meant to cross compile, use \`--host'.
2901 See \`config.log' for more details.
" >&5
2902 echo "$as_me: error
: cannot run C compiled programs.
2903 If you meant to cross compile
, use \
`--host'.
2904 See \`config.log
' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2909 { echo "$as_me:$LINENO: result: yes" >&5
2910 echo "${ECHO_T}yes" >&6; }
2912 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2913 ac_clean_files=$ac_clean_files_save
2914 # Check that the compiler produces executables we can run. If not, either
2915 # the compiler is broken, or we cross compile.
2916 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2917 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2918 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2919 echo "${ECHO_T}$cross_compiling" >&6; }
2921 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2922 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2923 if { (ac_try="$ac_link"
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_link") 2>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; then
2933 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2934 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2935 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2937 for ac_file
in conftest.exe conftest conftest.
*; do
2938 test -f "$ac_file" ||
continue
2940 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2941 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2947 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2948 See \`config.log' for more details." >&5
2949 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2950 See \`config.log' for more details." >&2;}
2951 { (exit 1); exit 1; }; }
2954 rm -f conftest
$ac_cv_exeext
2955 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2956 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2958 rm -f conftest.
$ac_ext
2959 EXEEXT
=$ac_cv_exeext
2961 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2962 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2963 if test "${ac_cv_objext+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 cat >conftest.
$ac_ext <<_ACEOF
2969 cat confdefs.h
>>conftest.
$ac_ext
2970 cat >>conftest.
$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2981 rm -f conftest.o conftest.obj
2982 if { (ac_try
="$ac_compile"
2984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; then
2992 for ac_file in conftest.o conftest.obj conftest.*; do
2993 test -f "$ac_file" || continue;
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2996 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3005 See \`config.log
' for more details." >&5
3006 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3007 See \`config.log' for more details.
" >&2;}
3008 { (exit 1); exit 1; }; }
3011 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3013 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3014 echo "${ECHO_T}$ac_cv_objext" >&6; }
3015 OBJEXT=$ac_cv_objext
3017 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3018 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3019 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3020 echo $ECHO_N "(cached
) $ECHO_C" >&6
3022 cat >conftest.$ac_ext <<_ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3040 rm -f conftest.$ac_objext
3041 if { (ac_try="$ac_compile"
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>conftest.er1
3049 grep -v '^ *+' conftest.er1 >conftest.err
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3053 (exit $ac_status); } &&
3054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3055 { (case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
3062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3063 (exit $ac_status); }; } &&
3064 { ac_try='test -s conftest.$ac_objext'
3065 { (case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_try") 2>&5
3072 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3073 (exit $ac_status); }; }; then
3076 echo "$as_me: failed program was
:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3086 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3087 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3088 GCC=`test $ac_compiler_gnu = yes && echo yes`
3089 ac_test_CFLAGS=${CFLAGS+set}
3090 ac_save_CFLAGS=$CFLAGS
3091 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3092 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3093 if test "${ac_cv_prog_cc_g+set}" = set; then
3094 echo $ECHO_N "(cached
) $ECHO_C" >&6
3096 ac_save_c_werror_flag=$ac_c_werror_flag
3097 ac_c_werror_flag=yes
3100 cat >conftest.$ac_ext <<_ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3115 rm -f conftest.$ac_objext
3116 if { (ac_try="$ac_compile"
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3121 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_compile") 2>conftest.er1
3124 grep -v '^ *+' conftest.er1 >conftest.err
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3130 { (case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_try") 2>&5
3137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try='test -s conftest.$ac_objext'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3148 (exit $ac_status); }; }; then
3151 echo "$as_me: failed program was
:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3170 rm -f conftest.$ac_objext
3171 if { (ac_try="$ac_compile"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3179 grep -v '^ *+' conftest.er1 >conftest.err
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3183 (exit $ac_status); } &&
3184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3185 { (case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_try") 2>&5
3192 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3203 (exit $ac_status); }; }; then
3206 echo "$as_me: failed program was
:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3209 ac_c_werror_flag=$ac_save_c_werror_flag
3211 cat >conftest.$ac_ext <<_ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3226 rm -f conftest.$ac_objext
3227 if { (ac_try="$ac_compile"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3235 grep -v '^ *+' conftest.er1 >conftest.err
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3241 { (case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_try") 2>&5
3248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3249 (exit $ac_status); }; } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_try") 2>&5
3258 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3259 (exit $ac_status); }; }; then
3262 echo "$as_me: failed program was
:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 ac_c_werror_flag=$ac_save_c_werror_flag
3277 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3278 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3279 if test "$ac_test_CFLAGS" = set; then
3280 CFLAGS=$ac_save_CFLAGS
3281 elif test $ac_cv_prog_cc_g = yes; then
3282 if test "$GCC" = yes; then
3288 if test "$GCC" = yes; then
3294 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3295 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3296 if test "${ac_cv_prog_cc_c89+set}" = set; then
3297 echo $ECHO_N "(cached
) $ECHO_C" >&6
3299 ac_cv_prog_cc_c89=no
3301 cat >conftest.$ac_ext <<_ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3309 #include <sys/types.h>
3310 #include <sys/stat.h>
3311 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3312 struct buf { int x; };
3313 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3314 static char *e (p, i)
3320 static char *f (char * (*g) (char **, int), char **p, ...)
3325 s = g (p, va_arg (v,int));
3330 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3331 function prototypes and stuff, but not '\xHH' hex character constants.
3332 These don't provoke an error unfortunately, instead are silently treated
3333 as 'x'. The following induces an error, until -std is added to get
3334 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3335 array size at least. It's necessary to write '\x00'==0 to get something
3336 that's true only with -std. */
3337 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3339 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3340 inside strings and character constants. */
3342 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3344 int test (int i, double x);
3345 struct s1 {int (*f) (int a);};
3346 struct s2 {int (*f) (double a);};
3347 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3353 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3358 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3359 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3361 CC="$ac_save_CC $ac_arg"
3362 rm -f conftest.$ac_objext
3363 if { (ac_try="$ac_compile"
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3369 (eval "$ac_compile") 2>conftest.er1
3371 grep -v '^ *+' conftest.er1 >conftest.err
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3375 (exit $ac_status); } &&
3376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3377 { (case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_try") 2>&5
3384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3391 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_try") 2>&5
3394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 ac_cv_prog_cc_c89=$ac_arg
3398 echo "$as_me: failed program was
:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3404 rm -f core conftest.err conftest.$ac_objext
3405 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3407 rm -f conftest.$ac_ext
3412 case "x
$ac_cv_prog_cc_c89" in
3414 { echo "$as_me:$LINENO: result
: none needed
" >&5
3415 echo "${ECHO_T}none needed
" >&6; } ;;
3417 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3418 echo "${ECHO_T}unsupported
" >&6; } ;;
3420 CC="$CC $ac_cv_prog_cc_c89"
3421 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3422 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3439 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3440 # On Suns, sometimes $CPP names a directory.
3441 if test -n "$CPP" && test -d "$CPP"; then
3444 if test -z "$CPP"; then
3445 if test "${ac_cv_prog_CPP+set}" = set; then
3446 echo $ECHO_N "(cached
) $ECHO_C" >&6
3448 # Double quotes because CPP needs to be expanded
3449 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3452 for ac_c_preproc_warn_flag in '' yes
3454 # Use a header file that comes with gcc, so configuring glibc
3455 # with a fresh cross-compiler works.
3456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3457 # <limits.h> exists even on freestanding compilers.
3458 # On the NeXT, cc -E runs the code through the compiler's parser,
3459 # not just through cpp. "Syntax error
" is here to catch this case.
3460 cat >conftest.$ac_ext <<_ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3467 # include <limits.h>
3469 # include <assert.h>
3473 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3478 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3481 grep -v '^ *+' conftest.er1 >conftest.err
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3485 (exit $ac_status); } >/dev/null; then
3486 if test -s conftest.err; then
3487 ac_cpp_err=$ac_c_preproc_warn_flag
3488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3495 if test -z "$ac_cpp_err"; then
3498 echo "$as_me: failed program was
:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 # Broken: fails on valid input.
3505 rm -f conftest.err conftest.$ac_ext
3507 # OK, works on sane cases. Now check whether nonexistent headers
3508 # can be detected and how.
3509 cat >conftest.$ac_ext <<_ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3515 #include <ac_nonexistent.h>
3517 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3525 grep -v '^ *+' conftest.er1 >conftest.err
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3529 (exit $ac_status); } >/dev/null; then
3530 if test -s conftest.err; then
3531 ac_cpp_err=$ac_c_preproc_warn_flag
3532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3539 if test -z "$ac_cpp_err"; then
3540 # Broken: success on invalid input.
3543 echo "$as_me: failed program was
:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3546 # Passes both tests.
3551 rm -f conftest.err conftest.$ac_ext
3554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3555 rm -f conftest.err conftest.$ac_ext
3556 if $ac_preproc_ok; then
3568 { echo "$as_me:$LINENO: result
: $CPP" >&5
3569 echo "${ECHO_T}$CPP" >&6; }
3571 for ac_c_preproc_warn_flag in '' yes
3573 # Use a header file that comes with gcc, so configuring glibc
3574 # with a fresh cross-compiler works.
3575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3576 # <limits.h> exists even on freestanding compilers.
3577 # On the NeXT, cc -E runs the code through the compiler's parser,
3578 # not just through cpp. "Syntax error
" is here to catch this case.
3579 cat >conftest.$ac_ext <<_ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3586 # include <limits.h>
3588 # include <assert.h>
3592 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3597 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3600 grep -v '^ *+' conftest.er1 >conftest.err
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3604 (exit $ac_status); } >/dev/null; then
3605 if test -s conftest.err; then
3606 ac_cpp_err=$ac_c_preproc_warn_flag
3607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3614 if test -z "$ac_cpp_err"; then
3617 echo "$as_me: failed program was
:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 # Broken: fails on valid input.
3624 rm -f conftest.err conftest.$ac_ext
3626 # OK, works on sane cases. Now check whether nonexistent headers
3627 # can be detected and how.
3628 cat >conftest.$ac_ext <<_ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634 #include <ac_nonexistent.h>
3636 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3644 grep -v '^ *+' conftest.er1 >conftest.err
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3648 (exit $ac_status); } >/dev/null; then
3649 if test -s conftest.err; then
3650 ac_cpp_err=$ac_c_preproc_warn_flag
3651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3658 if test -z "$ac_cpp_err"; then
3659 # Broken: success on invalid input.
3662 echo "$as_me: failed program was
:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3665 # Passes both tests.
3670 rm -f conftest.err conftest.$ac_ext
3673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3674 rm -f conftest.err conftest.$ac_ext
3675 if $ac_preproc_ok; then
3678 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3679 See \
`config.log' for more details." >&5
3680 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3681 See \`config.log
' for more details." >&2;}
3682 { (exit 1); exit 1; }; }
3686 ac_cpp='$CPP $CPPFLAGS'
3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3688 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3693 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3694 if test "${ac_cv_path_GREP+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 # Extract the first word of "grep ggrep" to use in msg output
3698 if test -z "$GREP"; then
3699 set dummy grep ggrep; ac_prog_name=$2
3700 if test "${ac_cv_path_GREP+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 ac_path_GREP_found=false
3704 # Loop through the user's path and
test for each of PROGNAME-LIST
3705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3706 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3709 test -z "$as_dir" && as_dir
=.
3710 for ac_prog
in grep ggrep
; do
3711 for ac_exec_ext
in '' $ac_executable_extensions; do
3712 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3713 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3714 # Check for GNU ac_path_GREP and select it if it is found.
3715 # Check for GNU $ac_path_GREP
3716 case `"$ac_path_GREP" --version 2>&1` in
3718 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3721 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3724 cat "conftest.in" "conftest.in" >"conftest.tmp"
3725 mv "conftest.tmp" "conftest.in"
3726 cp "conftest.in" "conftest.nl"
3727 echo 'GREP' >> "conftest.nl"
3728 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3729 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3730 ac_count
=`expr $ac_count + 1`
3731 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3732 # Best one so far, save it but keep looking for a better one
3733 ac_cv_path_GREP
="$ac_path_GREP"
3734 ac_path_GREP_max
=$ac_count
3736 # 10*(2^10) chars as input seems more than enough
3737 test $ac_count -gt 10 && break
3739 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3743 $ac_path_GREP_found && break 3
3753 GREP
="$ac_cv_path_GREP"
3754 if test -z "$GREP"; then
3755 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3756 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3757 { (exit 1); exit 1; }; }
3761 ac_cv_path_GREP
=$GREP
3766 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3767 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3768 GREP
="$ac_cv_path_GREP"
3771 { echo "$as_me:$LINENO: checking for egrep" >&5
3772 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3773 if test "${ac_cv_path_EGREP+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3777 then ac_cv_path_EGREP
="$GREP -E"
3779 # Extract the first word of "egrep" to use in msg output
3780 if test -z "$EGREP"; then
3781 set dummy
egrep; ac_prog_name
=$2
3782 if test "${ac_cv_path_EGREP+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 ac_path_EGREP_found
=false
3786 # Loop through the user's path and test for each of PROGNAME-LIST
3787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3788 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3791 test -z "$as_dir" && as_dir
=.
3792 for ac_prog
in egrep; do
3793 for ac_exec_ext
in '' $ac_executable_extensions; do
3794 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3795 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3796 # Check for GNU ac_path_EGREP and select it if it is found.
3797 # Check for GNU $ac_path_EGREP
3798 case `"$ac_path_EGREP" --version 2>&1` in
3800 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3803 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3806 cat "conftest.in" "conftest.in" >"conftest.tmp"
3807 mv "conftest.tmp" "conftest.in"
3808 cp "conftest.in" "conftest.nl"
3809 echo 'EGREP' >> "conftest.nl"
3810 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3811 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3812 ac_count
=`expr $ac_count + 1`
3813 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3814 # Best one so far, save it but keep looking for a better one
3815 ac_cv_path_EGREP
="$ac_path_EGREP"
3816 ac_path_EGREP_max
=$ac_count
3818 # 10*(2^10) chars as input seems more than enough
3819 test $ac_count -gt 10 && break
3821 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3825 $ac_path_EGREP_found && break 3
3835 EGREP
="$ac_cv_path_EGREP"
3836 if test -z "$EGREP"; then
3837 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3838 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3839 { (exit 1); exit 1; }; }
3843 ac_cv_path_EGREP
=$EGREP
3849 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3850 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3851 EGREP
="$ac_cv_path_EGREP"
3854 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3855 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3856 if test "${ac_cv_header_stdc+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 cat >conftest.
$ac_ext <<_ACEOF
3862 cat confdefs.h
>>conftest.
$ac_ext
3863 cat >>conftest.
$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3878 rm -f conftest.
$ac_objext
3879 if { (ac_try
="$ac_compile"
3881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885 (eval "$ac_compile") 2>conftest.er1
3887 grep -v '^ *+' conftest.er1 >conftest.err
3889 cat conftest.err >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } &&
3892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3893 { (case "(($ac_try" in
3894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3895 *) ac_try_echo
=$ac_try;;
3897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3898 (eval "$ac_try") 2>&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; } &&
3902 { ac_try
='test -s conftest.$ac_objext'
3903 { (case "(($ac_try" in
3904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3908 (eval "$ac_try") 2>&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
3912 ac_cv_header_stdc=yes
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3917 ac_cv_header_stdc=no
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 if test $ac_cv_header_stdc = yes; then
3923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3924 cat >conftest.$ac_ext <<_ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3934 $EGREP "memchr" >/dev/null 2>&1; then
3937 ac_cv_header_stdc=no
3943 if test $ac_cv_header_stdc = yes; then
3944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3945 cat >conftest.$ac_ext <<_ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3955 $EGREP "free" >/dev/null 2>&1; then
3958 ac_cv_header_stdc=no
3964 if test $ac_cv_header_stdc = yes; then
3965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3966 if test "$cross_compiling" = yes; then
3969 cat >conftest.$ac_ext <<_ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3977 #if ((' ' & 0x0FF) == 0x020)
3978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3981 # define ISLOWER(c) \
3982 (('a' <= (c) && (c) <= 'i') \
3983 || ('j' <= (c) && (c) <= 'r') \
3984 || ('s' <= (c) && (c) <= 'z'))
3985 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3988 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3993 for (i = 0; i < 256; i++)
3994 if (XOR (islower (i), ISLOWER (i))
3995 || toupper (i) != TOUPPER (i))
4000 rm -f conftest$ac_exeext
4001 if { (ac_try="$ac_link"
4003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4004 *) ac_try_echo
=$ac_try;;
4006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007 (eval "$ac_link") 2>&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4011 { (case "(($ac_try" in
4012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016 (eval "$ac_try") 2>&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4022 echo "$as_me: program exited with status $ac_status" >&5
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4027 ac_cv_header_stdc=no
4029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4035 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4036 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4037 if test $ac_cv_header_stdc = yes; then
4039 cat >>confdefs.h <<\_ACEOF
4040 #define STDC_HEADERS 1
4045 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4055 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4056 inttypes.h stdint.h unistd.h
4058 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 $ac_includes_default
4072 #include <$ac_header>
4074 rm -f conftest.$ac_objext
4075 if { (ac_try="$ac_compile"
4077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4078 *) ac_try_echo
=$ac_try;;
4080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_compile") 2>conftest.er1
4083 grep -v '^ *+' conftest.er1
>conftest.err
4085 cat conftest.err
>&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } &&
4088 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4089 { (case "(($ac_try" in
4090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_try") 2>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; } &&
4098 { ac_try='test -s conftest.$ac_objext'
4099 { (case "(($ac_try" in
4100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4101 *) ac_try_echo
=$ac_try;;
4103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4104 (eval "$ac_try") 2>&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
4108 eval "$as_ac_Header=yes"
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.
$ac_ext >&5
4113 eval "$as_ac_Header=no"
4116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4118 ac_res
=`eval echo '${'$as_ac_Header'}'`
4119 { echo "$as_me:$LINENO: result: $ac_res" >&5
4120 echo "${ECHO_T}$ac_res" >&6; }
4121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4122 cat >>confdefs.h
<<_ACEOF
4123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4131 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4132 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4133 if test "${ac_cv_c_bigendian+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 # See if sys/param.h defines the BYTE_ORDER macro.
4137 cat >conftest.
$ac_ext <<_ACEOF
4140 cat confdefs.h
>>conftest.
$ac_ext
4141 cat >>conftest.
$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #include <sys/types.h>
4144 #include <sys/param.h>
4149 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4157 rm -f conftest.
$ac_objext
4158 if { (ac_try
="$ac_compile"
4160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_compile") 2>conftest.er1
4166 grep -v '^ *+' conftest.er1 >conftest.err
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4172 { (case "(($ac_try" in
4173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4174 *) ac_try_echo
=$ac_try;;
4176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177 (eval "$ac_try") 2>&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; } &&
4181 { ac_try
='test -s conftest.$ac_objext'
4182 { (case "(($ac_try" in
4183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 # It does; now see whether it defined to BIG_ENDIAN or not.
4192 cat >conftest.$ac_ext <<_ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 #include <sys/types.h>
4199 #include <sys/param.h>
4204 #if BYTE_ORDER != BIG_ENDIAN
4212 rm -f conftest.$ac_objext
4213 if { (ac_try="$ac_compile"
4215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4216 *) ac_try_echo
=$ac_try;;
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4221 grep -v '^ *+' conftest.er1
>conftest.err
4223 cat conftest.err
>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4227 { (case "(($ac_try" in
4228 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; } &&
4236 { ac_try='test -s conftest.$ac_objext'
4237 { (case "(($ac_try" in
4238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4239 *) ac_try_echo
=$ac_try;;
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_try") 2>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_cv_c_bigendian
=yes
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.
$ac_ext >&5
4251 ac_cv_c_bigendian
=no
4254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.
$ac_ext >&5
4259 # It does not; compile a test program.
4260 if test "$cross_compiling" = yes; then
4261 # try to guess the endianness by grepping values into an object file
4262 ac_cv_c_bigendian
=unknown
4263 cat >conftest.
$ac_ext <<_ACEOF
4266 cat confdefs.h
>>conftest.
$ac_ext
4267 cat >>conftest.
$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4270 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4271 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4272 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4273 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4274 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4278 _ascii (); _ebcdic ();
4283 rm -f conftest.
$ac_objext
4284 if { (ac_try
="$ac_compile"
4286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_compile") 2>conftest.er1
4292 grep -v '^ *+' conftest.er1 >conftest.err
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } &&
4297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4298 { (case "(($ac_try" in
4299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4300 *) ac_try_echo
=$ac_try;;
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_try") 2>&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; } &&
4307 { ac_try
='test -s conftest.$ac_objext'
4308 { (case "(($ac_try" in
4309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_try") 2>&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4318 ac_cv_c_bigendian=yes
4320 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4321 if test "$ac_cv_c_bigendian" = unknown; then
4322 ac_cv_c_bigendian=no
4324 # finding both strings is unlikely to happen, but who knows?
4325 ac_cv_c_bigendian=unknown
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 cat >conftest.$ac_ext <<_ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 $ac_includes_default
4348 /* Are we little or big endian? From Harbison&Steele. */
4352 char c[sizeof (long int)];
4355 return u.c[sizeof (long int) - 1] == 1;
4361 rm -f conftest$ac_exeext
4362 if { (ac_try="$ac_link"
4364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4365 *) ac_try_echo
=$ac_try;;
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_link") 2>&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4372 { (case "(($ac_try" in
4373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_try") 2>&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
4381 ac_cv_c_bigendian=no
4383 echo "$as_me: program exited with status $ac_status" >&5
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4388 ac_cv_c_bigendian=yes
4390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4399 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4400 case $ac_cv_c_bigendian in
4408 { { echo "$as_me:$LINENO: error: unknown endianness
4409 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4410 echo "$as_me: error: unknown endianness
4411 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4412 { (exit 1); exit 1; }; } ;;
4416 if test "$cross_compiling" = yes; then
4417 LLVM_CROSS_COMPILING=1
4420 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4421 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4422 if test "${ac_cv_build_exeext+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4426 ac_cv_build_exeext=.exe
4428 ac_build_prefix=${build_alias}-
4430 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4431 set dummy ${ac_build_prefix}gcc; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 if test -n "$BUILD_CC"; then
4438 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 BUILD_CC=$ac_cv_prog_BUILD_CC
4458 if test -n "$BUILD_CC"; then
4459 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4460 echo "${ECHO_T}$BUILD_CC" >&6; }
4462 { echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6; }
4467 if test -z "$BUILD_CC"; then
4468 # Extract the first word of "gcc", so it can be a program name with args.
4469 set dummy gcc; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test -n "$BUILD_CC"; then
4476 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4485 ac_cv_prog_BUILD_CC="gcc"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 BUILD_CC=$ac_cv_prog_BUILD_CC
4496 if test -n "$BUILD_CC"; then
4497 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4498 echo "${ECHO_T}$BUILD_CC" >&6; }
4500 { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4505 if test -z "$BUILD_CC"; then
4506 # Extract the first word of "cc", so it can be a program name with args.
4507 set dummy cc; ac_word=$2
4508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 if test -n "$BUILD_CC"; then
4514 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4525 ac_prog_rejected=yes
4528 ac_cv_prog_BUILD_CC="cc"
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 if test $ac_prog_rejected = yes; then
4537 # We found a bogon in the path, so make sure we never use it.
4538 set dummy $ac_cv_prog_BUILD_CC
4540 if test $# != 0; then
4541 # We chose a different compiler from the bogus one.
4542 # However, it has the same basename, so the bogon will be chosen
4543 # first if we set BUILD_CC to just the basename; use the full file name.
4545 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4550 BUILD_CC=$ac_cv_prog_BUILD_CC
4551 if test -n "$BUILD_CC"; then
4552 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4553 echo "${ECHO_T}$BUILD_CC" >&6; }
4555 { echo "$as_me:$LINENO: result: no" >&5
4556 echo "${ECHO_T}no" >&6; }
4562 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4563 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4564 { (exit 1); exit 1; }; }
4565 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4567 echo 'int main () { return 0; }' > conftest.$ac_ext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4570 (eval $ac_build_link) 2>&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; then
4574 for file in conftest.*; do
4576 *.c | *.o | *.obj | *.dSYM) ;;
4577 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4581 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4582 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4583 { (exit 1); exit 1; }; }
4586 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4591 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4592 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4593 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4594 ac_build_exeext=$BUILD_EXEEXT
4596 ac_build_prefix=${build_alias}-
4597 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4598 set dummy ${ac_build_prefix}g++; ac_word=$2
4599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4601 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 if test -n "$BUILD_CXX"; then
4605 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4625 if test -n "$BUILD_CXX"; then
4626 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4627 echo "${ECHO_T}$BUILD_CXX" >&6; }
4629 { echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6; }
4634 if test -z "$BUILD_CXX"; then
4635 # Extract the first word of "g++", so it can be a program name with args.
4636 set dummy g++; ac_word=$2
4637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4639 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 if test -n "$BUILD_CXX"; then
4643 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_prog_BUILD_CXX="g++"
4653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4663 if test -n "$BUILD_CXX"; then
4664 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4665 echo "${ECHO_T}$BUILD_CXX" >&6; }
4667 { echo "$as_me:$LINENO: result: no" >&5
4668 echo "${ECHO_T}no" >&6; }
4672 if test -z "$BUILD_CXX"; then
4673 # Extract the first word of "c++", so it can be a program name with args.
4674 set dummy c++; ac_word=$2
4675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 if test -n "$BUILD_CXX"; then
4681 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4692 ac_prog_rejected=yes
4695 ac_cv_prog_BUILD_CXX="c++"
4696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 if test $ac_prog_rejected = yes; then
4704 # We found a bogon in the path, so make sure we never use it.
4705 set dummy $ac_cv_prog_BUILD_CXX
4707 if test $# != 0; then
4708 # We chose a different compiler from the bogus one.
4709 # However, it has the same basename, so the bogon will be chosen
4710 # first if we set BUILD_CXX to just the basename; use the full file name.
4712 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4717 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4718 if test -n "$BUILD_CXX"; then
4719 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4720 echo "${ECHO_T}$BUILD_CXX" >&6; }
4722 { echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6; }
4730 LLVM_CROSS_COMPILING=0
4734 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4745 # Check whether --enable-optimized was given.
4746 if test "${enable_optimized+set}" = set; then
4747 enableval=$enable_optimized;
4752 if test ${enableval} = "no" ; then
4756 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4760 # Check whether --enable-profiling was given.
4761 if test "${enable_profiling+set}" = set; then
4762 enableval=$enable_profiling;
4767 if test ${enableval} = "no" ; then
4771 ENABLE_PROFILING=ENABLE_PROFILING=1
4775 # Check whether --enable-assertions was given.
4776 if test "${enable_assertions+set}" = set; then
4777 enableval=$enable_assertions;
4782 if test ${enableval} = "yes" ; then
4786 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4790 # Check whether --enable-expensive-checks was given.
4791 if test "${enable_expensive_checks+set}" = set; then
4792 enableval=$enable_expensive_checks;
4797 if test ${enableval} = "yes" ; then
4798 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4800 EXPENSIVE_CHECKS=yes
4803 ENABLE_EXPENSIVE_CHECKS=
4809 # Check whether --enable-debug-runtime was given.
4810 if test "${enable_debug_runtime+set}" = set; then
4811 enableval=$enable_debug_runtime;
4816 if test ${enableval} = "no" ; then
4820 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4824 # Check whether --enable-debug-symbols was given.
4825 if test "${enable_debug_symbols+set}" = set; then
4826 enableval=$enable_debug_symbols;
4831 if test ${enableval} = "no" ; then
4835 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4839 # Check whether --enable-jit was given.
4840 if test "${enable_jit+set}" = set; then
4841 enableval=$enable_jit;
4846 if test ${enableval} = "no"
4851 case "$llvm_cv_target_arch" in
4852 x86) TARGET_HAS_JIT=1
4854 Sparc) TARGET_HAS_JIT=0
4856 PowerPC) TARGET_HAS_JIT=1
4858 x86_64) TARGET_HAS_JIT=1
4860 Alpha) TARGET_HAS_JIT=0
4862 ARM) TARGET_HAS_JIT=1
4864 Mips) TARGET_HAS_JIT=0
4866 XCore) TARGET_HAS_JIT=0
4868 MSP430) TARGET_HAS_JIT=0
4870 SystemZ) TARGET_HAS_JIT=0
4872 Blackfin) TARGET_HAS_JIT=0
4874 MBlaze) TARGET_HAS_JIT=0
4876 PTX) TARGET_HAS_JIT=0
4883 # Check whether --enable-docs was given.
4884 if test "${enable_docs+set}" = set; then
4885 enableval=$enable_docs;
4890 case "$enableval" in
4895 default) ENABLE_DOCS=1
4897 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4898 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4899 { (exit 1); exit 1; }; } ;;
4902 # Check whether --enable-doxygen was given.
4903 if test "${enable_doxygen+set}" = set; then
4904 enableval=$enable_doxygen;
4909 case "$enableval" in
4910 yes) ENABLE_DOXYGEN=1
4912 no) ENABLE_DOXYGEN=0
4914 default) ENABLE_DOXYGEN=0
4916 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4917 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4918 { (exit 1); exit 1; }; } ;;
4921 # Check whether --enable-threads was given.
4922 if test "${enable_threads+set}" = set; then
4923 enableval=$enable_threads;
4928 case "$enableval" in
4929 yes) ENABLE_THREADS=1
4931 no) ENABLE_THREADS=0
4933 default) ENABLE_THREADS=1
4935 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4936 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4937 { (exit 1); exit 1; }; } ;;
4940 cat >>confdefs.h <<_ACEOF
4941 #define ENABLE_THREADS $ENABLE_THREADS
4945 # Check whether --enable-pthreads was given.
4946 if test "${enable_pthreads+set}" = set; then
4947 enableval=$enable_pthreads;
4952 case "$enableval" in
4953 yes) ENABLE_PTHREADS=1
4955 no) ENABLE_PTHREADS=0
4957 default) ENABLE_PTHREADS=1
4959 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4960 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4961 { (exit 1); exit 1; }; } ;;
4964 # Check whether --enable-pic was given.
4965 if test "${enable_pic+set}" = set; then
4966 enableval=$enable_pic;
4971 case "$enableval" in
4976 default) ENABLE_PIC=1
4978 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4979 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4980 { (exit 1); exit 1; }; } ;;
4983 cat >>confdefs.h <<_ACEOF
4984 #define ENABLE_PIC $ENABLE_PIC
4988 # Check whether --enable-shared was given.
4989 if test "${enable_shared+set}" = set; then
4990 enableval=$enable_shared;
4995 case "$enableval" in
4996 yes) ENABLE_SHARED=1
5000 default) ENABLE_SHARED=0
5002 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5003 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5004 { (exit 1); exit 1; }; } ;;
5007 # Check whether --enable-embed-stdcxx was given.
5008 if test "${enable_embed_stdcxx+set}" = set; then
5009 enableval=$enable_embed_stdcxx;
5014 case "$enableval" in
5015 yes) ENABLE_EMBED_STDCXX=1
5017 no) ENABLE_EMBED_STDCXX=0
5019 default) ENABLE_EMBED_STDCXX=1
5021 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5022 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5023 { (exit 1); exit 1; }; } ;;
5026 # Check whether --enable-timestamps was given.
5027 if test "${enable_timestamps+set}" = set; then
5028 enableval=$enable_timestamps;
5033 case "$enableval" in
5034 yes) ENABLE_TIMESTAMPS=1
5036 no) ENABLE_TIMESTAMPS=0
5038 default) ENABLE_TIMESTAMPS=1
5040 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5041 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5042 { (exit 1); exit 1; }; } ;;
5045 cat >>confdefs.h <<_ACEOF
5046 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5051 # Check whether --enable-targets was given.
5052 if test "${enable_targets+set}" = set; then
5053 enableval=$enable_targets;
5058 if test "$enableval" = host-only ; then
5061 case "$enableval" in
5062 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5063 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5065 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5066 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5067 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5068 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5069 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5070 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5071 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5072 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5073 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5074 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5075 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5076 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5077 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5078 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5079 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5080 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5081 host) case "$llvm_cv_target_arch" in
5082 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5083 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5084 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5085 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5086 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5087 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5088 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5089 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5090 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5091 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5092 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5093 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5094 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5095 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5096 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5097 echo "$as_me: error: Can not set target to build" >&2;}
5098 { (exit 1); exit 1; }; } ;;
5100 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5101 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5102 { (exit 1); exit 1; }; } ;;
5107 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5110 # Determine whether we are building LLVM support for the native architecture.
5111 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5112 for a_target in $TARGETS_TO_BUILD; do
5113 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5115 cat >>confdefs.h <<_ACEOF
5116 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5119 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5120 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5121 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5122 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5123 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5126 cat >>confdefs.h <<_ACEOF
5127 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5131 cat >>confdefs.h <<_ACEOF
5132 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5136 cat >>confdefs.h <<_ACEOF
5137 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5140 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5142 cat >>confdefs.h <<_ACEOF
5143 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5150 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5151 # target feature def files.
5152 LLVM_ENUM_TARGETS=""
5153 LLVM_ENUM_ASM_PRINTERS=""
5154 LLVM_ENUM_ASM_PARSERS=""
5155 LLVM_ENUM_DISASSEMBLERS=""
5156 for target_to_build in $TARGETS_TO_BUILD; do
5157 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5158 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5159 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5161 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5162 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5164 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5165 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5173 # Check whether --enable-cbe-printf-a was given.
5174 if test "${enable_cbe_printf_a+set}" = set; then
5175 enableval=$enable_cbe_printf_a;
5180 case "$enableval" in
5181 yes) ENABLE_CBE_PRINTF_A=1
5183 no) ENABLE_CBE_PRINTF_A=0
5185 default) ENABLE_CBE_PRINTF_A=1
5187 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5188 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5189 { (exit 1); exit 1; }; } ;;
5192 cat >>confdefs.h <<_ACEOF
5193 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5198 # Check whether --with-llvmgccdir was given.
5199 if test "${with_llvmgccdir+set}" = set; then
5200 withval=$with_llvmgccdir;
5206 default) WITH_LLVMGCCDIR=default ;;
5207 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5208 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5209 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5210 { (exit 1); exit 1; }; } ;;
5214 # Check whether --with-llvmgcc was given.
5215 if test "${with_llvmgcc+set}" = set; then
5216 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5222 # Check whether --with-llvmgxx was given.
5223 if test "${with_llvmgxx+set}" = set; then
5224 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5229 if test -n "$LLVMGCC"; then
5230 LLVMGCCCOMMAND="$LLVMGCC"
5233 if test -n "$LLVMGXX"; then
5234 LLVMGXXCOMMAND="$LLVMGXX"
5237 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5238 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5239 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5240 { (exit 1); exit 1; }; };
5243 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5244 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5245 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5246 { (exit 1); exit 1; }; };
5250 # Check whether --with-clang was given.
5251 if test "${with_clang+set}" = set; then
5252 withval=$with_clang;
5259 # Check whether --with-built-clang was given.
5260 if test "${with_built_clang+set}" = set; then
5261 withval=$with_built_clang;
5263 with_built_clang=check
5267 { echo "$as_me:$LINENO: checking clang compiler" >&5
5268 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5271 if test "$with_clang" != "default"; then
5272 WITH_CLANGPATH="$with_clang"
5273 if ! test -x "$WITH_CLANGPATH"; then
5274 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5275 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5276 { (exit 1); exit 1; }; }
5278 elif test "$with_built_clang" = "yes"; then
5280 elif test "$with_built_clang" = "no"; then
5283 if test "$with_built_clang" != "check"; then
5284 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5285 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5286 { (exit 1); exit 1; }; }
5289 if test -f ${srcdir}/tools/clang/README.txt; then
5294 if ! test -z "$WITH_CLANGPATH"; then
5295 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5296 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5297 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang
++`
5298 elif test "$WITH_BUILT_CLANG" = "1"; then
5299 { echo "$as_me:$LINENO: result: built" >&5
5300 echo "${ECHO_T}built" >&6; }
5302 { echo "$as_me:$LINENO: result: none" >&5
5303 echo "${ECHO_T}none" >&6; }
5305 CLANGPATH=$WITH_CLANGPATH
5307 CLANGXXPATH=$WITH_CLANGXXPATH
5309 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5313 # Check whether --with-optimize-option was given.
5314 if test "${with_optimize_option+set}" = set; then
5315 withval=$with_optimize_option;
5320 { echo "$as_me:$LINENO: checking optimization flags" >&5
5321 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5324 case "$llvm_cv_os_type" in
5325 FreeBSD) optimize_option=-O2 ;;
5326 MingW) optimize_option=-O2 ;;
5327 *) optimize_option=-O3 ;;
5329 *) optimize_option="$withval" ;;
5331 OPTIMIZE_OPTION=$optimize_option
5333 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5334 echo "${ECHO_T}$optimize_option" >&6; }
5337 # Check whether --with-extra-options was given.
5338 if test "${with_extra_options+set}" = set; then
5339 withval=$with_extra_options;
5345 default) EXTRA_OPTIONS= ;;
5346 *) EXTRA_OPTIONS=$withval ;;
5348 EXTRA_OPTIONS=$EXTRA_OPTIONS
5352 # Check whether --with-extra-ld-options was given.
5353 if test "${with_extra_ld_options+set}" = set; then
5354 withval=$with_extra_ld_options;
5360 default) EXTRA_LD_OPTIONS= ;;
5361 *) EXTRA_LD_OPTIONS=$withval ;;
5363 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5366 # Check whether --enable-bindings was given.
5367 if test "${enable_bindings+set}" = set; then
5368 enableval=$enable_bindings;
5373 BINDINGS_TO_BUILD=""
5374 case "$enableval" in
5375 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5376 all ) BINDINGS_TO_BUILD="ocaml" ;;
5377 none | no) BINDINGS_TO_BUILD="" ;;
5378 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5379 case "$a_binding" in
5380 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5381 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5382 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5383 { (exit 1); exit 1; }; } ;;
5390 # Check whether --with-ocaml-libdir was given.
5391 if test "${with_ocaml_libdir+set}" = set; then
5392 withval=$with_ocaml_libdir;
5398 auto) with_ocaml_libdir="$withval" ;;
5399 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5400 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5401 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5402 { (exit 1); exit 1; }; } ;;
5406 # Check whether --with-clang-resource-dir was given.
5407 if test "${with_clang_resource_dir+set}" = set; then
5408 withval=$with_clang_resource_dir;
5414 cat >>confdefs.h <<_ACEOF
5415 #define CLANG_RESOURCE_DIR "$withval"
5420 # Check whether --with-c-include-dirs was given.
5421 if test "${with_c_include_dirs+set}" = set; then
5422 withval=$with_c_include_dirs;
5428 cat >>confdefs.h <<_ACEOF
5429 #define C_INCLUDE_DIRS "$withval"
5434 # Check whether --with-cxx-include-root was given.
5435 if test "${with_cxx_include_root+set}" = set; then
5436 withval=$with_cxx_include_root;
5442 cat >>confdefs.h <<_ACEOF
5443 #define CXX_INCLUDE_ROOT "$withval"
5448 # Check whether --with-cxx-include-arch was given.
5449 if test "${with_cxx_include_arch+set}" = set; then
5450 withval=$with_cxx_include_arch;
5456 cat >>confdefs.h <<_ACEOF
5457 #define CXX_INCLUDE_ARCH "$withval"
5462 # Check whether --with-cxx-include-32bit-dir was given.
5463 if test "${with_cxx_include_32bit_dir+set}" = set; then
5464 withval=$with_cxx_include_32bit_dir;
5470 cat >>confdefs.h <<_ACEOF
5471 #define CXX_INCLUDE_32BIT_DIR "$withval"
5476 # Check whether --with-cxx-include-64bit-dir was given.
5477 if test "${with_cxx_include_64bit_dir+set}" = set; then
5478 withval=$with_cxx_include_64bit_dir;
5484 cat >>confdefs.h <<_ACEOF
5485 #define CXX_INCLUDE_64BIT_DIR "$withval"
5490 # Check whether --with-binutils-include was given.
5491 if test "${with_binutils_include+set}" = set; then
5492 withval=$with_binutils_include;
5498 default) WITH_BINUTILS_INCDIR=default ;;
5499 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5500 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5501 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5502 { (exit 1); exit 1; }; } ;;
5504 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5505 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5507 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5508 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5509 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5510 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5511 { (exit 1); exit 1; }; };
5515 # Check whether --enable-libffi was given.
5516 if test "${enable_libffi+set}" = set; then
5517 enableval=$enable_libffi; case "$enableval" in
5518 yes) llvm_cv_enable_libffi="yes" ;;
5519 no) llvm_cv_enable_libffi="no" ;;
5520 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5521 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5522 { (exit 1); exit 1; }; } ;;
5525 llvm_cv_enable_libffi=no
5531 ac_cpp='$CPP $CPPFLAGS'
5532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5535 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5536 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5537 # On Suns, sometimes $CPP names a directory.
5538 if test -n "$CPP" && test -d "$CPP"; then
5541 if test -z "$CPP"; then
5542 if test "${ac_cv_prog_CPP+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 # Double quotes because CPP needs to be expanded
5546 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5549 for ac_c_preproc_warn_flag in '' yes
5551 # Use a header file that comes with gcc, so configuring glibc
5552 # with a fresh cross-compiler works.
5553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5554 # <limits.h> exists even on freestanding compilers.
5555 # On the NeXT, cc -E runs the code through the compiler's parser,
5556 # not just through cpp. "Syntax error" is here to catch this case.
5557 cat >conftest.$ac_ext <<_ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5564 # include <limits.h>
5566 # include <assert.h>
5570 if { (ac_try="$ac_cpp conftest.$ac_ext"
5572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5573 *) ac_try_echo
=$ac_try;;
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5578 grep -v '^ *+' conftest.er1
>conftest.err
5580 cat conftest.err
>&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } >/dev
/null
; then
5583 if test -s conftest.err
; then
5584 ac_cpp_err
=$ac_c_preproc_warn_flag
5585 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5592 if test -z "$ac_cpp_err"; then
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.
$ac_ext >&5
5598 # Broken: fails on valid input.
5602 rm -f conftest.err conftest.
$ac_ext
5604 # OK, works on sane cases. Now check whether nonexistent headers
5605 # can be detected and how.
5606 cat >conftest.
$ac_ext <<_ACEOF
5609 cat confdefs.h
>>conftest.
$ac_ext
5610 cat >>conftest.
$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5612 #include <ac_nonexistent.h>
5614 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5622 grep -v '^ *+' conftest.er1 >conftest.err
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } >/dev/null; then
5627 if test -s conftest.err; then
5628 ac_cpp_err=$ac_c_preproc_warn_flag
5629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5636 if test -z "$ac_cpp_err"; then
5637 # Broken: success on invalid input.
5640 echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5643 # Passes both tests.
5648 rm -f conftest.err conftest.$ac_ext
5651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5652 rm -f conftest.err conftest.
$ac_ext
5653 if $ac_preproc_ok; then
5665 { echo "$as_me:$LINENO: result: $CPP" >&5
5666 echo "${ECHO_T}$CPP" >&6; }
5668 for ac_c_preproc_warn_flag
in '' yes
5670 # Use a header file that comes with gcc, so configuring glibc
5671 # with a fresh cross-compiler works.
5672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5673 # <limits.h> exists even on freestanding compilers.
5674 # On the NeXT, cc -E runs the code through the compiler's parser,
5675 # not just through cpp. "Syntax error" is here to catch this case.
5676 cat >conftest.
$ac_ext <<_ACEOF
5679 cat confdefs.h
>>conftest.
$ac_ext
5680 cat >>conftest.
$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5683 # include <limits.h>
5685 # include <assert.h>
5689 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5697 grep -v '^ *+' conftest.er1 >conftest.err
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } >/dev/null; then
5702 if test -s conftest.err; then
5703 ac_cpp_err=$ac_c_preproc_warn_flag
5704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5711 if test -z "$ac_cpp_err"; then
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5717 # Broken: fails on valid input.
5721 rm -f conftest.err conftest.$ac_ext
5723 # OK, works on sane cases. Now check whether nonexistent headers
5724 # can be detected and how.
5725 cat >conftest.$ac_ext <<_ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 #include <ac_nonexistent.h>
5733 if { (ac_try="$ac_cpp conftest.$ac_ext"
5735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5736 *) ac_try_echo
=$ac_try;;
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5741 grep -v '^ *+' conftest.er1
>conftest.err
5743 cat conftest.err
>&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } >/dev
/null
; then
5746 if test -s conftest.err
; then
5747 ac_cpp_err
=$ac_c_preproc_warn_flag
5748 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5755 if test -z "$ac_cpp_err"; then
5756 # Broken: success on invalid input.
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.
$ac_ext >&5
5762 # Passes both tests.
5767 rm -f conftest.err conftest.
$ac_ext
5770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5771 rm -f conftest.err conftest.
$ac_ext
5772 if $ac_preproc_ok; then
5775 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5776 See \`config.log' for more details." >&5
5777 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5778 See \`config.log' for more details." >&2;}
5779 { (exit 1); exit 1; }; }
5783 ac_cpp
='$CPP $CPPFLAGS'
5784 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5785 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5786 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5789 ac_cpp
='$CPP $CPPFLAGS'
5790 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5793 if test -n "$ac_tool_prefix"; then
5796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5797 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5800 if test "${ac_cv_prog_CC+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 if test -n "$CC"; then
5804 ac_cv_prog_CC
="$CC" # Let the user override the test.
5806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5810 test -z "$as_dir" && as_dir
=.
5811 for ac_exec_ext
in '' $ac_executable_extensions; do
5812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5813 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 if test -n "$CC"; then
5825 { echo "$as_me:$LINENO: result: $CC" >&5
5826 echo "${ECHO_T}$CC" >&6; }
5828 { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5833 test -n "$CC" && break
5836 if test -z "$CC"; then
5840 # Extract the first word of "$ac_prog", so it can be a program name with args.
5841 set dummy
$ac_prog; ac_word
=$2
5842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5844 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 if test -n "$ac_ct_CC"; then
5848 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5854 test -z "$as_dir" && as_dir
=.
5855 for ac_exec_ext
in '' $ac_executable_extensions; do
5856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5857 ac_cv_prog_ac_ct_CC
="$ac_prog"
5858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5868 if test -n "$ac_ct_CC"; then
5869 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5870 echo "${ECHO_T}$ac_ct_CC" >&6; }
5872 { echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6; }
5877 test -n "$ac_ct_CC" && break
5880 if test "x$ac_ct_CC" = x
; then
5883 case $cross_compiling:$ac_tool_warned in
5885 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5886 whose name does not start with the host triplet. If you think this
5887 configuration is useful to you, please write to autoconf@gnu.org." >&5
5888 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5889 whose name does not start with the host triplet. If you think this
5890 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5891 ac_tool_warned
=yes ;;
5898 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5899 See \`config.log' for more details." >&5
5900 echo "$as_me: error: no acceptable C compiler found in \$PATH
5901 See \`config.log' for more details." >&2;}
5902 { (exit 1); exit 1; }; }
5904 # Provide some information about the compiler.
5905 echo "$as_me:$LINENO: checking for C compiler version" >&5
5906 ac_compiler
=`set X $ac_compile; echo $2`
5907 { (ac_try
="$ac_compiler --version >&5"
5909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_compiler --version >&5") 2>&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }
5917 { (ac_try="$ac_compiler -v >&5"
5919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5920 *) ac_try_echo
=$ac_try;;
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_compiler -v >&5") 2>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }
5927 { (ac_try
="$ac_compiler -V >&5"
5929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_compiler -V >&5") 2>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }
5938 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5939 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5940 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 cat >conftest.$ac_ext <<_ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5961 rm -f conftest.$ac_objext
5962 if { (ac_try="$ac_compile"
5964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5965 *) ac_try_echo
=$ac_try;;
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_compile") 2>conftest.er1
5970 grep -v '^ *+' conftest.er1
>conftest.err
5972 cat conftest.err
>&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } &&
5975 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5976 { (case "(($ac_try" in
5977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_try") 2>&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; } &&
5985 { ac_try='test -s conftest.$ac_objext'
5986 { (case "(($ac_try" in
5987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5988 *) ac_try_echo
=$ac_try;;
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_try") 2>&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.
$ac_ext >&5
6003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6004 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
6007 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6008 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6009 GCC
=`test $ac_compiler_gnu = yes && echo yes`
6010 ac_test_CFLAGS
=${CFLAGS+set}
6011 ac_save_CFLAGS
=$CFLAGS
6012 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6013 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6014 if test "${ac_cv_prog_cc_g+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 ac_save_c_werror_flag
=$ac_c_werror_flag
6018 ac_c_werror_flag
=yes
6021 cat >conftest.
$ac_ext <<_ACEOF
6024 cat confdefs.h
>>conftest.
$ac_ext
6025 cat >>conftest.
$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6036 rm -f conftest.
$ac_objext
6037 if { (ac_try
="$ac_compile"
6039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6040 *) ac_try_echo=$ac_try;;
6042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6043 (eval "$ac_compile") 2>conftest.er1
6045 grep -v '^ *+' conftest.er1 >conftest.err
6047 cat conftest.err >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } &&
6050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6051 { (case "(($ac_try" in
6052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6053 *) ac_try_echo
=$ac_try;;
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_try") 2>&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; } &&
6060 { ac_try
='test -s conftest.$ac_objext'
6061 { (case "(($ac_try" in
6062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6063 *) ac_try_echo=$ac_try;;
6065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066 (eval "$ac_try") 2>&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.$ac_ext >&5
6076 cat >conftest.$ac_ext <<_ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6091 rm -f conftest.$ac_objext
6092 if { (ac_try="$ac_compile"
6094 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6095 *) ac_try_echo
=$ac_try;;
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_compile") 2>conftest.er1
6100 grep -v '^ *+' conftest.er1
>conftest.err
6102 cat conftest.err
>&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6106 { (case "(($ac_try" in
6107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_try") 2>&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; } &&
6115 { ac_try='test -s conftest.$ac_objext'
6116 { (case "(($ac_try" in
6117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6118 *) ac_try_echo
=$ac_try;;
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_try") 2>&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; }; then
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.
$ac_ext >&5
6130 ac_c_werror_flag
=$ac_save_c_werror_flag
6132 cat >conftest.
$ac_ext <<_ACEOF
6135 cat confdefs.h
>>conftest.
$ac_ext
6136 cat >>conftest.
$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6147 rm -f conftest.
$ac_objext
6148 if { (ac_try
="$ac_compile"
6150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6154 (eval "$ac_compile") 2>conftest.er1
6156 grep -v '^ *+' conftest.er1 >conftest.err
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } &&
6161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6162 { (case "(($ac_try" in
6163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6164 *) ac_try_echo
=$ac_try;;
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_try") 2>&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } &&
6171 { ac_try
='test -s conftest.$ac_objext'
6172 { (case "(($ac_try" in
6173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_try") 2>&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 ac_c_werror_flag=$ac_save_c_werror_flag
6198 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6199 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6200 if test "$ac_test_CFLAGS" = set; then
6201 CFLAGS=$ac_save_CFLAGS
6202 elif test $ac_cv_prog_cc_g = yes; then
6203 if test "$GCC" = yes; then
6209 if test "$GCC" = yes; then
6215 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6216 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6217 if test "${ac_cv_prog_cc_c89+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 ac_cv_prog_cc_c89=no
6222 cat >conftest.$ac_ext <<_ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6230 #include <sys/types.h>
6231 #include <sys/stat.h>
6232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6233 struct buf { int x; };
6234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6235 static char *e (p, i)
6241 static char *f (char * (*g) (char **, int), char **p, ...)
6246 s = g (p, va_arg (v,int));
6251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6252 function prototypes and stuff, but not '\xHH' hex character constants.
6253 These don't provoke an error unfortunately, instead are silently treated
6254 as 'x'. The following induces an error, until -std is added to get
6255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6256 array size at least. It's necessary to write '\x00'==0 to get something
6257 that's true only with -std. */
6258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6261 inside strings and character constants. */
6263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6265 int test (int i, double x);
6266 struct s1 {int (*f) (int a);};
6267 struct s2 {int (*f) (double a);};
6268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6274 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6282 CC="$ac_save_CC $ac_arg"
6283 rm -f conftest.$ac_objext
6284 if { (ac_try="$ac_compile"
6286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6287 *) ac_try_echo
=$ac_try;;
6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_compile") 2>conftest.er1
6292 grep -v '^ *+' conftest.er1
>conftest.err
6294 cat conftest.err
>&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6298 { (case "(($ac_try" in
6299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_try") 2>&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; } &&
6307 { ac_try='test -s conftest.$ac_objext'
6308 { (case "(($ac_try" in
6309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6310 *) ac_try_echo
=$ac_try;;
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_try") 2>&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6317 ac_cv_prog_cc_c89
=$ac_arg
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.
$ac_ext >&5
6325 rm -f core conftest.err conftest.
$ac_objext
6326 test "x$ac_cv_prog_cc_c89" != "xno" && break
6328 rm -f conftest.
$ac_ext
6333 case "x$ac_cv_prog_cc_c89" in
6335 { echo "$as_me:$LINENO: result: none needed" >&5
6336 echo "${ECHO_T}none needed" >&6; } ;;
6338 { echo "$as_me:$LINENO: result: unsupported" >&5
6339 echo "${ECHO_T}unsupported" >&6; } ;;
6341 CC
="$CC $ac_cv_prog_cc_c89"
6342 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6343 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6348 ac_cpp
='$CPP $CPPFLAGS'
6349 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6350 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6351 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6354 ac_cpp
='$CXXCPP $CPPFLAGS'
6355 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6358 if test -z "$CXX"; then
6359 if test -n "$CCC"; then
6362 if test -n "$ac_tool_prefix"; then
6365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6366 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6369 if test "${ac_cv_prog_CXX+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 if test -n "$CXX"; then
6373 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6379 test -z "$as_dir" && as_dir
=.
6380 for ac_exec_ext
in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6382 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 if test -n "$CXX"; then
6394 { echo "$as_me:$LINENO: result: $CXX" >&5
6395 echo "${ECHO_T}$CXX" >&6; }
6397 { echo "$as_me:$LINENO: result: no" >&5
6398 echo "${ECHO_T}no" >&6; }
6402 test -n "$CXX" && break
6405 if test -z "$CXX"; then
6409 # Extract the first word of "$ac_prog", so it can be a program name with args.
6410 set dummy
$ac_prog; ac_word
=$2
6411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6413 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 if test -n "$ac_ct_CXX"; then
6417 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6423 test -z "$as_dir" && as_dir
=.
6424 for ac_exec_ext
in '' $ac_executable_extensions; do
6425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6426 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6437 if test -n "$ac_ct_CXX"; then
6438 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6439 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6441 { echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6; }
6446 test -n "$ac_ct_CXX" && break
6449 if test "x$ac_ct_CXX" = x
; then
6452 case $cross_compiling:$ac_tool_warned in
6454 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6455 whose name does not start with the host triplet. If you think this
6456 configuration is useful to you, please write to autoconf@gnu.org." >&5
6457 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6458 whose name does not start with the host triplet. If you think this
6459 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6460 ac_tool_warned
=yes ;;
6468 # Provide some information about the compiler.
6469 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6470 ac_compiler
=`set X $ac_compile; echo $2`
6471 { (ac_try
="$ac_compiler --version >&5"
6473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6477 (eval "$ac_compiler --version >&5") 2>&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }
6481 { (ac_try="$ac_compiler -v >&5"
6483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6484 *) ac_try_echo
=$ac_try;;
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_compiler -v >&5") 2>&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }
6491 { (ac_try
="$ac_compiler -V >&5"
6493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497 (eval "$ac_compiler -V >&5") 2>&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }
6502 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6503 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6504 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 cat >conftest.$ac_ext <<_ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6525 rm -f conftest.$ac_objext
6526 if { (ac_try="$ac_compile"
6528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6529 *) ac_try_echo
=$ac_try;;
6531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6532 (eval "$ac_compile") 2>conftest.er1
6534 grep -v '^ *+' conftest.er1
>conftest.err
6536 cat conftest.err
>&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } &&
6539 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6540 { (case "(($ac_try" in
6541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545 (eval "$ac_try") 2>&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; } &&
6549 { ac_try='test -s conftest.$ac_objext'
6550 { (case "(($ac_try" in
6551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6552 *) ac_try_echo
=$ac_try;;
6554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6555 (eval "$ac_try") 2>&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.
$ac_ext >&5
6567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6568 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6571 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6572 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6573 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6574 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6575 ac_save_CXXFLAGS
=$CXXFLAGS
6576 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6577 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6578 if test "${ac_cv_prog_cxx_g+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6582 ac_cxx_werror_flag
=yes
6585 cat >conftest.
$ac_ext <<_ACEOF
6588 cat confdefs.h
>>conftest.
$ac_ext
6589 cat >>conftest.
$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6600 rm -f conftest.
$ac_objext
6601 if { (ac_try
="$ac_compile"
6603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6604 *) ac_try_echo=$ac_try;;
6606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607 (eval "$ac_compile") 2>conftest.er1
6609 grep -v '^ *+' conftest.er1 >conftest.err
6611 cat conftest.err >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6615 { (case "(($ac_try" in
6616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6617 *) ac_try_echo
=$ac_try;;
6619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6620 (eval "$ac_try") 2>&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; } &&
6624 { ac_try
='test -s conftest.$ac_objext'
6625 { (case "(($ac_try" in
6626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6627 *) ac_try_echo=$ac_try;;
6629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6630 (eval "$ac_try") 2>&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 ac_cv_prog_cxx_g=yes
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6640 cat >conftest.$ac_ext <<_ACEOF
6643 cat confdefs.h >>conftest.$ac_ext
6644 cat >>conftest.$ac_ext <<_ACEOF
6645 /* end confdefs.h. */
6655 rm -f conftest.$ac_objext
6656 if { (ac_try="$ac_compile"
6658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6659 *) ac_try_echo
=$ac_try;;
6661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6662 (eval "$ac_compile") 2>conftest.er1
6664 grep -v '^ *+' conftest.er1
>conftest.err
6666 cat conftest.err
>&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } &&
6669 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6670 { (case "(($ac_try" in
6671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6675 (eval "$ac_try") 2>&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; } &&
6679 { ac_try='test -s conftest.$ac_objext'
6680 { (case "(($ac_try" in
6681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6682 *) ac_try_echo
=$ac_try;;
6684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685 (eval "$ac_try") 2>&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.
$ac_ext >&5
6694 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6696 cat >conftest.
$ac_ext <<_ACEOF
6699 cat confdefs.h
>>conftest.
$ac_ext
6700 cat >>conftest.
$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6711 rm -f conftest.
$ac_objext
6712 if { (ac_try
="$ac_compile"
6714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6715 *) ac_try_echo=$ac_try;;
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_compile") 2>conftest.er1
6720 grep -v '^ *+' conftest.er1 >conftest.err
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } &&
6725 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6726 { (case "(($ac_try" in
6727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6728 *) ac_try_echo
=$ac_try;;
6730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6731 (eval "$ac_try") 2>&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; } &&
6735 { ac_try
='test -s conftest.$ac_objext'
6736 { (case "(($ac_try" in
6737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6738 *) ac_try_echo=$ac_try;;
6740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6741 (eval "$ac_try") 2>&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 ac_cv_prog_cxx_g=yes
6747 echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6762 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6763 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6764 if test "$ac_test_CXXFLAGS" = set; then
6765 CXXFLAGS=$ac_save_CXXFLAGS
6766 elif test $ac_cv_prog_cxx_g = yes; then
6767 if test "$GXX" = yes; then
6773 if test "$GXX" = yes; then
6780 ac_cpp='$CPP $CPPFLAGS'
6781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6786 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6787 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6788 if test "${lt_cv_path_NM+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 if test -n "$NM"; then
6792 # Let the user override the test.
6795 lt_nm_to_check="${ac_tool_prefix}nm"
6796 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6797 lt_nm_to_check="$lt_nm_to_check nm"
6799 for lt_tmp_nm in $lt_nm_to_check; do
6800 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6801 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6803 test -z "$ac_dir" && ac_dir=.
6804 tmp_nm="$ac_dir/$lt_tmp_nm"
6805 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6806 # Check to see if the nm accepts a BSD-compat flag.
6807 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6808 # nm: unknown option "B" ignored
6809 # Tru64's nm complains that
/dev
/null is an invalid object
file
6810 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6811 */dev
/null
* |
*'Invalid file or object type'*)
6812 lt_cv_path_NM
="$tmp_nm -B"
6816 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6818 lt_cv_path_NM
="$tmp_nm -p"
6822 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6823 continue # so that we can try to find one that supports BSD flags
6832 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6835 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6836 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6841 { echo "$as_me:$LINENO: checking for GNU make" >&5
6842 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6843 if test "${llvm_cv_gnu_make_command+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 llvm_cv_gnu_make_command
=''
6847 for a
in "$MAKE" make gmake gnumake
; do
6848 if test -z "$a" ; then continue ; fi ;
6849 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6851 llvm_cv_gnu_make_command
=$a ;
6856 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6857 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6858 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6862 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6863 echo "${ECHO_T}\"Not found\"" >&6; };
6867 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6868 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6870 if test "$LN_S" = "ln -s"; then
6871 { echo "$as_me:$LINENO: result: yes" >&5
6872 echo "${ECHO_T}yes" >&6; }
6874 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6875 echo "${ECHO_T}no, using $LN_S" >&6; }
6878 # Extract the first word of "cmp", so it can be a program name with args.
6879 set dummy
cmp; ac_word
=$2
6880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6882 if test "${ac_cv_path_CMP+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6894 test -z "$as_dir" && as_dir
=.
6895 for ac_exec_ext
in '' $ac_executable_extensions; do
6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6897 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6910 if test -n "$CMP"; then
6911 { echo "$as_me:$LINENO: result: $CMP" >&5
6912 echo "${ECHO_T}$CMP" >&6; }
6914 { echo "$as_me:$LINENO: result: no" >&5
6915 echo "${ECHO_T}no" >&6; }
6919 # Extract the first word of "cp", so it can be a program name with args.
6920 set dummy
cp; ac_word
=$2
6921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923 if test "${ac_cv_path_CP+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6935 test -z "$as_dir" && as_dir
=.
6936 for ac_exec_ext
in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6951 if test -n "$CP"; then
6952 { echo "$as_me:$LINENO: result: $CP" >&5
6953 echo "${ECHO_T}$CP" >&6; }
6955 { echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6; }
6960 # Extract the first word of "date", so it can be a program name with args.
6961 set dummy
date; ac_word
=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_path_DATE+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6976 test -z "$as_dir" && as_dir
=.
6977 for ac_exec_ext
in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6991 DATE
=$ac_cv_path_DATE
6992 if test -n "$DATE"; then
6993 { echo "$as_me:$LINENO: result: $DATE" >&5
6994 echo "${ECHO_T}$DATE" >&6; }
6996 { echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6; }
7001 # Extract the first word of "find", so it can be a program name with args.
7002 set dummy
find; ac_word
=$2
7003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005 if test "${ac_cv_path_FIND+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
7013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7017 test -z "$as_dir" && as_dir
=.
7018 for ac_exec_ext
in '' $ac_executable_extensions; do
7019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7020 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
7021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
7032 FIND
=$ac_cv_path_FIND
7033 if test -n "$FIND"; then
7034 { echo "$as_me:$LINENO: result: $FIND" >&5
7035 echo "${ECHO_T}$FIND" >&6; }
7037 { echo "$as_me:$LINENO: result: no" >&5
7038 echo "${ECHO_T}no" >&6; }
7042 # Extract the first word of "grep", so it can be a program name with args.
7043 set dummy
grep; ac_word
=$2
7044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7046 if test "${ac_cv_path_GREP+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
7054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7058 test -z "$as_dir" && as_dir
=.
7059 for ac_exec_ext
in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
7062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
7073 GREP
=$ac_cv_path_GREP
7074 if test -n "$GREP"; then
7075 { echo "$as_me:$LINENO: result: $GREP" >&5
7076 echo "${ECHO_T}$GREP" >&6; }
7078 { echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6; }
7083 # Extract the first word of "mkdir", so it can be a program name with args.
7084 set dummy mkdir
; ac_word
=$2
7085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087 if test "${ac_cv_path_MKDIR+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
7095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7099 test -z "$as_dir" && as_dir
=.
7100 for ac_exec_ext
in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
7114 MKDIR
=$ac_cv_path_MKDIR
7115 if test -n "$MKDIR"; then
7116 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7117 echo "${ECHO_T}$MKDIR" >&6; }
7119 { echo "$as_me:$LINENO: result: no" >&5
7120 echo "${ECHO_T}no" >&6; }
7124 # Extract the first word of "mv", so it can be a program name with args.
7125 set dummy
mv; ac_word
=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_path_MV+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
7136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7140 test -z "$as_dir" && as_dir
=.
7141 for ac_exec_ext
in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
7144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
7156 if test -n "$MV"; then
7157 { echo "$as_me:$LINENO: result: $MV" >&5
7158 echo "${ECHO_T}$MV" >&6; }
7160 { echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6; }
7165 if test -n "$ac_tool_prefix"; then
7166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7167 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170 if test "${ac_cv_prog_RANLIB+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 if test -n "$RANLIB"; then
7174 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir
=.
7181 for ac_exec_ext
in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 RANLIB
=$ac_cv_prog_RANLIB
7194 if test -n "$RANLIB"; then
7195 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7196 echo "${ECHO_T}$RANLIB" >&6; }
7198 { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7204 if test -z "$ac_cv_prog_RANLIB"; then
7205 ac_ct_RANLIB
=$RANLIB
7206 # Extract the first word of "ranlib", so it can be a program name with args.
7207 set dummy ranlib
; ac_word
=$2
7208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 if test -n "$ac_ct_RANLIB"; then
7214 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7220 test -z "$as_dir" && as_dir
=.
7221 for ac_exec_ext
in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7234 if test -n "$ac_ct_RANLIB"; then
7235 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7236 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7238 { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7242 if test "x$ac_ct_RANLIB" = x
; then
7245 case $cross_compiling:$ac_tool_warned in
7247 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7248 whose name does not start with the host triplet. If you think this
7249 configuration is useful to you, please write to autoconf@gnu.org." >&5
7250 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7251 whose name does not start with the host triplet. If you think this
7252 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7253 ac_tool_warned
=yes ;;
7255 RANLIB
=$ac_ct_RANLIB
7258 RANLIB
="$ac_cv_prog_RANLIB"
7261 if test -n "$ac_tool_prefix"; then
7262 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7263 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266 if test "${ac_cv_prog_AR+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 if test -n "$AR"; then
7270 ac_cv_prog_AR
="$AR" # Let the user override the test.
7272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir
=.
7277 for ac_exec_ext
in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 if test -n "$AR"; then
7291 { echo "$as_me:$LINENO: result: $AR" >&5
7292 echo "${ECHO_T}$AR" >&6; }
7294 { echo "$as_me:$LINENO: result: no" >&5
7295 echo "${ECHO_T}no" >&6; }
7300 if test -z "$ac_cv_prog_AR"; then
7302 # Extract the first word of "ar", so it can be a program name with args.
7303 set dummy
ar; ac_word
=$2
7304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 if test -n "$ac_ct_AR"; then
7310 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir
=.
7317 for ac_exec_ext
in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_prog_ac_ct_AR
="ar"
7320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7330 if test -n "$ac_ct_AR"; then
7331 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7332 echo "${ECHO_T}$ac_ct_AR" >&6; }
7334 { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7338 if test "x$ac_ct_AR" = x
; then
7341 case $cross_compiling:$ac_tool_warned in
7343 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7344 whose name does not start with the host triplet. If you think this
7345 configuration is useful to you, please write to autoconf@gnu.org." >&5
7346 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7347 whose name does not start with the host triplet. If you think this
7348 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7349 ac_tool_warned
=yes ;;
7357 # Extract the first word of "rm", so it can be a program name with args.
7358 set dummy
rm; ac_word
=$2
7359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361 if test "${ac_cv_path_RM+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
7369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7373 test -z "$as_dir" && as_dir
=.
7374 for ac_exec_ext
in '' $ac_executable_extensions; do
7375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7376 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
7377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
7389 if test -n "$RM"; then
7390 { echo "$as_me:$LINENO: result: $RM" >&5
7391 echo "${ECHO_T}$RM" >&6; }
7393 { echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6; }
7398 # Extract the first word of "sed", so it can be a program name with args.
7399 set dummy
sed; ac_word
=$2
7400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7402 if test "${ac_cv_path_SED+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7414 test -z "$as_dir" && as_dir
=.
7415 for ac_exec_ext
in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7417 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7430 if test -n "$SED"; then
7431 { echo "$as_me:$LINENO: result: $SED" >&5
7432 echo "${ECHO_T}$SED" >&6; }
7434 { echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6; }
7439 # Extract the first word of "tar", so it can be a program name with args.
7440 set dummy
tar; ac_word
=$2
7441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7443 if test "${ac_cv_path_TAR+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir
=.
7456 for ac_exec_ext
in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7458 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7471 if test -n "$TAR"; then
7472 { echo "$as_me:$LINENO: result: $TAR" >&5
7473 echo "${ECHO_T}$TAR" >&6; }
7475 { echo "$as_me:$LINENO: result: no" >&5
7476 echo "${ECHO_T}no" >&6; }
7480 # Extract the first word of "pwd", so it can be a program name with args.
7481 set dummy
pwd; ac_word
=$2
7482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484 if test "${ac_cv_path_BINPWD+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7496 test -z "$as_dir" && as_dir
=.
7497 for ac_exec_ext
in '' $ac_executable_extensions; do
7498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7499 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7511 BINPWD
=$ac_cv_path_BINPWD
7512 if test -n "$BINPWD"; then
7513 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7514 echo "${ECHO_T}$BINPWD" >&6; }
7516 { echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6; }
7522 # Extract the first word of "Graphviz", so it can be a program name with args.
7523 set dummy Graphviz
; ac_word
=$2
7524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7538 test -z "$as_dir" && as_dir
=.
7539 for ac_exec_ext
in '' $ac_executable_extensions; do
7540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7541 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7553 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7554 if test -n "$GRAPHVIZ"; then
7555 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7556 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7558 { echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6; }
7563 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7565 cat >>confdefs.h
<<\_ACEOF
7566 #define HAVE_GRAPHVIZ 1
7569 if test "$llvm_cv_os_type" = "MingW" ; then
7570 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7573 cat >>confdefs.h
<<_ACEOF
7574 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7578 # Extract the first word of "dot", so it can be a program name with args.
7579 set dummy dot
; ac_word
=$2
7580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7582 if test "${ac_cv_path_DOT+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7594 test -z "$as_dir" && as_dir
=.
7595 for ac_exec_ext
in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7597 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7610 if test -n "$DOT"; then
7611 { echo "$as_me:$LINENO: result: $DOT" >&5
7612 echo "${ECHO_T}$DOT" >&6; }
7614 { echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6; }
7619 if test "$DOT" != "echo dot" ; then
7621 cat >>confdefs.h
<<\_ACEOF
7625 if test "$llvm_cv_os_type" = "MingW" ; then
7626 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7629 cat >>confdefs.h
<<_ACEOF
7630 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7634 # Extract the first word of "fdp", so it can be a program name with args.
7635 set dummy fdp
; ac_word
=$2
7636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7638 if test "${ac_cv_path_FDP+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 ac_cv_path_FDP
="$FDP" # Let the user override the test with a path.
7646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7650 test -z "$as_dir" && as_dir
=.
7651 for ac_exec_ext
in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7653 ac_cv_path_FDP
="$as_dir/$ac_word$ac_exec_ext"
7654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP
="echo fdp"
7666 if test -n "$FDP"; then
7667 { echo "$as_me:$LINENO: result: $FDP" >&5
7668 echo "${ECHO_T}$FDP" >&6; }
7670 { echo "$as_me:$LINENO: result: no" >&5
7671 echo "${ECHO_T}no" >&6; }
7675 if test "$FDP" != "echo fdp" ; then
7677 cat >>confdefs.h
<<\_ACEOF
7681 if test "$llvm_cv_os_type" = "MingW" ; then
7682 FDP
=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7685 cat >>confdefs.h
<<_ACEOF
7686 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7690 # Extract the first word of "neato", so it can be a program name with args.
7691 set dummy neato
; ac_word
=$2
7692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7694 if test "${ac_cv_path_NEATO+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 ac_cv_path_NEATO
="$NEATO" # Let the user override the test with a path.
7702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7706 test -z "$as_dir" && as_dir
=.
7707 for ac_exec_ext
in '' $ac_executable_extensions; do
7708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7709 ac_cv_path_NEATO
="$as_dir/$ac_word$ac_exec_ext"
7710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO
="echo neato"
7721 NEATO
=$ac_cv_path_NEATO
7722 if test -n "$NEATO"; then
7723 { echo "$as_me:$LINENO: result: $NEATO" >&5
7724 echo "${ECHO_T}$NEATO" >&6; }
7726 { echo "$as_me:$LINENO: result: no" >&5
7727 echo "${ECHO_T}no" >&6; }
7731 if test "$NEATO" != "echo neato" ; then
7733 cat >>confdefs.h
<<\_ACEOF
7734 #define HAVE_NEATO 1
7737 if test "$llvm_cv_os_type" = "MingW" ; then
7738 NEATO
=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7741 cat >>confdefs.h
<<_ACEOF
7742 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7746 # Extract the first word of "twopi", so it can be a program name with args.
7747 set dummy twopi
; ac_word
=$2
7748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7750 if test "${ac_cv_path_TWOPI+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 ac_cv_path_TWOPI
="$TWOPI" # Let the user override the test with a path.
7758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7762 test -z "$as_dir" && as_dir
=.
7763 for ac_exec_ext
in '' $ac_executable_extensions; do
7764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7765 ac_cv_path_TWOPI
="$as_dir/$ac_word$ac_exec_ext"
7766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI
="echo twopi"
7777 TWOPI
=$ac_cv_path_TWOPI
7778 if test -n "$TWOPI"; then
7779 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7780 echo "${ECHO_T}$TWOPI" >&6; }
7782 { echo "$as_me:$LINENO: result: no" >&5
7783 echo "${ECHO_T}no" >&6; }
7787 if test "$TWOPI" != "echo twopi" ; then
7789 cat >>confdefs.h
<<\_ACEOF
7790 #define HAVE_TWOPI 1
7793 if test "$llvm_cv_os_type" = "MingW" ; then
7794 TWOPI
=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7797 cat >>confdefs.h
<<_ACEOF
7798 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7802 # Extract the first word of "circo", so it can be a program name with args.
7803 set dummy circo
; ac_word
=$2
7804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806 if test "${ac_cv_path_CIRCO+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 ac_cv_path_CIRCO
="$CIRCO" # Let the user override the test with a path.
7814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7818 test -z "$as_dir" && as_dir
=.
7819 for ac_exec_ext
in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_path_CIRCO
="$as_dir/$ac_word$ac_exec_ext"
7822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO
="echo circo"
7833 CIRCO
=$ac_cv_path_CIRCO
7834 if test -n "$CIRCO"; then
7835 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7836 echo "${ECHO_T}$CIRCO" >&6; }
7838 { echo "$as_me:$LINENO: result: no" >&5
7839 echo "${ECHO_T}no" >&6; }
7843 if test "$CIRCO" != "echo circo" ; then
7845 cat >>confdefs.h
<<\_ACEOF
7846 #define HAVE_CIRCO 1
7849 if test "$llvm_cv_os_type" = "MingW" ; then
7850 CIRCO
=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7853 cat >>confdefs.h
<<_ACEOF
7854 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7858 for ac_prog
in gv gsview32
7860 # Extract the first word of "$ac_prog", so it can be a program name with args.
7861 set dummy
$ac_prog; ac_word
=$2
7862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7864 if test "${ac_cv_path_GV+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7876 test -z "$as_dir" && as_dir
=.
7877 for ac_exec_ext
in '' $ac_executable_extensions; do
7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7879 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 if test -n "$GV"; then
7892 { echo "$as_me:$LINENO: result: $GV" >&5
7893 echo "${ECHO_T}$GV" >&6; }
7895 { echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6; }
7900 test -n "$GV" && break
7902 test -n "$GV" || GV
="echo gv"
7904 if test "$GV" != "echo gv" ; then
7906 cat >>confdefs.h
<<\_ACEOF
7910 if test "$llvm_cv_os_type" = "MingW" ; then
7911 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7914 cat >>confdefs.h
<<_ACEOF
7915 #define LLVM_PATH_GV "$GV${EXEEXT}"
7919 # Extract the first word of "dotty", so it can be a program name with args.
7920 set dummy dotty
; ac_word
=$2
7921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7923 if test "${ac_cv_path_DOTTY+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7935 test -z "$as_dir" && as_dir
=.
7936 for ac_exec_ext
in '' $ac_executable_extensions; do
7937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7938 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7950 DOTTY
=$ac_cv_path_DOTTY
7951 if test -n "$DOTTY"; then
7952 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7953 echo "${ECHO_T}$DOTTY" >&6; }
7955 { echo "$as_me:$LINENO: result: no" >&5
7956 echo "${ECHO_T}no" >&6; }
7960 if test "$DOTTY" != "echo dotty" ; then
7962 cat >>confdefs.h
<<\_ACEOF
7963 #define HAVE_DOTTY 1
7966 if test "$llvm_cv_os_type" = "MingW" ; then
7967 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7970 cat >>confdefs.h
<<_ACEOF
7971 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7975 # Extract the first word of "xdot.py", so it can be a program name with args.
7976 set dummy xdot.py
; ac_word
=$2
7977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7979 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 ac_cv_path_XDOT_PY
="$XDOT_PY" # Let the user override the test with a path.
7987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7991 test -z "$as_dir" && as_dir
=.
7992 for ac_exec_ext
in '' $ac_executable_extensions; do
7993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7994 ac_cv_path_XDOT_PY
="$as_dir/$ac_word$ac_exec_ext"
7995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY
="echo xdot.py"
8006 XDOT_PY
=$ac_cv_path_XDOT_PY
8007 if test -n "$XDOT_PY"; then
8008 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8009 echo "${ECHO_T}$XDOT_PY" >&6; }
8011 { echo "$as_me:$LINENO: result: no" >&5
8012 echo "${ECHO_T}no" >&6; }
8016 if test "$XDOT_PY" != "echo xdot.py" ; then
8018 cat >>confdefs.h
<<\_ACEOF
8019 #define HAVE_XDOT_PY 1
8022 if test "$llvm_cv_os_type" = "MingW" ; then
8023 XDOT_PY
=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8026 cat >>confdefs.h
<<_ACEOF
8027 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8033 # Extract the first word of "perl", so it can be a program name with args.
8034 set dummy perl
; ac_word
=$2
8035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8037 if test "${ac_cv_path_PERL+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
8045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8049 test -z "$as_dir" && as_dir
=.
8050 for ac_exec_ext
in '' $ac_executable_extensions; do
8051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8052 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
8053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
8064 PERL
=$ac_cv_path_PERL
8065 if test -n "$PERL"; then
8066 { echo "$as_me:$LINENO: result: $PERL" >&5
8067 echo "${ECHO_T}$PERL" >&6; }
8069 { echo "$as_me:$LINENO: result: no" >&5
8070 echo "${ECHO_T}no" >&6; }
8074 if test "$PERL" != "none"; then
8075 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8076 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8077 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
8078 { echo "$as_me:$LINENO: result: yes" >&5
8079 echo "${ECHO_T}yes" >&6; }
8082 { echo "$as_me:$LINENO: result: not found" >&5
8083 echo "${ECHO_T}not found" >&6; }
8088 if test x
"$PERL" = xnone
; then
8091 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8092 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8093 { (exit 1); exit 1; }; }
8099 # Find a good install program. We prefer a C program (faster),
8100 # so one script is as good as another. But avoid the broken or
8101 # incompatible versions:
8102 # SysV /etc/install, /usr/sbin/install
8103 # SunOS /usr/etc/install
8104 # IRIX /sbin/install
8106 # AmigaOS /C/install, which installs bootblocks on floppy discs
8107 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8108 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8109 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8110 # OS/2's system install, which has a completely different semantic
8111 # ./install, which can be erroneously created by make from ./install.sh.
8112 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8113 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8114 if test -z "$INSTALL"; then
8115 if test "${ac_cv_path_install+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8122 test -z "$as_dir" && as_dir
=.
8123 # Account for people who put trailing slashes in PATH elements.
8125 .
/ | .
// |
/cC
/* | \
8126 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
8127 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
8130 # OSF1 and SCO ODT 3.0 have their own names for install.
8131 # Don't use installbsd from OSF since it installs stuff as root
8133 for ac_prog
in ginstall scoinst
install; do
8134 for ac_exec_ext
in '' $ac_executable_extensions; do
8135 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8136 if test $ac_prog = install &&
8137 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8138 # AIX install. It has an incompatible calling convention.
8140 elif test $ac_prog = install &&
8141 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8142 # program-specific install script used by HP pwplus--don't use.
8145 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
8158 if test "${ac_cv_path_install+set}" = set; then
8159 INSTALL
=$ac_cv_path_install
8161 # As a last resort, use the slow shell script. Don't cache a
8162 # value for INSTALL within a source directory, because that will
8163 # break other packages using the cache if that directory is
8164 # removed, or if the value is a relative name.
8165 INSTALL
=$ac_install_sh
8168 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8169 echo "${ECHO_T}$INSTALL" >&6; }
8171 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8172 # It thinks the first close brace ends the variable substitution.
8173 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8175 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
8177 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8180 [\\/$
]* | ?
:[\\/]* ) ;;
8181 *) INSTALL
="\\\$(TOPSRCDIR)/$INSTALL" ;;
8184 # Extract the first word of "bzip2", so it can be a program name with args.
8185 set dummy
bzip2; ac_word
=$2
8186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8188 if test "${ac_cv_path_BZIP2+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
8196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8200 test -z "$as_dir" && as_dir
=.
8201 for ac_exec_ext
in '' $ac_executable_extensions; do
8202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8203 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
8204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8214 BZIP2
=$ac_cv_path_BZIP2
8215 if test -n "$BZIP2"; then
8216 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8217 echo "${ECHO_T}$BZIP2" >&6; }
8219 { echo "$as_me:$LINENO: result: no" >&5
8220 echo "${ECHO_T}no" >&6; }
8224 # Extract the first word of "cat", so it can be a program name with args.
8225 set dummy
cat; ac_word
=$2
8226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8228 if test "${ac_cv_path_CAT+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 ac_cv_path_CAT
="$CAT" # Let the user override the test with a path.
8236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8240 test -z "$as_dir" && as_dir
=.
8241 for ac_exec_ext
in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8243 ac_cv_path_CAT
="$as_dir/$ac_word$ac_exec_ext"
8244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 if test -n "$CAT"; then
8256 { echo "$as_me:$LINENO: result: $CAT" >&5
8257 echo "${ECHO_T}$CAT" >&6; }
8259 { echo "$as_me:$LINENO: result: no" >&5
8260 echo "${ECHO_T}no" >&6; }
8264 # Extract the first word of "doxygen", so it can be a program name with args.
8265 set dummy doxygen
; ac_word
=$2
8266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8268 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
8276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8280 test -z "$as_dir" && as_dir
=.
8281 for ac_exec_ext
in '' $ac_executable_extensions; do
8282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8283 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
8284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 DOXYGEN
=$ac_cv_path_DOXYGEN
8295 if test -n "$DOXYGEN"; then
8296 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8297 echo "${ECHO_T}$DOXYGEN" >&6; }
8299 { echo "$as_me:$LINENO: result: no" >&5
8300 echo "${ECHO_T}no" >&6; }
8304 # Extract the first word of "groff", so it can be a program name with args.
8305 set dummy
groff; ac_word
=$2
8306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8308 if test "${ac_cv_path_GROFF+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
8316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8320 test -z "$as_dir" && as_dir
=.
8321 for ac_exec_ext
in '' $ac_executable_extensions; do
8322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8323 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
8324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 GROFF
=$ac_cv_path_GROFF
8335 if test -n "$GROFF"; then
8336 { echo "$as_me:$LINENO: result: $GROFF" >&5
8337 echo "${ECHO_T}$GROFF" >&6; }
8339 { echo "$as_me:$LINENO: result: no" >&5
8340 echo "${ECHO_T}no" >&6; }
8344 # Extract the first word of "gzip", so it can be a program name with args.
8345 set dummy
gzip; ac_word
=$2
8346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8348 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 ac_cv_path_GZIPBIN
="$GZIPBIN" # Let the user override the test with a path.
8356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8360 test -z "$as_dir" && as_dir
=.
8361 for ac_exec_ext
in '' $ac_executable_extensions; do
8362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8363 ac_cv_path_GZIPBIN
="$as_dir/$ac_word$ac_exec_ext"
8364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 GZIPBIN
=$ac_cv_path_GZIPBIN
8375 if test -n "$GZIPBIN"; then
8376 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8377 echo "${ECHO_T}$GZIPBIN" >&6; }
8379 { echo "$as_me:$LINENO: result: no" >&5
8380 echo "${ECHO_T}no" >&6; }
8384 # Extract the first word of "pod2html", so it can be a program name with args.
8385 set dummy pod2html
; ac_word
=$2
8386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8388 if test "${ac_cv_path_POD2HTML+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8393 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
8396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8400 test -z "$as_dir" && as_dir
=.
8401 for ac_exec_ext
in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8403 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
8404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8414 POD2HTML
=$ac_cv_path_POD2HTML
8415 if test -n "$POD2HTML"; then
8416 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8417 echo "${ECHO_T}$POD2HTML" >&6; }
8419 { echo "$as_me:$LINENO: result: no" >&5
8420 echo "${ECHO_T}no" >&6; }
8424 # Extract the first word of "pod2man", so it can be a program name with args.
8425 set dummy pod2man
; ac_word
=$2
8426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8428 if test "${ac_cv_path_POD2MAN+set}" = set; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
8436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8440 test -z "$as_dir" && as_dir
=.
8441 for ac_exec_ext
in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
8444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 POD2MAN
=$ac_cv_path_POD2MAN
8455 if test -n "$POD2MAN"; then
8456 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8457 echo "${ECHO_T}$POD2MAN" >&6; }
8459 { echo "$as_me:$LINENO: result: no" >&5
8460 echo "${ECHO_T}no" >&6; }
8464 # Extract the first word of "pdfroff", so it can be a program name with args.
8465 set dummy pdfroff
; ac_word
=$2
8466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8468 if test "${ac_cv_path_PDFROFF+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 ac_cv_path_PDFROFF
="$PDFROFF" # Let the user override the test with a path.
8476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8480 test -z "$as_dir" && as_dir
=.
8481 for ac_exec_ext
in '' $ac_executable_extensions; do
8482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8483 ac_cv_path_PDFROFF
="$as_dir/$ac_word$ac_exec_ext"
8484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8494 PDFROFF
=$ac_cv_path_PDFROFF
8495 if test -n "$PDFROFF"; then
8496 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8497 echo "${ECHO_T}$PDFROFF" >&6; }
8499 { echo "$as_me:$LINENO: result: no" >&5
8500 echo "${ECHO_T}no" >&6; }
8504 # Extract the first word of "runtest", so it can be a program name with args.
8505 set dummy runtest
; ac_word
=$2
8506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8508 if test "${ac_cv_path_RUNTEST+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8513 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
8516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8520 test -z "$as_dir" && as_dir
=.
8521 for ac_exec_ext
in '' $ac_executable_extensions; do
8522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8523 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
8524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 RUNTEST
=$ac_cv_path_RUNTEST
8535 if test -n "$RUNTEST"; then
8536 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8537 echo "${ECHO_T}$RUNTEST" >&6; }
8539 { echo "$as_me:$LINENO: result: no" >&5
8540 echo "${ECHO_T}no" >&6; }
8546 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8547 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8549 # Check whether --with-tclinclude was given.
8550 if test "${with_tclinclude+set}" = set; then
8551 withval
=$with_tclinclude; with_tclinclude
=${withval}
8556 if test "${ac_cv_path_tclsh+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 if test x
"${with_tclinclude}" != x
; then
8561 if test -f ${with_tclinclude}/tclsh
; then
8562 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
8563 elif test -f ${with_tclinclude}/src
/tclsh
; then
8564 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
8566 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8567 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8568 { (exit 1); exit 1; }; }
8574 if test x
"${ac_cv_path_tclsh}" = x
; then
8575 { echo "$as_me:$LINENO: result: none" >&5
8576 echo "${ECHO_T}none" >&6; }
8577 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
8579 # Extract the first word of "$ac_prog", so it can be a program name with args.
8580 set dummy
$ac_prog; ac_word
=$2
8581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8583 if test "${ac_cv_path_TCLSH+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
8591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8595 test -z "$as_dir" && as_dir
=.
8596 for ac_exec_ext
in '' $ac_executable_extensions; do
8597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8598 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
8599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8609 TCLSH
=$ac_cv_path_TCLSH
8610 if test -n "$TCLSH"; then
8611 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8612 echo "${ECHO_T}$TCLSH" >&6; }
8614 { echo "$as_me:$LINENO: result: no" >&5
8615 echo "${ECHO_T}no" >&6; }
8619 test -n "$TCLSH" && break
8622 if test x
"${TCLSH}" = x
; then
8623 ac_cv_path_tclsh
='';
8625 ac_cv_path_tclsh
="${TCLSH}";
8628 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8629 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8630 TCLSH="${ac_cv_path_tclsh}"
8634 # Extract the first word of "zip", so it can be a program name with args.
8635 set dummy zip; ac_word=$2
8636 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8637 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8638 if test "${ac_cv_path_ZIP+set}" = set; then
8639 echo $ECHO_N "(cached
) $ECHO_C" >&6
8643 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8653 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8654 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8665 if test -n "$ZIP"; then
8666 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8667 echo "${ECHO_T}$ZIP" >&6; }
8669 { echo "$as_me:$LINENO: result
: no
" >&5
8670 echo "${ECHO_T}no
" >&6; }
8674 for ac_prog in ocamlc
8676 # Extract the first word of "$ac_prog", so it can be a program name with args.
8677 set dummy $ac_prog; ac_word=$2
8678 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8679 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8680 if test "${ac_cv_path_OCAMLC+set}" = set; then
8681 echo $ECHO_N "(cached
) $ECHO_C" >&6
8685 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 test -z "$as_dir" && as_dir=.
8693 for ac_exec_ext in '' $ac_executable_extensions; do
8694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8695 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8696 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8706 OCAMLC=$ac_cv_path_OCAMLC
8707 if test -n "$OCAMLC"; then
8708 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8709 echo "${ECHO_T}$OCAMLC" >&6; }
8711 { echo "$as_me:$LINENO: result
: no
" >&5
8712 echo "${ECHO_T}no
" >&6; }
8716 test -n "$OCAMLC" && break
8719 for ac_prog in ocamlopt
8721 # Extract the first word of "$ac_prog", so it can be a program name with args.
8722 set dummy $ac_prog; ac_word=$2
8723 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8724 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8725 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8726 echo $ECHO_N "(cached
) $ECHO_C" >&6
8730 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 test -z "$as_dir" && as_dir=.
8738 for ac_exec_ext in '' $ac_executable_extensions; do
8739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8740 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8741 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8751 OCAMLOPT=$ac_cv_path_OCAMLOPT
8752 if test -n "$OCAMLOPT"; then
8753 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8754 echo "${ECHO_T}$OCAMLOPT" >&6; }
8756 { echo "$as_me:$LINENO: result
: no
" >&5
8757 echo "${ECHO_T}no
" >&6; }
8761 test -n "$OCAMLOPT" && break
8764 for ac_prog in ocamldep
8766 # Extract the first word of "$ac_prog", so it can be a program name with args.
8767 set dummy $ac_prog; ac_word=$2
8768 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8769 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8770 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8771 echo $ECHO_N "(cached
) $ECHO_C" >&6
8775 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782 test -z "$as_dir" && as_dir=.
8783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8785 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8786 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8796 OCAMLDEP=$ac_cv_path_OCAMLDEP
8797 if test -n "$OCAMLDEP"; then
8798 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8799 echo "${ECHO_T}$OCAMLDEP" >&6; }
8801 { echo "$as_me:$LINENO: result
: no
" >&5
8802 echo "${ECHO_T}no
" >&6; }
8806 test -n "$OCAMLDEP" && break
8809 for ac_prog in ocamldoc
8811 # Extract the first word of "$ac_prog", so it can be a program name with args.
8812 set dummy $ac_prog; ac_word=$2
8813 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8814 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8815 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8816 echo $ECHO_N "(cached
) $ECHO_C" >&6
8820 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8830 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8831 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8841 OCAMLDOC=$ac_cv_path_OCAMLDOC
8842 if test -n "$OCAMLDOC"; then
8843 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8844 echo "${ECHO_T}$OCAMLDOC" >&6; }
8846 { echo "$as_me:$LINENO: result
: no
" >&5
8847 echo "${ECHO_T}no
" >&6; }
8851 test -n "$OCAMLDOC" && break
8854 for ac_prog in gas as
8856 # Extract the first word of "$ac_prog", so it can be a program name with args.
8857 set dummy $ac_prog; ac_word=$2
8858 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8859 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8860 if test "${ac_cv_path_GAS+set}" = set; then
8861 echo $ECHO_N "(cached
) $ECHO_C" >&6
8865 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872 test -z "$as_dir" && as_dir=.
8873 for ac_exec_ext in '' $ac_executable_extensions; do
8874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8875 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8876 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8887 if test -n "$GAS"; then
8888 { echo "$as_me:$LINENO: result
: $GAS" >&5
8889 echo "${ECHO_T}$GAS" >&6; }
8891 { echo "$as_me:$LINENO: result
: no
" >&5
8892 echo "${ECHO_T}no
" >&6; }
8896 test -n "$GAS" && break
8900 { echo "$as_me:$LINENO: checking
for linker version
" >&5
8901 echo $ECHO_N "checking
for linker version...
$ECHO_C" >&6; }
8902 if test "${llvm_cv_link_version+set}" = set; then
8903 echo $ECHO_N "(cached
) $ECHO_C" >&6
8906 version_string="$
(ld
-v 2>&1 |
head -1)"
8909 if (echo "$version_string" | grep -q "ld64
"); then
8910 llvm_cv_link_version=$(echo "$version_string" | sed -e "s
#.*ld64-\([^ ]*\)#\1#")
8912 llvm_cv_link_version
=$
(echo "$version_string" |
sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8916 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8917 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8919 cat >>confdefs.h
<<_ACEOF
8920 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8925 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8926 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8927 if test "${llvm_cv_link_use_r+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8931 ac_cpp
='$CPP $CPPFLAGS'
8932 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8933 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8934 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8937 CFLAGS
="$CFLAGS -Wl,-R."
8938 cat >conftest.
$ac_ext <<_ACEOF
8941 cat confdefs.h
>>conftest.
$ac_ext
8942 cat >>conftest.
$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8953 rm -f conftest.
$ac_objext conftest
$ac_exeext
8954 if { (ac_try
="$ac_link"
8956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_link") 2>conftest.er1
8962 grep -v '^ *+' conftest.er1 >conftest.err
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
8967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8968 { (case "(($ac_try" in
8969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8970 *) ac_try_echo
=$ac_try;;
8972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8973 (eval "$ac_try") 2>&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; } &&
8977 { ac_try
='test -s conftest$ac_exeext'
8978 { (case "(($ac_try" in
8979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8980 *) ac_try_echo=$ac_try;;
8982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8983 (eval "$ac_try") 2>&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 llvm_cv_link_use_r=yes
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 llvm_cv_link_use_r=no
8995 rm -f core conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8999 ac_cpp='$CPP $CPPFLAGS'
9000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9006 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9007 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
9008 if test "$llvm_cv_link_use_r" = yes ; then
9010 cat >>confdefs.h <<\_ACEOF
9011 #define HAVE_LINK_R 1
9017 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9018 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9019 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 ac_cpp='$CPP $CPPFLAGS'
9024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9029 CFLAGS="$CFLAGS -Wl,-export-dynamic"
9030 cat >conftest.$ac_ext <<_ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9045 rm -f conftest.$ac_objext conftest$ac_exeext
9046 if { (ac_try="$ac_link"
9048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9049 *) ac_try_echo
=$ac_try;;
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_link") 2>conftest.er1
9054 grep -v '^ *+' conftest.er1
>conftest.err
9056 cat conftest.err
>&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9060 { (case "(($ac_try" in
9061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9062 *) ac_try_echo=$ac_try;;
9064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9065 (eval "$ac_try") 2>&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try='test -s conftest$ac_exeext'
9070 { (case "(($ac_try" in
9071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9072 *) ac_try_echo
=$ac_try;;
9074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075 (eval "$ac_try") 2>&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; }; then
9079 llvm_cv_link_use_export_dynamic
=yes
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.
$ac_ext >&5
9084 llvm_cv_link_use_export_dynamic
=no
9087 rm -f core conftest.err conftest.
$ac_objext \
9088 conftest
$ac_exeext conftest.
$ac_ext
9091 ac_cpp
='$CPP $CPPFLAGS'
9092 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9093 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9094 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9098 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9099 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9100 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9102 cat >>confdefs.h
<<\_ACEOF
9103 #define HAVE_LINK_EXPORT_DYNAMIC 1
9109 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9110 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9111 if test "${llvm_cv_link_use_version_script+set}" = set; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 ac_cpp
='$CPP $CPPFLAGS'
9116 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9117 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9118 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9122 # The following code is from the autoconf manual,
9123 # "11.13: Limitations of Usual Tools".
9124 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9125 # Use mktemp if possible; otherwise fall back on mkdir,
9126 # with $RANDOM to make collisions less likely.
9130 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9132 test -n "$tmp" && test -d "$tmp"
9134 tmp
=$TMPDIR/foo$$
-$RANDOM
9135 (umask 077 && mkdir
"$tmp")
9138 echo "{" > "$tmp/export.map"
9139 echo " global: main;" >> "$tmp/export.map"
9140 echo " local: *;" >> "$tmp/export.map"
9141 echo "};" >> "$tmp/export.map"
9143 CFLAGS
="$CFLAGS -Wl,--version-script=$tmp/export.map"
9144 cat >conftest.
$ac_ext <<_ACEOF
9147 cat confdefs.h
>>conftest.
$ac_ext
9148 cat >>conftest.
$ac_ext <<_ACEOF
9149 /* end confdefs.h. */
9159 rm -f conftest.
$ac_objext conftest
$ac_exeext
9160 if { (ac_try
="$ac_link"
9162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_link") 2>conftest.er1
9168 grep -v '^ *+' conftest.er1 >conftest.err
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } &&
9173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9174 { (case "(($ac_try" in
9175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9176 *) ac_try_echo
=$ac_try;;
9178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9179 (eval "$ac_try") 2>&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; } &&
9183 { ac_try
='test -s conftest$ac_exeext'
9184 { (case "(($ac_try" in
9185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9186 *) ac_try_echo=$ac_try;;
9188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9189 (eval "$ac_try") 2>&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 llvm_cv_link_use_version_script=yes
9195 echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.$ac_ext >&5
9198 llvm_cv_link_use_version_script=no
9201 rm -f core conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203 rm "$tmp/export.map"
9207 ac_cpp='$CPP $CPPFLAGS'
9208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9214 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9215 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9216 if test "$llvm_cv_link_use_version_script" = yes ; then
9217 HAVE_LINK_VERSION_SCRIPT=1
9224 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9225 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9226 if test "${ac_cv_c_const+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 cat >conftest.$ac_ext <<_ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9239 /* FIXME: Include the comments suggested by Paul. */
9241 /* Ultrix mips cc rejects this. */
9242 typedef int charset[2];
9244 /* SunOS 4.1.1 cc rejects this. */
9245 char const *const *ccp;
9247 /* NEC SVR4.0.2 mips cc rejects this. */
9248 struct point {int x, y;};
9249 static struct point const zero = {0,0};
9250 /* AIX XL C 1.02.0.0 rejects this.
9251 It does not let you subtract one const X* pointer from another in
9252 an arm of an if-expression whose if-part is not a constant
9254 const char *g = "string";
9255 ccp = &g + (g ? g-g : 0);
9256 /* HPUX 7.0 cc rejects these. */
9259 ccp = (char const *const *) p;
9260 { /* SCO 3.2v4 cc rejects this. */
9262 char const *s = 0 ? (char *) 0 : (char const *) 0;
9267 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9269 const int *foo = &x[0];
9272 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9273 typedef const int *iptr;
9277 { /* AIX XL C 1.02.0.0 rejects this saying
9278 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9279 struct s { int j; const int *ap[3]; };
9280 struct s *b; b->j = 5;
9282 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9286 return !x[0] && !zero.x;
9293 rm -f conftest.$ac_objext
9294 if { (ac_try="$ac_compile"
9296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9297 *) ac_try_echo
=$ac_try;;
9299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300 (eval "$ac_compile") 2>conftest.er1
9302 grep -v '^ *+' conftest.er1
>conftest.err
9304 cat conftest.err
>&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } &&
9307 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9308 { (case "(($ac_try" in
9309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9310 *) ac_try_echo=$ac_try;;
9312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313 (eval "$ac_try") 2>&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; } &&
9317 { ac_try='test -s conftest.$ac_objext'
9318 { (case "(($ac_try" in
9319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9320 *) ac_try_echo
=$ac_try;;
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_try") 2>&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; }; then
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.
$ac_ext >&5
9335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9337 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9338 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9339 if test $ac_cv_c_const = no
; then
9341 cat >>confdefs.h
<<\_ACEOF
9353 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9354 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9355 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9356 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9357 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9360 cat >conftest.
$ac_ext <<_ACEOF
9363 cat confdefs.h
>>conftest.
$ac_ext
9364 cat >>conftest.
$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9366 #include <sys/types.h>
9378 rm -f conftest.
$ac_objext
9379 if { (ac_try
="$ac_compile"
9381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_compile") 2>conftest.er1
9387 grep -v '^ *+' conftest.er1 >conftest.err
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } &&
9392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9393 { (case "(($ac_try" in
9394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9395 *) ac_try_echo
=$ac_try;;
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_try") 2>&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; } &&
9402 { ac_try
='test -s conftest.$ac_objext'
9403 { (case "(($ac_try" in
9404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9405 *) ac_try_echo=$ac_try;;
9407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_try") 2>&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
9412 eval "$as_ac_Header=yes"
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9417 eval "$as_ac_Header=no"
9420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9422 ac_res=`eval echo '${'$as_ac_Header'}'`
9423 { echo "$as_me:$LINENO: result: $ac_res" >&5
9424 echo "${ECHO_T}$ac_res" >&6; }
9425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9426 cat >>confdefs.h <<_ACEOF
9427 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
9430 ac_header_dirent=$ac_hdr; break
9434 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9435 if test $ac_header_dirent = dirent.h; then
9436 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9437 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9438 if test "${ac_cv_search_opendir+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 ac_func_search_save_LIBS=$LIBS
9442 cat >conftest.$ac_ext <<_ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9449 /* Override any GCC internal prototype to avoid an error.
9450 Use char because int might match the return type of a GCC
9451 builtin and then its argument prototype would still apply. */
9464 for ac_lib in '' dir; do
9465 if test -z "$ac_lib"; then
9466 ac_res="none required"
9469 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9471 rm -f conftest.$ac_objext conftest$ac_exeext
9472 if { (ac_try="$ac_link"
9474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9475 *) ac_try_echo
=$ac_try;;
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478 (eval "$ac_link") 2>conftest.er1
9480 grep -v '^ *+' conftest.er1
>conftest.err
9482 cat conftest.err
>&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
9485 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9486 { (case "(($ac_try" in
9487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9488 *) ac_try_echo=$ac_try;;
9490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491 (eval "$ac_try") 2>&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; } &&
9495 { ac_try='test -s conftest$ac_exeext'
9496 { (case "(($ac_try" in
9497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9498 *) ac_try_echo
=$ac_try;;
9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_try") 2>&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; }; then
9505 ac_cv_search_opendir
=$ac_res
9507 echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.
$ac_ext >&5
9513 rm -f core conftest.err conftest.
$ac_objext \
9515 if test "${ac_cv_search_opendir+set}" = set; then
9519 if test "${ac_cv_search_opendir+set}" = set; then
9522 ac_cv_search_opendir
=no
9525 LIBS
=$ac_func_search_save_LIBS
9527 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9528 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9529 ac_res
=$ac_cv_search_opendir
9530 if test "$ac_res" != no
; then
9531 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9536 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9537 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9538 if test "${ac_cv_search_opendir+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 ac_func_search_save_LIBS
=$LIBS
9542 cat >conftest.
$ac_ext <<_ACEOF
9545 cat confdefs.h
>>conftest.
$ac_ext
9546 cat >>conftest.
$ac_ext <<_ACEOF
9547 /* end confdefs.h. */
9549 /* Override any GCC internal prototype to avoid an error.
9550 Use char because int might match the return type of a GCC
9551 builtin and then its argument prototype would still apply. */
9564 for ac_lib
in '' x
; do
9565 if test -z "$ac_lib"; then
9566 ac_res
="none required"
9569 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9571 rm -f conftest.
$ac_objext conftest
$ac_exeext
9572 if { (ac_try
="$ac_link"
9574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_link") 2>conftest.er1
9580 grep -v '^ *+' conftest.er1 >conftest.err
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } &&
9585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9586 { (case "(($ac_try" in
9587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9588 *) ac_try_echo
=$ac_try;;
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_try") 2>&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; } &&
9595 { ac_try
='test -s conftest$ac_exeext'
9596 { (case "(($ac_try" in
9597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_try") 2>&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; }; then
9605 ac_cv_search_opendir=$ac_res
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9613 rm -f core conftest.err conftest.$ac_objext \
9615 if test "${ac_cv_search_opendir+set}" = set; then
9619 if test "${ac_cv_search_opendir+set}" = set; then
9622 ac_cv_search_opendir=no
9625 LIBS=$ac_func_search_save_LIBS
9627 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9628 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9629 ac_res=$ac_cv_search_opendir
9630 if test "$ac_res" != no; then
9631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9638 for ac_header in dlfcn.h
9640 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 ac_res=`eval echo '${'$as_ac_Header'}'`
9648 { echo "$as_me:$LINENO: result: $ac_res" >&5
9649 echo "${ECHO_T}$ac_res" >&6; }
9651 # Is the header compilable?
9652 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9654 cat >conftest.$ac_ext <<_ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660 $ac_includes_default
9661 #include <$ac_header>
9663 rm -f conftest.$ac_objext
9664 if { (ac_try="$ac_compile"
9666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9667 *) ac_try_echo
=$ac_try;;
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_compile") 2>conftest.er1
9672 grep -v '^ *+' conftest.er1
>conftest.err
9674 cat conftest.err
>&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9678 { (case "(($ac_try" in
9679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9680 *) ac_try_echo=$ac_try;;
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683 (eval "$ac_try") 2>&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try='test -s conftest.$ac_objext'
9688 { (case "(($ac_try" in
9689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9690 *) ac_try_echo
=$ac_try;;
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693 (eval "$ac_try") 2>&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; }; then
9697 ac_header_compiler
=yes
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.
$ac_ext >&5
9702 ac_header_compiler
=no
9705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9707 echo "${ECHO_T}$ac_header_compiler" >&6; }
9709 # Is the header present?
9710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9712 cat >conftest.
$ac_ext <<_ACEOF
9715 cat confdefs.h
>>conftest.
$ac_ext
9716 cat >>conftest.
$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718 #include <$ac_header>
9720 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9728 grep -v '^ *+' conftest.er1 >conftest.err
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } >/dev/null; then
9733 if test -s conftest.err; then
9734 ac_cpp_err=$ac_c_preproc_warn_flag
9735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9742 if test -z "$ac_cpp_err"; then
9743 ac_header_preproc=yes
9745 echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.$ac_ext >&5
9748 ac_header_preproc=no
9751 rm -f conftest.err conftest.$ac_ext
9752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9753 echo "${ECHO_T}$ac_header_preproc" >&6; }
9755 # So? What about this header?
9756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9762 ac_header_preproc=yes
9765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9778 ## ----------------------------------- ##
9779 ## Report this to llvmbugs@cs.uiuc.edu ##
9780 ## ----------------------------------- ##
9782 ) | sed "s/^/$as_me: WARNING: /" >&2
9785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9790 eval "$as_ac_Header=\$ac_header_preproc"
9792 ac_res=`eval echo '${'$as_ac_Header'}'`
9793 { echo "$as_me:$LINENO: result: $ac_res" >&5
9794 echo "${ECHO_T}$ac_res" >&6; }
9797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9798 cat >>confdefs.h <<_ACEOF
9799 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9806 # Check whether --enable-ltdl-install was given.
9807 if test "${enable_ltdl_install+set}" = set; then
9808 enableval=$enable_ltdl_install;
9814 if test x"${enable_ltdl_install-no}" != xno; then
9816 INSTALL_LTDL_FALSE='#'
9818 INSTALL_LTDL_TRUE='#'
9824 if test x"${enable_ltdl_convenience-no}" != xno; then
9825 CONVENIENCE_LTDL_TRUE=
9826 CONVENIENCE_LTDL_FALSE='#'
9828 CONVENIENCE_LTDL_TRUE='#'
9829 CONVENIENCE_LTDL_FALSE=
9833 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9834 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9836 libname_spec='lib$name'
9844 shlibpath_overrides_runpath=unknown
9846 dynamic_linker="$host_os ld.so"
9847 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9848 if test "$GCC" = yes; then
9849 sys_lib_search_path_spec=`$CC -print-search-dirs |
grep "^libraries:" |
$SED -e "s/^libraries://" -e "s,=/,/,g"`
9850 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9851 # if the path contains ";" then we assume it to be the separator
9852 # otherwise default to the standard path separator (i.e. ":") - it is
9853 # assumed that no part of a normal pathname contains ";" but that should
9854 # okay in the real world where ";" in dirpaths is itself problematic.
9855 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" |
$SED -e 's/;/ /g'`
9857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" |
$SED -e "s/$PATH_SEPARATOR/ /g"`
9860 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9862 need_lib_prefix=unknown
9863 hardcode_into_libs=no
9865 # when you set need_version to no, make sure it does not cause -set_version
9866 # flags to be left without arguments
9867 need_version=unknown
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9873 shlibpath_var=LIBPATH
9875 # AIX 3 has no versioning support, so we append a major version to the name.
9876 soname_spec='${libname}${release}${shared_ext}$major'
9883 hardcode_into_libs=yes
9884 if test "$host_cpu" = ia64; then
9885 # AIX 5 supports IA64
9886 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9887 shlibpath_var=LD_LIBRARY_PATH
9889 # With GCC up to 2.95.x, collect2 would create an import file
9890 # for dependence libraries. The import file would start with
9891 # the line `#! .'. This would cause the generated library to
9892 # depend on `.', always an invalid library. This was fixed in
9893 # development snapshots of GCC prior to 3.0.
9895 aix4 | aix4.
[01] | aix4.
[01].
*)
9896 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9898 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
9905 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9906 # soname into executable. Probably we can add versioning support to
9907 # collect2, so additional links can be useful in future.
9908 if test "$aix_use_runtimelinking" = yes; then
9909 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9910 # instead of lib<name>.a to let people know that these are not
9911 # typical AIX shared libraries.
9912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914 # We preserve .a as extension for shared libraries through AIX4.2
9915 # and later when we are not doing run time linking.
9916 library_names_spec
='${libname}${release}.a $libname.a'
9917 soname_spec
='${libname}${release}${shared_ext}$major'
9919 shlibpath_var
=LIBPATH
9924 library_names_spec
='$libname.ixlibrary $libname.a'
9925 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9926 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'
9930 library_names_spec
='${libname}${shared_ext}'
9931 dynamic_linker
="$host_os ld.so"
9932 shlibpath_var
=LIBRARY_PATH
9938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939 soname_spec
='${libname}${release}${shared_ext}$major'
9940 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9941 shlibpath_var
=LD_LIBRARY_PATH
9942 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9943 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9944 # the default ld.so.conf also contains /usr/contrib/lib and
9945 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9946 # libtool to hard-code these into programs
9949 cygwin
* | mingw
* | pw32
*)
9950 version_type
=windows
9955 case $GCC,$host_os in
9956 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
9957 library_names_spec
='$libname.dll.a'
9958 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9959 postinstall_cmds
='base_file=`basename \${file}`~
9960 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9961 dldir=$destdir/`dirname \$dlpath`~
9962 test -d \$dldir || mkdir -p \$dldir~
9963 $install_prog $dir/$dlname \$dldir/$dlname~
9964 chmod a+x \$dldir/$dlname'
9965 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9966 dlpath=$dir/\$dldll~
9968 shlibpath_overrides_runpath
=yes
9972 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9973 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9974 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9977 # MinGW DLLs use traditional 'lib' prefix
9978 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9979 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9980 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
9981 # It is most probably a Windows format PATH printed by
9982 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9983 # path with ; separators, and with drive letters. We can handle the
9984 # drive letters (cygwin fileutils understands them), so leave them,
9985 # especially as we might pass files found there to a mingw objdump,
9986 # which wouldn't understand a cygwinified path. Ahh.
9987 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9989 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9993 # pw32 DLLs use 'pw' prefix rather than 'lib'
9994 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10000 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10003 dynamic_linker
='Win32 ld.exe'
10004 # FIXME: first we should search . and the directory the executable is in
10008 darwin
* | rhapsody
*)
10009 dynamic_linker
="$host_os dyld"
10010 version_type
=darwin
10013 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10014 soname_spec
='${libname}${release}${major}$shared_ext'
10015 shlibpath_overrides_runpath
=yes
10016 shlibpath_var
=DYLD_LIBRARY_PATH
10017 shrext_cmds
='.dylib'
10018 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10019 if test "$GCC" = yes; then
10020 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"`
10022 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
10024 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10032 soname_spec
='${libname}${release}${shared_ext}$major'
10033 shlibpath_var
=LD_LIBRARY_PATH
10044 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10045 soname_spec
='${libname}${release}${shared_ext}$major'
10046 shlibpath_var
=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath
=no
10048 hardcode_into_libs
=yes
10049 dynamic_linker
='GNU ld.so'
10052 freebsd
* | dragonfly
*)
10053 # DragonFly does not have aout. When/if they implement a new
10054 # versioning mechanism, adjust this.
10055 if test -x /usr
/bin
/objformat
; then
10056 objformat
=`/usr/bin/objformat`
10059 freebsd
[123]*) objformat
=aout
;;
10060 *) objformat
=elf
;;
10063 version_type
=freebsd-
$objformat
10064 case $version_type in
10066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10071 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10075 shlibpath_var
=LD_LIBRARY_PATH
10078 shlibpath_overrides_runpath
=yes
10080 freebsd3.
[01]* | freebsdelf3.
[01]*)
10081 shlibpath_overrides_runpath
=yes
10082 hardcode_into_libs
=yes
10084 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10085 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10086 shlibpath_overrides_runpath
=no
10087 hardcode_into_libs
=yes
10089 freebsd
*) # from 4.6 on
10090 shlibpath_overrides_runpath
=yes
10091 hardcode_into_libs
=yes
10100 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10101 soname_spec
='${libname}${release}${shared_ext}$major'
10102 shlibpath_var
=LD_LIBRARY_PATH
10103 hardcode_into_libs
=yes
10106 hpux9
* | hpux10
* | hpux11
*)
10107 # Give a soname corresponding to the major version so that dld.sl refuses to
10108 # link against other versions.
10115 hardcode_into_libs
=yes
10116 dynamic_linker
="$host_os dld.so"
10117 shlibpath_var
=LD_LIBRARY_PATH
10118 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120 soname_spec
='${libname}${release}${shared_ext}$major'
10121 if test "X$HPUX_IA64_MODE" = X32
; then
10122 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10124 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10126 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10130 hardcode_into_libs
=yes
10131 dynamic_linker
="$host_os dld.sl"
10132 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10133 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 soname_spec
='${libname}${release}${shared_ext}$major'
10136 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10137 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10141 dynamic_linker
="$host_os dld.sl"
10142 shlibpath_var
=SHLIB_PATH
10143 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10144 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145 soname_spec
='${libname}${release}${shared_ext}$major'
10148 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10149 postinstall_cmds
='chmod 555 $lib'
10156 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10157 soname_spec
='${libname}${release}${shared_ext}$major'
10158 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10159 shlibpath_var
=LD_LIBRARY_PATH
10160 shlibpath_overrides_runpath
=no
10161 hardcode_into_libs
=yes
10164 irix5
* | irix6
* | nonstopux
*)
10166 nonstopux
*) version_type
=nonstopux
;;
10168 if test "$lt_cv_prog_gnu_ld" = yes; then
10176 soname_spec
='${libname}${release}${shared_ext}$major'
10177 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10179 irix5
* | nonstopux
*)
10180 libsuff
= shlibsuff
=
10183 case $LD in # libtool.m4 will add one of these switches to LD
10184 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10185 libsuff
= shlibsuff
= libmagic
=32-bit;;
10186 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10187 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10188 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10189 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10190 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10194 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10195 shlibpath_overrides_runpath
=no
10196 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10197 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10198 hardcode_into_libs
=yes
10201 # No shared lib support for Linux oldld, aout, or coff.
10202 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10206 # This must be Linux ELF.
10211 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212 soname_spec
='${libname}${release}${shared_ext}$major'
10213 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10214 shlibpath_var
=LD_LIBRARY_PATH
10215 shlibpath_overrides_runpath
=no
10216 # This implies no fast_install, which is unacceptable.
10217 # Some rework will be needed to allow for fast_install
10218 # before this can be enabled.
10219 hardcode_into_libs
=yes
10221 # Append ld.so.conf contents to the search path
10222 if test -f /etc
/ld.so.conf
; then
10223 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' ' '`
10224 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10227 # We used to test for /lib/ld.so.1 and disable shared libraries on
10228 # powerpc, because MkLinux only supported shared libraries with the
10229 # GNU dynamic linker. Since this was broken with cross compilers,
10230 # most powerpc-linux boxes support dynamic linking these days and
10231 # people can always --disable-shared, the test was removed, and we
10232 # assume the GNU/Linux dynamic linker is in use.
10233 dynamic_linker
='GNU/Linux ld.so'
10240 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10241 soname_spec
='${libname}${release}${shared_ext}$major'
10242 shlibpath_var
=LD_LIBRARY_PATH
10243 shlibpath_overrides_runpath
=no
10244 hardcode_into_libs
=yes
10245 dynamic_linker
='GNU ld.so'
10252 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10254 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10255 dynamic_linker
='NetBSD (a.out) ld.so'
10257 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10258 soname_spec
='${libname}${release}${shared_ext}$major'
10259 dynamic_linker
='NetBSD ld.elf_so'
10261 shlibpath_var
=LD_LIBRARY_PATH
10262 shlibpath_overrides_runpath
=yes
10263 hardcode_into_libs
=yes
10268 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10269 shlibpath_var
=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath
=yes
10277 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278 soname_spec
='${libname}${release}${shared_ext}$major'
10279 shlibpath_var
=LD_LIBRARY_PATH
10280 shlibpath_overrides_runpath
=yes
10285 sys_lib_dlsearch_path_spec
="/usr/lib"
10287 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10289 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10290 *) need_version
=no
;;
10292 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10293 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10294 shlibpath_var
=LD_LIBRARY_PATH
10295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10297 openbsd2.
[89] | openbsd2.
[89].
*)
10298 shlibpath_overrides_runpath
=no
10301 shlibpath_overrides_runpath
=yes
10305 shlibpath_overrides_runpath
=yes
10310 libname_spec
='$name'
10313 library_names_spec
='$libname${shared_ext} $libname.a'
10314 dynamic_linker
='OS/2 ld.exe'
10315 shlibpath_var
=LIBPATH
10318 osf3
* | osf4
* | osf5
*)
10322 soname_spec
='${libname}${release}${shared_ext}$major'
10323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 shlibpath_var
=LD_LIBRARY_PATH
10325 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10326 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334 soname_spec
='${libname}${release}${shared_ext}$major'
10335 shlibpath_var
=LD_LIBRARY_PATH
10336 shlibpath_overrides_runpath
=yes
10337 hardcode_into_libs
=yes
10338 # ldd complains unless libraries are executable
10339 postinstall_cmds
='chmod +x $lib'
10344 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10345 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10346 shlibpath_var
=LD_LIBRARY_PATH
10347 shlibpath_overrides_runpath
=yes
10348 if test "$with_gnu_ld" = yes; then
10356 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 soname_spec
='${libname}${release}${shared_ext}$major'
10358 shlibpath_var
=LD_LIBRARY_PATH
10359 case $host_vendor in
10361 shlibpath_overrides_runpath
=no
10363 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10364 runpath_var
=LD_RUN_PATH
10372 shlibpath_overrides_runpath
=no
10373 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10379 if test -d /usr
/nec
;then
10381 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10382 soname_spec
='$libname${shared_ext}.$major'
10383 shlibpath_var
=LD_LIBRARY_PATH
10387 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10388 version_type
=freebsd-elf
10391 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10392 soname_spec
='${libname}${release}${shared_ext}$major'
10393 shlibpath_var
=LD_LIBRARY_PATH
10394 hardcode_into_libs
=yes
10395 if test "$with_gnu_ld" = yes; then
10396 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10397 shlibpath_overrides_runpath
=no
10399 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10400 shlibpath_overrides_runpath
=yes
10403 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10407 sys_lib_dlsearch_path_spec
='/usr/lib'
10412 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10413 soname_spec
='${libname}${release}${shared_ext}$major'
10414 shlibpath_var
=LD_LIBRARY_PATH
10421 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10422 echo "${ECHO_T}$dynamic_linker" >&6; }
10423 test "$dynamic_linker" = no
&& can_build_shared
=no
10425 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10426 if test "$GCC" = yes; then
10427 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10431 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10432 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10433 if test "${libltdl_cv_shlibext+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 eval libltdl_cv_shlibext
=$shrext_cmds
10441 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10442 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10443 if test -n "$libltdl_cv_shlibext"; then
10445 cat >>confdefs.h
<<_ACEOF
10446 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10452 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10453 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10454 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 libltdl_cv_shlibpath_var
="$shlibpath_var"
10459 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10460 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10461 if test -n "$libltdl_cv_shlibpath_var"; then
10463 cat >>confdefs.h
<<_ACEOF
10464 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10470 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10471 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10472 if test "${libltdl_cv_sys_search_path+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 libltdl_cv_sys_search_path
="$sys_lib_dlsearch_path_spec"
10477 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10478 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10479 if test -n "$libltdl_cv_sys_search_path"; then
10481 for dir
in $libltdl_cv_sys_search_path; do
10482 if test -z "$sys_search_path"; then
10483 sys_search_path
="$dir"
10485 sys_search_path
="$sys_search_path$PATH_SEPARATOR$dir"
10489 cat >>confdefs.h
<<_ACEOF
10490 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10495 { echo "$as_me:$LINENO: checking for objdir" >&5
10496 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10497 if test "${libltdl_cv_objdir+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 libltdl_cv_objdir
="$objdir"
10501 if test -n "$objdir"; then
10504 rm -f .libs
2>/dev
/null
10505 mkdir .libs
2>/dev
/null
10506 if test -d .libs
; then
10507 libltdl_cv_objdir
=.libs
10509 # MS-DOS does not allow filenames that begin with a dot.
10510 libltdl_cv_objdir
=_libs
10512 rmdir .libs
2>/dev
/null
10516 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10517 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10519 cat >>confdefs.h
<<_ACEOF
10520 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10528 # Check for command to grab the raw symbol name followed by C symbol from nm.
10529 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10530 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10531 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10535 # These are sane defaults that work on at least a few old systems.
10536 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10538 # Character class describing NM global symbol codes.
10539 symcode
='[BCDEGRST]'
10541 # Regexp to match symbols that can be accessed directly from C.
10542 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
10544 # Transform an extracted symbol line into a proper C declaration
10545 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10547 # Transform an extracted symbol line into symbol name and symbol address
10548 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'"
10550 # Define system-specific variables.
10555 cygwin
* | mingw
* | pw32
*)
10556 symcode
='[ABCDGISTW]'
10558 hpux
*) # Its linker distinguishes data from code symbols
10559 if test "$host_cpu" = ia64
; then
10560 symcode
='[ABCDEGRST]'
10562 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10563 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'"
10566 if test "$host_cpu" = ia64
; then
10567 symcode
='[ABCDGIRSTW]'
10568 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10569 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'"
10572 irix
* | nonstopux
*)
10573 symcode
='[BCDEGRST]'
10576 symcode
='[BCDEGQRST]'
10587 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10595 # Handle CRLF in mingw tool chain
10599 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10603 # If we're using GNU nm, then use its standard symbol codes.
10604 case `$NM -V 2>&1` in
10605 *GNU
* |
*'with BFD'*)
10606 symcode
='[ABCDGIRSTW]' ;;
10609 # Try without a prefix undercore, then with it.
10610 for ac_symprfx
in "" "_"; do
10612 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10613 symxfrm
="\\1 $ac_symprfx\\2 \\2"
10615 # Write the raw and C identifiers.
10616 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10618 # Check to see that the pipe works correctly.
10622 cat > conftest.
$ac_ext <<EOF
10627 void nm_test_func(){}
10631 int main(){nm_test_var='a';nm_test_func();return(0);}
10634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10635 (eval $ac_compile) 2>&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; then
10639 # Now try to grab the symbols.
10641 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10642 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } && test -s "$nlist"; then
10646 # Try sorting and uniquifying the output.
10647 if sort "$nlist" |
uniq > "$nlist"T
; then
10648 mv -f "$nlist"T
"$nlist"
10653 # Make sure that we snagged all the symbols we need.
10654 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
10655 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
10656 cat <<EOF > conftest.$ac_ext
10662 # Now generate the symbol file.
10663 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10665 cat <<EOF >> conftest.$ac_ext
10666 #if defined (__STDC__) && __STDC__
10667 # define lt_ptr_t void *
10669 # define lt_ptr_t char *
10673 /* The mapping between symbol names and symbols. */
10678 lt_preloaded_symbols[] =
10681 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
10682 cat <<\EOF
>> conftest.
$ac_ext
10690 # Now try linking the two files.
10691 mv conftest.
$ac_objext conftstm.
$ac_objext
10692 lt_save_LIBS
="$LIBS"
10693 lt_save_CFLAGS
="$CFLAGS"
10694 LIBS
="conftstm.$ac_objext"
10695 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10697 (eval $ac_link) 2>&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
10703 LIBS
="$lt_save_LIBS"
10704 CFLAGS
="$lt_save_CFLAGS"
10706 echo "cannot find nm_test_func in $nlist" >&5
10709 echo "cannot find nm_test_var in $nlist" >&5
10712 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10715 echo "$progname: failed program was:" >&5
10716 cat conftest.
$ac_ext >&5
10718 rm -f conftest
* conftst
*
10720 # Do not use the global_symbol_pipe unless it works.
10721 if test "$pipe_works" = yes; then
10724 lt_cv_sys_global_symbol_pipe
=
10730 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10731 lt_cv_sys_global_symbol_to_cdecl
=
10733 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10734 { echo "$as_me:$LINENO: result: failed" >&5
10735 echo "${ECHO_T}failed" >&6; }
10737 { echo "$as_me:$LINENO: result: ok" >&5
10738 echo "${ECHO_T}ok" >&6; }
10742 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10743 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10744 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10748 libltdl_cv_preloaded_symbols
=yes
10750 libltdl_cv_preloaded_symbols
=no
10754 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10755 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10756 if test x
"$libltdl_cv_preloaded_symbols" = xyes
; then
10758 cat >>confdefs.h
<<\_ACEOF
10759 #define HAVE_PRELOADED_SYMBOLS 1
10767 ac_cpp
='$CPP $CPPFLAGS'
10768 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10769 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10770 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10773 { echo "$as_me:$LINENO: checking for shl_load" >&5
10774 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10775 if test "${ac_cv_func_shl_load+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 cat >conftest.
$ac_ext <<_ACEOF
10781 cat confdefs.h
>>conftest.
$ac_ext
10782 cat >>conftest.
$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10784 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10786 #define shl_load innocuous_shl_load
10788 /* System header to define __stub macros and hopefully few prototypes,
10789 which can conflict with char shl_load (); below.
10790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10791 <limits.h> exists even on freestanding compilers. */
10794 # include <limits.h>
10796 # include <assert.h>
10801 /* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
10808 /* The GNU C library defines this for functions which it implements
10809 to always fail with ENOSYS. Some functions are actually named
10810 something starting with __ and the normal name is an alias. */
10811 #if defined __stub_shl_load || defined __stub___shl_load
10818 return shl_load ();
10823 rm -f conftest.
$ac_objext conftest
$ac_exeext
10824 if { (ac_try
="$ac_link"
10825 case "(($ac_try" in
10826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_link") 2>conftest.er1
10832 grep -v '^ *+' conftest.er1 >conftest.err
10834 cat conftest.err >&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
10837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838 { (case "(($ac_try" in
10839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10840 *) ac_try_echo
=$ac_try;;
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_try") 2>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try
='test -s conftest$ac_exeext'
10848 { (case "(($ac_try" in
10849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_try") 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 ac_cv_func_shl_load=yes
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 ac_cv_func_shl_load=no
10865 rm -f core conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10868 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10869 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10870 if test $ac_cv_func_shl_load = yes; then
10872 cat >>confdefs.h <<\_ACEOF
10873 #define HAVE_SHL_LOAD 1
10877 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10878 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10879 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 ac_check_lib_save_LIBS=$LIBS
10884 cat >conftest.$ac_ext <<_ACEOF
10887 cat confdefs.h >>conftest.$ac_ext
10888 cat >>conftest.$ac_ext <<_ACEOF
10889 /* end confdefs.h. */
10891 /* Override any GCC internal prototype to avoid an error.
10892 Use char because int might match the return type of a GCC
10893 builtin and then its argument prototype would still apply. */
10901 return shl_load ();
10906 rm -f conftest.$ac_objext conftest$ac_exeext
10907 if { (ac_try="$ac_link"
10908 case "(($ac_try" in
10909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10910 *) ac_try_echo
=$ac_try;;
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_link") 2>conftest.er1
10915 grep -v '^ *+' conftest.er1
>conftest.err
10917 cat conftest.err
>&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
10920 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10921 { (case "(($ac_try" in
10922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_try") 2>&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; } &&
10930 { ac_try='test -s conftest$ac_exeext'
10931 { (case "(($ac_try" in
10932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10933 *) ac_try_echo
=$ac_try;;
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_try") 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 ac_cv_lib_dld_shl_load
=yes
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.
$ac_ext >&5
10945 ac_cv_lib_dld_shl_load
=no
10948 rm -f core conftest.err conftest.
$ac_objext \
10949 conftest
$ac_exeext conftest.
$ac_ext
10950 LIBS
=$ac_check_lib_save_LIBS
10952 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10953 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10954 if test $ac_cv_lib_dld_shl_load = yes; then
10956 cat >>confdefs.h
<<\_ACEOF
10957 #define HAVE_SHL_LOAD 1
10960 LIBADD_DL
="$LIBADD_DL -ldld"
10962 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10963 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10964 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 ac_check_lib_save_LIBS
=$LIBS
10969 cat >conftest.
$ac_ext <<_ACEOF
10972 cat confdefs.h
>>conftest.
$ac_ext
10973 cat >>conftest.
$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10976 /* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
10991 rm -f conftest.
$ac_objext conftest
$ac_exeext
10992 if { (ac_try
="$ac_link"
10993 case "(($ac_try" in
10994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_link") 2>conftest.er1
11000 grep -v '^ *+' conftest.er1 >conftest.err
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11006 { (case "(($ac_try" in
11007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11008 *) ac_try_echo
=$ac_try;;
11010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011 (eval "$ac_try") 2>&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; } &&
11015 { ac_try
='test -s conftest$ac_exeext'
11016 { (case "(($ac_try" in
11017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_try") 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 ac_cv_lib_dl_dlopen=yes
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 ac_cv_lib_dl_dlopen=no
11033 rm -f core conftest.err conftest.$ac_objext \
11034 conftest$ac_exeext conftest.$ac_ext
11035 LIBS=$ac_check_lib_save_LIBS
11037 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11038 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11039 if test $ac_cv_lib_dl_dlopen = yes; then
11041 cat >>confdefs.h <<\_ACEOF
11042 #define HAVE_LIBDL 1
11045 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11047 cat >conftest.$ac_ext <<_ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11054 # include <dlfcn.h>
11065 rm -f conftest.$ac_objext conftest$ac_exeext
11066 if { (ac_try="$ac_link"
11067 case "(($ac_try" in
11068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11069 *) ac_try_echo
=$ac_try;;
11071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11072 (eval "$ac_link") 2>conftest.er1
11074 grep -v '^ *+' conftest.er1
>conftest.err
11076 cat conftest.err
>&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } &&
11079 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11080 { (case "(($ac_try" in
11081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085 (eval "$ac_try") 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; } &&
11089 { ac_try='test -s conftest$ac_exeext'
11090 { (case "(($ac_try" in
11091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11092 *) ac_try_echo
=$ac_try;;
11094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095 (eval "$ac_try") 2>&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }; then
11100 cat >>confdefs.h
<<\_ACEOF
11101 #define HAVE_LIBDL 1
11103 libltdl_cv_func_dlopen
="yes"
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.
$ac_ext >&5
11108 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11109 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11110 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11113 ac_check_lib_save_LIBS
=$LIBS
11114 LIBS
="-lsvld $LIBS"
11115 cat >conftest.
$ac_ext <<_ACEOF
11118 cat confdefs.h
>>conftest.
$ac_ext
11119 cat >>conftest.
$ac_ext <<_ACEOF
11120 /* end confdefs.h. */
11122 /* Override any GCC internal prototype to avoid an error.
11123 Use char because int might match the return type of a GCC
11124 builtin and then its argument prototype would still apply. */
11137 rm -f conftest.
$ac_objext conftest
$ac_exeext
11138 if { (ac_try
="$ac_link"
11139 case "(($ac_try" in
11140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11141 *) ac_try_echo=$ac_try;;
11143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144 (eval "$ac_link") 2>conftest.er1
11146 grep -v '^ *+' conftest.er1 >conftest.err
11148 cat conftest.err >&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); } &&
11151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11152 { (case "(($ac_try" in
11153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11154 *) ac_try_echo
=$ac_try;;
11156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11157 (eval "$ac_try") 2>&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; } &&
11161 { ac_try
='test -s conftest$ac_exeext'
11162 { (case "(($ac_try" in
11163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_try") 2>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 ac_cv_lib_svld_dlopen=yes
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11176 ac_cv_lib_svld_dlopen=no
11179 rm -f core conftest.err conftest.$ac_objext \
11180 conftest$ac_exeext conftest.$ac_ext
11181 LIBS=$ac_check_lib_save_LIBS
11183 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11184 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11185 if test $ac_cv_lib_svld_dlopen = yes; then
11187 cat >>confdefs.h <<\_ACEOF
11188 #define HAVE_LIBDL 1
11191 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11193 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11194 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 ac_check_lib_save_LIBS=$LIBS
11200 cat >conftest.$ac_ext <<_ACEOF
11203 cat confdefs.h >>conftest.$ac_ext
11204 cat >>conftest.$ac_ext <<_ACEOF
11205 /* end confdefs.h. */
11207 /* Override any GCC internal prototype to avoid an error.
11208 Use char because int might match the return type of a GCC
11209 builtin and then its argument prototype would still apply. */
11217 return dld_link ();
11222 rm -f conftest.$ac_objext conftest$ac_exeext
11223 if { (ac_try="$ac_link"
11224 case "(($ac_try" in
11225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11226 *) ac_try_echo
=$ac_try;;
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_link") 2>conftest.er1
11231 grep -v '^ *+' conftest.er1
>conftest.err
11233 cat conftest.err
>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11237 { (case "(($ac_try" in
11238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242 (eval "$ac_try") 2>&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; } &&
11246 { ac_try='test -s conftest$ac_exeext'
11247 { (case "(($ac_try" in
11248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11249 *) ac_try_echo
=$ac_try;;
11251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252 (eval "$ac_try") 2>&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
11256 ac_cv_lib_dld_dld_link
=yes
11258 echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.
$ac_ext >&5
11261 ac_cv_lib_dld_dld_link
=no
11264 rm -f core conftest.err conftest.
$ac_objext \
11265 conftest
$ac_exeext conftest.
$ac_ext
11266 LIBS
=$ac_check_lib_save_LIBS
11268 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11269 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11270 if test $ac_cv_lib_dld_dld_link = yes; then
11272 cat >>confdefs.h
<<\_ACEOF
11276 LIBADD_DL
="$LIBADD_DL -ldld"
11278 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11279 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11280 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 cat >conftest.
$ac_ext <<_ACEOF
11286 cat confdefs.h
>>conftest.
$ac_ext
11287 cat >>conftest.
$ac_ext <<_ACEOF
11288 /* end confdefs.h. */
11289 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11291 #define _dyld_func_lookup innocuous__dyld_func_lookup
11293 /* System header to define __stub macros and hopefully few prototypes,
11294 which can conflict with char _dyld_func_lookup (); below.
11295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11296 <limits.h> exists even on freestanding compilers. */
11299 # include <limits.h>
11301 # include <assert.h>
11304 #undef _dyld_func_lookup
11306 /* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11312 char _dyld_func_lookup ();
11313 /* The GNU C library defines this for functions which it implements
11314 to always fail with ENOSYS. Some functions are actually named
11315 something starting with __ and the normal name is an alias. */
11316 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11323 return _dyld_func_lookup ();
11328 rm -f conftest.
$ac_objext conftest
$ac_exeext
11329 if { (ac_try
="$ac_link"
11330 case "(($ac_try" in
11331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_link") 2>conftest.er1
11337 grep -v '^ *+' conftest.er1 >conftest.err
11339 cat conftest.err >&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
11342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11343 { (case "(($ac_try" in
11344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11345 *) ac_try_echo
=$ac_try;;
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348 (eval "$ac_try") 2>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; } &&
11352 { ac_try
='test -s conftest$ac_exeext'
11353 { (case "(($ac_try" in
11354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_try") 2>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; }; then
11362 ac_cv_func__dyld_func_lookup=yes
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11367 ac_cv_func__dyld_func_lookup=no
11370 rm -f core conftest.err conftest.$ac_objext \
11371 conftest$ac_exeext conftest.$ac_ext
11373 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11374 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11375 if test $ac_cv_func__dyld_func_lookup = yes; then
11377 cat >>confdefs.h <<\_ACEOF
11378 #define HAVE_DYLD 1
11392 rm -f core conftest.err conftest.$ac_objext \
11393 conftest$ac_exeext conftest.$ac_ext
11404 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11406 lt_save_LIBS="$LIBS"
11407 LIBS="$LIBS $LIBADD_DL"
11409 for ac_func in dlerror
11411 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11412 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 cat >conftest.$ac_ext <<_ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11425 #define $ac_func innocuous_$ac_func
11427 /* System header to define __stub macros and hopefully few prototypes,
11428 which can conflict with char $ac_func (); below.
11429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11430 <limits.h> exists even on freestanding compilers. */
11433 # include <limits.h>
11435 # include <assert.h>
11440 /* Override any GCC internal prototype to avoid an error.
11441 Use char because int might match the return type of a GCC
11442 builtin and then its argument prototype would still apply. */
11447 /* The GNU C library defines this for functions which it implements
11448 to always fail with ENOSYS. Some functions are actually named
11449 something starting with __ and the normal name is an alias. */
11450 #if defined __stub_$ac_func || defined __stub___$ac_func
11457 return $ac_func ();
11462 rm -f conftest.$ac_objext conftest$ac_exeext
11463 if { (ac_try="$ac_link"
11464 case "(($ac_try" in
11465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11466 *) ac_try_echo
=$ac_try;;
11468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11469 (eval "$ac_link") 2>conftest.er1
11471 grep -v '^ *+' conftest.er1
>conftest.err
11473 cat conftest.err
>&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } &&
11476 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11477 { (case "(($ac_try" in
11478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_try") 2>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; } &&
11486 { ac_try='test -s conftest$ac_exeext'
11487 { (case "(($ac_try" in
11488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11489 *) ac_try_echo
=$ac_try;;
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_try") 2>&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then
11496 eval "$as_ac_var=yes"
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.
$ac_ext >&5
11501 eval "$as_ac_var=no"
11504 rm -f core conftest.err conftest.
$ac_objext \
11505 conftest
$ac_exeext conftest.
$ac_ext
11507 ac_res
=`eval echo '${'$as_ac_var'}'`
11508 { echo "$as_me:$LINENO: result: $ac_res" >&5
11509 echo "${ECHO_T}$ac_res" >&6; }
11510 if test `eval echo '${'$as_ac_var'}'` = yes; then
11511 cat >>confdefs.h
<<_ACEOF
11512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11518 LIBS
="$lt_save_LIBS"
11521 ac_cpp
='$CPP $CPPFLAGS'
11522 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11523 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11524 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11528 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11529 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11530 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 ac_cv_sys_symbol_underscore
=no
11534 cat > conftest.
$ac_ext <<EOF
11535 void nm_test_func(){}
11536 int main(){nm_test_func;return 0;}
11538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11539 (eval $ac_compile) 2>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; then
11543 # Now try to grab the symbols.
11544 ac_nlist
=conftest.nm
11545 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11546 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } && test -s "$ac_nlist"; then
11550 # See whether the symbols have a leading underscore.
11551 if grep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
11552 ac_cv_sys_symbol_underscore
=yes
11554 if grep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
11557 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11561 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11564 echo "configure: failed program was:" >&5
11570 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11571 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11574 if test x
"$ac_cv_sys_symbol_underscore" = xyes
; then
11575 if test x
"$libltdl_cv_func_dlopen" = xyes ||
11576 test x
"$libltdl_cv_lib_dl_dlopen" = xyes
; then
11577 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11578 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11579 if test "${libltdl_cv_need_uscore+set}" = set; then
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
11582 libltdl_cv_need_uscore
=unknown
11584 LIBS
="$LIBS $LIBADD_DL"
11585 if test "$cross_compiling" = yes; then :
11586 libltdl_cv_need_uscore
=cross
11588 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11589 lt_status
=$lt_dlunknown
11590 cat > conftest.
$ac_ext <<EOF
11591 #line 11591 "configure"
11592 #include "confdefs.h"
11601 # define LT_DLGLOBAL RTLD_GLOBAL
11604 # define LT_DLGLOBAL DL_GLOBAL
11606 # define LT_DLGLOBAL 0
11610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11611 find out it does not work in some platform. */
11612 #ifndef LT_DLLAZY_OR_NOW
11614 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11617 # define LT_DLLAZY_OR_NOW DL_LAZY
11620 # define LT_DLLAZY_OR_NOW RTLD_NOW
11623 # define LT_DLLAZY_OR_NOW DL_NOW
11625 # define LT_DLLAZY_OR_NOW 0
11633 extern "C" void exit (int);
11636 void fnord() { int i=42;}
11639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11640 int status = $lt_dlunknown;
11644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11646 /* dlclose (self); */
11654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11655 (eval $ac_link) 2>&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11659 (.
/conftest
; exit; ) >&5 2>/dev
/null
11661 case x
$lt_status in
11662 x
$lt_dlno_uscore) libltdl_cv_need_uscore
=no
;;
11663 x
$lt_dlneed_uscore) libltdl_cv_need_uscore
=yes ;;
11664 x
$lt_dlunknown|x
*) ;;
11667 # compilation failed
11676 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11677 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11681 if test x
"$libltdl_cv_need_uscore" = xyes
; then
11683 cat >>confdefs.h
<<\_ACEOF
11684 #define NEED_USCORE 1
11690 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11691 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11692 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 # PORTME does your system automatically load deplibs for dlopen?
11696 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11697 # For now, we just catch OSes we know something about -- in the
11698 # future, we'll try test this programmatically.
11699 libltdl_cv_sys_dlopen_deplibs
=unknown
11701 aix3
*|aix4.1.
*|aix4.2.
*)
11702 # Unknown whether this is true for these versions of AIX, but
11703 # we want this `case' here to explicitly catch those versions.
11704 libltdl_cv_sys_dlopen_deplibs
=unknown
11707 libltdl_cv_sys_dlopen_deplibs
=yes
11710 # Assuming the user has installed a libdl from somewhere, this is true
11711 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11712 libltdl_cv_sys_dlopen_deplibs
=yes
11714 gnu
* | linux
* | kfreebsd
*-gnu | knetbsd
*-gnu)
11715 # GNU and its variants, using gnu ld.so (Glibc)
11716 libltdl_cv_sys_dlopen_deplibs
=yes
11719 libltdl_cv_sys_dlopen_deplibs
=yes
11722 libltdl_cv_sys_dlopen_deplibs
=yes
11724 irix
[12345]*|irix6.
[01]*)
11725 # Catch all versions of IRIX before 6.2, and indicate that we don't
11726 # know how it worked for any of those versions.
11727 libltdl_cv_sys_dlopen_deplibs
=unknown
11730 # The case above catches anything before 6.2, and it's known that
11731 # at 6.2 and later dlopen does load deplibs.
11732 libltdl_cv_sys_dlopen_deplibs
=yes
11735 libltdl_cv_sys_dlopen_deplibs
=yes
11738 libltdl_cv_sys_dlopen_deplibs
=yes
11741 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11742 # it did *not* use an RPATH in a shared library to find objects the
11743 # library depends on, so we explicitly say `no'.
11744 libltdl_cv_sys_dlopen_deplibs
=no
11746 osf5.0|osf5.0a|osf5.1
)
11747 # dlopen *does* load deplibs and with the right loader patch applied
11748 # it even uses RPATH in a shared library to search for shared objects
11749 # that the library depends on, but there's no easy way to know if that
11750 # patch is installed. Since this is the case, all we can really
11751 # say is unknown -- it depends on the patch being installed. If
11752 # it is, this changes to `yes'. Without it, it would be `no'.
11753 libltdl_cv_sys_dlopen_deplibs
=unknown
11756 # the two cases above should catch all versions of osf <= 5.1. Read
11757 # the comments above for what we know about them.
11758 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11759 # is used to find them so we can finally say `yes'.
11760 libltdl_cv_sys_dlopen_deplibs
=yes
11763 libltdl_cv_sys_dlopen_deplibs
=yes
11765 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11766 libltdl_cv_sys_dlopen_deplibs
=yes
11771 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11772 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11773 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11775 cat >>confdefs.h
<<\_ACEOF
11776 #define LTDL_DLOPEN_DEPLIBS 1
11782 for ac_header
in argz.h
11784 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11785 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11788 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 ac_res
=`eval echo '${'$as_ac_Header'}'`
11792 { echo "$as_me:$LINENO: result: $ac_res" >&5
11793 echo "${ECHO_T}$ac_res" >&6; }
11795 # Is the header compilable?
11796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11798 cat >conftest.
$ac_ext <<_ACEOF
11801 cat confdefs.h
>>conftest.
$ac_ext
11802 cat >>conftest.
$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 $ac_includes_default
11805 #include <$ac_header>
11807 rm -f conftest.
$ac_objext
11808 if { (ac_try
="$ac_compile"
11809 case "(($ac_try" in
11810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_compile") 2>conftest.er1
11816 grep -v '^ *+' conftest.er1 >conftest.err
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11822 { (case "(($ac_try" in
11823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11824 *) ac_try_echo
=$ac_try;;
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_try") 2>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try
='test -s conftest.$ac_objext'
11832 { (case "(($ac_try" in
11833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837 (eval "$ac_try") 2>&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 ac_header_compiler=yes
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11846 ac_header_compiler=no
11849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11851 echo "${ECHO_T}$ac_header_compiler" >&6; }
11853 # Is the header present?
11854 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11856 cat >conftest.$ac_ext <<_ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11862 #include <$ac_header>
11864 if { (ac_try="$ac_cpp conftest.$ac_ext"
11865 case "(($ac_try" in
11866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11867 *) ac_try_echo
=$ac_try;;
11869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11872 grep -v '^ *+' conftest.er1
>conftest.err
11874 cat conftest.err
>&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } >/dev
/null
; then
11877 if test -s conftest.err
; then
11878 ac_cpp_err
=$ac_c_preproc_warn_flag
11879 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11886 if test -z "$ac_cpp_err"; then
11887 ac_header_preproc
=yes
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.
$ac_ext >&5
11892 ac_header_preproc
=no
11895 rm -f conftest.err conftest.
$ac_ext
11896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11897 echo "${ECHO_T}$ac_header_preproc" >&6; }
11899 # So? What about this header?
11900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11906 ac_header_preproc
=yes
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11922 ## ----------------------------------- ##
11923 ## Report this to llvmbugs@cs.uiuc.edu ##
11924 ## ----------------------------------- ##
11926 ) |
sed "s/^/$as_me: WARNING: /" >&2
11929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11931 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 eval "$as_ac_Header=\$ac_header_preproc"
11936 ac_res
=`eval echo '${'$as_ac_Header'}'`
11937 { echo "$as_me:$LINENO: result: $ac_res" >&5
11938 echo "${ECHO_T}$ac_res" >&6; }
11941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11942 cat >>confdefs.h
<<_ACEOF
11943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11951 { echo "$as_me:$LINENO: checking for error_t" >&5
11952 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11953 if test "${ac_cv_type_error_t+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 cat >conftest.
$ac_ext <<_ACEOF
11959 cat confdefs.h
>>conftest.
$ac_ext
11960 cat >>conftest.
$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11966 typedef error_t ac__type_new_;
11970 if ((ac__type_new_ *) 0)
11972 if (sizeof (ac__type_new_))
11978 rm -f conftest.
$ac_objext
11979 if { (ac_try
="$ac_compile"
11980 case "(($ac_try" in
11981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_compile") 2>conftest.er1
11987 grep -v '^ *+' conftest.er1 >conftest.err
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11993 { (case "(($ac_try" in
11994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11995 *) ac_try_echo
=$ac_try;;
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_try") 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; } &&
12002 { ac_try
='test -s conftest.$ac_objext'
12003 { (case "(($ac_try" in
12004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_try") 2>&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; }; then
12012 ac_cv_type_error_t=yes
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017 ac_cv_type_error_t=no
12020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12022 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12023 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12024 if test $ac_cv_type_error_t = yes; then
12026 cat >>confdefs.h <<_ACEOF
12027 #define HAVE_ERROR_T 1
12033 cat >>confdefs.h <<\_ACEOF
12034 #define error_t int
12045 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12047 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 cat >conftest.$ac_ext <<_ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12061 #define $ac_func innocuous_$ac_func
12063 /* System header to define __stub macros and hopefully few prototypes,
12064 which can conflict with char $ac_func (); below.
12065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066 <limits.h> exists even on freestanding compilers. */
12069 # include <limits.h>
12071 # include <assert.h>
12076 /* Override any GCC internal prototype to avoid an error.
12077 Use char because int might match the return type of a GCC
12078 builtin and then its argument prototype would still apply. */
12083 /* The GNU C library defines this for functions which it implements
12084 to always fail with ENOSYS. Some functions are actually named
12085 something starting with __ and the normal name is an alias. */
12086 #if defined __stub_$ac_func || defined __stub___$ac_func
12093 return $ac_func ();
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (ac_try="$ac_link"
12100 case "(($ac_try" in
12101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12102 *) ac_try_echo
=$ac_try;;
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_link") 2>conftest.er1
12107 grep -v '^ *+' conftest.er1
>conftest.err
12109 cat conftest.err
>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12113 { (case "(($ac_try" in
12114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_try") 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try='test -s conftest$ac_exeext'
12123 { (case "(($ac_try" in
12124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12125 *) ac_try_echo
=$ac_try;;
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_try") 2>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 eval "$as_ac_var=yes"
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.
$ac_ext >&5
12137 eval "$as_ac_var=no"
12140 rm -f core conftest.err conftest.
$ac_objext \
12141 conftest
$ac_exeext conftest.
$ac_ext
12143 ac_res
=`eval echo '${'$as_ac_var'}'`
12144 { echo "$as_me:$LINENO: result: $ac_res" >&5
12145 echo "${ECHO_T}$ac_res" >&6; }
12146 if test `eval echo '${'$as_ac_var'}'` = yes; then
12147 cat >>confdefs.h
<<_ACEOF
12148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12181 for ac_header
in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12184 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12185 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12188 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 ac_res
=`eval echo '${'$as_ac_Header'}'`
12192 { echo "$as_me:$LINENO: result: $ac_res" >&5
12193 echo "${ECHO_T}$ac_res" >&6; }
12195 # Is the header compilable?
12196 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12198 cat >conftest.
$ac_ext <<_ACEOF
12201 cat confdefs.h
>>conftest.
$ac_ext
12202 cat >>conftest.
$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 $ac_includes_default
12205 #include <$ac_header>
12207 rm -f conftest.
$ac_objext
12208 if { (ac_try
="$ac_compile"
12209 case "(($ac_try" in
12210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_compile") 2>conftest.er1
12216 grep -v '^ *+' conftest.er1 >conftest.err
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } &&
12221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12222 { (case "(($ac_try" in
12223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12224 *) ac_try_echo
=$ac_try;;
12226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227 (eval "$ac_try") 2>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; } &&
12231 { ac_try
='test -s conftest.$ac_objext'
12232 { (case "(($ac_try" in
12233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12237 (eval "$ac_try") 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 ac_header_compiler=yes
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_header_compiler=no
12249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12251 echo "${ECHO_T}$ac_header_compiler" >&6; }
12253 # Is the header present?
12254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12256 cat >conftest.$ac_ext <<_ACEOF
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h. */
12262 #include <$ac_header>
12264 if { (ac_try="$ac_cpp conftest.$ac_ext"
12265 case "(($ac_try" in
12266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12267 *) ac_try_echo
=$ac_try;;
12269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12272 grep -v '^ *+' conftest.er1
>conftest.err
12274 cat conftest.err
>&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } >/dev
/null
; then
12277 if test -s conftest.err
; then
12278 ac_cpp_err
=$ac_c_preproc_warn_flag
12279 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12286 if test -z "$ac_cpp_err"; then
12287 ac_header_preproc
=yes
12289 echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.
$ac_ext >&5
12292 ac_header_preproc
=no
12295 rm -f conftest.err conftest.
$ac_ext
12296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12297 echo "${ECHO_T}$ac_header_preproc" >&6; }
12299 # So? What about this header?
12300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12306 ac_header_preproc
=yes
12309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12316 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12322 ## ----------------------------------- ##
12323 ## Report this to llvmbugs@cs.uiuc.edu ##
12324 ## ----------------------------------- ##
12326 ) |
sed "s/^/$as_me: WARNING: /" >&2
12329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12331 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12334 eval "$as_ac_Header=\$ac_header_preproc"
12336 ac_res
=`eval echo '${'$as_ac_Header'}'`
12337 { echo "$as_me:$LINENO: result: $ac_res" >&5
12338 echo "${ECHO_T}$ac_res" >&6; }
12341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12342 cat >>confdefs.h
<<_ACEOF
12343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12354 for ac_header
in dl.h sys
/dl.h dld.h mach-o
/dyld.h
12356 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12357 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12360 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 ac_res
=`eval echo '${'$as_ac_Header'}'`
12364 { echo "$as_me:$LINENO: result: $ac_res" >&5
12365 echo "${ECHO_T}$ac_res" >&6; }
12367 # Is the header compilable?
12368 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12370 cat >conftest.
$ac_ext <<_ACEOF
12373 cat confdefs.h
>>conftest.
$ac_ext
12374 cat >>conftest.
$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12376 $ac_includes_default
12377 #include <$ac_header>
12379 rm -f conftest.
$ac_objext
12380 if { (ac_try
="$ac_compile"
12381 case "(($ac_try" in
12382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386 (eval "$ac_compile") 2>conftest.er1
12388 grep -v '^ *+' conftest.er1 >conftest.err
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12394 { (case "(($ac_try" in
12395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12396 *) ac_try_echo
=$ac_try;;
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_try") 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try
='test -s conftest.$ac_objext'
12404 { (case "(($ac_try" in
12405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_try") 2>&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413 ac_header_compiler=yes
12415 echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12418 ac_header_compiler=no
12421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12423 echo "${ECHO_T}$ac_header_compiler" >&6; }
12425 # Is the header present?
12426 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12428 cat >conftest.$ac_ext <<_ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12434 #include <$ac_header>
12436 if { (ac_try="$ac_cpp conftest.$ac_ext"
12437 case "(($ac_try" in
12438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12439 *) ac_try_echo
=$ac_try;;
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12444 grep -v '^ *+' conftest.er1
>conftest.err
12446 cat conftest.err
>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } >/dev
/null
; then
12449 if test -s conftest.err
; then
12450 ac_cpp_err
=$ac_c_preproc_warn_flag
12451 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12458 if test -z "$ac_cpp_err"; then
12459 ac_header_preproc
=yes
12461 echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.
$ac_ext >&5
12464 ac_header_preproc
=no
12467 rm -f conftest.err conftest.
$ac_ext
12468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12469 echo "${ECHO_T}$ac_header_preproc" >&6; }
12471 # So? What about this header?
12472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12478 ac_header_preproc
=yes
12481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12494 ## ----------------------------------- ##
12495 ## Report this to llvmbugs@cs.uiuc.edu ##
12496 ## ----------------------------------- ##
12498 ) |
sed "s/^/$as_me: WARNING: /" >&2
12501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12503 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 eval "$as_ac_Header=\$ac_header_preproc"
12508 ac_res
=`eval echo '${'$as_ac_Header'}'`
12509 { echo "$as_me:$LINENO: result: $ac_res" >&5
12510 echo "${ECHO_T}$ac_res" >&6; }
12513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12514 cat >>confdefs.h
<<_ACEOF
12515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12524 for ac_header
in string.h
strings.h
12526 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12527 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12530 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 ac_res
=`eval echo '${'$as_ac_Header'}'`
12534 { echo "$as_me:$LINENO: result: $ac_res" >&5
12535 echo "${ECHO_T}$ac_res" >&6; }
12537 # Is the header compilable?
12538 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12540 cat >conftest.
$ac_ext <<_ACEOF
12543 cat confdefs.h
>>conftest.
$ac_ext
12544 cat >>conftest.
$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12546 $ac_includes_default
12547 #include <$ac_header>
12549 rm -f conftest.
$ac_objext
12550 if { (ac_try
="$ac_compile"
12551 case "(($ac_try" in
12552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_compile") 2>conftest.er1
12558 grep -v '^ *+' conftest.er1 >conftest.err
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12564 { (case "(($ac_try" in
12565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12566 *) ac_try_echo
=$ac_try;;
12568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569 (eval "$ac_try") 2>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } &&
12573 { ac_try
='test -s conftest.$ac_objext'
12574 { (case "(($ac_try" in
12575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579 (eval "$ac_try") 2>&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 ac_header_compiler=yes
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12588 ac_header_compiler=no
12591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12593 echo "${ECHO_T}$ac_header_compiler" >&6; }
12595 # Is the header present?
12596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12598 cat >conftest.$ac_ext <<_ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 #include <$ac_header>
12606 if { (ac_try="$ac_cpp conftest.$ac_ext"
12607 case "(($ac_try" in
12608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12609 *) ac_try_echo
=$ac_try;;
12611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12614 grep -v '^ *+' conftest.er1
>conftest.err
12616 cat conftest.err
>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } >/dev
/null
; then
12619 if test -s conftest.err
; then
12620 ac_cpp_err
=$ac_c_preproc_warn_flag
12621 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12628 if test -z "$ac_cpp_err"; then
12629 ac_header_preproc
=yes
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.
$ac_ext >&5
12634 ac_header_preproc
=no
12637 rm -f conftest.err conftest.
$ac_ext
12638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12639 echo "${ECHO_T}$ac_header_preproc" >&6; }
12641 # So? What about this header?
12642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12648 ac_header_preproc
=yes
12651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12664 ## ----------------------------------- ##
12665 ## Report this to llvmbugs@cs.uiuc.edu ##
12666 ## ----------------------------------- ##
12668 ) |
sed "s/^/$as_me: WARNING: /" >&2
12671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12673 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 eval "$as_ac_Header=\$ac_header_preproc"
12678 ac_res
=`eval echo '${'$as_ac_Header'}'`
12679 { echo "$as_me:$LINENO: result: $ac_res" >&5
12680 echo "${ECHO_T}$ac_res" >&6; }
12683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12684 cat >>confdefs.h
<<_ACEOF
12685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12695 for ac_func
in strchr index
12697 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12700 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 cat >conftest.
$ac_ext <<_ACEOF
12706 cat confdefs.h
>>conftest.
$ac_ext
12707 cat >>conftest.
$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12711 #define $ac_func innocuous_$ac_func
12713 /* System header to define __stub macros and hopefully few prototypes,
12714 which can conflict with char $ac_func (); below.
12715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12716 <limits.h> exists even on freestanding compilers. */
12719 # include <limits.h>
12721 # include <assert.h>
12726 /* Override any GCC internal prototype to avoid an error.
12727 Use char because int might match the return type of a GCC
12728 builtin and then its argument prototype would still apply. */
12733 /* The GNU C library defines this for functions which it implements
12734 to always fail with ENOSYS. Some functions are actually named
12735 something starting with __ and the normal name is an alias. */
12736 #if defined __stub_$ac_func || defined __stub___$ac_func
12743 return $ac_func ();
12748 rm -f conftest.
$ac_objext conftest
$ac_exeext
12749 if { (ac_try
="$ac_link"
12750 case "(($ac_try" in
12751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_link") 2>conftest.er1
12757 grep -v '^ *+' conftest.er1 >conftest.err
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } &&
12762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12763 { (case "(($ac_try" in
12764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12765 *) ac_try_echo
=$ac_try;;
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_try") 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; } &&
12772 { ac_try
='test -s conftest$ac_exeext'
12773 { (case "(($ac_try" in
12774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_try") 2>&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; }; then
12782 eval "$as_ac_var=yes"
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12787 eval "$as_ac_var=no"
12790 rm -f core conftest.err conftest.$ac_objext \
12791 conftest$ac_exeext conftest.$ac_ext
12793 ac_res=`eval echo '${'$as_ac_var'}'`
12794 { echo "$as_me:$LINENO: result: $ac_res" >&5
12795 echo "${ECHO_T}$ac_res" >&6; }
12796 if test `eval echo '${'$as_ac_var'}'` = yes; then
12797 cat >>confdefs.h <<_ACEOF
12798 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12806 for ac_func in strrchr rindex
12808 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 cat >conftest.$ac_ext <<_ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12822 #define $ac_func innocuous_$ac_func
12824 /* System header to define __stub macros and hopefully few prototypes,
12825 which can conflict with char $ac_func (); below.
12826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12827 <limits.h> exists even on freestanding compilers. */
12830 # include <limits.h>
12832 # include <assert.h>
12837 /* Override any GCC internal prototype to avoid an error.
12838 Use char because int might match the return type of a GCC
12839 builtin and then its argument prototype would still apply. */
12844 /* The GNU C library defines this for functions which it implements
12845 to always fail with ENOSYS. Some functions are actually named
12846 something starting with __ and the normal name is an alias. */
12847 #if defined __stub_$ac_func || defined __stub___$ac_func
12854 return $ac_func ();
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (ac_try="$ac_link"
12861 case "(($ac_try" in
12862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12863 *) ac_try_echo
=$ac_try;;
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_link") 2>conftest.er1
12868 grep -v '^ *+' conftest.er1
>conftest.err
12870 cat conftest.err
>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12874 { (case "(($ac_try" in
12875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_try") 2>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; } &&
12883 { ac_try='test -s conftest$ac_exeext'
12884 { (case "(($ac_try" in
12885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12886 *) ac_try_echo
=$ac_try;;
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_try") 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 eval "$as_ac_var=yes"
12895 echo "$as_me: failed program was:" >&5
12896 sed 's/^/| /' conftest.
$ac_ext >&5
12898 eval "$as_ac_var=no"
12901 rm -f core conftest.err conftest.
$ac_objext \
12902 conftest
$ac_exeext conftest.
$ac_ext
12904 ac_res
=`eval echo '${'$as_ac_var'}'`
12905 { echo "$as_me:$LINENO: result: $ac_res" >&5
12906 echo "${ECHO_T}$ac_res" >&6; }
12907 if test `eval echo '${'$as_ac_var'}'` = yes; then
12908 cat >>confdefs.h
<<_ACEOF
12909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12917 for ac_func
in memcpy bcopy
12919 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12922 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 cat >conftest.
$ac_ext <<_ACEOF
12928 cat confdefs.h
>>conftest.
$ac_ext
12929 cat >>conftest.
$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12933 #define $ac_func innocuous_$ac_func
12935 /* System header to define __stub macros and hopefully few prototypes,
12936 which can conflict with char $ac_func (); below.
12937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12938 <limits.h> exists even on freestanding compilers. */
12941 # include <limits.h>
12943 # include <assert.h>
12948 /* Override any GCC internal prototype to avoid an error.
12949 Use char because int might match the return type of a GCC
12950 builtin and then its argument prototype would still apply. */
12955 /* The GNU C library defines this for functions which it implements
12956 to always fail with ENOSYS. Some functions are actually named
12957 something starting with __ and the normal name is an alias. */
12958 #if defined __stub_$ac_func || defined __stub___$ac_func
12965 return $ac_func ();
12970 rm -f conftest.
$ac_objext conftest
$ac_exeext
12971 if { (ac_try
="$ac_link"
12972 case "(($ac_try" in
12973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_link") 2>conftest.er1
12979 grep -v '^ *+' conftest.er1 >conftest.err
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
12984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12985 { (case "(($ac_try" in
12986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12987 *) ac_try_echo
=$ac_try;;
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_try") 2>&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; } &&
12994 { ac_try
='test -s conftest$ac_exeext'
12995 { (case "(($ac_try" in
12996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000 (eval "$ac_try") 2>&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 eval "$as_ac_var=yes"
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13009 eval "$as_ac_var=no"
13012 rm -f core conftest.err conftest.$ac_objext \
13013 conftest$ac_exeext conftest.$ac_ext
13015 ac_res=`eval echo '${'$as_ac_var'}'`
13016 { echo "$as_me:$LINENO: result: $ac_res" >&5
13017 echo "${ECHO_T}$ac_res" >&6; }
13018 if test `eval echo '${'$as_ac_var'}'` = yes; then
13019 cat >>confdefs.h <<_ACEOF
13020 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13028 for ac_func in memmove strcmp
13030 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13036 cat >conftest.$ac_ext <<_ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13044 #define $ac_func innocuous_$ac_func
13046 /* System header to define __stub macros and hopefully few prototypes,
13047 which can conflict with char $ac_func (); below.
13048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13049 <limits.h> exists even on freestanding compilers. */
13052 # include <limits.h>
13054 # include <assert.h>
13059 /* Override any GCC internal prototype to avoid an error.
13060 Use char because int might match the return type of a GCC
13061 builtin and then its argument prototype would still apply. */
13066 /* The GNU C library defines this for functions which it implements
13067 to always fail with ENOSYS. Some functions are actually named
13068 something starting with __ and the normal name is an alias. */
13069 #if defined __stub_$ac_func || defined __stub___$ac_func
13076 return $ac_func ();
13081 rm -f conftest.$ac_objext conftest$ac_exeext
13082 if { (ac_try="$ac_link"
13083 case "(($ac_try" in
13084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13085 *) ac_try_echo
=$ac_try;;
13087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088 (eval "$ac_link") 2>conftest.er1
13090 grep -v '^ *+' conftest.er1
>conftest.err
13092 cat conftest.err
>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } &&
13095 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13096 { (case "(($ac_try" in
13097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101 (eval "$ac_try") 2>&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; } &&
13105 { ac_try='test -s conftest$ac_exeext'
13106 { (case "(($ac_try" in
13107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13108 *) ac_try_echo
=$ac_try;;
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_try") 2>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 eval "$as_ac_var=yes"
13117 echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.
$ac_ext >&5
13120 eval "$as_ac_var=no"
13123 rm -f core conftest.err conftest.
$ac_objext \
13124 conftest
$ac_exeext conftest.
$ac_ext
13126 ac_res
=`eval echo '${'$as_ac_var'}'`
13127 { echo "$as_me:$LINENO: result: $ac_res" >&5
13128 echo "${ECHO_T}$ac_res" >&6; }
13129 if test `eval echo '${'$as_ac_var'}'` = yes; then
13130 cat >>confdefs.h
<<_ACEOF
13131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13140 for ac_func
in closedir opendir readdir
13142 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13145 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13148 cat >conftest.
$ac_ext <<_ACEOF
13151 cat confdefs.h
>>conftest.
$ac_ext
13152 cat >>conftest.
$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13156 #define $ac_func innocuous_$ac_func
13158 /* System header to define __stub macros and hopefully few prototypes,
13159 which can conflict with char $ac_func (); below.
13160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13161 <limits.h> exists even on freestanding compilers. */
13164 # include <limits.h>
13166 # include <assert.h>
13171 /* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13178 /* The GNU C library defines this for functions which it implements
13179 to always fail with ENOSYS. Some functions are actually named
13180 something starting with __ and the normal name is an alias. */
13181 #if defined __stub_$ac_func || defined __stub___$ac_func
13188 return $ac_func ();
13193 rm -f conftest.
$ac_objext conftest
$ac_exeext
13194 if { (ac_try
="$ac_link"
13195 case "(($ac_try" in
13196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_link") 2>conftest.er1
13202 grep -v '^ *+' conftest.er1 >conftest.err
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13208 { (case "(($ac_try" in
13209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13210 *) ac_try_echo
=$ac_try;;
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_try") 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; } &&
13217 { ac_try
='test -s conftest$ac_exeext'
13218 { (case "(($ac_try" in
13219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_try") 2>&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 eval "$as_ac_var=yes"
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13232 eval "$as_ac_var=no"
13235 rm -f core conftest.err conftest.$ac_objext \
13236 conftest$ac_exeext conftest.$ac_ext
13238 ac_res=`eval echo '${'$as_ac_var'}'`
13239 { echo "$as_me:$LINENO: result: $ac_res" >&5
13240 echo "${ECHO_T}$ac_res" >&6; }
13241 if test `eval echo '${'$as_ac_var'}'` = yes; then
13242 cat >>confdefs.h <<_ACEOF
13243 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13251 if test "$WITH_LLVMGCCDIR" = "default" ; then
13252 LLVMGCC="llvm-gcc${EXEEXT}"
13253 LLVMGXX="llvm-g++${EXEEXT}"
13254 LLVMGCCCOMMAND="$LLVMGCC"
13255 LLVMGXXCOMMAND="$LLVMGXX"
13256 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13258 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13260 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13261 set dummy $LLVMGCC; ac_word=$2
13262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13264 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13265 echo $ECHO_N "(cached) $ECHO_C" >&6
13269 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
13278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13279 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13290 LLVMGCC=$ac_cv_path_LLVMGCC
13291 if test -n "$LLVMGCC"; then
13292 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13293 echo "${ECHO_T}$LLVMGCC" >&6; }
13295 { echo "$as_me:$LINENO: result: no" >&5
13296 echo "${ECHO_T}no" >&6; }
13300 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13301 set dummy $LLVMGXX; ac_word=$2
13302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13304 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13319 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13330 LLVMGXX=$ac_cv_path_LLVMGXX
13331 if test -n "$LLVMGXX"; then
13332 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13333 echo "${ECHO_T}$LLVMGXX" >&6; }
13335 { echo "$as_me:$LINENO: result: no" >&5
13336 echo "${ECHO_T}no" >&6; }
13341 if test -z "$LLVMGCC"; then
13342 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13343 LLVMGCCCOMMAND="$LLVMGCC"
13345 if test -z "$LLVMGXX"; then
13346 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13347 LLVMGXXCOMMAND="$LLVMGXX"
13354 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13356 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13361 # Check whether --with-llvmcc was given.
13362 if test "${with_llvmcc+set}" = set; then
13363 withval=$with_llvmcc;
13368 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13369 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13370 if test "$with_llvmcc" != "check"; then
13371 if (test "$with_llvmcc" != "llvm-gcc" &&
13372 test "$with_llvmcc" != "clang" &&
13373 test "$with_llvmcc" != "none"); then
13374 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13375 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13376 { (exit 1); exit 1; }; }
13378 WITH_LLVMCC="$with_llvmcc"
13379 elif test -n "$LLVMGCC"; then
13380 WITH_LLVMCC=llvm-gcc
13381 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13386 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13387 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13388 LLVMCC_OPTION=$WITH_LLVMCC
13391 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13392 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13405 if test "$GCC" != "yes" && test "$ICC" != "yes"
13407 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13408 echo "$as_me: error: gcc|icc required but not found" >&2;}
13409 { (exit 1); exit 1; }; }
13412 if test "$GXX" != "yes" && test "$IXX" != "yes"
13414 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13415 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13416 { (exit 1); exit 1; }; }
13419 if test "$GCC" = "yes"
13421 cat >conftest.$ac_ext <<_ACEOF
13422 #if !defined(__GNUC__) || __GNUC__ < 3
13423 #error Unsupported GCC version
13427 rm -f conftest.$ac_objext
13428 if { (ac_try="$ac_compile"
13429 case "(($ac_try" in
13430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13431 *) ac_try_echo
=$ac_try;;
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_compile") 2>conftest.er1
13436 grep -v '^ *+' conftest.er1
>conftest.err
13438 cat conftest.err
>&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
13441 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13442 { (case "(($ac_try" in
13443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13444 *) ac_try_echo=$ac_try;;
13446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13447 (eval "$ac_try") 2>&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; } &&
13451 { ac_try='test -s conftest.$ac_objext'
13452 { (case "(($ac_try" in
13453 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13454 *) ac_try_echo
=$ac_try;;
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_try") 2>&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; }; then
13463 echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.
$ac_ext >&5
13466 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13467 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13468 { (exit 1); exit 1; }; }
13471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13474 if test -z "$llvm_cv_gnu_make_command"
13476 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13477 echo "$as_me: error: GNU Make required but not found" >&2;}
13478 { (exit 1); exit 1; }; }
13481 { echo "$as_me:$LINENO: result: ok" >&5
13482 echo "${ECHO_T}ok" >&6; }
13484 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13485 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13486 NO_VARIADIC_MACROS
=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13488 NO_MISSING_FIELD_INITIALIZERS
=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13490 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13491 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13495 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13496 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13497 if test "${ac_cv_lib_m_sin+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 ac_check_lib_save_LIBS
=$LIBS
13502 cat >conftest.
$ac_ext <<_ACEOF
13505 cat confdefs.h
>>conftest.
$ac_ext
13506 cat >>conftest.
$ac_ext <<_ACEOF
13507 /* end confdefs.h. */
13509 /* Override any GCC internal prototype to avoid an error.
13510 Use char because int might match the return type of a GCC
13511 builtin and then its argument prototype would still apply. */
13524 rm -f conftest.
$ac_objext conftest
$ac_exeext
13525 if { (ac_try
="$ac_link"
13526 case "(($ac_try" in
13527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13528 *) ac_try_echo=$ac_try;;
13530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531 (eval "$ac_link") 2>conftest.er1
13533 grep -v '^ *+' conftest.er1 >conftest.err
13535 cat conftest.err >&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); } &&
13538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13539 { (case "(($ac_try" in
13540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13541 *) ac_try_echo
=$ac_try;;
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_try") 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try
='test -s conftest$ac_exeext'
13549 { (case "(($ac_try" in
13550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13551 *) ac_try_echo=$ac_try;;
13553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13554 (eval "$ac_try") 2>&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }; then
13558 ac_cv_lib_m_sin=yes
13560 echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13566 rm -f core conftest.err conftest.$ac_objext \
13567 conftest$ac_exeext conftest.$ac_ext
13568 LIBS=$ac_check_lib_save_LIBS
13570 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13571 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13572 if test $ac_cv_lib_m_sin = yes; then
13573 cat >>confdefs.h <<_ACEOF
13574 #define HAVE_LIBM 1
13581 if test "$llvm_cv_os_type" = "MingW" ; then
13583 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13584 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13585 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 ac_check_lib_save_LIBS=$LIBS
13589 LIBS="-limagehlp $LIBS"
13590 cat >conftest.$ac_ext <<_ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13606 rm -f conftest.$ac_objext conftest$ac_exeext
13607 if { (ac_try="$ac_link"
13608 case "(($ac_try" in
13609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13610 *) ac_try_echo
=$ac_try;;
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_link") 2>conftest.er1
13615 grep -v '^ *+' conftest.er1
>conftest.err
13617 cat conftest.err
>&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13621 { (case "(($ac_try" in
13622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626 (eval "$ac_try") 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; } &&
13630 { ac_try='test -s conftest$ac_exeext'
13631 { (case "(($ac_try" in
13632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13633 *) ac_try_echo
=$ac_try;;
13635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636 (eval "$ac_try") 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 ac_cv_lib_imagehlp_main
=yes
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.
$ac_ext >&5
13645 ac_cv_lib_imagehlp_main
=no
13648 rm -f core conftest.err conftest.
$ac_objext \
13649 conftest
$ac_exeext conftest.
$ac_ext
13650 LIBS
=$ac_check_lib_save_LIBS
13652 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13653 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13654 if test $ac_cv_lib_imagehlp_main = yes; then
13655 cat >>confdefs.h
<<_ACEOF
13656 #define HAVE_LIBIMAGEHLP 1
13659 LIBS
="-limagehlp $LIBS"
13664 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13665 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13666 if test "${ac_cv_lib_psapi_main+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 ac_check_lib_save_LIBS
=$LIBS
13670 LIBS
="-lpsapi $LIBS"
13671 cat >conftest.
$ac_ext <<_ACEOF
13674 cat confdefs.h
>>conftest.
$ac_ext
13675 cat >>conftest.
$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13687 rm -f conftest.
$ac_objext conftest
$ac_exeext
13688 if { (ac_try
="$ac_link"
13689 case "(($ac_try" in
13690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_link") 2>conftest.er1
13696 grep -v '^ *+' conftest.er1 >conftest.err
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13702 { (case "(($ac_try" in
13703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13704 *) ac_try_echo
=$ac_try;;
13706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_try") 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try
='test -s conftest$ac_exeext'
13712 { (case "(($ac_try" in
13713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_try") 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 ac_cv_lib_psapi_main=yes
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13726 ac_cv_lib_psapi_main=no
13729 rm -f core conftest.err conftest.$ac_objext \
13730 conftest$ac_exeext conftest.$ac_ext
13731 LIBS=$ac_check_lib_save_LIBS
13733 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13734 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13735 if test $ac_cv_lib_psapi_main = yes; then
13736 cat >>confdefs.h <<_ACEOF
13737 #define HAVE_LIBPSAPI 1
13740 LIBS="-lpsapi $LIBS"
13746 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13747 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13748 if test "${ac_cv_search_dlopen+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 ac_func_search_save_LIBS=$LIBS
13752 cat >conftest.$ac_ext <<_ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13759 /* Override any GCC internal prototype to avoid an error.
13760 Use char because int might match the return type of a GCC
13761 builtin and then its argument prototype would still apply. */
13774 for ac_lib in '' dl; do
13775 if test -z "$ac_lib"; then
13776 ac_res="none required"
13779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13781 rm -f conftest.$ac_objext conftest$ac_exeext
13782 if { (ac_try="$ac_link"
13783 case "(($ac_try" in
13784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13785 *) ac_try_echo
=$ac_try;;
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_link") 2>conftest.er1
13790 grep -v '^ *+' conftest.er1
>conftest.err
13792 cat conftest.err
>&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); } &&
13795 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13796 { (case "(($ac_try" in
13797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_try") 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; } &&
13805 { ac_try='test -s conftest$ac_exeext'
13806 { (case "(($ac_try" in
13807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13808 *) ac_try_echo
=$ac_try;;
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_try") 2>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; }; then
13815 ac_cv_search_dlopen
=$ac_res
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.
$ac_ext >&5
13823 rm -f core conftest.err conftest.
$ac_objext \
13825 if test "${ac_cv_search_dlopen+set}" = set; then
13829 if test "${ac_cv_search_dlopen+set}" = set; then
13832 ac_cv_search_dlopen
=no
13834 rm conftest.
$ac_ext
13835 LIBS
=$ac_func_search_save_LIBS
13837 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13838 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13839 ac_res
=$ac_cv_search_dlopen
13840 if test "$ac_res" != no
; then
13841 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13843 cat >>confdefs.h
<<\_ACEOF
13844 #define HAVE_DLOPEN 1
13848 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13849 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13853 if test "$llvm_cv_enable_libffi" = "yes" ; then
13854 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13855 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13856 if test "${ac_cv_search_ffi_call+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 ac_func_search_save_LIBS
=$LIBS
13860 cat >conftest.
$ac_ext <<_ACEOF
13863 cat confdefs.h
>>conftest.
$ac_ext
13864 cat >>conftest.
$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13867 /* Override any GCC internal prototype to avoid an error.
13868 Use char because int might match the return type of a GCC
13869 builtin and then its argument prototype would still apply. */
13877 return ffi_call ();
13882 for ac_lib
in '' ffi
; do
13883 if test -z "$ac_lib"; then
13884 ac_res
="none required"
13887 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13889 rm -f conftest.
$ac_objext conftest
$ac_exeext
13890 if { (ac_try
="$ac_link"
13891 case "(($ac_try" in
13892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_link") 2>conftest.er1
13898 grep -v '^ *+' conftest.er1 >conftest.err
13900 cat conftest.err >&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } &&
13903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13904 { (case "(($ac_try" in
13905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13906 *) ac_try_echo
=$ac_try;;
13908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_try") 2>&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; } &&
13913 { ac_try
='test -s conftest$ac_exeext'
13914 { (case "(($ac_try" in
13915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13916 *) ac_try_echo=$ac_try;;
13918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13919 (eval "$ac_try") 2>&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; }; then
13923 ac_cv_search_ffi_call=$ac_res
13925 echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13931 rm -f core conftest.err conftest.$ac_objext \
13933 if test "${ac_cv_search_ffi_call+set}" = set; then
13937 if test "${ac_cv_search_ffi_call+set}" = set; then
13940 ac_cv_search_ffi_call=no
13942 rm conftest.$ac_ext
13943 LIBS=$ac_func_search_save_LIBS
13945 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13946 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13947 ac_res=$ac_cv_search_ffi_call
13948 if test "$ac_res" != no; then
13949 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13951 cat >>confdefs.h <<\_ACEOF
13952 #define HAVE_FFI_CALL 1
13956 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13957 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13958 { (exit 1); exit 1; }; }
13963 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13964 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13965 if test "${ac_cv_search_mallinfo+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 ac_func_search_save_LIBS=$LIBS
13969 cat >conftest.$ac_ext <<_ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h. */
13976 /* Override any GCC internal prototype to avoid an error.
13977 Use char because int might match the return type of a GCC
13978 builtin and then its argument prototype would still apply. */
13986 return mallinfo ();
13991 for ac_lib in '' malloc; do
13992 if test -z "$ac_lib"; then
13993 ac_res="none required"
13996 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13998 rm -f conftest.$ac_objext conftest$ac_exeext
13999 if { (ac_try="$ac_link"
14000 case "(($ac_try" in
14001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14002 *) ac_try_echo
=$ac_try;;
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005 (eval "$ac_link") 2>conftest.er1
14007 grep -v '^ *+' conftest.er1
>conftest.err
14009 cat conftest.err
>&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } &&
14012 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14013 { (case "(($ac_try" in
14014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14015 *) ac_try_echo=$ac_try;;
14017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018 (eval "$ac_try") 2>&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; } &&
14022 { ac_try='test -s conftest$ac_exeext'
14023 { (case "(($ac_try" in
14024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14025 *) ac_try_echo
=$ac_try;;
14027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_try") 2>&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; }; then
14032 ac_cv_search_mallinfo
=$ac_res
14034 echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.
$ac_ext >&5
14040 rm -f core conftest.err conftest.
$ac_objext \
14042 if test "${ac_cv_search_mallinfo+set}" = set; then
14046 if test "${ac_cv_search_mallinfo+set}" = set; then
14049 ac_cv_search_mallinfo
=no
14051 rm conftest.
$ac_ext
14052 LIBS
=$ac_func_search_save_LIBS
14054 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14055 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14056 ac_res
=$ac_cv_search_mallinfo
14057 if test "$ac_res" != no
; then
14058 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14060 cat >>confdefs.h
<<\_ACEOF
14061 #define HAVE_MALLINFO 1
14067 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14069 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14070 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14071 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 ac_check_lib_save_LIBS
=$LIBS
14075 LIBS
="-lpthread $LIBS"
14076 cat >conftest.
$ac_ext <<_ACEOF
14079 cat confdefs.h
>>conftest.
$ac_ext
14080 cat >>conftest.
$ac_ext <<_ACEOF
14081 /* end confdefs.h. */
14083 /* Override any GCC internal prototype to avoid an error.
14084 Use char because int might match the return type of a GCC
14085 builtin and then its argument prototype would still apply. */
14089 char pthread_mutex_init ();
14093 return pthread_mutex_init ();
14098 rm -f conftest.
$ac_objext conftest
$ac_exeext
14099 if { (ac_try
="$ac_link"
14100 case "(($ac_try" in
14101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14102 *) ac_try_echo=$ac_try;;
14104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14105 (eval "$ac_link") 2>conftest.er1
14107 grep -v '^ *+' conftest.er1 >conftest.err
14109 cat conftest.err >&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } &&
14112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14113 { (case "(($ac_try" in
14114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14115 *) ac_try_echo
=$ac_try;;
14117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118 (eval "$ac_try") 2>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; } &&
14122 { ac_try
='test -s conftest$ac_exeext'
14123 { (case "(($ac_try" in
14124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_try") 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
14132 ac_cv_lib_pthread_pthread_mutex_init=yes
14134 echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14137 ac_cv_lib_pthread_pthread_mutex_init=no
14140 rm -f core conftest.err conftest.$ac_objext \
14141 conftest$ac_exeext conftest.$ac_ext
14142 LIBS=$ac_check_lib_save_LIBS
14144 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14145 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14146 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14147 cat >>confdefs.h <<_ACEOF
14148 #define HAVE_LIBPTHREAD 1
14151 LIBS="-lpthread $LIBS"
14155 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14156 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14157 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 ac_func_search_save_LIBS=$LIBS
14161 cat >conftest.$ac_ext <<_ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14168 /* Override any GCC internal prototype to avoid an error.
14169 Use char because int might match the return type of a GCC
14170 builtin and then its argument prototype would still apply. */
14174 char pthread_mutex_lock ();
14178 return pthread_mutex_lock ();
14183 for ac_lib in '' pthread; do
14184 if test -z "$ac_lib"; then
14185 ac_res="none required"
14188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14190 rm -f conftest.$ac_objext conftest$ac_exeext
14191 if { (ac_try="$ac_link"
14192 case "(($ac_try" in
14193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14194 *) ac_try_echo
=$ac_try;;
14196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197 (eval "$ac_link") 2>conftest.er1
14199 grep -v '^ *+' conftest.er1
>conftest.err
14201 cat conftest.err
>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
14204 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14205 { (case "(($ac_try" in
14206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210 (eval "$ac_try") 2>&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; } &&
14214 { ac_try='test -s conftest$ac_exeext'
14215 { (case "(($ac_try" in
14216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14217 *) ac_try_echo
=$ac_try;;
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_try") 2>&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; }; then
14224 ac_cv_search_pthread_mutex_lock
=$ac_res
14226 echo "$as_me: failed program was:" >&5
14227 sed 's/^/| /' conftest.
$ac_ext >&5
14232 rm -f core conftest.err conftest.
$ac_objext \
14234 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14238 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14241 ac_cv_search_pthread_mutex_lock
=no
14243 rm conftest.
$ac_ext
14244 LIBS
=$ac_func_search_save_LIBS
14246 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14247 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14248 ac_res
=$ac_cv_search_pthread_mutex_lock
14249 if test "$ac_res" != no
; then
14250 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14252 cat >>confdefs.h
<<\_ACEOF
14253 #define HAVE_PTHREAD_MUTEX_LOCK 1
14258 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14259 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14260 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14263 ac_func_search_save_LIBS
=$LIBS
14264 cat >conftest.
$ac_ext <<_ACEOF
14267 cat confdefs.h
>>conftest.
$ac_ext
14268 cat >>conftest.
$ac_ext <<_ACEOF
14269 /* end confdefs.h. */
14271 /* Override any GCC internal prototype to avoid an error.
14272 Use char because int might match the return type of a GCC
14273 builtin and then its argument prototype would still apply. */
14277 char pthread_rwlock_init ();
14281 return pthread_rwlock_init ();
14286 for ac_lib
in '' pthread
; do
14287 if test -z "$ac_lib"; then
14288 ac_res
="none required"
14291 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14293 rm -f conftest.
$ac_objext conftest
$ac_exeext
14294 if { (ac_try
="$ac_link"
14295 case "(($ac_try" in
14296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_link") 2>conftest.er1
14302 grep -v '^ *+' conftest.er1 >conftest.err
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14308 { (case "(($ac_try" in
14309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14310 *) ac_try_echo
=$ac_try;;
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_try") 2>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try
='test -s conftest$ac_exeext'
14318 { (case "(($ac_try" in
14319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_try") 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 ac_cv_search_pthread_rwlock_init=$ac_res
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14335 rm -f core conftest.err conftest.$ac_objext \
14337 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14341 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14344 ac_cv_search_pthread_rwlock_init=no
14346 rm conftest.$ac_ext
14347 LIBS=$ac_func_search_save_LIBS
14349 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14350 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14351 ac_res=$ac_cv_search_pthread_rwlock_init
14352 if test "$ac_res" != no; then
14353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14355 cat >>confdefs.h <<\_ACEOF
14356 #define HAVE_PTHREAD_RWLOCK_INIT 1
14361 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14362 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14363 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 ac_func_search_save_LIBS=$LIBS
14367 cat >conftest.$ac_ext <<_ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14374 /* Override any GCC internal prototype to avoid an error.
14375 Use char because int might match the return type of a GCC
14376 builtin and then its argument prototype would still apply. */
14380 char pthread_getspecific ();
14384 return pthread_getspecific ();
14389 for ac_lib in '' pthread; do
14390 if test -z "$ac_lib"; then
14391 ac_res="none required"
14394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14396 rm -f conftest.$ac_objext conftest$ac_exeext
14397 if { (ac_try="$ac_link"
14398 case "(($ac_try" in
14399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14400 *) ac_try_echo
=$ac_try;;
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_link") 2>conftest.er1
14405 grep -v '^ *+' conftest.er1
>conftest.err
14407 cat conftest.err
>&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } &&
14410 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14411 { (case "(($ac_try" in
14412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14413 *) ac_try_echo=$ac_try;;
14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416 (eval "$ac_try") 2>&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; } &&
14420 { ac_try='test -s conftest$ac_exeext'
14421 { (case "(($ac_try" in
14422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14423 *) ac_try_echo
=$ac_try;;
14425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426 (eval "$ac_try") 2>&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14430 ac_cv_search_pthread_getspecific
=$ac_res
14432 echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.
$ac_ext >&5
14438 rm -f core conftest.err conftest.
$ac_objext \
14440 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14444 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14447 ac_cv_search_pthread_getspecific
=no
14449 rm conftest.
$ac_ext
14450 LIBS
=$ac_func_search_save_LIBS
14452 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14453 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14454 ac_res
=$ac_cv_search_pthread_getspecific
14455 if test "$ac_res" != no
; then
14456 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14458 cat >>confdefs.h
<<\_ACEOF
14459 #define HAVE_PTHREAD_GETSPECIFIC 1
14467 # Check whether --with-udis86 was given.
14468 if test "${with_udis86+set}" = set; then
14469 withval
=$with_udis86;
14474 *) LDFLAGS
="$LDFLAGS -L${withval}" ;;
14477 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14478 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14479 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14482 ac_check_lib_save_LIBS
=$LIBS
14483 LIBS
="-ludis86 $LIBS"
14484 cat >conftest.
$ac_ext <<_ACEOF
14487 cat confdefs.h
>>conftest.
$ac_ext
14488 cat >>conftest.
$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14491 /* Override any GCC internal prototype to avoid an error.
14492 Use char because int might match the return type of a GCC
14493 builtin and then its argument prototype would still apply. */
14506 rm -f conftest.
$ac_objext conftest
$ac_exeext
14507 if { (ac_try
="$ac_link"
14508 case "(($ac_try" in
14509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14510 *) ac_try_echo=$ac_try;;
14512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14513 (eval "$ac_link") 2>conftest.er1
14515 grep -v '^ *+' conftest.er1 >conftest.err
14517 cat conftest.err >&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14521 { (case "(($ac_try" in
14522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14523 *) ac_try_echo
=$ac_try;;
14525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_try") 2>&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; } &&
14530 { ac_try
='test -s conftest$ac_exeext'
14531 { (case "(($ac_try" in
14532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_try") 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14540 ac_cv_lib_udis86_ud_init=yes
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 ac_cv_lib_udis86_ud_init=no
14548 rm -f core conftest.err conftest.$ac_objext \
14549 conftest$ac_exeext conftest.$ac_ext
14550 LIBS=$ac_check_lib_save_LIBS
14552 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14553 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14554 if test $ac_cv_lib_udis86_ud_init = yes; then
14555 cat >>confdefs.h <<_ACEOF
14556 #define HAVE_LIBUDIS86 1
14559 LIBS="-ludis86 $LIBS"
14563 echo "Error! You need to have libudis86 around."
14575 cat >>confdefs.h <<_ACEOF
14576 #define USE_UDIS86 $USE_UDIS86
14581 # Check whether --with-oprofile was given.
14582 if test "${with_oprofile+set}" = set; then
14583 withval=$with_oprofile;
14587 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14588 no) llvm_cv_oppath=
14591 *) llvm_cv_oppath="${withval}/lib/oprofile"
14592 CPPFLAGS="-I${withval}/include";;
14594 if test -n "$llvm_cv_oppath" ; then
14595 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14596 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14597 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14598 if test "${ac_cv_search_bfd_init+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 ac_func_search_save_LIBS=$LIBS
14602 cat >conftest.$ac_ext <<_ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14609 /* Override any GCC internal prototype to avoid an error.
14610 Use char because int might match the return type of a GCC
14611 builtin and then its argument prototype would still apply. */
14619 return bfd_init ();
14624 for ac_lib in '' bfd; do
14625 if test -z "$ac_lib"; then
14626 ac_res="none required"
14629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14631 rm -f conftest.$ac_objext conftest$ac_exeext
14632 if { (ac_try="$ac_link"
14633 case "(($ac_try" in
14634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14635 *) ac_try_echo
=$ac_try;;
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_link") 2>conftest.er1
14640 grep -v '^ *+' conftest.er1
>conftest.err
14642 cat conftest.err
>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14646 { (case "(($ac_try" in
14647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_try") 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; } &&
14655 { ac_try='test -s conftest$ac_exeext'
14656 { (case "(($ac_try" in
14657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14658 *) ac_try_echo
=$ac_try;;
14660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14661 (eval "$ac_try") 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; }; then
14665 ac_cv_search_bfd_init
=$ac_res
14667 echo "$as_me: failed program was:" >&5
14668 sed 's/^/| /' conftest.
$ac_ext >&5
14673 rm -f core conftest.err conftest.
$ac_objext \
14675 if test "${ac_cv_search_bfd_init+set}" = set; then
14679 if test "${ac_cv_search_bfd_init+set}" = set; then
14682 ac_cv_search_bfd_init
=no
14684 rm conftest.
$ac_ext
14685 LIBS
=$ac_func_search_save_LIBS
14687 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14688 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14689 ac_res
=$ac_cv_search_bfd_init
14690 if test "$ac_res" != no
; then
14691 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14695 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14696 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14697 if test "${ac_cv_search_op_open_agent+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 ac_func_search_save_LIBS
=$LIBS
14701 cat >conftest.
$ac_ext <<_ACEOF
14704 cat confdefs.h
>>conftest.
$ac_ext
14705 cat >>conftest.
$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14708 /* Override any GCC internal prototype to avoid an error.
14709 Use char because int might match the return type of a GCC
14710 builtin and then its argument prototype would still apply. */
14714 char op_open_agent ();
14718 return op_open_agent ();
14723 for ac_lib
in '' opagent
; do
14724 if test -z "$ac_lib"; then
14725 ac_res
="none required"
14728 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14730 rm -f conftest.
$ac_objext conftest
$ac_exeext
14731 if { (ac_try
="$ac_link"
14732 case "(($ac_try" in
14733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14734 *) ac_try_echo=$ac_try;;
14736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14737 (eval "$ac_link") 2>conftest.er1
14739 grep -v '^ *+' conftest.er1 >conftest.err
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14745 { (case "(($ac_try" in
14746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14747 *) ac_try_echo
=$ac_try;;
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750 (eval "$ac_try") 2>&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; } &&
14754 { ac_try
='test -s conftest$ac_exeext'
14755 { (case "(($ac_try" in
14756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14757 *) ac_try_echo=$ac_try;;
14759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14760 (eval "$ac_try") 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_cv_search_op_open_agent=$ac_res
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14772 rm -f core conftest.err conftest.$ac_objext \
14774 if test "${ac_cv_search_op_open_agent+set}" = set; then
14778 if test "${ac_cv_search_op_open_agent+set}" = set; then
14781 ac_cv_search_op_open_agent=no
14783 rm conftest.$ac_ext
14784 LIBS=$ac_func_search_save_LIBS
14786 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14787 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14788 ac_res=$ac_cv_search_op_open_agent
14789 if test "$ac_res" != no; then
14790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14794 echo "Error! You need to have libopagent around."
14799 if test "${ac_cv_header_opagent_h+set}" = set; then
14800 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14801 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14802 if test "${ac_cv_header_opagent_h+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14806 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14808 # Is the header compilable?
14809 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14810 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14811 cat >conftest.$ac_ext <<_ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14817 $ac_includes_default
14818 #include <opagent.h>
14820 rm -f conftest.$ac_objext
14821 if { (ac_try="$ac_compile"
14822 case "(($ac_try" in
14823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14824 *) ac_try_echo
=$ac_try;;
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_compile") 2>conftest.er1
14829 grep -v '^ *+' conftest.er1
>conftest.err
14831 cat conftest.err
>&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } &&
14834 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14835 { (case "(($ac_try" in
14836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_try") 2>&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; } &&
14844 { ac_try='test -s conftest.$ac_objext'
14845 { (case "(($ac_try" in
14846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14847 *) ac_try_echo
=$ac_try;;
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_try") 2>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 ac_header_compiler
=yes
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.
$ac_ext >&5
14859 ac_header_compiler
=no
14862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14863 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14864 echo "${ECHO_T}$ac_header_compiler" >&6; }
14866 # Is the header present?
14867 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14868 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14869 cat >conftest.
$ac_ext <<_ACEOF
14872 cat confdefs.h
>>conftest.
$ac_ext
14873 cat >>conftest.
$ac_ext <<_ACEOF
14874 /* end confdefs.h. */
14875 #include <opagent.h>
14877 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14878 case "(($ac_try" in
14879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14885 grep -v '^ *+' conftest.er1 >conftest.err
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } >/dev/null; then
14890 if test -s conftest.err; then
14891 ac_cpp_err=$ac_c_preproc_warn_flag
14892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14899 if test -z "$ac_cpp_err"; then
14900 ac_header_preproc=yes
14902 echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14905 ac_header_preproc=no
14908 rm -f conftest.err conftest.$ac_ext
14909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14910 echo "${ECHO_T}$ac_header_preproc" >&6; }
14912 # So? What about this header?
14913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14915 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14916 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14917 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14918 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14919 ac_header_preproc=yes
14922 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14923 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14925 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14927 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14929 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14931 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14933 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14935 ## ----------------------------------- ##
14936 ## Report this to llvmbugs@cs.uiuc.edu ##
14937 ## ----------------------------------- ##
14939 ) | sed "s/^/$as_me: WARNING: /" >&2
14942 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14943 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14944 if test "${ac_cv_header_opagent_h+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 ac_cv_header_opagent_h=$ac_header_preproc
14949 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14950 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14953 if test $ac_cv_header_opagent_h = yes; then
14957 echo "Error! You need to have opagent.h around."
14973 cat >>confdefs.h <<_ACEOF
14974 #define USE_OPROFILE $USE_OPROFILE
14984 ac_header_dirent=no
14985 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14986 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
14987 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14988 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 cat >conftest.$ac_ext <<_ACEOF
14995 cat confdefs.h >>conftest.$ac_ext
14996 cat >>conftest.$ac_ext <<_ACEOF
14997 /* end confdefs.h. */
14998 #include <sys/types.h>
15010 rm -f conftest.$ac_objext
15011 if { (ac_try="$ac_compile"
15012 case "(($ac_try" in
15013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15014 *) ac_try_echo
=$ac_try;;
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_compile") 2>conftest.er1
15019 grep -v '^ *+' conftest.er1
>conftest.err
15021 cat conftest.err
>&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } &&
15024 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15025 { (case "(($ac_try" in
15026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030 (eval "$ac_try") 2>&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; } &&
15034 { ac_try='test -s conftest.$ac_objext'
15035 { (case "(($ac_try" in
15036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15037 *) ac_try_echo
=$ac_try;;
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_try") 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 eval "$as_ac_Header=yes"
15046 echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.
$ac_ext >&5
15049 eval "$as_ac_Header=no"
15052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15054 ac_res
=`eval echo '${'$as_ac_Header'}'`
15055 { echo "$as_me:$LINENO: result: $ac_res" >&5
15056 echo "${ECHO_T}$ac_res" >&6; }
15057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15058 cat >>confdefs.h
<<_ACEOF
15059 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15062 ac_header_dirent
=$ac_hdr; break
15066 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15067 if test $ac_header_dirent = dirent.h
; then
15068 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15069 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15070 if test "${ac_cv_search_opendir+set}" = set; then
15071 echo $ECHO_N "(cached) $ECHO_C" >&6
15073 ac_func_search_save_LIBS
=$LIBS
15074 cat >conftest.
$ac_ext <<_ACEOF
15077 cat confdefs.h
>>conftest.
$ac_ext
15078 cat >>conftest.
$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15081 /* Override any GCC internal prototype to avoid an error.
15082 Use char because int might match the return type of a GCC
15083 builtin and then its argument prototype would still apply. */
15096 for ac_lib
in '' dir
; do
15097 if test -z "$ac_lib"; then
15098 ac_res
="none required"
15101 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15103 rm -f conftest.
$ac_objext conftest
$ac_exeext
15104 if { (ac_try
="$ac_link"
15105 case "(($ac_try" in
15106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_link") 2>conftest.er1
15112 grep -v '^ *+' conftest.er1 >conftest.err
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15118 { (case "(($ac_try" in
15119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15120 *) ac_try_echo
=$ac_try;;
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_try") 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; } &&
15127 { ac_try
='test -s conftest$ac_exeext'
15128 { (case "(($ac_try" in
15129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_try") 2>&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
15137 ac_cv_search_opendir=$ac_res
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15145 rm -f core conftest.err conftest.$ac_objext \
15147 if test "${ac_cv_search_opendir+set}" = set; then
15151 if test "${ac_cv_search_opendir+set}" = set; then
15154 ac_cv_search_opendir=no
15156 rm conftest.$ac_ext
15157 LIBS=$ac_func_search_save_LIBS
15159 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15160 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15161 ac_res=$ac_cv_search_opendir
15162 if test "$ac_res" != no; then
15163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15168 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15169 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15170 if test "${ac_cv_search_opendir+set}" = set; then
15171 echo $ECHO_N "(cached) $ECHO_C" >&6
15173 ac_func_search_save_LIBS=$LIBS
15174 cat >conftest.$ac_ext <<_ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h. */
15181 /* Override any GCC internal prototype to avoid an error.
15182 Use char because int might match the return type of a GCC
15183 builtin and then its argument prototype would still apply. */
15196 for ac_lib in '' x; do
15197 if test -z "$ac_lib"; then
15198 ac_res="none required"
15201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (ac_try="$ac_link"
15205 case "(($ac_try" in
15206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15207 *) ac_try_echo
=$ac_try;;
15209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_link") 2>conftest.er1
15212 grep -v '^ *+' conftest.er1
>conftest.err
15214 cat conftest.err
>&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } &&
15217 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15218 { (case "(($ac_try" in
15219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_try") 2>&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; } &&
15227 { ac_try='test -s conftest$ac_exeext'
15228 { (case "(($ac_try" in
15229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15230 *) ac_try_echo
=$ac_try;;
15232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15233 (eval "$ac_try") 2>&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15237 ac_cv_search_opendir
=$ac_res
15239 echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.
$ac_ext >&5
15245 rm -f core conftest.err conftest.
$ac_objext \
15247 if test "${ac_cv_search_opendir+set}" = set; then
15251 if test "${ac_cv_search_opendir+set}" = set; then
15254 ac_cv_search_opendir
=no
15256 rm conftest.
$ac_ext
15257 LIBS
=$ac_func_search_save_LIBS
15259 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15260 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15261 ac_res
=$ac_cv_search_opendir
15262 if test "$ac_res" != no
; then
15263 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15269 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15270 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15271 if test "${ac_cv_header_mmap_anon+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15275 ac_cpp
='$CPP $CPPFLAGS'
15276 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15277 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15278 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15280 cat >conftest.
$ac_ext <<_ACEOF
15283 cat confdefs.h
>>conftest.
$ac_ext
15284 cat >>conftest.
$ac_ext <<_ACEOF
15285 /* end confdefs.h. */
15286 #include <sys/mman.h>
15287 #include <unistd.h>
15292 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15297 rm -f conftest.
$ac_objext
15298 if { (ac_try
="$ac_compile"
15299 case "(($ac_try" in
15300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_compile") 2>conftest.er1
15306 grep -v '^ *+' conftest.er1 >conftest.err
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
15311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15312 { (case "(($ac_try" in
15313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15314 *) ac_try_echo
=$ac_try;;
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_try") 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; } &&
15321 { ac_try
='test -s conftest.$ac_objext'
15322 { (case "(($ac_try" in
15323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_try") 2>&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_cv_header_mmap_anon=yes
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15336 ac_cv_header_mmap_anon=no
15339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15341 ac_cpp='$CPP $CPPFLAGS'
15342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15348 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15349 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15350 if test "$ac_cv_header_mmap_anon" = yes; then
15352 cat >>confdefs.h <<\_ACEOF
15353 #define HAVE_MMAP_ANONYMOUS 1
15358 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15359 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15360 if test "${ac_cv_header_stat_broken+set}" = set; then
15361 echo $ECHO_N "(cached) $ECHO_C" >&6
15363 cat >conftest.$ac_ext <<_ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369 #include <sys/types.h>
15370 #include <sys/stat.h>
15372 #if defined S_ISBLK && defined S_IFDIR
15373 # if S_ISBLK (S_IFDIR)
15378 #if defined S_ISBLK && defined S_IFCHR
15379 # if S_ISBLK (S_IFCHR)
15384 #if defined S_ISLNK && defined S_IFREG
15385 # if S_ISLNK (S_IFREG)
15390 #if defined S_ISSOCK && defined S_IFREG
15391 # if S_ISSOCK (S_IFREG)
15397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15398 $EGREP "You lose" >/dev/null 2>&1; then
15399 ac_cv_header_stat_broken=yes
15401 ac_cv_header_stat_broken=no
15406 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15407 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15408 if test $ac_cv_header_stat_broken = yes; then
15410 cat >>confdefs.h <<\_ACEOF
15411 #define STAT_MACROS_BROKEN 1
15416 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15417 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15418 if test "${ac_cv_header_stdc+set}" = set; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15421 cat >conftest.$ac_ext <<_ACEOF
15424 cat confdefs.h >>conftest.$ac_ext
15425 cat >>conftest.$ac_ext <<_ACEOF
15426 /* end confdefs.h. */
15427 #include <stdlib.h>
15428 #include <stdarg.h>
15429 #include <string.h>
15440 rm -f conftest.$ac_objext
15441 if { (ac_try="$ac_compile"
15442 case "(($ac_try" in
15443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15444 *) ac_try_echo
=$ac_try;;
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_compile") 2>conftest.er1
15449 grep -v '^ *+' conftest.er1
>conftest.err
15451 cat conftest.err
>&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } &&
15454 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15455 { (case "(($ac_try" in
15456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15457 *) ac_try_echo=$ac_try;;
15459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15460 (eval "$ac_try") 2>&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; } &&
15464 { ac_try='test -s conftest.$ac_objext'
15465 { (case "(($ac_try" in
15466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15467 *) ac_try_echo
=$ac_try;;
15469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15470 (eval "$ac_try") 2>&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; }; then
15474 ac_cv_header_stdc
=yes
15476 echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.
$ac_ext >&5
15479 ac_cv_header_stdc
=no
15482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15484 if test $ac_cv_header_stdc = yes; then
15485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15486 cat >conftest.
$ac_ext <<_ACEOF
15489 cat confdefs.h
>>conftest.
$ac_ext
15490 cat >>conftest.
$ac_ext <<_ACEOF
15491 /* end confdefs.h. */
15492 #include <string.h>
15495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15496 $EGREP "memchr" >/dev
/null
2>&1; then
15499 ac_cv_header_stdc
=no
15505 if test $ac_cv_header_stdc = yes; then
15506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15507 cat >conftest.
$ac_ext <<_ACEOF
15510 cat confdefs.h
>>conftest.
$ac_ext
15511 cat >>conftest.
$ac_ext <<_ACEOF
15512 /* end confdefs.h. */
15513 #include <stdlib.h>
15516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15517 $EGREP "free" >/dev
/null
2>&1; then
15520 ac_cv_header_stdc
=no
15526 if test $ac_cv_header_stdc = yes; then
15527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15528 if test "$cross_compiling" = yes; then
15531 cat >conftest.
$ac_ext <<_ACEOF
15534 cat confdefs.h
>>conftest.
$ac_ext
15535 cat >>conftest.
$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15538 #include <stdlib.h>
15539 #if ((' ' & 0x0FF) == 0x020)
15540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15543 # define ISLOWER(c) \
15544 (('a' <= (c) && (c) <= 'i') \
15545 || ('j' <= (c) && (c) <= 'r') \
15546 || ('s' <= (c) && (c) <= 'z'))
15547 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15555 for (i = 0; i < 256; i++)
15556 if (XOR (islower (i), ISLOWER (i))
15557 || toupper (i) != TOUPPER (i))
15562 rm -f conftest
$ac_exeext
15563 if { (ac_try
="$ac_link"
15564 case "(($ac_try" in
15565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_link") 2>&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15573 { (case "(($ac_try" in
15574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15575 *) ac_try_echo
=$ac_try;;
15577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578 (eval "$ac_try") 2>&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; }; then
15584 echo "$as_me: program exited with status $ac_status" >&5
15585 echo "$as_me: failed program was:" >&5
15586 sed 's/^/| /' conftest.
$ac_ext >&5
15588 ( exit $ac_status )
15589 ac_cv_header_stdc
=no
15591 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15597 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15598 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15599 if test $ac_cv_header_stdc = yes; then
15601 cat >>confdefs.h
<<\_ACEOF
15602 #define STDC_HEADERS 1
15607 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15608 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15609 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15612 cat >conftest.
$ac_ext <<_ACEOF
15615 cat confdefs.h
>>conftest.
$ac_ext
15616 cat >>conftest.
$ac_ext <<_ACEOF
15617 /* end confdefs.h. */
15618 #include <sys/types.h>
15619 #include <sys/wait.h>
15620 #ifndef WEXITSTATUS
15621 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15624 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15632 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15637 rm -f conftest.
$ac_objext
15638 if { (ac_try
="$ac_compile"
15639 case "(($ac_try" in
15640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15641 *) ac_try_echo=$ac_try;;
15643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644 (eval "$ac_compile") 2>conftest.er1
15646 grep -v '^ *+' conftest.er1 >conftest.err
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15652 { (case "(($ac_try" in
15653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15654 *) ac_try_echo
=$ac_try;;
15656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15657 (eval "$ac_try") 2>&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; } &&
15661 { ac_try
='test -s conftest.$ac_objext'
15662 { (case "(($ac_try" in
15663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15664 *) ac_try_echo=$ac_try;;
15666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667 (eval "$ac_try") 2>&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }; then
15671 ac_cv_header_sys_wait_h=yes
15673 echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15676 ac_cv_header_sys_wait_h=no
15679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15681 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15682 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15683 if test $ac_cv_header_sys_wait_h = yes; then
15685 cat >>confdefs.h <<\_ACEOF
15686 #define HAVE_SYS_WAIT_H 1
15691 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15692 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15693 if test "${ac_cv_header_time+set}" = set; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15696 cat >conftest.$ac_ext <<_ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 #include <sys/types.h>
15703 #include <sys/time.h>
15709 if ((struct tm *) 0)
15715 rm -f conftest.$ac_objext
15716 if { (ac_try="$ac_compile"
15717 case "(($ac_try" in
15718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15719 *) ac_try_echo
=$ac_try;;
15721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_compile") 2>conftest.er1
15724 grep -v '^ *+' conftest.er1
>conftest.err
15726 cat conftest.err
>&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } &&
15729 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15730 { (case "(($ac_try" in
15731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15732 *) ac_try_echo=$ac_try;;
15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735 (eval "$ac_try") 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; } &&
15739 { ac_try='test -s conftest.$ac_objext'
15740 { (case "(($ac_try" in
15741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15742 *) ac_try_echo
=$ac_try;;
15744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745 (eval "$ac_try") 2>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15749 ac_cv_header_time
=yes
15751 echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.
$ac_ext >&5
15754 ac_cv_header_time
=no
15757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15759 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15760 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15761 if test $ac_cv_header_time = yes; then
15763 cat >>confdefs.h
<<\_ACEOF
15764 #define TIME_WITH_SYS_TIME 1
15776 for ac_header
in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15778 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15779 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15782 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 ac_res
=`eval echo '${'$as_ac_Header'}'`
15786 { echo "$as_me:$LINENO: result: $ac_res" >&5
15787 echo "${ECHO_T}$ac_res" >&6; }
15789 # Is the header compilable?
15790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15792 cat >conftest.
$ac_ext <<_ACEOF
15795 cat confdefs.h
>>conftest.
$ac_ext
15796 cat >>conftest.
$ac_ext <<_ACEOF
15797 /* end confdefs.h. */
15798 $ac_includes_default
15799 #include <$ac_header>
15801 rm -f conftest.
$ac_objext
15802 if { (ac_try
="$ac_compile"
15803 case "(($ac_try" in
15804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15805 *) ac_try_echo=$ac_try;;
15807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15808 (eval "$ac_compile") 2>conftest.er1
15810 grep -v '^ *+' conftest.er1 >conftest.err
15812 cat conftest.err >&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } &&
15815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15816 { (case "(($ac_try" in
15817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15818 *) ac_try_echo
=$ac_try;;
15820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821 (eval "$ac_try") 2>&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; } &&
15825 { ac_try
='test -s conftest.$ac_objext'
15826 { (case "(($ac_try" in
15827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_try") 2>&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; }; then
15835 ac_header_compiler=yes
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15840 ac_header_compiler=no
15843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15845 echo "${ECHO_T}$ac_header_compiler" >&6; }
15847 # Is the header present?
15848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15850 cat >conftest.$ac_ext <<_ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856 #include <$ac_header>
15858 if { (ac_try="$ac_cpp conftest.$ac_ext"
15859 case "(($ac_try" in
15860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15861 *) ac_try_echo
=$ac_try;;
15863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15866 grep -v '^ *+' conftest.er1
>conftest.err
15868 cat conftest.err
>&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); } >/dev
/null
; then
15871 if test -s conftest.err
; then
15872 ac_cpp_err
=$ac_c_preproc_warn_flag
15873 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15880 if test -z "$ac_cpp_err"; then
15881 ac_header_preproc
=yes
15883 echo "$as_me: failed program was:" >&5
15884 sed 's/^/| /' conftest.
$ac_ext >&5
15886 ac_header_preproc
=no
15889 rm -f conftest.err conftest.
$ac_ext
15890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15891 echo "${ECHO_T}$ac_header_preproc" >&6; }
15893 # So? What about this header?
15894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15900 ac_header_preproc
=yes
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15916 ## ----------------------------------- ##
15917 ## Report this to llvmbugs@cs.uiuc.edu ##
15918 ## ----------------------------------- ##
15920 ) |
sed "s/^/$as_me: WARNING: /" >&2
15923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15925 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 eval "$as_ac_Header=\$ac_header_preproc"
15930 ac_res
=`eval echo '${'$as_ac_Header'}'`
15931 { echo "$as_me:$LINENO: result: $ac_res" >&5
15932 echo "${ECHO_T}$ac_res" >&6; }
15935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15936 cat >>confdefs.h
<<_ACEOF
15937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15950 for ac_header
in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15952 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15953 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15956 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15959 ac_res
=`eval echo '${'$as_ac_Header'}'`
15960 { echo "$as_me:$LINENO: result: $ac_res" >&5
15961 echo "${ECHO_T}$ac_res" >&6; }
15963 # Is the header compilable?
15964 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15966 cat >conftest.
$ac_ext <<_ACEOF
15969 cat confdefs.h
>>conftest.
$ac_ext
15970 cat >>conftest.
$ac_ext <<_ACEOF
15971 /* end confdefs.h. */
15972 $ac_includes_default
15973 #include <$ac_header>
15975 rm -f conftest.
$ac_objext
15976 if { (ac_try
="$ac_compile"
15977 case "(($ac_try" in
15978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15979 *) ac_try_echo=$ac_try;;
15981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982 (eval "$ac_compile") 2>conftest.er1
15984 grep -v '^ *+' conftest.er1 >conftest.err
15986 cat conftest.err >&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } &&
15989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15990 { (case "(($ac_try" in
15991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15992 *) ac_try_echo
=$ac_try;;
15994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15995 (eval "$ac_try") 2>&5
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; } &&
15999 { ac_try
='test -s conftest.$ac_objext'
16000 { (case "(($ac_try" in
16001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16002 *) ac_try_echo=$ac_try;;
16004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16005 (eval "$ac_try") 2>&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; }; then
16009 ac_header_compiler=yes
16011 echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16014 ac_header_compiler=no
16017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16019 echo "${ECHO_T}$ac_header_compiler" >&6; }
16021 # Is the header present?
16022 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16024 cat >conftest.$ac_ext <<_ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16030 #include <$ac_header>
16032 if { (ac_try="$ac_cpp conftest.$ac_ext"
16033 case "(($ac_try" in
16034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16035 *) ac_try_echo
=$ac_try;;
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16040 grep -v '^ *+' conftest.er1
>conftest.err
16042 cat conftest.err
>&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } >/dev
/null
; then
16045 if test -s conftest.err
; then
16046 ac_cpp_err
=$ac_c_preproc_warn_flag
16047 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16054 if test -z "$ac_cpp_err"; then
16055 ac_header_preproc
=yes
16057 echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.
$ac_ext >&5
16060 ac_header_preproc
=no
16063 rm -f conftest.err conftest.
$ac_ext
16064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16065 echo "${ECHO_T}$ac_header_preproc" >&6; }
16067 # So? What about this header?
16068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16074 ac_header_preproc
=yes
16077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16090 ## ----------------------------------- ##
16091 ## Report this to llvmbugs@cs.uiuc.edu ##
16092 ## ----------------------------------- ##
16094 ) |
sed "s/^/$as_me: WARNING: /" >&2
16097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16099 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16102 eval "$as_ac_Header=\$ac_header_preproc"
16104 ac_res
=`eval echo '${'$as_ac_Header'}'`
16105 { echo "$as_me:$LINENO: result: $ac_res" >&5
16106 echo "${ECHO_T}$ac_res" >&6; }
16109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16110 cat >>confdefs.h
<<_ACEOF
16111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16120 for ac_header
in utime.h windows.h
16122 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16123 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16126 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 ac_res
=`eval echo '${'$as_ac_Header'}'`
16130 { echo "$as_me:$LINENO: result: $ac_res" >&5
16131 echo "${ECHO_T}$ac_res" >&6; }
16133 # Is the header compilable?
16134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16136 cat >conftest.
$ac_ext <<_ACEOF
16139 cat confdefs.h
>>conftest.
$ac_ext
16140 cat >>conftest.
$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16142 $ac_includes_default
16143 #include <$ac_header>
16145 rm -f conftest.
$ac_objext
16146 if { (ac_try
="$ac_compile"
16147 case "(($ac_try" in
16148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16149 *) ac_try_echo=$ac_try;;
16151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16152 (eval "$ac_compile") 2>conftest.er1
16154 grep -v '^ *+' conftest.er1 >conftest.err
16156 cat conftest.err >&5
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); } &&
16159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16160 { (case "(($ac_try" in
16161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16162 *) ac_try_echo
=$ac_try;;
16164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16165 (eval "$ac_try") 2>&5
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; } &&
16169 { ac_try
='test -s conftest.$ac_objext'
16170 { (case "(($ac_try" in
16171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16172 *) ac_try_echo=$ac_try;;
16174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16175 (eval "$ac_try") 2>&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; }; then
16179 ac_header_compiler=yes
16181 echo "$as_me: failed program was:" >&5
16182 sed 's/^/| /' conftest.$ac_ext >&5
16184 ac_header_compiler=no
16187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16189 echo "${ECHO_T}$ac_header_compiler" >&6; }
16191 # Is the header present?
16192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16194 cat >conftest.$ac_ext <<_ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16200 #include <$ac_header>
16202 if { (ac_try="$ac_cpp conftest.$ac_ext"
16203 case "(($ac_try" in
16204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16205 *) ac_try_echo
=$ac_try;;
16207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16210 grep -v '^ *+' conftest.er1
>conftest.err
16212 cat conftest.err
>&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } >/dev
/null
; then
16215 if test -s conftest.err
; then
16216 ac_cpp_err
=$ac_c_preproc_warn_flag
16217 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16224 if test -z "$ac_cpp_err"; then
16225 ac_header_preproc
=yes
16227 echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.
$ac_ext >&5
16230 ac_header_preproc
=no
16233 rm -f conftest.err conftest.
$ac_ext
16234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16235 echo "${ECHO_T}$ac_header_preproc" >&6; }
16237 # So? What about this header?
16238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16244 ac_header_preproc
=yes
16247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16260 ## ----------------------------------- ##
16261 ## Report this to llvmbugs@cs.uiuc.edu ##
16262 ## ----------------------------------- ##
16264 ) |
sed "s/^/$as_me: WARNING: /" >&2
16267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16269 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16270 echo $ECHO_N "(cached) $ECHO_C" >&6
16272 eval "$as_ac_Header=\$ac_header_preproc"
16274 ac_res
=`eval echo '${'$as_ac_Header'}'`
16275 { echo "$as_me:$LINENO: result: $ac_res" >&5
16276 echo "${ECHO_T}$ac_res" >&6; }
16279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16280 cat >>confdefs.h
<<_ACEOF
16281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16293 for ac_header
in sys
/mman.h sys
/param.h sys
/resource.h sys
/time.h sys
/uio.h
16295 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16296 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16299 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16302 ac_res
=`eval echo '${'$as_ac_Header'}'`
16303 { echo "$as_me:$LINENO: result: $ac_res" >&5
16304 echo "${ECHO_T}$ac_res" >&6; }
16306 # Is the header compilable?
16307 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16309 cat >conftest.
$ac_ext <<_ACEOF
16312 cat confdefs.h
>>conftest.
$ac_ext
16313 cat >>conftest.
$ac_ext <<_ACEOF
16314 /* end confdefs.h. */
16315 $ac_includes_default
16316 #include <$ac_header>
16318 rm -f conftest.
$ac_objext
16319 if { (ac_try
="$ac_compile"
16320 case "(($ac_try" in
16321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_compile") 2>conftest.er1
16327 grep -v '^ *+' conftest.er1 >conftest.err
16329 cat conftest.err >&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } &&
16332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16333 { (case "(($ac_try" in
16334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16335 *) ac_try_echo
=$ac_try;;
16337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338 (eval "$ac_try") 2>&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; } &&
16342 { ac_try
='test -s conftest.$ac_objext'
16343 { (case "(($ac_try" in
16344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16345 *) ac_try_echo=$ac_try;;
16347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16348 (eval "$ac_try") 2>&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16352 ac_header_compiler=yes
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16357 ac_header_compiler=no
16360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16362 echo "${ECHO_T}$ac_header_compiler" >&6; }
16364 # Is the header present?
16365 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16367 cat >conftest.$ac_ext <<_ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 #include <$ac_header>
16375 if { (ac_try="$ac_cpp conftest.$ac_ext"
16376 case "(($ac_try" in
16377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16378 *) ac_try_echo
=$ac_try;;
16380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16383 grep -v '^ *+' conftest.er1
>conftest.err
16385 cat conftest.err
>&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); } >/dev
/null
; then
16388 if test -s conftest.err
; then
16389 ac_cpp_err
=$ac_c_preproc_warn_flag
16390 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16397 if test -z "$ac_cpp_err"; then
16398 ac_header_preproc
=yes
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.
$ac_ext >&5
16403 ac_header_preproc
=no
16406 rm -f conftest.err conftest.
$ac_ext
16407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16408 echo "${ECHO_T}$ac_header_preproc" >&6; }
16410 # So? What about this header?
16411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16417 ac_header_preproc
=yes
16420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16427 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16433 ## ----------------------------------- ##
16434 ## Report this to llvmbugs@cs.uiuc.edu ##
16435 ## ----------------------------------- ##
16437 ) |
sed "s/^/$as_me: WARNING: /" >&2
16440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16442 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 eval "$as_ac_Header=\$ac_header_preproc"
16447 ac_res
=`eval echo '${'$as_ac_Header'}'`
16448 { echo "$as_me:$LINENO: result: $ac_res" >&5
16449 echo "${ECHO_T}$ac_res" >&6; }
16452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16453 cat >>confdefs.h
<<_ACEOF
16454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16465 for ac_header
in sys
/types.h sys
/ioctl.h malloc
/malloc.h mach
/mach.h
16467 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16468 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16471 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16474 ac_res
=`eval echo '${'$as_ac_Header'}'`
16475 { echo "$as_me:$LINENO: result: $ac_res" >&5
16476 echo "${ECHO_T}$ac_res" >&6; }
16478 # Is the header compilable?
16479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16481 cat >conftest.
$ac_ext <<_ACEOF
16484 cat confdefs.h
>>conftest.
$ac_ext
16485 cat >>conftest.
$ac_ext <<_ACEOF
16486 /* end confdefs.h. */
16487 $ac_includes_default
16488 #include <$ac_header>
16490 rm -f conftest.
$ac_objext
16491 if { (ac_try
="$ac_compile"
16492 case "(($ac_try" in
16493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_compile") 2>conftest.er1
16499 grep -v '^ *+' conftest.er1 >conftest.err
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } &&
16504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16505 { (case "(($ac_try" in
16506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16507 *) ac_try_echo
=$ac_try;;
16509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_try") 2>&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; } &&
16514 { ac_try
='test -s conftest.$ac_objext'
16515 { (case "(($ac_try" in
16516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_try") 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; }; then
16524 ac_header_compiler=yes
16526 echo "$as_me: failed program was:" >&5
16527 sed 's/^/| /' conftest.$ac_ext >&5
16529 ac_header_compiler=no
16532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16534 echo "${ECHO_T}$ac_header_compiler" >&6; }
16536 # Is the header present?
16537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16539 cat >conftest.$ac_ext <<_ACEOF
16542 cat confdefs.h >>conftest.$ac_ext
16543 cat >>conftest.$ac_ext <<_ACEOF
16544 /* end confdefs.h. */
16545 #include <$ac_header>
16547 if { (ac_try="$ac_cpp conftest.$ac_ext"
16548 case "(($ac_try" in
16549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16550 *) ac_try_echo
=$ac_try;;
16552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16555 grep -v '^ *+' conftest.er1
>conftest.err
16557 cat conftest.err
>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } >/dev
/null
; then
16560 if test -s conftest.err
; then
16561 ac_cpp_err
=$ac_c_preproc_warn_flag
16562 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16569 if test -z "$ac_cpp_err"; then
16570 ac_header_preproc
=yes
16572 echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.
$ac_ext >&5
16575 ac_header_preproc
=no
16578 rm -f conftest.err conftest.
$ac_ext
16579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16580 echo "${ECHO_T}$ac_header_preproc" >&6; }
16582 # So? What about this header?
16583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16589 ac_header_preproc
=yes
16592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16605 ## ----------------------------------- ##
16606 ## Report this to llvmbugs@cs.uiuc.edu ##
16607 ## ----------------------------------- ##
16609 ) |
sed "s/^/$as_me: WARNING: /" >&2
16612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16614 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16615 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 eval "$as_ac_Header=\$ac_header_preproc"
16619 ac_res
=`eval echo '${'$as_ac_Header'}'`
16620 { echo "$as_me:$LINENO: result: $ac_res" >&5
16621 echo "${ECHO_T}$ac_res" >&6; }
16624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16625 cat >>confdefs.h
<<_ACEOF
16626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16634 for ac_header
in valgrind
/valgrind.h
16636 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16637 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 ac_res
=`eval echo '${'$as_ac_Header'}'`
16644 { echo "$as_me:$LINENO: result: $ac_res" >&5
16645 echo "${ECHO_T}$ac_res" >&6; }
16647 # Is the header compilable?
16648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16650 cat >conftest.
$ac_ext <<_ACEOF
16653 cat confdefs.h
>>conftest.
$ac_ext
16654 cat >>conftest.
$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 $ac_includes_default
16657 #include <$ac_header>
16659 rm -f conftest.
$ac_objext
16660 if { (ac_try
="$ac_compile"
16661 case "(($ac_try" in
16662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666 (eval "$ac_compile") 2>conftest.er1
16668 grep -v '^ *+' conftest.er1 >conftest.err
16670 cat conftest.err >&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } &&
16673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16674 { (case "(($ac_try" in
16675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16676 *) ac_try_echo
=$ac_try;;
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_try") 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; } &&
16683 { ac_try
='test -s conftest.$ac_objext'
16684 { (case "(($ac_try" in
16685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_try") 2>&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }; }; then
16693 ac_header_compiler=yes
16695 echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16698 ac_header_compiler=no
16701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16703 echo "${ECHO_T}$ac_header_compiler" >&6; }
16705 # Is the header present?
16706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16708 cat >conftest.$ac_ext <<_ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 #include <$ac_header>
16716 if { (ac_try="$ac_cpp conftest.$ac_ext"
16717 case "(($ac_try" in
16718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16719 *) ac_try_echo
=$ac_try;;
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16724 grep -v '^ *+' conftest.er1
>conftest.err
16726 cat conftest.err
>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); } >/dev
/null
; then
16729 if test -s conftest.err
; then
16730 ac_cpp_err
=$ac_c_preproc_warn_flag
16731 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16738 if test -z "$ac_cpp_err"; then
16739 ac_header_preproc
=yes
16741 echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.
$ac_ext >&5
16744 ac_header_preproc
=no
16747 rm -f conftest.err conftest.
$ac_ext
16748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16749 echo "${ECHO_T}$ac_header_preproc" >&6; }
16751 # So? What about this header?
16752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16758 ac_header_preproc
=yes
16761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16774 ## ----------------------------------- ##
16775 ## Report this to llvmbugs@cs.uiuc.edu ##
16776 ## ----------------------------------- ##
16778 ) |
sed "s/^/$as_me: WARNING: /" >&2
16781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16783 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16786 eval "$as_ac_Header=\$ac_header_preproc"
16788 ac_res
=`eval echo '${'$as_ac_Header'}'`
16789 { echo "$as_me:$LINENO: result: $ac_res" >&5
16790 echo "${ECHO_T}$ac_res" >&6; }
16793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16794 cat >>confdefs.h
<<_ACEOF
16795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16803 for ac_header
in fenv.h
16805 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16806 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 ac_res
=`eval echo '${'$as_ac_Header'}'`
16813 { echo "$as_me:$LINENO: result: $ac_res" >&5
16814 echo "${ECHO_T}$ac_res" >&6; }
16816 # Is the header compilable?
16817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16819 cat >conftest.
$ac_ext <<_ACEOF
16822 cat confdefs.h
>>conftest.
$ac_ext
16823 cat >>conftest.
$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16825 $ac_includes_default
16826 #include <$ac_header>
16828 rm -f conftest.
$ac_objext
16829 if { (ac_try
="$ac_compile"
16830 case "(($ac_try" in
16831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_compile") 2>conftest.er1
16837 grep -v '^ *+' conftest.er1 >conftest.err
16839 cat conftest.err >&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
16842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16843 { (case "(($ac_try" in
16844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16845 *) ac_try_echo
=$ac_try;;
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_try") 2>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try
='test -s conftest.$ac_objext'
16853 { (case "(($ac_try" in
16854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_try") 2>&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; }; then
16862 ac_header_compiler=yes
16864 echo "$as_me: failed program was:" >&5
16865 sed 's/^/| /' conftest.$ac_ext >&5
16867 ac_header_compiler=no
16870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16872 echo "${ECHO_T}$ac_header_compiler" >&6; }
16874 # Is the header present?
16875 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16877 cat >conftest.$ac_ext <<_ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h. */
16883 #include <$ac_header>
16885 if { (ac_try="$ac_cpp conftest.$ac_ext"
16886 case "(($ac_try" in
16887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16888 *) ac_try_echo
=$ac_try;;
16890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16893 grep -v '^ *+' conftest.er1
>conftest.err
16895 cat conftest.err
>&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } >/dev
/null
; then
16898 if test -s conftest.err
; then
16899 ac_cpp_err
=$ac_c_preproc_warn_flag
16900 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16907 if test -z "$ac_cpp_err"; then
16908 ac_header_preproc
=yes
16910 echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.
$ac_ext >&5
16913 ac_header_preproc
=no
16916 rm -f conftest.err conftest.
$ac_ext
16917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16918 echo "${ECHO_T}$ac_header_preproc" >&6; }
16920 # So? What about this header?
16921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16927 ac_header_preproc
=yes
16930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16943 ## ----------------------------------- ##
16944 ## Report this to llvmbugs@cs.uiuc.edu ##
16945 ## ----------------------------------- ##
16947 ) |
sed "s/^/$as_me: WARNING: /" >&2
16950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16952 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16953 echo $ECHO_N "(cached) $ECHO_C" >&6
16955 eval "$as_ac_Header=\$ac_header_preproc"
16957 ac_res
=`eval echo '${'$as_ac_Header'}'`
16958 { echo "$as_me:$LINENO: result: $ac_res" >&5
16959 echo "${ECHO_T}$ac_res" >&6; }
16962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16963 cat >>confdefs.h
<<_ACEOF
16964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16971 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16973 for ac_header
in pthread.h
16975 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16976 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16979 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16982 ac_res
=`eval echo '${'$as_ac_Header'}'`
16983 { echo "$as_me:$LINENO: result: $ac_res" >&5
16984 echo "${ECHO_T}$ac_res" >&6; }
16986 # Is the header compilable?
16987 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16989 cat >conftest.
$ac_ext <<_ACEOF
16992 cat confdefs.h
>>conftest.
$ac_ext
16993 cat >>conftest.
$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16995 $ac_includes_default
16996 #include <$ac_header>
16998 rm -f conftest.
$ac_objext
16999 if { (ac_try
="$ac_compile"
17000 case "(($ac_try" in
17001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_compile") 2>conftest.er1
17007 grep -v '^ *+' conftest.er1 >conftest.err
17009 cat conftest.err >&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } &&
17012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17013 { (case "(($ac_try" in
17014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17015 *) ac_try_echo
=$ac_try;;
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_try") 2>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; } &&
17022 { ac_try
='test -s conftest.$ac_objext'
17023 { (case "(($ac_try" in
17024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_try") 2>&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 ac_header_compiler=yes
17034 echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.$ac_ext >&5
17037 ac_header_compiler=no
17040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17042 echo "${ECHO_T}$ac_header_compiler" >&6; }
17044 # Is the header present?
17045 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17047 cat >conftest.$ac_ext <<_ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17053 #include <$ac_header>
17055 if { (ac_try="$ac_cpp conftest.$ac_ext"
17056 case "(($ac_try" in
17057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17058 *) ac_try_echo
=$ac_try;;
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17063 grep -v '^ *+' conftest.er1
>conftest.err
17065 cat conftest.err
>&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } >/dev
/null
; then
17068 if test -s conftest.err
; then
17069 ac_cpp_err
=$ac_c_preproc_warn_flag
17070 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17077 if test -z "$ac_cpp_err"; then
17078 ac_header_preproc
=yes
17080 echo "$as_me: failed program was:" >&5
17081 sed 's/^/| /' conftest.
$ac_ext >&5
17083 ac_header_preproc
=no
17086 rm -f conftest.err conftest.
$ac_ext
17087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17088 echo "${ECHO_T}$ac_header_preproc" >&6; }
17090 # So? What about this header?
17091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17097 ac_header_preproc
=yes
17100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17113 ## ----------------------------------- ##
17114 ## Report this to llvmbugs@cs.uiuc.edu ##
17115 ## ----------------------------------- ##
17117 ) |
sed "s/^/$as_me: WARNING: /" >&2
17120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17122 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17123 echo $ECHO_N "(cached) $ECHO_C" >&6
17125 eval "$as_ac_Header=\$ac_header_preproc"
17127 ac_res
=`eval echo '${'$as_ac_Header'}'`
17128 { echo "$as_me:$LINENO: result: $ac_res" >&5
17129 echo "${ECHO_T}$ac_res" >&6; }
17132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17133 cat >>confdefs.h
<<_ACEOF
17134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17150 if test "$llvm_cv_enable_libffi" = "yes" ; then
17153 for ac_header
in ffi.h ffi
/ffi.h
17155 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17156 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17159 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17160 echo $ECHO_N "(cached) $ECHO_C" >&6
17162 ac_res
=`eval echo '${'$as_ac_Header'}'`
17163 { echo "$as_me:$LINENO: result: $ac_res" >&5
17164 echo "${ECHO_T}$ac_res" >&6; }
17166 # Is the header compilable?
17167 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17169 cat >conftest.
$ac_ext <<_ACEOF
17172 cat confdefs.h
>>conftest.
$ac_ext
17173 cat >>conftest.
$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17175 $ac_includes_default
17176 #include <$ac_header>
17178 rm -f conftest.
$ac_objext
17179 if { (ac_try
="$ac_compile"
17180 case "(($ac_try" in
17181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_compile") 2>conftest.er1
17187 grep -v '^ *+' conftest.er1 >conftest.err
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } &&
17192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17193 { (case "(($ac_try" in
17194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17195 *) ac_try_echo
=$ac_try;;
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_try") 2>&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; } &&
17202 { ac_try
='test -s conftest.$ac_objext'
17203 { (case "(($ac_try" in
17204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17205 *) ac_try_echo=$ac_try;;
17207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17208 (eval "$ac_try") 2>&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; }; then
17212 ac_header_compiler=yes
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17217 ac_header_compiler=no
17220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17222 echo "${ECHO_T}$ac_header_compiler" >&6; }
17224 # Is the header present?
17225 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17227 cat >conftest.$ac_ext <<_ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17233 #include <$ac_header>
17235 if { (ac_try="$ac_cpp conftest.$ac_ext"
17236 case "(($ac_try" in
17237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17238 *) ac_try_echo
=$ac_try;;
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17243 grep -v '^ *+' conftest.er1
>conftest.err
17245 cat conftest.err
>&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } >/dev
/null
; then
17248 if test -s conftest.err
; then
17249 ac_cpp_err
=$ac_c_preproc_warn_flag
17250 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17257 if test -z "$ac_cpp_err"; then
17258 ac_header_preproc
=yes
17260 echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.
$ac_ext >&5
17263 ac_header_preproc
=no
17266 rm -f conftest.err conftest.
$ac_ext
17267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17268 echo "${ECHO_T}$ac_header_preproc" >&6; }
17270 # So? What about this header?
17271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17277 ac_header_preproc
=yes
17280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17293 ## ----------------------------------- ##
17294 ## Report this to llvmbugs@cs.uiuc.edu ##
17295 ## ----------------------------------- ##
17297 ) |
sed "s/^/$as_me: WARNING: /" >&2
17300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17302 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 eval "$as_ac_Header=\$ac_header_preproc"
17307 ac_res
=`eval echo '${'$as_ac_Header'}'`
17308 { echo "$as_me:$LINENO: result: $ac_res" >&5
17309 echo "${ECHO_T}$ac_res" >&6; }
17312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17313 cat >>confdefs.h
<<_ACEOF
17314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17324 for ac_header
in CrashReporterClient.h
17326 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17327 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17330 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17333 ac_res
=`eval echo '${'$as_ac_Header'}'`
17334 { echo "$as_me:$LINENO: result: $ac_res" >&5
17335 echo "${ECHO_T}$ac_res" >&6; }
17337 # Is the header compilable?
17338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17340 cat >conftest.
$ac_ext <<_ACEOF
17343 cat confdefs.h
>>conftest.
$ac_ext
17344 cat >>conftest.
$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 $ac_includes_default
17347 #include <$ac_header>
17349 rm -f conftest.
$ac_objext
17350 if { (ac_try
="$ac_compile"
17351 case "(($ac_try" in
17352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17353 *) ac_try_echo=$ac_try;;
17355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17356 (eval "$ac_compile") 2>conftest.er1
17358 grep -v '^ *+' conftest.er1 >conftest.err
17360 cat conftest.err >&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } &&
17363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17364 { (case "(($ac_try" in
17365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17366 *) ac_try_echo
=$ac_try;;
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_try") 2>&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; } &&
17373 { ac_try
='test -s conftest.$ac_objext'
17374 { (case "(($ac_try" in
17375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_try") 2>&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 ac_header_compiler=yes
17385 echo "$as_me: failed program was:" >&5
17386 sed 's/^/| /' conftest.$ac_ext >&5
17388 ac_header_compiler=no
17391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17393 echo "${ECHO_T}$ac_header_compiler" >&6; }
17395 # Is the header present?
17396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17398 cat >conftest.$ac_ext <<_ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h. */
17404 #include <$ac_header>
17406 if { (ac_try="$ac_cpp conftest.$ac_ext"
17407 case "(($ac_try" in
17408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17409 *) ac_try_echo
=$ac_try;;
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17414 grep -v '^ *+' conftest.er1
>conftest.err
17416 cat conftest.err
>&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } >/dev
/null
; then
17419 if test -s conftest.err
; then
17420 ac_cpp_err
=$ac_c_preproc_warn_flag
17421 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17428 if test -z "$ac_cpp_err"; then
17429 ac_header_preproc
=yes
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.
$ac_ext >&5
17434 ac_header_preproc
=no
17437 rm -f conftest.err conftest.
$ac_ext
17438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17439 echo "${ECHO_T}$ac_header_preproc" >&6; }
17441 # So? What about this header?
17442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17448 ac_header_preproc
=yes
17451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17464 ## ----------------------------------- ##
17465 ## Report this to llvmbugs@cs.uiuc.edu ##
17466 ## ----------------------------------- ##
17468 ) |
sed "s/^/$as_me: WARNING: /" >&2
17471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17473 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17476 eval "$as_ac_Header=\$ac_header_preproc"
17478 ac_res
=`eval echo '${'$as_ac_Header'}'`
17479 { echo "$as_me:$LINENO: result: $ac_res" >&5
17480 echo "${ECHO_T}$ac_res" >&6; }
17483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17484 cat >>confdefs.h
<<_ACEOF
17485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17493 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17494 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17495 cat >conftest.
$ac_ext <<_ACEOF
17498 cat confdefs.h
>>conftest.
$ac_ext
17499 cat >>conftest.
$ac_ext <<_ACEOF
17500 /* end confdefs.h. */
17501 extern const char *__crashreporter_info__;
17503 __crashreporter_info__ = "test";
17508 rm -f conftest.
$ac_objext conftest
$ac_exeext
17509 if { (ac_try
="$ac_link"
17510 case "(($ac_try" in
17511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_link") 2>conftest.er1
17517 grep -v '^ *+' conftest.er1 >conftest.err
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } &&
17522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17523 { (case "(($ac_try" in
17524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17525 *) ac_try_echo
=$ac_try;;
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_try") 2>&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try
='test -s conftest$ac_exeext'
17533 { (case "(($ac_try" in
17534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_try") 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 { echo "$as_me:$LINENO: result: yes" >&5
17543 echo "${ECHO_T}yes" >&6; }
17545 cat >>confdefs.h <<\_ACEOF
17546 #define HAVE_CRASHREPORTER_INFO 1
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17553 { echo "$as_me:$LINENO: result: no" >&5
17554 echo "${ECHO_T}no" >&6; }
17556 cat >>confdefs.h <<\_ACEOF
17557 #define HAVE_CRASHREPORTER_INFO 0
17562 rm -f core conftest.err conftest.$ac_objext \
17563 conftest$ac_exeext conftest.$ac_ext
17568 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17569 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17570 if test "${ac_cv_huge_val_sanity+set}" = set; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17575 ac_cpp='$CXXCPP $CPPFLAGS'
17576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17580 ac_save_CXXFLAGS=$CXXFLAGS
17582 if test "$cross_compiling" = yes; then
17583 ac_cv_huge_val_sanity=yes
17585 cat >conftest.$ac_ext <<_ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17595 double x = HUGE_VAL; return x != x;
17600 rm -f conftest$ac_exeext
17601 if { (ac_try="$ac_link"
17602 case "(($ac_try" in
17603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17604 *) ac_try_echo
=$ac_try;;
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_link") 2>&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17611 { (case "(($ac_try" in
17612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_try") 2>&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; }; then
17620 ac_cv_huge_val_sanity=yes
17622 echo "$as_me: program exited with status $ac_status" >&5
17623 echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17626 ( exit $ac_status )
17627 ac_cv_huge_val_sanity=no
17629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17633 CXXFLAGS=$ac_save_CXXFLAGS
17635 ac_cpp='$CPP $CPPFLAGS'
17636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17642 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17643 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17644 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17647 { echo "$as_me:$LINENO: checking for pid_t" >&5
17648 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17649 if test "${ac_cv_type_pid_t+set}" = set; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
17652 cat >conftest.$ac_ext <<_ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17658 $ac_includes_default
17659 typedef pid_t ac__type_new_;
17663 if ((ac__type_new_ *) 0)
17665 if (sizeof (ac__type_new_))
17671 rm -f conftest.$ac_objext
17672 if { (ac_try="$ac_compile"
17673 case "(($ac_try" in
17674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17675 *) ac_try_echo
=$ac_try;;
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_compile") 2>conftest.er1
17680 grep -v '^ *+' conftest.er1
>conftest.err
17682 cat conftest.err
>&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
17685 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17686 { (case "(($ac_try" in
17687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17688 *) ac_try_echo=$ac_try;;
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691 (eval "$ac_try") 2>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest.$ac_objext'
17696 { (case "(($ac_try" in
17697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17698 *) ac_try_echo
=$ac_try;;
17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701 (eval "$ac_try") 2>&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 ac_cv_type_pid_t
=yes
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.
$ac_ext >&5
17710 ac_cv_type_pid_t
=no
17713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17715 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17716 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17717 if test $ac_cv_type_pid_t = yes; then
17721 cat >>confdefs.h
<<_ACEOF
17727 { echo "$as_me:$LINENO: checking for size_t" >&5
17728 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17729 if test "${ac_cv_type_size_t+set}" = set; then
17730 echo $ECHO_N "(cached) $ECHO_C" >&6
17732 cat >conftest.
$ac_ext <<_ACEOF
17735 cat confdefs.h
>>conftest.
$ac_ext
17736 cat >>conftest.
$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17738 $ac_includes_default
17739 typedef size_t ac__type_new_;
17743 if ((ac__type_new_ *) 0)
17745 if (sizeof (ac__type_new_))
17751 rm -f conftest.
$ac_objext
17752 if { (ac_try
="$ac_compile"
17753 case "(($ac_try" in
17754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_compile") 2>conftest.er1
17760 grep -v '^ *+' conftest.er1 >conftest.err
17762 cat conftest.err >&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } &&
17765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17766 { (case "(($ac_try" in
17767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17768 *) ac_try_echo
=$ac_try;;
17770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771 (eval "$ac_try") 2>&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; } &&
17775 { ac_try
='test -s conftest.$ac_objext'
17776 { (case "(($ac_try" in
17777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17778 *) ac_try_echo=$ac_try;;
17780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781 (eval "$ac_try") 2>&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; }; then
17785 ac_cv_type_size_t=yes
17787 echo "$as_me: failed program was:" >&5
17788 sed 's/^/| /' conftest.$ac_ext >&5
17790 ac_cv_type_size_t=no
17793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17795 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17796 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17797 if test $ac_cv_type_size_t = yes; then
17801 cat >>confdefs.h <<_ACEOF
17802 #define size_t unsigned int
17808 cat >>confdefs.h <<_ACEOF
17809 #define RETSIGTYPE void
17812 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17813 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17814 if test "${ac_cv_struct_tm+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17817 cat >conftest.$ac_ext <<_ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17823 #include <sys/types.h>
17829 struct tm *tp; tp->tm_sec;
17834 rm -f conftest.$ac_objext
17835 if { (ac_try="$ac_compile"
17836 case "(($ac_try" in
17837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17838 *) ac_try_echo
=$ac_try;;
17840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841 (eval "$ac_compile") 2>conftest.er1
17843 grep -v '^ *+' conftest.er1
>conftest.err
17845 cat conftest.err
>&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
17848 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17849 { (case "(($ac_try" in
17850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_try") 2>&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; } &&
17858 { ac_try='test -s conftest.$ac_objext'
17859 { (case "(($ac_try" in
17860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17861 *) ac_try_echo
=$ac_try;;
17863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_try") 2>&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 ac_cv_struct_tm
=time.h
17870 echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.
$ac_ext >&5
17873 ac_cv_struct_tm
=sys
/time.h
17876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17878 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17879 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17880 if test $ac_cv_struct_tm = sys
/time.h
; then
17882 cat >>confdefs.h
<<\_ACEOF
17883 #define TM_IN_SYS_TIME 1
17888 { echo "$as_me:$LINENO: checking for int64_t" >&5
17889 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17890 if test "${ac_cv_type_int64_t+set}" = set; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17893 cat >conftest.
$ac_ext <<_ACEOF
17896 cat confdefs.h
>>conftest.
$ac_ext
17897 cat >>conftest.
$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17899 $ac_includes_default
17900 typedef int64_t ac__type_new_;
17904 if ((ac__type_new_ *) 0)
17906 if (sizeof (ac__type_new_))
17912 rm -f conftest.
$ac_objext
17913 if { (ac_try
="$ac_compile"
17914 case "(($ac_try" in
17915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17916 *) ac_try_echo=$ac_try;;
17918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17919 (eval "$ac_compile") 2>conftest.er1
17921 grep -v '^ *+' conftest.er1 >conftest.err
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } &&
17926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17927 { (case "(($ac_try" in
17928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17929 *) ac_try_echo
=$ac_try;;
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_try") 2>&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; } &&
17936 { ac_try
='test -s conftest.$ac_objext'
17937 { (case "(($ac_try" in
17938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942 (eval "$ac_try") 2>&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; }; then
17946 ac_cv_type_int64_t=yes
17948 echo "$as_me: failed program was:" >&5
17949 sed 's/^/| /' conftest.$ac_ext >&5
17951 ac_cv_type_int64_t=no
17954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17956 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17957 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17958 if test $ac_cv_type_int64_t = yes; then
17960 cat >>confdefs.h <<_ACEOF
17961 #define HAVE_INT64_T 1
17966 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17967 echo "$as_me: error: Type int64_t required but not found" >&2;}
17968 { (exit 1); exit 1; }; }
17971 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17972 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17973 if test "${ac_cv_type_uint64_t+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
17976 cat >conftest.$ac_ext <<_ACEOF
17979 cat confdefs.h >>conftest.$ac_ext
17980 cat >>conftest.$ac_ext <<_ACEOF
17981 /* end confdefs.h. */
17982 $ac_includes_default
17983 typedef uint64_t ac__type_new_;
17987 if ((ac__type_new_ *) 0)
17989 if (sizeof (ac__type_new_))
17995 rm -f conftest.$ac_objext
17996 if { (ac_try="$ac_compile"
17997 case "(($ac_try" in
17998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17999 *) ac_try_echo
=$ac_try;;
18001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_compile") 2>conftest.er1
18004 grep -v '^ *+' conftest.er1
>conftest.err
18006 cat conftest.err
>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
18009 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18010 { (case "(($ac_try" in
18011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18012 *) ac_try_echo=$ac_try;;
18014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015 (eval "$ac_try") 2>&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }; } &&
18019 { ac_try='test -s conftest.$ac_objext'
18020 { (case "(($ac_try" in
18021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18022 *) ac_try_echo
=$ac_try;;
18024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18025 (eval "$ac_try") 2>&5
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; }; then
18029 ac_cv_type_uint64_t
=yes
18031 echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.
$ac_ext >&5
18034 ac_cv_type_uint64_t
=no
18037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18039 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18040 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18041 if test $ac_cv_type_uint64_t = yes; then
18043 cat >>confdefs.h
<<_ACEOF
18044 #define HAVE_UINT64_T 1
18049 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18050 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18051 if test "${ac_cv_type_u_int64_t+set}" = set; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18054 cat >conftest.
$ac_ext <<_ACEOF
18057 cat confdefs.h
>>conftest.
$ac_ext
18058 cat >>conftest.
$ac_ext <<_ACEOF
18059 /* end confdefs.h. */
18060 $ac_includes_default
18061 typedef u_int64_t ac__type_new_;
18065 if ((ac__type_new_ *) 0)
18067 if (sizeof (ac__type_new_))
18073 rm -f conftest.
$ac_objext
18074 if { (ac_try
="$ac_compile"
18075 case "(($ac_try" in
18076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080 (eval "$ac_compile") 2>conftest.er1
18082 grep -v '^ *+' conftest.er1 >conftest.err
18084 cat conftest.err >&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } &&
18087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18088 { (case "(($ac_try" in
18089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18090 *) ac_try_echo
=$ac_try;;
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_try") 2>&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; } &&
18097 { ac_try
='test -s conftest.$ac_objext'
18098 { (case "(($ac_try" in
18099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103 (eval "$ac_try") 2>&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; }; then
18107 ac_cv_type_u_int64_t=yes
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18112 ac_cv_type_u_int64_t=no
18115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18117 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18118 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18119 if test $ac_cv_type_u_int64_t = yes; then
18121 cat >>confdefs.h <<_ACEOF
18122 #define HAVE_U_INT64_T 1
18127 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18128 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18129 { (exit 1); exit 1; }; }
18143 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18145 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18151 cat >conftest.$ac_ext <<_ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18159 #define $ac_func innocuous_$ac_func
18161 /* System header to define __stub macros and hopefully few prototypes,
18162 which can conflict with char $ac_func (); below.
18163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18164 <limits.h> exists even on freestanding compilers. */
18167 # include <limits.h>
18169 # include <assert.h>
18174 /* Override any GCC internal prototype to avoid an error.
18175 Use char because int might match the return type of a GCC
18176 builtin and then its argument prototype would still apply. */
18181 /* The GNU C library defines this for functions which it implements
18182 to always fail with ENOSYS. Some functions are actually named
18183 something starting with __ and the normal name is an alias. */
18184 #if defined __stub_$ac_func || defined __stub___$ac_func
18191 return $ac_func ();
18196 rm -f conftest.$ac_objext conftest$ac_exeext
18197 if { (ac_try="$ac_link"
18198 case "(($ac_try" in
18199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18200 *) ac_try_echo
=$ac_try;;
18202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203 (eval "$ac_link") 2>conftest.er1
18205 grep -v '^ *+' conftest.er1
>conftest.err
18207 cat conftest.err
>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); } &&
18210 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18211 { (case "(($ac_try" in
18212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_try") 2>&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; } &&
18220 { ac_try='test -s conftest$ac_exeext'
18221 { (case "(($ac_try" in
18222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18223 *) ac_try_echo
=$ac_try;;
18225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226 (eval "$ac_try") 2>&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; }; then
18230 eval "$as_ac_var=yes"
18232 echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.
$ac_ext >&5
18235 eval "$as_ac_var=no"
18238 rm -f core conftest.err conftest.
$ac_objext \
18239 conftest
$ac_exeext conftest.
$ac_ext
18241 ac_res
=`eval echo '${'$as_ac_var'}'`
18242 { echo "$as_me:$LINENO: result: $ac_res" >&5
18243 echo "${ECHO_T}$ac_res" >&6; }
18244 if test `eval echo '${'$as_ac_var'}'` = yes; then
18245 cat >>confdefs.h
<<_ACEOF
18246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18256 for ac_func
in powf fmodf strtof round
18258 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18259 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18261 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18262 echo $ECHO_N "(cached) $ECHO_C" >&6
18264 cat >conftest.
$ac_ext <<_ACEOF
18267 cat confdefs.h
>>conftest.
$ac_ext
18268 cat >>conftest.
$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18272 #define $ac_func innocuous_$ac_func
18274 /* System header to define __stub macros and hopefully few prototypes,
18275 which can conflict with char $ac_func (); below.
18276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18277 <limits.h> exists even on freestanding compilers. */
18280 # include <limits.h>
18282 # include <assert.h>
18287 /* Override any GCC internal prototype to avoid an error.
18288 Use char because int might match the return type of a GCC
18289 builtin and then its argument prototype would still apply. */
18294 /* The GNU C library defines this for functions which it implements
18295 to always fail with ENOSYS. Some functions are actually named
18296 something starting with __ and the normal name is an alias. */
18297 #if defined __stub_$ac_func || defined __stub___$ac_func
18304 return $ac_func ();
18309 rm -f conftest.
$ac_objext conftest
$ac_exeext
18310 if { (ac_try
="$ac_link"
18311 case "(($ac_try" in
18312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316 (eval "$ac_link") 2>conftest.er1
18318 grep -v '^ *+' conftest.er1 >conftest.err
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
18323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18324 { (case "(($ac_try" in
18325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18326 *) ac_try_echo
=$ac_try;;
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_try") 2>&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; } &&
18333 { ac_try
='test -s conftest$ac_exeext'
18334 { (case "(($ac_try" in
18335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_try") 2>&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; }; then
18343 eval "$as_ac_var=yes"
18345 echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18348 eval "$as_ac_var=no"
18351 rm -f core conftest.err conftest.$ac_objext \
18352 conftest$ac_exeext conftest.$ac_ext
18354 ac_res=`eval echo '${'$as_ac_var'}'`
18355 { echo "$as_me:$LINENO: result: $ac_res" >&5
18356 echo "${ECHO_T}$ac_res" >&6; }
18357 if test `eval echo '${'$as_ac_var'}'` = yes; then
18358 cat >>confdefs.h <<_ACEOF
18359 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18370 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18372 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18378 cat >conftest.$ac_ext <<_ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18386 #define $ac_func innocuous_$ac_func
18388 /* System header to define __stub macros and hopefully few prototypes,
18389 which can conflict with char $ac_func (); below.
18390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18391 <limits.h> exists even on freestanding compilers. */
18394 # include <limits.h>
18396 # include <assert.h>
18401 /* Override any GCC internal prototype to avoid an error.
18402 Use char because int might match the return type of a GCC
18403 builtin and then its argument prototype would still apply. */
18408 /* The GNU C library defines this for functions which it implements
18409 to always fail with ENOSYS. Some functions are actually named
18410 something starting with __ and the normal name is an alias. */
18411 #if defined __stub_$ac_func || defined __stub___$ac_func
18418 return $ac_func ();
18423 rm -f conftest.$ac_objext conftest$ac_exeext
18424 if { (ac_try="$ac_link"
18425 case "(($ac_try" in
18426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18427 *) ac_try_echo
=$ac_try;;
18429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18430 (eval "$ac_link") 2>conftest.er1
18432 grep -v '^ *+' conftest.er1
>conftest.err
18434 cat conftest.err
>&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } &&
18437 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18438 { (case "(($ac_try" in
18439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_try") 2>&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; } &&
18447 { ac_try='test -s conftest$ac_exeext'
18448 { (case "(($ac_try" in
18449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18450 *) ac_try_echo
=$ac_try;;
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_try") 2>&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; }; then
18457 eval "$as_ac_var=yes"
18459 echo "$as_me: failed program was:" >&5
18460 sed 's/^/| /' conftest.
$ac_ext >&5
18462 eval "$as_ac_var=no"
18465 rm -f core conftest.err conftest.
$ac_objext \
18466 conftest
$ac_exeext conftest.
$ac_ext
18468 ac_res
=`eval echo '${'$as_ac_var'}'`
18469 { echo "$as_me:$LINENO: result: $ac_res" >&5
18470 echo "${ECHO_T}$ac_res" >&6; }
18471 if test `eval echo '${'$as_ac_var'}'` = yes; then
18472 cat >>confdefs.h
<<_ACEOF
18473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18482 for ac_func
in isatty mkdtemp mkstemp
18484 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18487 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18488 echo $ECHO_N "(cached) $ECHO_C" >&6
18490 cat >conftest.
$ac_ext <<_ACEOF
18493 cat confdefs.h
>>conftest.
$ac_ext
18494 cat >>conftest.
$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18498 #define $ac_func innocuous_$ac_func
18500 /* System header to define __stub macros and hopefully few prototypes,
18501 which can conflict with char $ac_func (); below.
18502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18503 <limits.h> exists even on freestanding compilers. */
18506 # include <limits.h>
18508 # include <assert.h>
18513 /* Override any GCC internal prototype to avoid an error.
18514 Use char because int might match the return type of a GCC
18515 builtin and then its argument prototype would still apply. */
18520 /* The GNU C library defines this for functions which it implements
18521 to always fail with ENOSYS. Some functions are actually named
18522 something starting with __ and the normal name is an alias. */
18523 #if defined __stub_$ac_func || defined __stub___$ac_func
18530 return $ac_func ();
18535 rm -f conftest.
$ac_objext conftest
$ac_exeext
18536 if { (ac_try
="$ac_link"
18537 case "(($ac_try" in
18538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_link") 2>conftest.er1
18544 grep -v '^ *+' conftest.er1 >conftest.err
18546 cat conftest.err >&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } &&
18549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18550 { (case "(($ac_try" in
18551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18552 *) ac_try_echo
=$ac_try;;
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_try") 2>&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; } &&
18559 { ac_try
='test -s conftest$ac_exeext'
18560 { (case "(($ac_try" in
18561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_try") 2>&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; }; then
18569 eval "$as_ac_var=yes"
18571 echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18574 eval "$as_ac_var=no"
18577 rm -f core conftest.err conftest.$ac_objext \
18578 conftest$ac_exeext conftest.$ac_ext
18580 ac_res=`eval echo '${'$as_ac_var'}'`
18581 { echo "$as_me:$LINENO: result: $ac_res" >&5
18582 echo "${ECHO_T}$ac_res" >&6; }
18583 if test `eval echo '${'$as_ac_var'}'` = yes; then
18584 cat >>confdefs.h <<_ACEOF
18585 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18597 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18599 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18605 cat >conftest.$ac_ext <<_ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18613 #define $ac_func innocuous_$ac_func
18615 /* System header to define __stub macros and hopefully few prototypes,
18616 which can conflict with char $ac_func (); below.
18617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18618 <limits.h> exists even on freestanding compilers. */
18621 # include <limits.h>
18623 # include <assert.h>
18628 /* Override any GCC internal prototype to avoid an error.
18629 Use char because int might match the return type of a GCC
18630 builtin and then its argument prototype would still apply. */
18635 /* The GNU C library defines this for functions which it implements
18636 to always fail with ENOSYS. Some functions are actually named
18637 something starting with __ and the normal name is an alias. */
18638 #if defined __stub_$ac_func || defined __stub___$ac_func
18645 return $ac_func ();
18650 rm -f conftest.$ac_objext conftest$ac_exeext
18651 if { (ac_try="$ac_link"
18652 case "(($ac_try" in
18653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18654 *) ac_try_echo
=$ac_try;;
18656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18657 (eval "$ac_link") 2>conftest.er1
18659 grep -v '^ *+' conftest.er1
>conftest.err
18661 cat conftest.err
>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } &&
18664 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18665 { (case "(($ac_try" in
18666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_try") 2>&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; } &&
18674 { ac_try='test -s conftest$ac_exeext'
18675 { (case "(($ac_try" in
18676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18677 *) ac_try_echo
=$ac_try;;
18679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_try") 2>&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; }; then
18684 eval "$as_ac_var=yes"
18686 echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.
$ac_ext >&5
18689 eval "$as_ac_var=no"
18692 rm -f core conftest.err conftest.
$ac_objext \
18693 conftest
$ac_exeext conftest.
$ac_ext
18695 ac_res
=`eval echo '${'$as_ac_var'}'`
18696 { echo "$as_me:$LINENO: result: $ac_res" >&5
18697 echo "${ECHO_T}$ac_res" >&6; }
18698 if test `eval echo '${'$as_ac_var'}'` = yes; then
18699 cat >>confdefs.h
<<_ACEOF
18700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18709 for ac_func
in strerror strerror_r setenv
18711 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18714 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18717 cat >conftest.
$ac_ext <<_ACEOF
18720 cat confdefs.h
>>conftest.
$ac_ext
18721 cat >>conftest.
$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18725 #define $ac_func innocuous_$ac_func
18727 /* System header to define __stub macros and hopefully few prototypes,
18728 which can conflict with char $ac_func (); below.
18729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18730 <limits.h> exists even on freestanding compilers. */
18733 # include <limits.h>
18735 # include <assert.h>
18740 /* Override any GCC internal prototype to avoid an error.
18741 Use char because int might match the return type of a GCC
18742 builtin and then its argument prototype would still apply. */
18747 /* The GNU C library defines this for functions which it implements
18748 to always fail with ENOSYS. Some functions are actually named
18749 something starting with __ and the normal name is an alias. */
18750 #if defined __stub_$ac_func || defined __stub___$ac_func
18757 return $ac_func ();
18762 rm -f conftest.
$ac_objext conftest
$ac_exeext
18763 if { (ac_try
="$ac_link"
18764 case "(($ac_try" in
18765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_link") 2>conftest.er1
18771 grep -v '^ *+' conftest.er1 >conftest.err
18773 cat conftest.err >&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } &&
18776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18777 { (case "(($ac_try" in
18778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18779 *) ac_try_echo
=$ac_try;;
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_try") 2>&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; } &&
18786 { ac_try
='test -s conftest$ac_exeext'
18787 { (case "(($ac_try" in
18788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_try") 2>&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; }; then
18796 eval "$as_ac_var=yes"
18798 echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.$ac_ext >&5
18801 eval "$as_ac_var=no"
18804 rm -f core conftest.err conftest.$ac_objext \
18805 conftest$ac_exeext conftest.$ac_ext
18807 ac_res=`eval echo '${'$as_ac_var'}'`
18808 { echo "$as_me:$LINENO: result: $ac_res" >&5
18809 echo "${ECHO_T}$ac_res" >&6; }
18810 if test `eval echo '${'$as_ac_var'}'` = yes; then
18811 cat >>confdefs.h <<_ACEOF
18812 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18822 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18824 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18830 cat >conftest.$ac_ext <<_ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18838 #define $ac_func innocuous_$ac_func
18840 /* System header to define __stub macros and hopefully few prototypes,
18841 which can conflict with char $ac_func (); below.
18842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18843 <limits.h> exists even on freestanding compilers. */
18846 # include <limits.h>
18848 # include <assert.h>
18853 /* Override any GCC internal prototype to avoid an error.
18854 Use char because int might match the return type of a GCC
18855 builtin and then its argument prototype would still apply. */
18860 /* The GNU C library defines this for functions which it implements
18861 to always fail with ENOSYS. Some functions are actually named
18862 something starting with __ and the normal name is an alias. */
18863 #if defined __stub_$ac_func || defined __stub___$ac_func
18870 return $ac_func ();
18875 rm -f conftest.$ac_objext conftest$ac_exeext
18876 if { (ac_try="$ac_link"
18877 case "(($ac_try" in
18878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18879 *) ac_try_echo
=$ac_try;;
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_link") 2>conftest.er1
18884 grep -v '^ *+' conftest.er1
>conftest.err
18886 cat conftest.err
>&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); } &&
18889 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18890 { (case "(($ac_try" in
18891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_try") 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; } &&
18899 { ac_try='test -s conftest$ac_exeext'
18900 { (case "(($ac_try" in
18901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18902 *) ac_try_echo
=$ac_try;;
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_try") 2>&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; }; then
18909 eval "$as_ac_var=yes"
18911 echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.
$ac_ext >&5
18914 eval "$as_ac_var=no"
18917 rm -f core conftest.err conftest.
$ac_objext \
18918 conftest
$ac_exeext conftest.
$ac_ext
18920 ac_res
=`eval echo '${'$as_ac_var'}'`
18921 { echo "$as_me:$LINENO: result: $ac_res" >&5
18922 echo "${ECHO_T}$ac_res" >&6; }
18923 if test `eval echo '${'$as_ac_var'}'` = yes; then
18924 cat >>confdefs.h
<<_ACEOF
18925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18936 for ac_func
in setjmp longjmp sigsetjmp siglongjmp writev
18938 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18941 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18944 cat >conftest.
$ac_ext <<_ACEOF
18947 cat confdefs.h
>>conftest.
$ac_ext
18948 cat >>conftest.
$ac_ext <<_ACEOF
18949 /* end confdefs.h. */
18950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18952 #define $ac_func innocuous_$ac_func
18954 /* System header to define __stub macros and hopefully few prototypes,
18955 which can conflict with char $ac_func (); below.
18956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18957 <limits.h> exists even on freestanding compilers. */
18960 # include <limits.h>
18962 # include <assert.h>
18967 /* Override any GCC internal prototype to avoid an error.
18968 Use char because int might match the return type of a GCC
18969 builtin and then its argument prototype would still apply. */
18974 /* The GNU C library defines this for functions which it implements
18975 to always fail with ENOSYS. Some functions are actually named
18976 something starting with __ and the normal name is an alias. */
18977 #if defined __stub_$ac_func || defined __stub___$ac_func
18984 return $ac_func ();
18989 rm -f conftest.
$ac_objext conftest
$ac_exeext
18990 if { (ac_try
="$ac_link"
18991 case "(($ac_try" in
18992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_link") 2>conftest.er1
18998 grep -v '^ *+' conftest.er1 >conftest.err
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } &&
19003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19004 { (case "(($ac_try" in
19005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19006 *) ac_try_echo
=$ac_try;;
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_try") 2>&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; } &&
19013 { ac_try
='test -s conftest$ac_exeext'
19014 { (case "(($ac_try" in
19015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019 (eval "$ac_try") 2>&5
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; }; then
19023 eval "$as_ac_var=yes"
19025 echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19028 eval "$as_ac_var=no"
19031 rm -f core conftest.err conftest.$ac_objext \
19032 conftest$ac_exeext conftest.$ac_ext
19034 ac_res=`eval echo '${'$as_ac_var'}'`
19035 { echo "$as_me:$LINENO: result: $ac_res" >&5
19036 echo "${ECHO_T}$ac_res" >&6; }
19037 if test `eval echo '${'$as_ac_var'}'` = yes; then
19038 cat >>confdefs.h <<_ACEOF
19039 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19045 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19046 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19047 if test "${llvm_cv_c_printf_a+set}" = set; then
19048 echo $ECHO_N "(cached) $ECHO_C" >&6
19051 ac_cpp='$CPP $CPPFLAGS'
19052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19056 if test "$cross_compiling" = yes; then
19057 llvmac_cv_c_printf_a=no
19059 cat >conftest.$ac_ext <<_ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h. */
19068 #include <stdlib.h>
19074 volatile double A, B;
19078 sprintf(Buffer, "%a", A);
19082 if (A != 0x1.999999999999ap-4)
19089 rm -f conftest$ac_exeext
19090 if { (ac_try="$ac_link"
19091 case "(($ac_try" in
19092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19093 *) ac_try_echo
=$ac_try;;
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_link") 2>&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19100 { (case "(($ac_try" in
19101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_try") 2>&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
19109 llvm_cv_c_printf_a=yes
19111 echo "$as_me: program exited with status $ac_status" >&5
19112 echo "$as_me: failed program was:" >&5
19113 sed 's/^/| /' conftest.$ac_ext >&5
19115 ( exit $ac_status )
19116 llvmac_cv_c_printf_a=no
19118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19123 ac_cpp='$CPP $CPPFLAGS'
19124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19129 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19130 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19131 if test "$llvm_cv_c_printf_a" = "yes"; then
19133 cat >>confdefs.h <<\_ACEOF
19134 #define HAVE_PRINTF_A 1
19140 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19141 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19142 if test "${ac_cv_func_rand48+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
19146 ac_cpp='$CXXCPP $CPPFLAGS'
19147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19151 cat >conftest.$ac_ext <<_ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19157 #include <stdlib.h>
19161 srand48(0);lrand48();drand48();
19166 rm -f conftest.$ac_objext
19167 if { (ac_try="$ac_compile"
19168 case "(($ac_try" in
19169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19170 *) ac_try_echo
=$ac_try;;
19172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19173 (eval "$ac_compile") 2>conftest.er1
19175 grep -v '^ *+' conftest.er1
>conftest.err
19177 cat conftest.err
>&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } &&
19180 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19181 { (case "(($ac_try" in
19182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_try") 2>&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; } &&
19190 { ac_try='test -s conftest.$ac_objext'
19191 { (case "(($ac_try" in
19192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19193 *) ac_try_echo
=$ac_try;;
19195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_try") 2>&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; }; then
19200 ac_cv_func_rand48
=yes
19202 echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.
$ac_ext >&5
19205 ac_cv_func_rand48
=no
19208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19210 ac_cpp
='$CPP $CPPFLAGS'
19211 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19212 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19213 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19216 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19217 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19219 if test "$ac_cv_func_rand48" = "yes" ; then
19221 cat >>confdefs.h
<<\_ACEOF
19222 #define HAVE_RAND48 1
19228 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19229 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19230 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19231 echo $ECHO_N "(cached) $ECHO_C" >&6
19233 cat >conftest.
$ac_ext <<_ACEOF
19236 cat confdefs.h
>>conftest.
$ac_ext
19237 cat >>conftest.
$ac_ext <<_ACEOF
19238 /* end confdefs.h. */
19239 $ac_includes_default
19244 char *p = (char *) strerror_s;
19252 rm -f conftest.
$ac_objext
19253 if { (ac_try
="$ac_compile"
19254 case "(($ac_try" in
19255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_compile") 2>conftest.er1
19261 grep -v '^ *+' conftest.er1 >conftest.err
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19267 { (case "(($ac_try" in
19268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19269 *) ac_try_echo
=$ac_try;;
19271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272 (eval "$ac_try") 2>&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; } &&
19276 { ac_try
='test -s conftest.$ac_objext'
19277 { (case "(($ac_try" in
19278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282 (eval "$ac_try") 2>&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; }; then
19286 ac_cv_have_decl_strerror_s=yes
19288 echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.$ac_ext >&5
19291 ac_cv_have_decl_strerror_s=no
19294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19296 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19297 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19298 if test $ac_cv_have_decl_strerror_s = yes; then
19300 cat >>confdefs.h <<_ACEOF
19301 #define HAVE_DECL_STRERROR_S 1
19306 cat >>confdefs.h <<_ACEOF
19307 #define HAVE_DECL_STRERROR_S 0
19315 if test "$llvm_cv_os_type" = "MingW" ; then
19316 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19317 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19318 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19319 echo $ECHO_N "(cached) $ECHO_C" >&6
19321 ac_check_lib_save_LIBS=$LIBS
19323 cat >conftest.$ac_ext <<_ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19330 /* Override any GCC internal prototype to avoid an error.
19331 Use char because int might match the return type of a GCC
19332 builtin and then its argument prototype would still apply. */
19345 rm -f conftest.$ac_objext conftest$ac_exeext
19346 if { (ac_try="$ac_link"
19347 case "(($ac_try" in
19348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19349 *) ac_try_echo
=$ac_try;;
19351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_link") 2>conftest.er1
19354 grep -v '^ *+' conftest.er1
>conftest.err
19356 cat conftest.err
>&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19360 { (case "(($ac_try" in
19361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_try") 2>&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; } &&
19369 { ac_try='test -s conftest$ac_exeext'
19370 { (case "(($ac_try" in
19371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19372 *) ac_try_echo
=$ac_try;;
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_try") 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_lib_gcc__alloca
=yes
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.
$ac_ext >&5
19384 ac_cv_lib_gcc__alloca
=no
19387 rm -f core conftest.err conftest.
$ac_objext \
19388 conftest
$ac_exeext conftest.
$ac_ext
19389 LIBS
=$ac_check_lib_save_LIBS
19391 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19392 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19393 if test $ac_cv_lib_gcc__alloca = yes; then
19395 cat >>confdefs.h
<<\_ACEOF
19396 #define HAVE__ALLOCA 1
19401 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19402 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19403 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
19406 ac_check_lib_save_LIBS
=$LIBS
19408 cat >conftest.
$ac_ext <<_ACEOF
19411 cat confdefs.h
>>conftest.
$ac_ext
19412 cat >>conftest.
$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19415 /* Override any GCC internal prototype to avoid an error.
19416 Use char because int might match the return type of a GCC
19417 builtin and then its argument prototype would still apply. */
19425 return __alloca ();
19430 rm -f conftest.
$ac_objext conftest
$ac_exeext
19431 if { (ac_try
="$ac_link"
19432 case "(($ac_try" in
19433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_link") 2>conftest.er1
19439 grep -v '^ *+' conftest.er1 >conftest.err
19441 cat conftest.err >&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } &&
19444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19445 { (case "(($ac_try" in
19446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19447 *) ac_try_echo
=$ac_try;;
19449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19450 (eval "$ac_try") 2>&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try
='test -s conftest$ac_exeext'
19455 { (case "(($ac_try" in
19456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19457 *) ac_try_echo=$ac_try;;
19459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19460 (eval "$ac_try") 2>&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; }; then
19464 ac_cv_lib_gcc___alloca=yes
19466 echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19469 ac_cv_lib_gcc___alloca=no
19472 rm -f core conftest.err conftest.$ac_objext \
19473 conftest$ac_exeext conftest.$ac_ext
19474 LIBS=$ac_check_lib_save_LIBS
19476 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19477 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19478 if test $ac_cv_lib_gcc___alloca = yes; then
19480 cat >>confdefs.h <<\_ACEOF
19481 #define HAVE___ALLOCA 1
19486 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19487 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19488 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19489 echo $ECHO_N "(cached) $ECHO_C" >&6
19491 ac_check_lib_save_LIBS=$LIBS
19493 cat >conftest.$ac_ext <<_ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19500 /* Override any GCC internal prototype to avoid an error.
19501 Use char because int might match the return type of a GCC
19502 builtin and then its argument prototype would still apply. */
19510 return __chkstk ();
19515 rm -f conftest.$ac_objext conftest$ac_exeext
19516 if { (ac_try="$ac_link"
19517 case "(($ac_try" in
19518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19519 *) ac_try_echo
=$ac_try;;
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_link") 2>conftest.er1
19524 grep -v '^ *+' conftest.er1
>conftest.err
19526 cat conftest.err
>&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } &&
19529 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19530 { (case "(($ac_try" in
19531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_try") 2>&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; } &&
19539 { ac_try='test -s conftest$ac_exeext'
19540 { (case "(($ac_try" in
19541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19542 *) ac_try_echo
=$ac_try;;
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_try") 2>&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 ac_cv_lib_gcc___chkstk
=yes
19551 echo "$as_me: failed program was:" >&5
19552 sed 's/^/| /' conftest.
$ac_ext >&5
19554 ac_cv_lib_gcc___chkstk
=no
19557 rm -f core conftest.err conftest.
$ac_objext \
19558 conftest
$ac_exeext conftest.
$ac_ext
19559 LIBS
=$ac_check_lib_save_LIBS
19561 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19562 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19563 if test $ac_cv_lib_gcc___chkstk = yes; then
19565 cat >>confdefs.h
<<\_ACEOF
19566 #define HAVE___CHKSTK 1
19571 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19572 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19573 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19576 ac_check_lib_save_LIBS
=$LIBS
19578 cat >conftest.
$ac_ext <<_ACEOF
19581 cat confdefs.h
>>conftest.
$ac_ext
19582 cat >>conftest.
$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19585 /* Override any GCC internal prototype to avoid an error.
19586 Use char because int might match the return type of a GCC
19587 builtin and then its argument prototype would still apply. */
19595 return ___chkstk ();
19600 rm -f conftest.
$ac_objext conftest
$ac_exeext
19601 if { (ac_try
="$ac_link"
19602 case "(($ac_try" in
19603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_link") 2>conftest.er1
19609 grep -v '^ *+' conftest.er1 >conftest.err
19611 cat conftest.err >&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } &&
19614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19615 { (case "(($ac_try" in
19616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19617 *) ac_try_echo
=$ac_try;;
19619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19620 (eval "$ac_try") 2>&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); }; } &&
19624 { ac_try
='test -s conftest$ac_exeext'
19625 { (case "(($ac_try" in
19626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19627 *) ac_try_echo=$ac_try;;
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_try") 2>&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; }; then
19634 ac_cv_lib_gcc____chkstk=yes
19636 echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19639 ac_cv_lib_gcc____chkstk=no
19642 rm -f core conftest.err conftest.$ac_objext \
19643 conftest$ac_exeext conftest.$ac_ext
19644 LIBS=$ac_check_lib_save_LIBS
19646 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19647 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19648 if test $ac_cv_lib_gcc____chkstk = yes; then
19650 cat >>confdefs.h <<\_ACEOF
19651 #define HAVE____CHKSTK 1
19657 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19658 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19659 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19660 echo $ECHO_N "(cached) $ECHO_C" >&6
19662 ac_check_lib_save_LIBS=$LIBS
19664 cat >conftest.$ac_ext <<_ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19671 /* Override any GCC internal prototype to avoid an error.
19672 Use char because int might match the return type of a GCC
19673 builtin and then its argument prototype would still apply. */
19681 return __ashldi3 ();
19686 rm -f conftest.$ac_objext conftest$ac_exeext
19687 if { (ac_try="$ac_link"
19688 case "(($ac_try" in
19689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19690 *) ac_try_echo
=$ac_try;;
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_link") 2>conftest.er1
19695 grep -v '^ *+' conftest.er1
>conftest.err
19697 cat conftest.err
>&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } &&
19700 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19701 { (case "(($ac_try" in
19702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_try") 2>&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; } &&
19710 { ac_try='test -s conftest$ac_exeext'
19711 { (case "(($ac_try" in
19712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19713 *) ac_try_echo
=$ac_try;;
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_try") 2>&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; }; then
19720 ac_cv_lib_gcc___ashldi3
=yes
19722 echo "$as_me: failed program was:" >&5
19723 sed 's/^/| /' conftest.
$ac_ext >&5
19725 ac_cv_lib_gcc___ashldi3
=no
19728 rm -f core conftest.err conftest.
$ac_objext \
19729 conftest
$ac_exeext conftest.
$ac_ext
19730 LIBS
=$ac_check_lib_save_LIBS
19732 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19733 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19734 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19736 cat >>confdefs.h
<<\_ACEOF
19737 #define HAVE___ASHLDI3 1
19742 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19743 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19744 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19747 ac_check_lib_save_LIBS
=$LIBS
19749 cat >conftest.
$ac_ext <<_ACEOF
19752 cat confdefs.h
>>conftest.
$ac_ext
19753 cat >>conftest.
$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19756 /* Override any GCC internal prototype to avoid an error.
19757 Use char because int might match the return type of a GCC
19758 builtin and then its argument prototype would still apply. */
19766 return __ashrdi3 ();
19771 rm -f conftest.
$ac_objext conftest
$ac_exeext
19772 if { (ac_try
="$ac_link"
19773 case "(($ac_try" in
19774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_link") 2>conftest.er1
19780 grep -v '^ *+' conftest.er1 >conftest.err
19782 cat conftest.err >&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); } &&
19785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19786 { (case "(($ac_try" in
19787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19788 *) ac_try_echo
=$ac_try;;
19790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19791 (eval "$ac_try") 2>&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; } &&
19795 { ac_try
='test -s conftest$ac_exeext'
19796 { (case "(($ac_try" in
19797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_try") 2>&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; }; then
19805 ac_cv_lib_gcc___ashrdi3=yes
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19810 ac_cv_lib_gcc___ashrdi3=no
19813 rm -f core conftest.err conftest.$ac_objext \
19814 conftest$ac_exeext conftest.$ac_ext
19815 LIBS=$ac_check_lib_save_LIBS
19817 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19818 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19819 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19821 cat >>confdefs.h <<\_ACEOF
19822 #define HAVE___ASHRDI3 1
19827 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19828 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19829 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
19832 ac_check_lib_save_LIBS=$LIBS
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19841 /* Override any GCC internal prototype to avoid an error.
19842 Use char because int might match the return type of a GCC
19843 builtin and then its argument prototype would still apply. */
19851 return __divdi3 ();
19856 rm -f conftest.$ac_objext conftest$ac_exeext
19857 if { (ac_try="$ac_link"
19858 case "(($ac_try" in
19859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19860 *) ac_try_echo
=$ac_try;;
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_link") 2>conftest.er1
19865 grep -v '^ *+' conftest.er1
>conftest.err
19867 cat conftest.err
>&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
19870 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19871 { (case "(($ac_try" in
19872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_try") 2>&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; } &&
19880 { ac_try='test -s conftest$ac_exeext'
19881 { (case "(($ac_try" in
19882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19883 *) ac_try_echo
=$ac_try;;
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_try") 2>&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
19890 ac_cv_lib_gcc___divdi3
=yes
19892 echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.
$ac_ext >&5
19895 ac_cv_lib_gcc___divdi3
=no
19898 rm -f core conftest.err conftest.
$ac_objext \
19899 conftest
$ac_exeext conftest.
$ac_ext
19900 LIBS
=$ac_check_lib_save_LIBS
19902 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19903 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19904 if test $ac_cv_lib_gcc___divdi3 = yes; then
19906 cat >>confdefs.h
<<\_ACEOF
19907 #define HAVE___DIVDI3 1
19912 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19913 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19914 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 ac_check_lib_save_LIBS
=$LIBS
19919 cat >conftest.
$ac_ext <<_ACEOF
19922 cat confdefs.h
>>conftest.
$ac_ext
19923 cat >>conftest.
$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19926 /* Override any GCC internal prototype to avoid an error.
19927 Use char because int might match the return type of a GCC
19928 builtin and then its argument prototype would still apply. */
19936 return __fixdfdi ();
19941 rm -f conftest.
$ac_objext conftest
$ac_exeext
19942 if { (ac_try
="$ac_link"
19943 case "(($ac_try" in
19944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_link") 2>conftest.er1
19950 grep -v '^ *+' conftest.er1 >conftest.err
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
19955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19956 { (case "(($ac_try" in
19957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19958 *) ac_try_echo
=$ac_try;;
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961 (eval "$ac_try") 2>&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; } &&
19965 { ac_try
='test -s conftest$ac_exeext'
19966 { (case "(($ac_try" in
19967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19968 *) ac_try_echo=$ac_try;;
19970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971 (eval "$ac_try") 2>&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19975 ac_cv_lib_gcc___fixdfdi=yes
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19980 ac_cv_lib_gcc___fixdfdi=no
19983 rm -f core conftest.err conftest.$ac_objext \
19984 conftest$ac_exeext conftest.$ac_ext
19985 LIBS=$ac_check_lib_save_LIBS
19987 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19988 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19989 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19991 cat >>confdefs.h <<\_ACEOF
19992 #define HAVE___FIXDFDI 1
19997 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19998 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19999 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
20002 ac_check_lib_save_LIBS=$LIBS
20004 cat >conftest.$ac_ext <<_ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20011 /* Override any GCC internal prototype to avoid an error.
20012 Use char because int might match the return type of a GCC
20013 builtin and then its argument prototype would still apply. */
20021 return __fixsfdi ();
20026 rm -f conftest.$ac_objext conftest$ac_exeext
20027 if { (ac_try="$ac_link"
20028 case "(($ac_try" in
20029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20030 *) ac_try_echo
=$ac_try;;
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_link") 2>conftest.er1
20035 grep -v '^ *+' conftest.er1
>conftest.err
20037 cat conftest.err
>&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } &&
20040 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20041 { (case "(($ac_try" in
20042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_try") 2>&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; } &&
20050 { ac_try='test -s conftest$ac_exeext'
20051 { (case "(($ac_try" in
20052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20053 *) ac_try_echo
=$ac_try;;
20055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20056 (eval "$ac_try") 2>&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; }; then
20060 ac_cv_lib_gcc___fixsfdi
=yes
20062 echo "$as_me: failed program was:" >&5
20063 sed 's/^/| /' conftest.
$ac_ext >&5
20065 ac_cv_lib_gcc___fixsfdi
=no
20068 rm -f core conftest.err conftest.
$ac_objext \
20069 conftest
$ac_exeext conftest.
$ac_ext
20070 LIBS
=$ac_check_lib_save_LIBS
20072 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20073 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20074 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20076 cat >>confdefs.h
<<\_ACEOF
20077 #define HAVE___FIXSFDI 1
20082 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20083 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20084 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20087 ac_check_lib_save_LIBS
=$LIBS
20089 cat >conftest.
$ac_ext <<_ACEOF
20092 cat confdefs.h
>>conftest.
$ac_ext
20093 cat >>conftest.
$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20096 /* Override any GCC internal prototype to avoid an error.
20097 Use char because int might match the return type of a GCC
20098 builtin and then its argument prototype would still apply. */
20102 char __floatdidf ();
20106 return __floatdidf ();
20111 rm -f conftest.
$ac_objext conftest
$ac_exeext
20112 if { (ac_try
="$ac_link"
20113 case "(($ac_try" in
20114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_link") 2>conftest.er1
20120 grep -v '^ *+' conftest.er1 >conftest.err
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } &&
20125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20126 { (case "(($ac_try" in
20127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20128 *) ac_try_echo
=$ac_try;;
20130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131 (eval "$ac_try") 2>&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; } &&
20135 { ac_try
='test -s conftest$ac_exeext'
20136 { (case "(($ac_try" in
20137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_try") 2>&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); }; }; then
20145 ac_cv_lib_gcc___floatdidf=yes
20147 echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20150 ac_cv_lib_gcc___floatdidf=no
20153 rm -f core conftest.err conftest.$ac_objext \
20154 conftest$ac_exeext conftest.$ac_ext
20155 LIBS=$ac_check_lib_save_LIBS
20157 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20158 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20159 if test $ac_cv_lib_gcc___floatdidf = yes; then
20161 cat >>confdefs.h <<\_ACEOF
20162 #define HAVE___FLOATDIDF 1
20167 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20168 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20169 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20172 ac_check_lib_save_LIBS=$LIBS
20174 cat >conftest.$ac_ext <<_ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h. */
20181 /* Override any GCC internal prototype to avoid an error.
20182 Use char because int might match the return type of a GCC
20183 builtin and then its argument prototype would still apply. */
20191 return __lshrdi3 ();
20196 rm -f conftest.$ac_objext conftest$ac_exeext
20197 if { (ac_try="$ac_link"
20198 case "(($ac_try" in
20199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20200 *) ac_try_echo
=$ac_try;;
20202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203 (eval "$ac_link") 2>conftest.er1
20205 grep -v '^ *+' conftest.er1
>conftest.err
20207 cat conftest.err
>&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } &&
20210 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20211 { (case "(($ac_try" in
20212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_try") 2>&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; } &&
20220 { ac_try='test -s conftest$ac_exeext'
20221 { (case "(($ac_try" in
20222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20223 *) ac_try_echo
=$ac_try;;
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_try") 2>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20230 ac_cv_lib_gcc___lshrdi3
=yes
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.
$ac_ext >&5
20235 ac_cv_lib_gcc___lshrdi3
=no
20238 rm -f core conftest.err conftest.
$ac_objext \
20239 conftest
$ac_exeext conftest.
$ac_ext
20240 LIBS
=$ac_check_lib_save_LIBS
20242 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20243 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20244 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20246 cat >>confdefs.h
<<\_ACEOF
20247 #define HAVE___LSHRDI3 1
20252 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20253 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20254 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20255 echo $ECHO_N "(cached) $ECHO_C" >&6
20257 ac_check_lib_save_LIBS
=$LIBS
20259 cat >conftest.
$ac_ext <<_ACEOF
20262 cat confdefs.h
>>conftest.
$ac_ext
20263 cat >>conftest.
$ac_ext <<_ACEOF
20264 /* end confdefs.h. */
20266 /* Override any GCC internal prototype to avoid an error.
20267 Use char because int might match the return type of a GCC
20268 builtin and then its argument prototype would still apply. */
20276 return __moddi3 ();
20281 rm -f conftest.
$ac_objext conftest
$ac_exeext
20282 if { (ac_try
="$ac_link"
20283 case "(($ac_try" in
20284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_link") 2>conftest.er1
20290 grep -v '^ *+' conftest.er1 >conftest.err
20292 cat conftest.err >&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } &&
20295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20296 { (case "(($ac_try" in
20297 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20298 *) ac_try_echo
=$ac_try;;
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301 (eval "$ac_try") 2>&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; } &&
20305 { ac_try
='test -s conftest$ac_exeext'
20306 { (case "(($ac_try" in
20307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20308 *) ac_try_echo=$ac_try;;
20310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311 (eval "$ac_try") 2>&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; }; then
20315 ac_cv_lib_gcc___moddi3=yes
20317 echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20320 ac_cv_lib_gcc___moddi3=no
20323 rm -f core conftest.err conftest.$ac_objext \
20324 conftest$ac_exeext conftest.$ac_ext
20325 LIBS=$ac_check_lib_save_LIBS
20327 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20328 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20329 if test $ac_cv_lib_gcc___moddi3 = yes; then
20331 cat >>confdefs.h <<\_ACEOF
20332 #define HAVE___MODDI3 1
20337 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20338 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20339 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20340 echo $ECHO_N "(cached) $ECHO_C" >&6
20342 ac_check_lib_save_LIBS=$LIBS
20344 cat >conftest.$ac_ext <<_ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20351 /* Override any GCC internal prototype to avoid an error.
20352 Use char because int might match the return type of a GCC
20353 builtin and then its argument prototype would still apply. */
20361 return __udivdi3 ();
20366 rm -f conftest.$ac_objext conftest$ac_exeext
20367 if { (ac_try="$ac_link"
20368 case "(($ac_try" in
20369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20370 *) ac_try_echo
=$ac_try;;
20372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20373 (eval "$ac_link") 2>conftest.er1
20375 grep -v '^ *+' conftest.er1
>conftest.err
20377 cat conftest.err
>&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } &&
20380 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20381 { (case "(($ac_try" in
20382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20383 *) ac_try_echo=$ac_try;;
20385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20386 (eval "$ac_try") 2>&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; } &&
20390 { ac_try='test -s conftest$ac_exeext'
20391 { (case "(($ac_try" in
20392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20393 *) ac_try_echo
=$ac_try;;
20395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20396 (eval "$ac_try") 2>&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; }; then
20400 ac_cv_lib_gcc___udivdi3
=yes
20402 echo "$as_me: failed program was:" >&5
20403 sed 's/^/| /' conftest.
$ac_ext >&5
20405 ac_cv_lib_gcc___udivdi3
=no
20408 rm -f core conftest.err conftest.
$ac_objext \
20409 conftest
$ac_exeext conftest.
$ac_ext
20410 LIBS
=$ac_check_lib_save_LIBS
20412 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20413 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20414 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20416 cat >>confdefs.h
<<\_ACEOF
20417 #define HAVE___UDIVDI3 1
20422 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20423 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20424 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20427 ac_check_lib_save_LIBS
=$LIBS
20429 cat >conftest.
$ac_ext <<_ACEOF
20432 cat confdefs.h
>>conftest.
$ac_ext
20433 cat >>conftest.
$ac_ext <<_ACEOF
20434 /* end confdefs.h. */
20436 /* Override any GCC internal prototype to avoid an error.
20437 Use char because int might match the return type of a GCC
20438 builtin and then its argument prototype would still apply. */
20446 return __umoddi3 ();
20451 rm -f conftest.
$ac_objext conftest
$ac_exeext
20452 if { (ac_try
="$ac_link"
20453 case "(($ac_try" in
20454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_link") 2>conftest.er1
20460 grep -v '^ *+' conftest.er1 >conftest.err
20462 cat conftest.err >&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } &&
20465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20466 { (case "(($ac_try" in
20467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20468 *) ac_try_echo
=$ac_try;;
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_try") 2>&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; } &&
20475 { ac_try
='test -s conftest$ac_exeext'
20476 { (case "(($ac_try" in
20477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481 (eval "$ac_try") 2>&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; }; then
20485 ac_cv_lib_gcc___umoddi3=yes
20487 echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20490 ac_cv_lib_gcc___umoddi3=no
20493 rm -f core conftest.err conftest.$ac_objext \
20494 conftest$ac_exeext conftest.$ac_ext
20495 LIBS=$ac_check_lib_save_LIBS
20497 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20498 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20499 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20501 cat >>confdefs.h <<\_ACEOF
20502 #define HAVE___UMODDI3 1
20508 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20509 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20510 if test "${ac_cv_lib_gcc___main+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 ac_check_lib_save_LIBS=$LIBS
20515 cat >conftest.$ac_ext <<_ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h. */
20522 /* Override any GCC internal prototype to avoid an error.
20523 Use char because int might match the return type of a GCC
20524 builtin and then its argument prototype would still apply. */
20537 rm -f conftest.$ac_objext conftest$ac_exeext
20538 if { (ac_try="$ac_link"
20539 case "(($ac_try" in
20540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20541 *) ac_try_echo
=$ac_try;;
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_link") 2>conftest.er1
20546 grep -v '^ *+' conftest.er1
>conftest.err
20548 cat conftest.err
>&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } &&
20551 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20552 { (case "(($ac_try" in
20553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_try") 2>&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; } &&
20561 { ac_try='test -s conftest$ac_exeext'
20562 { (case "(($ac_try" in
20563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20564 *) ac_try_echo
=$ac_try;;
20566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_try") 2>&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; }; then
20571 ac_cv_lib_gcc___main
=yes
20573 echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.
$ac_ext >&5
20576 ac_cv_lib_gcc___main
=no
20579 rm -f core conftest.err conftest.
$ac_objext \
20580 conftest
$ac_exeext conftest.
$ac_ext
20581 LIBS
=$ac_check_lib_save_LIBS
20583 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20584 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20585 if test $ac_cv_lib_gcc___main = yes; then
20587 cat >>confdefs.h
<<\_ACEOF
20588 #define HAVE___MAIN 1
20593 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20594 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20595 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20596 echo $ECHO_N "(cached) $ECHO_C" >&6
20598 ac_check_lib_save_LIBS
=$LIBS
20600 cat >conftest.
$ac_ext <<_ACEOF
20603 cat confdefs.h
>>conftest.
$ac_ext
20604 cat >>conftest.
$ac_ext <<_ACEOF
20605 /* end confdefs.h. */
20607 /* Override any GCC internal prototype to avoid an error.
20608 Use char because int might match the return type of a GCC
20609 builtin and then its argument prototype would still apply. */
20617 return __cmpdi2 ();
20622 rm -f conftest.
$ac_objext conftest
$ac_exeext
20623 if { (ac_try
="$ac_link"
20624 case "(($ac_try" in
20625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_link") 2>conftest.er1
20631 grep -v '^ *+' conftest.er1 >conftest.err
20633 cat conftest.err >&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } &&
20636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20637 { (case "(($ac_try" in
20638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20639 *) ac_try_echo
=$ac_try;;
20641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20642 (eval "$ac_try") 2>&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; } &&
20646 { ac_try
='test -s conftest$ac_exeext'
20647 { (case "(($ac_try" in
20648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20649 *) ac_try_echo=$ac_try;;
20651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652 (eval "$ac_try") 2>&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }; then
20656 ac_cv_lib_gcc___cmpdi2=yes
20658 echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20661 ac_cv_lib_gcc___cmpdi2=no
20664 rm -f core conftest.err conftest.$ac_objext \
20665 conftest$ac_exeext conftest.$ac_ext
20666 LIBS=$ac_check_lib_save_LIBS
20668 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20669 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20670 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20672 cat >>confdefs.h <<\_ACEOF
20673 #define HAVE___CMPDI2 1
20680 if test "$llvm_cv_os_type" = "MingW" ; then
20681 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20682 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20683 cat >conftest.$ac_ext <<_ACEOF
20684 #include <windows.h>
20685 #include <imagehlp.h>
20686 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20687 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20689 rm -f conftest.$ac_objext
20690 if { (ac_try="$ac_compile"
20691 case "(($ac_try" in
20692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20693 *) ac_try_echo
=$ac_try;;
20695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_compile") 2>conftest.er1
20698 grep -v '^ *+' conftest.er1
>conftest.err
20700 cat conftest.err
>&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } &&
20703 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20704 { (case "(($ac_try" in
20705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_try") 2>&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; } &&
20713 { ac_try='test -s conftest.$ac_objext'
20714 { (case "(($ac_try" in
20715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20716 *) ac_try_echo
=$ac_try;;
20718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_try") 2>&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; }; then
20724 { echo "$as_me:$LINENO: result: yes" >&5
20725 echo "${ECHO_T}yes" >&6; }
20726 llvm_cv_win32_elmcb_pcstr
="PCSTR"
20729 echo "$as_me: failed program was:" >&5
20730 sed 's/^/| /' conftest.
$ac_ext >&5
20733 { echo "$as_me:$LINENO: result: no" >&5
20734 echo "${ECHO_T}no" >&6; }
20735 llvm_cv_win32_elmcb_pcstr
="PSTR"
20739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20741 cat >>confdefs.h
<<_ACEOF
20742 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20748 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20749 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20750 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20751 echo $ECHO_N "(cached) $ECHO_C" >&6
20754 ac_cpp
='$CXXCPP $CPPFLAGS'
20755 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20756 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20757 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20759 cat >conftest.
$ac_ext <<_ACEOF
20762 cat confdefs.h
>>conftest.
$ac_ext
20763 cat >>conftest.
$ac_ext <<_ACEOF
20764 /* end confdefs.h. */
20774 rm -f conftest.
$ac_objext
20775 if { (ac_try
="$ac_compile"
20776 case "(($ac_try" in
20777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_compile") 2>conftest.er1
20783 grep -v '^ *+' conftest.er1 >conftest.err
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } &&
20788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20789 { (case "(($ac_try" in
20790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20791 *) ac_try_echo
=$ac_try;;
20793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_try") 2>&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; } &&
20798 { ac_try
='test -s conftest.$ac_objext'
20799 { (case "(($ac_try" in
20800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20801 *) ac_try_echo=$ac_try;;
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_try") 2>&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; }; then
20808 ac_cv_func_isnan_in_math_h=yes
20810 echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20813 ac_cv_func_isnan_in_math_h=no
20816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20818 ac_cpp='$CPP $CPPFLAGS'
20819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20824 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20825 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20828 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20830 cat >>confdefs.h <<\_ACEOF
20831 #define HAVE_ISNAN_IN_MATH_H 1
20836 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20837 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20838 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 ac_cpp='$CXXCPP $CPPFLAGS'
20843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20847 cat >conftest.$ac_ext <<_ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20862 rm -f conftest.$ac_objext
20863 if { (ac_try="$ac_compile"
20864 case "(($ac_try" in
20865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20866 *) ac_try_echo
=$ac_try;;
20868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869 (eval "$ac_compile") 2>conftest.er1
20871 grep -v '^ *+' conftest.er1
>conftest.err
20873 cat conftest.err
>&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } &&
20876 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20877 { (case "(($ac_try" in
20878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20879 *) ac_try_echo=$ac_try;;
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882 (eval "$ac_try") 2>&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; } &&
20886 { ac_try='test -s conftest.$ac_objext'
20887 { (case "(($ac_try" in
20888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20889 *) ac_try_echo
=$ac_try;;
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_try") 2>&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; }; then
20896 ac_cv_func_isnan_in_cmath
=yes
20898 echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.
$ac_ext >&5
20901 ac_cv_func_isnan_in_cmath
=no
20904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20906 ac_cpp
='$CPP $CPPFLAGS'
20907 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20908 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20909 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20912 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20913 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20915 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20917 cat >>confdefs.h
<<\_ACEOF
20918 #define HAVE_ISNAN_IN_CMATH 1
20923 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20924 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20925 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20926 echo $ECHO_N "(cached) $ECHO_C" >&6
20929 ac_cpp
='$CXXCPP $CPPFLAGS'
20930 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20934 cat >conftest.
$ac_ext <<_ACEOF
20937 cat confdefs.h
>>conftest.
$ac_ext
20938 cat >>conftest.
$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20944 float f; std::isnan(f);
20949 rm -f conftest.
$ac_objext
20950 if { (ac_try
="$ac_compile"
20951 case "(($ac_try" in
20952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20953 *) ac_try_echo=$ac_try;;
20955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956 (eval "$ac_compile") 2>conftest.er1
20958 grep -v '^ *+' conftest.er1 >conftest.err
20960 cat conftest.err >&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } &&
20963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20964 { (case "(($ac_try" in
20965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20966 *) ac_try_echo
=$ac_try;;
20968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969 (eval "$ac_try") 2>&5
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); }; } &&
20973 { ac_try
='test -s conftest.$ac_objext'
20974 { (case "(($ac_try" in
20975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_try") 2>&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
20983 ac_cv_func_std_isnan_in_cmath=yes
20985 echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20988 ac_cv_func_std_isnan_in_cmath=no
20991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20993 ac_cpp='$CPP $CPPFLAGS'
20994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20999 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21000 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21002 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21004 cat >>confdefs.h <<\_ACEOF
21005 #define HAVE_STD_ISNAN_IN_CMATH 1
21011 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21012 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21013 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21014 echo $ECHO_N "(cached) $ECHO_C" >&6
21017 ac_cpp='$CXXCPP $CPPFLAGS'
21018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21022 cat >conftest.$ac_ext <<_ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h. */
21037 rm -f conftest.$ac_objext
21038 if { (ac_try="$ac_compile"
21039 case "(($ac_try" in
21040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21041 *) ac_try_echo
=$ac_try;;
21043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21044 (eval "$ac_compile") 2>conftest.er1
21046 grep -v '^ *+' conftest.er1
>conftest.err
21048 cat conftest.err
>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } &&
21051 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21052 { (case "(($ac_try" in
21053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057 (eval "$ac_try") 2>&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; } &&
21061 { ac_try='test -s conftest.$ac_objext'
21062 { (case "(($ac_try" in
21063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21064 *) ac_try_echo
=$ac_try;;
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_try") 2>&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; }; then
21071 ac_cv_func_isinf_in_math_h
=yes
21073 echo "$as_me: failed program was:" >&5
21074 sed 's/^/| /' conftest.
$ac_ext >&5
21076 ac_cv_func_isinf_in_math_h
=no
21079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21081 ac_cpp
='$CPP $CPPFLAGS'
21082 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21083 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21084 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21087 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21088 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21090 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21092 cat >>confdefs.h
<<\_ACEOF
21093 #define HAVE_ISINF_IN_MATH_H 1
21098 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21099 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21100 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
21104 ac_cpp
='$CXXCPP $CPPFLAGS'
21105 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21106 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21107 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21109 cat >conftest.
$ac_ext <<_ACEOF
21112 cat confdefs.h
>>conftest.
$ac_ext
21113 cat >>conftest.
$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21124 rm -f conftest.
$ac_objext
21125 if { (ac_try
="$ac_compile"
21126 case "(($ac_try" in
21127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_compile") 2>conftest.er1
21133 grep -v '^ *+' conftest.er1 >conftest.err
21135 cat conftest.err >&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } &&
21138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21139 { (case "(($ac_try" in
21140 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21141 *) ac_try_echo
=$ac_try;;
21143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21144 (eval "$ac_try") 2>&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); }; } &&
21148 { ac_try
='test -s conftest.$ac_objext'
21149 { (case "(($ac_try" in
21150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21151 *) ac_try_echo=$ac_try;;
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154 (eval "$ac_try") 2>&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); }; }; then
21158 ac_cv_func_isinf_in_cmath=yes
21160 echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21163 ac_cv_func_isinf_in_cmath=no
21166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21168 ac_cpp='$CPP $CPPFLAGS'
21169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21174 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21175 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21177 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21179 cat >>confdefs.h <<\_ACEOF
21180 #define HAVE_ISINF_IN_CMATH 1
21185 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21186 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21187 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21188 echo $ECHO_N "(cached) $ECHO_C" >&6
21191 ac_cpp='$CXXCPP $CPPFLAGS'
21192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21196 cat >conftest.$ac_ext <<_ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h. */
21206 float f; std::isinf(f)}
21211 rm -f conftest.$ac_objext
21212 if { (ac_try="$ac_compile"
21213 case "(($ac_try" in
21214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21215 *) ac_try_echo
=$ac_try;;
21217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21218 (eval "$ac_compile") 2>conftest.er1
21220 grep -v '^ *+' conftest.er1
>conftest.err
21222 cat conftest.err
>&5
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } &&
21225 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21226 { (case "(($ac_try" in
21227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231 (eval "$ac_try") 2>&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; } &&
21235 { ac_try='test -s conftest.$ac_objext'
21236 { (case "(($ac_try" in
21237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21238 *) ac_try_echo
=$ac_try;;
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241 (eval "$ac_try") 2>&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; }; then
21245 ac_cv_func_std_isinf_in_cmath
=yes
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.
$ac_ext >&5
21250 ac_cv_func_std_isinf_in_cmath
=no
21253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21255 ac_cpp
='$CPP $CPPFLAGS'
21256 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21257 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21258 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21261 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21262 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21264 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21266 cat >>confdefs.h
<<\_ACEOF
21267 #define HAVE_STD_ISINF_IN_CMATH 1
21272 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21273 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21274 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 ac_cpp
='$CXXCPP $CPPFLAGS'
21279 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21280 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21281 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21283 cat >conftest.
$ac_ext <<_ACEOF
21286 cat confdefs.h
>>conftest.
$ac_ext
21287 cat >>conftest.
$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 #include <ieeefp.h>
21293 float f; finite(f);
21298 rm -f conftest.
$ac_objext
21299 if { (ac_try
="$ac_compile"
21300 case "(($ac_try" in
21301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_compile") 2>conftest.er1
21307 grep -v '^ *+' conftest.er1 >conftest.err
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } &&
21312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21313 { (case "(($ac_try" in
21314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21315 *) ac_try_echo
=$ac_try;;
21317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21318 (eval "$ac_try") 2>&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); }; } &&
21322 { ac_try
='test -s conftest.$ac_objext'
21323 { (case "(($ac_try" in
21324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21325 *) ac_try_echo=$ac_try;;
21327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21328 (eval "$ac_try") 2>&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; }; then
21332 ac_cv_func_finite_in_ieeefp_h=yes
21334 echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21337 ac_cv_func_finite_in_ieeefp_h=no
21340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21342 ac_cpp='$CPP $CPPFLAGS'
21343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21348 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21349 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21351 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21353 cat >>confdefs.h <<\_ACEOF
21354 #define HAVE_FINITE_IN_IEEEFP_H 1
21361 if test "$llvm_cv_platform_type" = "Unix" ; then
21364 for ac_header in stdlib.h unistd.h
21366 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
21367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21371 echo $ECHO_N "(cached) $ECHO_C" >&6
21373 ac_res=`eval echo '${'$as_ac_Header'}'`
21374 { echo "$as_me:$LINENO: result: $ac_res" >&5
21375 echo "${ECHO_T}$ac_res" >&6; }
21377 # Is the header compilable?
21378 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21380 cat >conftest.$ac_ext <<_ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h. */
21386 $ac_includes_default
21387 #include <$ac_header>
21389 rm -f conftest.$ac_objext
21390 if { (ac_try="$ac_compile"
21391 case "(($ac_try" in
21392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21393 *) ac_try_echo
=$ac_try;;
21395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21396 (eval "$ac_compile") 2>conftest.er1
21398 grep -v '^ *+' conftest.er1
>conftest.err
21400 cat conftest.err
>&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); } &&
21403 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21404 { (case "(($ac_try" in
21405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409 (eval "$ac_try") 2>&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); }; } &&
21413 { ac_try='test -s conftest.$ac_objext'
21414 { (case "(($ac_try" in
21415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21416 *) ac_try_echo
=$ac_try;;
21418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21419 (eval "$ac_try") 2>&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 ac_header_compiler
=yes
21425 echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.
$ac_ext >&5
21428 ac_header_compiler
=no
21431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21433 echo "${ECHO_T}$ac_header_compiler" >&6; }
21435 # Is the header present?
21436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21438 cat >conftest.
$ac_ext <<_ACEOF
21441 cat confdefs.h
>>conftest.
$ac_ext
21442 cat >>conftest.
$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21444 #include <$ac_header>
21446 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21447 case "(($ac_try" in
21448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21454 grep -v '^ *+' conftest.er1 >conftest.err
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } >/dev/null; then
21459 if test -s conftest.err; then
21460 ac_cpp_err=$ac_c_preproc_warn_flag
21461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21468 if test -z "$ac_cpp_err"; then
21469 ac_header_preproc=yes
21471 echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21474 ac_header_preproc=no
21477 rm -f conftest.err conftest.$ac_ext
21478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21479 echo "${ECHO_T}$ac_header_preproc" >&6; }
21481 # So? What about this header?
21482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21488 ac_header_preproc=yes
21491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21504 ## ----------------------------------- ##
21505 ## Report this to llvmbugs@cs.uiuc.edu ##
21506 ## ----------------------------------- ##
21508 ) | sed "s/^/$as_me: WARNING: /" >&2
21511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21514 echo $ECHO_N "(cached) $ECHO_C" >&6
21516 eval "$as_ac_Header=\$ac_header_preproc"
21518 ac_res=`eval echo '${'$as_ac_Header'}'`
21519 { echo "$as_me:$LINENO: result: $ac_res" >&5
21520 echo "${ECHO_T}$ac_res" >&6; }
21523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21524 cat >>confdefs.h <<_ACEOF
21525 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
21533 for ac_func in getpagesize
21535 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
21541 cat >conftest.$ac_ext <<_ACEOF
21544 cat confdefs.h >>conftest.$ac_ext
21545 cat >>conftest.$ac_ext <<_ACEOF
21546 /* end confdefs.h. */
21547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21549 #define $ac_func innocuous_$ac_func
21551 /* System header to define __stub macros and hopefully few prototypes,
21552 which can conflict with char $ac_func (); below.
21553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21554 <limits.h> exists even on freestanding compilers. */
21557 # include <limits.h>
21559 # include <assert.h>
21564 /* Override any GCC internal prototype to avoid an error.
21565 Use char because int might match the return type of a GCC
21566 builtin and then its argument prototype would still apply. */
21571 /* The GNU C library defines this for functions which it implements
21572 to always fail with ENOSYS. Some functions are actually named
21573 something starting with __ and the normal name is an alias. */
21574 #if defined __stub_$ac_func || defined __stub___$ac_func
21581 return $ac_func ();
21586 rm -f conftest.$ac_objext conftest$ac_exeext
21587 if { (ac_try="$ac_link"
21588 case "(($ac_try" in
21589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21590 *) ac_try_echo
=$ac_try;;
21592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21593 (eval "$ac_link") 2>conftest.er1
21595 grep -v '^ *+' conftest.er1
>conftest.err
21597 cat conftest.err
>&5
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } &&
21600 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21601 { (case "(($ac_try" in
21602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21603 *) ac_try_echo=$ac_try;;
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606 (eval "$ac_try") 2>&5
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); }; } &&
21610 { ac_try='test -s conftest$ac_exeext'
21611 { (case "(($ac_try" in
21612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21613 *) ac_try_echo
=$ac_try;;
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_try") 2>&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; }; then
21620 eval "$as_ac_var=yes"
21622 echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.
$ac_ext >&5
21625 eval "$as_ac_var=no"
21628 rm -f core conftest.err conftest.
$ac_objext \
21629 conftest
$ac_exeext conftest.
$ac_ext
21631 ac_res
=`eval echo '${'$as_ac_var'}'`
21632 { echo "$as_me:$LINENO: result: $ac_res" >&5
21633 echo "${ECHO_T}$ac_res" >&6; }
21634 if test `eval echo '${'$as_ac_var'}'` = yes; then
21635 cat >>confdefs.h
<<_ACEOF
21636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21642 { echo "$as_me:$LINENO: checking for working mmap" >&5
21643 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21644 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21647 if test "$cross_compiling" = yes; then
21648 ac_cv_func_mmap_fixed_mapped
=no
21650 cat >conftest.
$ac_ext <<_ACEOF
21653 cat confdefs.h
>>conftest.
$ac_ext
21654 cat >>conftest.
$ac_ext <<_ACEOF
21655 /* end confdefs.h. */
21656 $ac_includes_default
21657 /* malloc might have been renamed as rpl_malloc. */
21660 /* Thanks to Mike Haertel and Jim Avera for this test.
21661 Here is a matrix of mmap possibilities:
21662 mmap private not fixed
21663 mmap private fixed at somewhere currently unmapped
21664 mmap private fixed at somewhere already mapped
21665 mmap shared not fixed
21666 mmap shared fixed at somewhere currently unmapped
21667 mmap shared fixed at somewhere already mapped
21668 For private mappings, we should verify that changes cannot be read()
21669 back from the file, nor mmap's back from the file at a different
21670 address. (There have been systems where private was not correctly
21671 implemented like the infamous i386 svr4.0, and systems where the
21672 VM page cache was not coherent with the file system buffer cache
21673 like early versions of FreeBSD and possibly contemporary NetBSD.)
21674 For shared mappings, we should conversely verify that changes get
21675 propagated back to all the places they're supposed to be.
21677 Grep wants private fixed already mapped.
21678 The main things grep needs to know about mmap are:
21679 * does it exist and is it safe to write into the mmap'd area
21680 * how to use it (BSD variants) */
21683 #include <sys/mman.h>
21685 #if !STDC_HEADERS && !HAVE_STDLIB_H
21689 /* This mess was copied from the GNU getpagesize.h. */
21690 #if !HAVE_GETPAGESIZE
21691 /* Assume that all systems that can run configure have sys/param.h. */
21692 # if !HAVE_SYS_PARAM_H
21693 # define HAVE_SYS_PARAM_H 1
21696 # ifdef _SC_PAGESIZE
21697 # define getpagesize() sysconf(_SC_PAGESIZE)
21698 # else /* no _SC_PAGESIZE */
21699 # if HAVE_SYS_PARAM_H
21700 # include <sys/param.h>
21701 # ifdef EXEC_PAGESIZE
21702 # define getpagesize() EXEC_PAGESIZE
21703 # else /* no EXEC_PAGESIZE */
21705 # define getpagesize() NBPG * CLSIZE
21708 # endif /* no CLSIZE */
21709 # else /* no NBPG */
21711 # define getpagesize() NBPC
21712 # else /* no NBPC */
21714 # define getpagesize() PAGESIZE
21715 # endif /* PAGESIZE */
21716 # endif /* no NBPC */
21717 # endif /* no NBPG */
21718 # endif /* no EXEC_PAGESIZE */
21719 # else /* no HAVE_SYS_PARAM_H */
21720 # define getpagesize() 8192 /* punt totally */
21721 # endif /* no HAVE_SYS_PARAM_H */
21722 # endif /* no _SC_PAGESIZE */
21724 #endif /* no HAVE_GETPAGESIZE */
21729 char *data, *data2, *data3;
21733 pagesize = getpagesize ();
21735 /* First, make a file with some known garbage in it. */
21736 data = (char *) malloc (pagesize);
21739 for (i = 0; i < pagesize; ++i)
21740 *(data + i) = rand ();
21742 fd = creat ("conftest.mmap", 0600);
21745 if (write (fd, data, pagesize) != pagesize)
21749 /* Next, try to mmap the file at a fixed address which already has
21750 something else allocated at it. If we can, also make sure that
21751 we see the same garbage. */
21752 fd = open ("conftest.mmap", O_RDWR);
21755 data2 = (char *) malloc (2 * pagesize);
21758 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21759 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21760 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21762 for (i = 0; i < pagesize; ++i)
21763 if (*(data + i) != *(data2 + i))
21766 /* Finally, make sure that changes to the mapped area do not
21767 percolate back to the file as seen by read(). (This is a bug on
21768 some variants of i386 svr4.0.) */
21769 for (i = 0; i < pagesize; ++i)
21770 *(data2 + i) = *(data2 + i) + 1;
21771 data3 = (char *) malloc (pagesize);
21774 if (read (fd, data3, pagesize) != pagesize)
21776 for (i = 0; i < pagesize; ++i)
21777 if (*(data + i) != *(data3 + i))
21783 rm -f conftest
$ac_exeext
21784 if { (ac_try
="$ac_link"
21785 case "(($ac_try" in
21786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_link") 2>&5
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21794 { (case "(($ac_try" in
21795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21796 *) ac_try_echo
=$ac_try;;
21798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21799 (eval "$ac_try") 2>&5
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); }; }; then
21803 ac_cv_func_mmap_fixed_mapped
=yes
21805 echo "$as_me: program exited with status $ac_status" >&5
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.
$ac_ext >&5
21809 ( exit $ac_status )
21810 ac_cv_func_mmap_fixed_mapped
=no
21812 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21817 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21818 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21819 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21821 cat >>confdefs.h
<<\_ACEOF
21822 #define HAVE_MMAP 1
21826 rm -f conftest.mmap
21828 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21829 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21830 if test "${ac_cv_func_mmap_file+set}" = set; then
21831 echo $ECHO_N "(cached) $ECHO_C" >&6
21834 ac_cpp
='$CPP $CPPFLAGS'
21835 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21836 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21837 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21839 if test "$cross_compiling" = yes; then
21840 ac_cv_func_mmap_file
=no
21842 cat >conftest.
$ac_ext <<_ACEOF
21846 cat confdefs.h
>>conftest.
$ac_ext
21847 cat >>conftest.
$ac_ext <<_ACEOF
21848 /* end confdefs.h. */
21850 #include <sys/types.h>
21851 #include <sys/mman.h>
21859 fd = creat ("foo",0777);
21860 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21862 return (fd != (int) MAP_FAILED);
21867 rm -f conftest
$ac_exeext
21868 if { (ac_try
="$ac_link"
21869 case "(($ac_try" in
21870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21871 *) ac_try_echo=$ac_try;;
21873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21874 (eval "$ac_link") 2>&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21878 { (case "(($ac_try" in
21879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21880 *) ac_try_echo
=$ac_try;;
21882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21883 (eval "$ac_try") 2>&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; }; then
21887 ac_cv_func_mmap_file
=yes
21889 echo "$as_me: program exited with status $ac_status" >&5
21890 echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.
$ac_ext >&5
21893 ( exit $ac_status )
21894 ac_cv_func_mmap_file
=no
21896 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21901 ac_cpp
='$CPP $CPPFLAGS'
21902 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21903 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21904 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21908 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21909 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21910 if test "$ac_cv_func_mmap_file" = yes; then
21912 cat >>confdefs.h
<<\_ACEOF
21913 #define HAVE_MMAP_FILE
21920 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21921 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21922 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21925 if test "$llvm_cv_os_type" = "Interix" ; then
21926 ac_cv_need_dev_zero_for_mmap
=yes
21928 ac_cv_need_dev_zero_for_mmap
=no
21932 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21933 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21934 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21936 cat >>confdefs.h
<<\_ACEOF
21937 #define NEED_DEV_ZERO_FOR_MMAP 1
21942 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21944 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21945 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21947 if test "$ac_cv_func_mmap_file" = "no"
21949 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21950 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21954 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21955 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21957 ac_cpp
='$CXXCPP $CPPFLAGS'
21958 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21959 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21960 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21962 cat >conftest.
$ac_ext <<_ACEOF
21965 cat confdefs.h
>>conftest.
$ac_ext
21966 cat >>conftest.
$ac_ext <<_ACEOF
21967 /* end confdefs.h. */
21969 volatile unsigned long val = 1;
21970 __sync_synchronize();
21971 __sync_val_compare_and_swap(&val, 1, 0);
21972 __sync_add_and_fetch(&val, 1);
21973 __sync_sub_and_fetch(&val, 1);
21978 rm -f conftest.
$ac_objext conftest
$ac_exeext
21979 if { (ac_try
="$ac_link"
21980 case "(($ac_try" in
21981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21982 *) ac_try_echo=$ac_try;;
21984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21985 (eval "$ac_link") 2>conftest.er1
21987 grep -v '^ *+' conftest.er1 >conftest.err
21989 cat conftest.err >&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } &&
21992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21993 { (case "(($ac_try" in
21994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21995 *) ac_try_echo
=$ac_try;;
21997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21998 (eval "$ac_try") 2>&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); }; } &&
22002 { ac_try
='test -s conftest$ac_exeext'
22003 { (case "(($ac_try" in
22004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22005 *) ac_try_echo=$ac_try;;
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008 (eval "$ac_try") 2>&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); }; }; then
22013 ac_cpp='$CPP $CPPFLAGS'
22014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22018 { echo "$as_me:$LINENO: result: yes" >&5
22019 echo "${ECHO_T}yes" >&6; }
22021 cat >>confdefs.h <<\_ACEOF
22022 #define LLVM_MULTITHREADED 1
22026 echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22029 { echo "$as_me:$LINENO: result: no" >&5
22030 echo "${ECHO_T}no" >&6; }
22032 cat >>confdefs.h <<\_ACEOF
22033 #define LLVM_MULTITHREADED 0
22036 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22037 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22040 rm -f core conftest.err conftest.$ac_objext \
22041 conftest$ac_exeext conftest.$ac_ext
22044 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22045 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22046 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22047 if test "${llvm_cv_linux_mixed+set}" = set; then
22048 echo $ECHO_N "(cached) $ECHO_C" >&6
22051 ac_cpp='$CPP $CPPFLAGS'
22052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22056 cat >conftest.$ac_ext <<_ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h. */
22063 error: Not x86-64 even if uname says so!
22074 rm -f conftest.$ac_objext
22075 if { (ac_try="$ac_compile"
22076 case "(($ac_try" in
22077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22078 *) ac_try_echo
=$ac_try;;
22080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081 (eval "$ac_compile") 2>conftest.er1
22083 grep -v '^ *+' conftest.er1
>conftest.err
22085 cat conftest.err
>&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } &&
22088 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22089 { (case "(($ac_try" in
22090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_try") 2>&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; } &&
22098 { ac_try='test -s conftest.$ac_objext'
22099 { (case "(($ac_try" in
22100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22101 *) ac_try_echo
=$ac_try;;
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_try") 2>&5
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; }; then
22108 llvm_cv_linux_mixed
=no
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.
$ac_ext >&5
22113 llvm_cv_linux_mixed
=yes
22116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22118 ac_cpp
='$CPP $CPPFLAGS'
22119 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22120 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22121 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
22125 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22126 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22128 if test "$llvm_cv_linux_mixed" = "yes"; then
22129 llvm_cv_target_arch
="x86"
22135 for ac_func
in __dso_handle
22137 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22140 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22141 echo $ECHO_N "(cached) $ECHO_C" >&6
22143 cat >conftest.
$ac_ext <<_ACEOF
22146 cat confdefs.h
>>conftest.
$ac_ext
22147 cat >>conftest.
$ac_ext <<_ACEOF
22148 /* end confdefs.h. */
22149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22151 #define $ac_func innocuous_$ac_func
22153 /* System header to define __stub macros and hopefully few prototypes,
22154 which can conflict with char $ac_func (); below.
22155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22156 <limits.h> exists even on freestanding compilers. */
22159 # include <limits.h>
22161 # include <assert.h>
22166 /* Override any GCC internal prototype to avoid an error.
22167 Use char because int might match the return type of a GCC
22168 builtin and then its argument prototype would still apply. */
22173 /* The GNU C library defines this for functions which it implements
22174 to always fail with ENOSYS. Some functions are actually named
22175 something starting with __ and the normal name is an alias. */
22176 #if defined __stub_$ac_func || defined __stub___$ac_func
22183 return $ac_func ();
22188 rm -f conftest.
$ac_objext conftest
$ac_exeext
22189 if { (ac_try
="$ac_link"
22190 case "(($ac_try" in
22191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195 (eval "$ac_link") 2>conftest.er1
22197 grep -v '^ *+' conftest.er1 >conftest.err
22199 cat conftest.err >&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); } &&
22202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22203 { (case "(($ac_try" in
22204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22205 *) ac_try_echo
=$ac_try;;
22207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22208 (eval "$ac_try") 2>&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); }; } &&
22212 { ac_try
='test -s conftest$ac_exeext'
22213 { (case "(($ac_try" in
22214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218 (eval "$ac_try") 2>&5
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22222 eval "$as_ac_var=yes"
22224 echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22227 eval "$as_ac_var=no"
22230 rm -f core conftest.err conftest.$ac_objext \
22231 conftest$ac_exeext conftest.$ac_ext
22233 ac_res=`eval echo '${'$as_ac_var'}'`
22234 { echo "$as_me:$LINENO: result: $ac_res" >&5
22235 echo "${ECHO_T}$ac_res" >&6; }
22236 if test `eval echo '${'$as_ac_var'}'` = yes; then
22237 cat >>confdefs.h <<_ACEOF
22238 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22245 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22246 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22247 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22248 echo $ECHO_N "(cached) $ECHO_C" >&6
22250 llvm_cv_llvmgcc_dragonegg="no"
22251 if test -n "$LLVMGCC" ; then
22252 cp /dev/null conftest.c
22253 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22254 if test $? -eq 0 ; then
22255 llvm_cv_llvmgcc_dragonegg="yes"
22260 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22261 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22263 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22264 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22265 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
22267 LLVMCC_EMITIR_FLAG="-emit-llvm"
22268 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22273 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22274 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22275 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22276 echo $ECHO_N "(cached) $ECHO_C" >&6
22278 llvm_cv_llvmgcc_sanity="no"
22279 if test -n "$LLVMGCC" ; then
22280 cp /dev/null conftest.c
22281 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22282 grep 'target datalayout =' > /dev/null 2>&1
22283 if test $? -eq 0 ; then
22284 llvm_cv_llvmgcc_sanity="yes"
22289 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22290 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22292 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22293 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22294 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22295 llvmcc1path=`$LLVMGCC --print-prog-name=cc1
`
22296 LLVMCC1=$llvmcc1path
22298 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus
`
22299 LLVMCC1PLUS=$llvmcc1pluspath
22301 llvmgccdir=`echo "$llvmcc1path" |
sed 's,/libexec/.*,,'`
22302 LLVMGCCDIR=$llvmgccdir
22304 llvmgcclangs=`$LLVMGCC -v --help 2>&1 |
grep '^Configured with:' |
sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22305 LLVMGCC_LANGS=$llvmgcclangs
22307 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22310 { echo "$as_me:$LINENO: result: ok" >&5
22311 echo "${ECHO_T}ok" >&6; }
22314 SHLIBEXT=$libltdl_cv_shlibext
22317 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22320 # Translate the various configuration directories and other basic
22321 # information into substitutions that will end up in Makefile.config.in
22322 # that these configured values can be used by the makefiles
22323 if test "${prefix}" = "NONE" ; then
22324 prefix="/usr/local"
22326 eval LLVM_PREFIX="${prefix}";
22327 eval LLVM_BINDIR="${prefix}/bin";
22328 eval LLVM_LIBDIR="${prefix}/lib";
22329 eval LLVM_DATADIR="${prefix}/share/llvm";
22330 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22331 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22332 eval LLVM_INCLUDEDIR="${prefix}/include";
22333 eval LLVM_INFODIR="${prefix}/info";
22334 eval LLVM_MANDIR="${prefix}/man";
22335 LLVM_CONFIGTIME=`date`
22347 # Place the various directores into the config.h file as #defines so that we
22348 # can know about the installation paths within LLVM.
22350 cat >>confdefs.h <<_ACEOF
22351 #define LLVM_PREFIX "$LLVM_PREFIX"
22355 cat >>confdefs.h <<_ACEOF
22356 #define LLVM_BINDIR "$LLVM_BINDIR"
22360 cat >>confdefs.h <<_ACEOF
22361 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22365 cat >>confdefs.h <<_ACEOF
22366 #define LLVM_DATADIR "$LLVM_DATADIR"
22370 cat >>confdefs.h <<_ACEOF
22371 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22375 cat >>confdefs.h <<_ACEOF
22376 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22380 cat >>confdefs.h <<_ACEOF
22381 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22385 cat >>confdefs.h <<_ACEOF
22386 #define LLVM_INFODIR "$LLVM_INFODIR"
22390 cat >>confdefs.h <<_ACEOF
22391 #define LLVM_MANDIR "$LLVM_MANDIR"
22395 cat >>confdefs.h <<_ACEOF
22396 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22400 cat >>confdefs.h <<_ACEOF
22401 #define LLVM_HOSTTRIPLE "$host"
22405 # Determine which bindings to build.
22406 if test "$BINDINGS_TO_BUILD" = auto ; then
22407 BINDINGS_TO_BUILD=""
22408 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22409 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22412 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22415 # This isn't really configurey, but it avoids having to repeat the list in
22420 # Do any work necessary to ensure that bindings have what they need.
22421 binding_prereqs_failed=0
22422 for a_binding in $BINDINGS_TO_BUILD ; do
22423 case "$a_binding" in
22425 if test "x$OCAMLC" = x ; then
22426 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22427 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22428 binding_prereqs_failed=1
22430 if test "x$OCAMLDEP" = x ; then
22431 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22432 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22433 binding_prereqs_failed=1
22435 if test "x$OCAMLOPT" = x ; then
22436 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22437 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22439 if test "x$with_ocaml_libdir" != xauto ; then
22440 OCAML_LIBDIR=$with_ocaml_libdir
22443 ocaml_stdlib="`"$OCAMLC" -where`"
22444 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22446 # ocaml stdlib is beneath our prefix; use stdlib
22447 OCAML_LIBDIR=$ocaml_stdlib
22450 # ocaml stdlib is outside our prefix; use libdir/ocaml
22451 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22458 if test "$binding_prereqs_failed" = 1 ; then
22459 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22460 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22461 { (exit 1); exit 1; }; }
22464 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22465 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22466 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22467 echo $ECHO_N "(cached) $ECHO_C" >&6
22470 ac_cpp='$CXXCPP $CPPFLAGS'
22471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22475 oldcxxflags="$CXXFLAGS"
22476 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22477 cat >conftest.$ac_ext <<_ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h. */
22492 rm -f conftest.$ac_objext
22493 if { (ac_try="$ac_compile"
22494 case "(($ac_try" in
22495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22496 *) ac_try_echo
=$ac_try;;
22498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22499 (eval "$ac_compile") 2>conftest.er1
22501 grep -v '^ *+' conftest.er1
>conftest.err
22503 cat conftest.err
>&5
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); } &&
22506 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22507 { (case "(($ac_try" in
22508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22509 *) ac_try_echo=$ac_try;;
22511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22512 (eval "$ac_try") 2>&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; } &&
22516 { ac_try='test -s conftest.$ac_objext'
22517 { (case "(($ac_try" in
22518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22519 *) ac_try_echo
=$ac_try;;
22521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22522 (eval "$ac_try") 2>&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; }; then
22526 llvm_cv_cxx_visibility_inlines_hidden
=yes
22528 echo "$as_me: failed program was:" >&5
22529 sed 's/^/| /' conftest.
$ac_ext >&5
22531 llvm_cv_cxx_visibility_inlines_hidden
=no
22534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22535 CXXFLAGS
="$oldcxxflags"
22537 ac_cpp
='$CPP $CPPFLAGS'
22538 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22539 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22540 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
22544 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22545 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22546 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22547 ENABLE_VISIBILITY_INLINES_HIDDEN
=1
22550 ENABLE_VISIBILITY_INLINES_HIDDEN
=0
22555 if test "$llvm_cv_link_use_r" = "yes" ; then
22562 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22563 RDYNAMIC
="-Wl,-export-dynamic"
22570 ac_config_headers
="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22577 ac_config_files
="$ac_config_files include/llvm/Config/Targets.def"
22579 ac_config_files
="$ac_config_files include/llvm/Config/AsmPrinters.def"
22581 ac_config_files
="$ac_config_files include/llvm/Config/AsmParsers.def"
22583 ac_config_files
="$ac_config_files include/llvm/Config/Disassemblers.def"
22585 ac_config_headers
="$ac_config_headers include/llvm/Support/DataTypes.h"
22588 ac_config_files
="$ac_config_files Makefile.config"
22591 ac_config_files
="$ac_config_files llvm.spec"
22594 ac_config_files
="$ac_config_files docs/doxygen.cfg"
22596 if test -f ${srcdir}/tools
/clang
/README.txt
; then
22597 ac_config_files
="$ac_config_files tools/clang/docs/doxygen.cfg"
22601 ac_config_files
="$ac_config_files tools/llvmc/src/Base.td"
22604 ac_config_files
="$ac_config_files tools/llvm-config/llvm-config.in"
22607 ac_config_commands
="$ac_config_commands setup"
22609 ac_config_commands
="$ac_config_commands Makefile"
22612 ac_config_commands
="$ac_config_commands Makefile.common"
22615 ac_config_commands
="$ac_config_commands examples/Makefile"
22618 ac_config_commands
="$ac_config_commands lib/Makefile"
22621 ac_config_commands
="$ac_config_commands runtime/Makefile"
22624 ac_config_commands
="$ac_config_commands test/Makefile"
22627 ac_config_commands
="$ac_config_commands test/Makefile.tests"
22630 ac_config_commands
="$ac_config_commands unittests/Makefile"
22633 ac_config_commands
="$ac_config_commands tools/Makefile"
22636 ac_config_commands
="$ac_config_commands utils/Makefile"
22639 ac_config_commands
="$ac_config_commands projects/Makefile"
22642 ac_config_commands
="$ac_config_commands bindings/Makefile"
22645 ac_config_commands
="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22649 cat >confcache
<<\_ACEOF
22650 # This file is a shell script that caches the results of configure
22651 # tests run on this system so they can be shared between configure
22652 # scripts and configure runs, see configure's option --config-cache.
22653 # It is not useful on other systems. If it contains results you don't
22654 # want to keep, you may remove or edit it.
22656 # config.status only pays attention to the cache file if you give it
22657 # the --recheck option to rerun configure.
22659 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22660 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22661 # following values.
22665 # The following way of writing the cache mishandles newlines in values,
22666 # but we know of no workaround that is simple, portable, and efficient.
22667 # So, we kill variables containing newlines.
22668 # Ultrix sh set writes to stderr and can't be redirected directly,
22669 # and sets the high bit in the cache file unless we assign to the vars.
22671 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22672 eval ac_val
=\$
$ac_var
22676 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22680 _ | IFS | as_nl
) ;; #(
22681 *) $as_unset $ac_var ;;
22687 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22688 *${as_nl}ac_space
=\
*)
22689 # `set' does not quote correctly, so add quotes (double-quote
22690 # substitution turns \\\\ into \\, and sed turns \\ into \).
22693 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22696 # `set' quotes correctly as required by POSIX, so do not add quotes.
22697 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22706 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22708 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22710 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22711 if test -w "$cache_file"; then
22712 test "x$cache_file" != "x/dev/null" &&
22713 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22714 echo "$as_me: updating cache $cache_file" >&6;}
22715 cat confcache
>$cache_file
22717 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22718 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22723 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22724 # Let make expand exec_prefix.
22725 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22727 DEFS
=-DHAVE_CONFIG_H
22731 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22732 # 1. Remove the extension, and $U if already installed.
22733 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
22734 ac_i
=`echo "$ac_i" | sed "$ac_script"`
22735 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22736 # will be set to the directory where LIBOBJS objects are built.
22737 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22738 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22740 LIBOBJS
=$ac_libobjs
22742 LTLIBOBJS
=$ac_ltlibobjs
22745 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22746 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22747 Usually this means the macro was only invoked conditionally." >&5
22748 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22749 Usually this means the macro was only invoked conditionally." >&2;}
22750 { (exit 1); exit 1; }; }
22752 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22753 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22754 Usually this means the macro was only invoked conditionally." >&5
22755 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22756 Usually this means the macro was only invoked conditionally." >&2;}
22757 { (exit 1); exit 1; }; }
22760 : ${CONFIG_STATUS=./config.status}
22761 ac_clean_files_save
=$ac_clean_files
22762 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22763 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22764 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22765 cat >$CONFIG_STATUS <<_ACEOF
22767 # Generated by $as_me.
22768 # Run this file to recreate the current configuration.
22769 # Compiler output produced by configure, useful for debugging
22770 # configure, is in config.log if it exists.
22773 ac_cs_recheck=false
22775 SHELL=\${CONFIG_SHELL-$SHELL}
22778 cat >>$CONFIG_STATUS <<\_ACEOF
22779 ## --------------------- ##
22780 ## M4sh Initialization. ##
22781 ## --------------------- ##
22783 # Be Bourne compatible
22784 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22787 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22788 # is contrary to our usage. Disable this feature.
22789 alias -g '${1+"$@"}'='"$@"'
22790 setopt NO_GLOB_SUBST
22792 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
22794 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
22795 DUALCASE
=1; export DUALCASE
# for MKS sh
22799 # Avoid depending upon Character Ranges.
22800 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22801 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22802 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22803 as_cr_digits
='0123456789'
22804 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22806 # The user is always right.
22807 if test "${PATH_SEPARATOR+set}" != set; then
22808 echo "#! /bin/sh" >conf$$.sh
22809 echo "exit 0" >>conf$$.sh
22811 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22819 # Support unset when possible.
22820 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22828 # We need space, tab and new line, in precisely that order. Quoting is
22829 # there to prevent editors from complaining about space-tab.
22830 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22831 # splitting by setting IFS to empty value.)
22836 # Find who we are. Look in the path if we contain no directory separator.
22838 *[\\/]* ) as_myself
=$0 ;;
22839 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22840 for as_dir
in $PATH
22843 test -z "$as_dir" && as_dir
=.
22844 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22850 # We did not find ourselves, most probably we were run as `sh COMMAND'
22851 # in which case we are not to be found in the path.
22852 if test "x$as_myself" = x
; then
22855 if test ! -f "$as_myself"; then
22856 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22857 { (exit 1); exit 1; }
22860 # Work around bugs in pre-3.0 UWIN ksh.
22861 for as_var
in ENV MAIL MAILPATH
22862 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
22870 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22871 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22872 LC_TELEPHONE LC_TIME
22874 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22875 eval $as_var=C
; export $as_var
22877 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
22881 # Required to use basename.
22882 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22883 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22889 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22890 as_basename
=basename
22896 # Name of the executable.
22897 as_me
=`$as_basename -- "$0" ||
22898 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22899 X"$0" : 'X\(//\)$' \| \
22900 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22902 sed '/^.*\/\([^/][^/]*\)\/*$/{
22921 as_lineno_1
=$LINENO
22922 as_lineno_2
=$LINENO
22923 test "x$as_lineno_1" != "x$as_lineno_2" &&
22924 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
22926 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22927 # uniformly replaced by the line number. The first 'sed' inserts a
22928 # line-number line after each line using $LINENO; the second 'sed'
22929 # does the real work. The second script uses 'N' to pair each
22930 # line-number line with the line containing $LINENO, and appends
22931 # trailing '-' during substitution so that $LINENO is not a special
22932 # case at line end.
22933 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22934 # scripts with optimization help from Paolo Bonzini. Blame Lee
22935 # E. McMahon (1931-1989) for sed's syntax. :-)
22947 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22950 ' >$as_me.lineno
&&
22951 chmod +x
"$as_me.lineno" ||
22952 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22953 { (exit 1); exit 1; }; }
22955 # Don't try to exec as it changes $[0], causing all sort of problems
22956 # (the dirname of $[0] is not the place where we might find the
22957 # original and so on. Autoconf is especially sensitive to this).
22958 .
"./$as_me.lineno"
22959 # Exit status is that of the last command.
22964 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22970 ECHO_C
= ECHO_N
= ECHO_T
=
22971 case `echo -n x` in
22973 case `echo 'x\c'` in
22974 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22981 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22982 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22988 rm -f conf$$ conf$$.exe conf$$.
file
22989 if test -d conf$$.dir
; then
22990 rm -f conf$$.dir
/conf$$.
file
22996 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22998 # ... but there are two gotchas:
22999 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23000 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23001 # In both cases, we have to default to `cp -p'.
23002 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23004 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23009 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23010 rmdir conf$$.dir
2>/dev
/null
23012 if mkdir
-p .
2>/dev
/null
; then
23015 test -d .
/-p && rmdir .
/-p
23019 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23020 # systems may use methods other than mode bits to determine executability.
23021 cat >conf$$.
file <<_ASEOF
23025 chmod +x conf$$.
file
23026 if test -x conf$$.
file >/dev
/null
2>&1; then
23027 as_executable_p
="test -x"
23033 # Sed expression to map a string onto a valid CPP name.
23034 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23036 # Sed expression to map a string onto a valid variable name.
23037 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23042 # Save the log message, to keep $[0] and so on meaningful, and to
23043 # report actual input values of CONFIG_FILES etc. instead of their
23044 # values after options handling.
23046 This file was extended by llvm $as_me 3.0svn, which was
23047 generated by GNU Autoconf 2.60. Invocation command line was
23049 CONFIG_FILES = $CONFIG_FILES
23050 CONFIG_HEADERS = $CONFIG_HEADERS
23051 CONFIG_LINKS = $CONFIG_LINKS
23052 CONFIG_COMMANDS = $CONFIG_COMMANDS
23055 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23060 cat >>$CONFIG_STATUS <<_ACEOF
23061 # Files that config.status was made for.
23062 config_files="$ac_config_files"
23063 config_headers="$ac_config_headers"
23064 config_commands="$ac_config_commands"
23068 cat >>$CONFIG_STATUS <<\_ACEOF
23070 \`$as_me' instantiates files from templates according to the
23071 current configuration.
23073 Usage: $0 [OPTIONS] [FILE]...
23075 -h, --help print this help, then exit
23076 -V, --version print version number, then exit
23077 -q, --quiet do not print progress messages
23078 -d, --debug don't remove temporary files
23079 --recheck update $as_me by reconfiguring in the same conditions
23080 --file=FILE[:TEMPLATE]
23081 instantiate the configuration file FILE
23082 --header=FILE[:TEMPLATE]
23083 instantiate the configuration header FILE
23085 Configuration files:
23088 Configuration headers:
23091 Configuration commands:
23094 Report bugs to <bug-autoconf@gnu.org>."
23097 cat >>$CONFIG_STATUS <<_ACEOF
23099 llvm config.status 3.0svn
23100 configured by $0, generated by GNU Autoconf 2.60,
23101 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23103 Copyright (C) 2006 Free Software Foundation, Inc.
23104 This config.status script is free software; the Free Software Foundation
23105 gives unlimited permission to copy, distribute and modify it."
23112 cat >>$CONFIG_STATUS <<\_ACEOF
23113 # If no file are specified by the user, then we need to provide default
23114 # value. By we need to know if files were specified by the user.
23120 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23121 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23132 # Handling of the options.
23133 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23135 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23136 echo "$ac_cs_version"; exit ;;
23137 --debug |
--debu |
--deb |
--de |
--d |
-d )
23139 --file |
--fil |
--fi |
--f )
23141 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23142 ac_need_defaults
=false
;;
23143 --header |
--heade |
--head |
--hea )
23145 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23146 ac_need_defaults
=false
;;
23148 # Conflict between --help and --header
23149 { echo "$as_me: error: ambiguous option: $1
23150 Try \`$0 --help' for more information." >&2
23151 { (exit 1); exit 1; }; };;
23152 --help |
--hel |
-h )
23153 echo "$ac_cs_usage"; exit ;;
23154 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23155 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23158 # This is an error.
23159 -*) { echo "$as_me: error: unrecognized option: $1
23160 Try \`$0 --help' for more information." >&2
23161 { (exit 1); exit 1; }; } ;;
23163 *) ac_config_targets
="$ac_config_targets $1"
23164 ac_need_defaults
=false
;;
23170 ac_configure_extra_args
=
23172 if $ac_cs_silent; then
23174 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23178 cat >>$CONFIG_STATUS <<_ACEOF
23179 if \$ac_cs_recheck; then
23180 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23181 CONFIG_SHELL=$SHELL
23182 export CONFIG_SHELL
23183 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23187 cat >>$CONFIG_STATUS <<\_ACEOF
23191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23192 ## Running $as_me. ##
23198 cat >>$CONFIG_STATUS <<_ACEOF
23202 llvm_src="${srcdir}"
23206 cat >>$CONFIG_STATUS <<\_ACEOF
23208 # Handling of arguments.
23209 for ac_config_target
in $ac_config_targets
23211 case $ac_config_target in
23212 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23213 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23214 "include/llvm/Config/Targets.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23215 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23216 "include/llvm/Config/AsmParsers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23217 "include/llvm/Config/Disassemblers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23218 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23219 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
23220 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
23221 "docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES docs/doxygen.cfg" ;;
23222 "tools/clang/docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
23223 "tools/llvmc/src/Base.td") CONFIG_FILES
="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23224 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23225 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
23226 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
23227 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
23228 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
23229 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
23230 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
23231 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
23232 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
23233 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
23234 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
23235 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
23236 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
23237 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
23238 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23240 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23241 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23242 { (exit 1); exit 1; }; };;
23247 # If the user did not use the arguments to specify the items to instantiate,
23248 # then the envvar interface is used. Set only those that are not.
23249 # We use the long form for the default assignment because of an extremely
23250 # bizarre bug on SunOS 4.1.3.
23251 if $ac_need_defaults; then
23252 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23253 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23254 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23257 # Have a temporary directory for convenience. Make it in the build tree
23258 # simply because there is no reason against having it here, and in addition,
23259 # creating and moving files from /tmp can sometimes cause problems.
23260 # Hook for its removal unless debugging.
23261 # Note that there is a small window in which the directory will not be cleaned:
23262 # after its creation but before its name has been assigned to `$tmp'.
23266 trap 'exit_status=$?
23267 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23269 trap '{ (exit 1); exit 1; }' 1 2 13 15
23271 # Create a (secure) tmp directory for tmp files.
23274 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23275 test -n "$tmp" && test -d "$tmp"
23278 tmp
=.
/conf$$
-$RANDOM
23279 (umask 077 && mkdir
"$tmp")
23282 echo "$me: cannot create a temporary directory in ." >&2
23283 { (exit 1); exit 1; }
23287 # Set up the sed scripts for CONFIG_FILES section.
23290 # No need to generate the scripts if there are no CONFIG_FILES.
23291 # This happens for instance when ./config.status config.h
23292 if test -n "$CONFIG_FILES"; then
23299 for ac_last_try
in false false false false false
:; do
23300 cat >conf$
$subs.
sed <<_ACEOF
23301 SHELL!$SHELL$ac_delim
23302 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23303 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23304 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23305 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23306 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23307 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23308 exec_prefix!$exec_prefix$ac_delim
23309 prefix!$prefix$ac_delim
23310 program_transform_name!$program_transform_name$ac_delim
23311 bindir!$bindir$ac_delim
23312 sbindir!$sbindir$ac_delim
23313 libexecdir!$libexecdir$ac_delim
23314 datarootdir!$datarootdir$ac_delim
23315 datadir!$datadir$ac_delim
23316 sysconfdir!$sysconfdir$ac_delim
23317 sharedstatedir!$sharedstatedir$ac_delim
23318 localstatedir!$localstatedir$ac_delim
23319 includedir!$includedir$ac_delim
23320 oldincludedir!$oldincludedir$ac_delim
23321 docdir!$docdir$ac_delim
23322 infodir!$infodir$ac_delim
23323 htmldir!$htmldir$ac_delim
23324 dvidir!$dvidir$ac_delim
23325 pdfdir!$pdfdir$ac_delim
23326 psdir!$psdir$ac_delim
23327 libdir!$libdir$ac_delim
23328 localedir!$localedir$ac_delim
23329 mandir!$mandir$ac_delim
23330 DEFS!$DEFS$ac_delim
23331 ECHO_C!$ECHO_C$ac_delim
23332 ECHO_N!$ECHO_N$ac_delim
23333 ECHO_T!$ECHO_T$ac_delim
23334 LIBS!$LIBS$ac_delim
23335 build_alias!$build_alias$ac_delim
23336 host_alias!$host_alias$ac_delim
23337 target_alias!$target_alias$ac_delim
23338 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23339 subdirs!$subdirs$ac_delim
23340 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23341 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23342 build!$build$ac_delim
23343 build_cpu!$build_cpu$ac_delim
23344 build_vendor!$build_vendor$ac_delim
23345 build_os!$build_os$ac_delim
23346 host!$host$ac_delim
23347 host_cpu!$host_cpu$ac_delim
23348 host_vendor!$host_vendor$ac_delim
23349 host_os!$host_os$ac_delim
23350 target!$target$ac_delim
23351 target_cpu!$target_cpu$ac_delim
23352 target_vendor!$target_vendor$ac_delim
23353 target_os!$target_os$ac_delim
23355 HOST_OS!$HOST_OS$ac_delim
23356 TARGET_OS!$TARGET_OS$ac_delim
23357 LINKALL!$LINKALL$ac_delim
23358 NOLINKALL!$NOLINKALL$ac_delim
23359 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23360 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23361 ARCH!$ARCH$ac_delim
23362 ENDIAN!$ENDIAN$ac_delim
23364 CFLAGS!$CFLAGS$ac_delim
23365 LDFLAGS!$LDFLAGS$ac_delim
23366 CPPFLAGS!$CPPFLAGS$ac_delim
23367 ac_ct_CC!$ac_ct_CC$ac_delim
23368 EXEEXT!$EXEEXT$ac_delim
23369 OBJEXT!$OBJEXT$ac_delim
23371 GREP!$GREP$ac_delim
23372 EGREP!$EGREP$ac_delim
23373 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23374 BUILD_CC!$BUILD_CC$ac_delim
23375 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23376 BUILD_CXX!$BUILD_CXX$ac_delim
23377 CVSBUILD!$CVSBUILD$ac_delim
23378 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23379 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23380 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23381 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23382 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23383 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23384 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23386 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23387 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23388 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23389 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23390 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23391 ENABLE_PIC!$ENABLE_PIC$ac_delim
23392 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23393 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23394 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23395 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23396 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23397 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23400 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23402 elif $ac_last_try; then
23403 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23404 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23405 { (exit 1); exit 1; }; }
23407 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23411 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23412 if test -n "$ac_eof"; then
23413 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23414 ac_eof
=`expr $ac_eof + 1`
23417 cat >>$CONFIG_STATUS <<_ACEOF
23418 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23419 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23422 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23423 s/^/s,@/; s/!/@,|#_!!_#|/
23426 s/'"$ac_delim"'$/,g/; t
23428 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23429 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23430 rm -f conf$
$subs.
sed
23431 cat >>$CONFIG_STATUS <<_ACEOF
23437 for ac_last_try
in false false false false false
:; do
23438 cat >conf$
$subs.
sed <<_ACEOF
23439 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23440 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23441 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23442 CLANGPATH!$CLANGPATH$ac_delim
23443 CLANGXXPATH!$CLANGXXPATH$ac_delim
23444 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23445 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23446 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23447 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23448 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23450 CXXFLAGS!$CXXFLAGS$ac_delim
23451 ac_ct_CXX!$ac_ct_CXX$ac_delim
23453 ifGNUmake!$ifGNUmake$ac_delim
23454 LN_S!$LN_S$ac_delim
23457 DATE!$DATE$ac_delim
23458 FIND!$FIND$ac_delim
23459 MKDIR!$MKDIR$ac_delim
23461 RANLIB!$RANLIB$ac_delim
23466 BINPWD!$BINPWD$ac_delim
23467 GRAPHVIZ!$GRAPHVIZ$ac_delim
23470 NEATO!$NEATO$ac_delim
23471 TWOPI!$TWOPI$ac_delim
23472 CIRCO!$CIRCO$ac_delim
23474 DOTTY!$DOTTY$ac_delim
23475 XDOT_PY!$XDOT_PY$ac_delim
23476 PERL!$PERL$ac_delim
23477 HAVE_PERL!$HAVE_PERL$ac_delim
23478 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23479 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23480 INSTALL_DATA!$INSTALL_DATA$ac_delim
23481 BZIP2!$BZIP2$ac_delim
23483 DOXYGEN!$DOXYGEN$ac_delim
23484 GROFF!$GROFF$ac_delim
23485 GZIPBIN!$GZIPBIN$ac_delim
23486 POD2HTML!$POD2HTML$ac_delim
23487 POD2MAN!$POD2MAN$ac_delim
23488 PDFROFF!$PDFROFF$ac_delim
23489 RUNTEST!$RUNTEST$ac_delim
23490 TCLSH!$TCLSH$ac_delim
23492 OCAMLC!$OCAMLC$ac_delim
23493 OCAMLOPT!$OCAMLOPT$ac_delim
23494 OCAMLDEP!$OCAMLDEP$ac_delim
23495 OCAMLDOC!$OCAMLDOC$ac_delim
23497 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23498 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23499 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23500 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23501 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23502 LIBADD_DL!$LIBADD_DL$ac_delim
23503 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23504 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23505 LLVMGCC!$LLVMGCC$ac_delim
23506 LLVMGXX!$LLVMGXX$ac_delim
23507 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23508 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23509 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23510 USE_UDIS86!$USE_UDIS86$ac_delim
23511 USE_OPROFILE!$USE_OPROFILE$ac_delim
23512 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23513 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23514 MMAP_FILE!$MMAP_FILE$ac_delim
23515 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23516 LLVMCC1!$LLVMCC1$ac_delim
23517 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23518 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23519 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23520 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23521 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23522 SHLIBEXT!$SHLIBEXT$ac_delim
23523 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23524 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23525 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23526 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23527 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23528 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23529 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23530 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23531 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23532 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23533 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23534 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23535 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23538 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23540 elif $ac_last_try; then
23541 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23542 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23543 { (exit 1); exit 1; }; }
23545 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23549 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23550 if test -n "$ac_eof"; then
23551 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23552 ac_eof
=`expr $ac_eof + 1`
23555 cat >>$CONFIG_STATUS <<_ACEOF
23556 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23557 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23560 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23561 s/^/s,@/; s/!/@,|#_!!_#|/
23564 s/'"$ac_delim"'$/,g/; t
23566 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23567 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23568 rm -f conf$
$subs.
sed
23569 cat >>$CONFIG_STATUS <<_ACEOF
23575 for ac_last_try
in false false false false false
:; do
23576 cat >conf$
$subs.
sed <<_ACEOF
23577 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23578 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23579 RPATH!$RPATH$ac_delim
23580 RDYNAMIC!$RDYNAMIC$ac_delim
23581 LIBOBJS!$LIBOBJS$ac_delim
23582 LTLIBOBJS!$LTLIBOBJS$ac_delim
23585 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23587 elif $ac_last_try; then
23588 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23589 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23590 { (exit 1); exit 1; }; }
23592 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23596 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23597 if test -n "$ac_eof"; then
23598 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23599 ac_eof
=`expr $ac_eof + 1`
23602 cat >>$CONFIG_STATUS <<_ACEOF
23603 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23604 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23607 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23608 s/^/s,@/; s/!/@,|#_!!_#|/
23611 s/'"$ac_delim"'$/,g/; t
23613 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23614 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23615 rm -f conf$
$subs.
sed
23616 cat >>$CONFIG_STATUS <<_ACEOF
23623 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23624 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23625 # trailing colons and then remove the whole line if VPATH becomes empty
23626 # (actually we leave an empty line to preserve line numbers).
23627 if test "x$srcdir" = x.
; then
23628 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23629 s/:*\$(srcdir):*/:/
23630 s/:*\${srcdir}:*/:/
23632 s/^\([^=]*=[ ]*\):*/\1/
23638 cat >>$CONFIG_STATUS <<\_ACEOF
23639 fi # test -n "$CONFIG_FILES"
23642 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
23645 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23647 case $ac_mode$ac_tag in
23649 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23650 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23651 { (exit 1); exit 1; }; };;
23652 :[FH
]-) ac_tag
=-:-;;
23653 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23670 -) ac_f
="$tmp/stdin";;
23671 *) # Look for the file first in the build tree, then in the source tree
23672 # (if the path is not absolute). The absolute path cannot be DOS-style,
23673 # because $ac_f cannot contain `:'.
23677 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23679 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23680 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23681 { (exit 1); exit 1; }; };;
23683 ac_file_inputs
="$ac_file_inputs $ac_f"
23686 # Let's still pretend it is `configure' which instantiates (i.e., don't
23687 # use $as_me), people would be surprised to read:
23688 # /* config.h. Generated by config.status. */
23689 configure_input
="Generated from "`IFS=:
23690 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23691 if test x
"$ac_file" != x-
; then
23692 configure_input
="$ac_file. $configure_input"
23693 { echo "$as_me:$LINENO: creating $ac_file" >&5
23694 echo "$as_me: creating $ac_file" >&6;}
23698 *:-:* |
*:-) cat >"$tmp/stdin";;
23703 ac_dir
=`$as_dirname -- "$ac_file" ||
23704 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23705 X"$ac_file" : 'X\(//\)[^/]' \| \
23706 X"$ac_file" : 'X\(//\)$' \| \
23707 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23713 /^X\(\/\/\)[^/].*/{
23728 -*) as_dir
=.
/$as_dir;;
23730 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23734 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23735 *) as_qdir
=$as_dir;;
23737 as_dirs
="'$as_qdir' $as_dirs"
23738 as_dir
=`$as_dirname -- "$as_dir" ||
23739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23740 X"$as_dir" : 'X\(//\)[^/]' \| \
23741 X"$as_dir" : 'X\(//\)$' \| \
23742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23748 /^X\(\/\/\)[^/].*/{
23761 test -d "$as_dir" && break
23763 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23764 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23765 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23766 { (exit 1); exit 1; }; }; }
23770 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23772 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23773 # A ".." for each directory in $ac_dir_suffix.
23774 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23775 case $ac_top_builddir_sub in
23776 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23777 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23780 ac_abs_top_builddir
=$ac_pwd
23781 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23782 # for backward compatibility:
23783 ac_top_builddir
=$ac_top_build_prefix
23786 .
) # We are building in place.
23788 ac_top_srcdir
=$ac_top_builddir_sub
23789 ac_abs_top_srcdir
=$ac_pwd ;;
23790 [\\/]* | ?
:[\\/]* ) # Absolute name.
23791 ac_srcdir
=$srcdir$ac_dir_suffix;
23792 ac_top_srcdir
=$srcdir
23793 ac_abs_top_srcdir
=$srcdir ;;
23794 *) # Relative name.
23795 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23796 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23797 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23799 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23809 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23810 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23814 cat >>$CONFIG_STATUS <<\_ACEOF
23815 # If the template does not know about datarootdir, expand it.
23816 # FIXME: This hack should be removed a few years after 2.60.
23817 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23819 case `sed -n '/datarootdir/ {
23828 ' $ac_file_inputs` in
23829 *datarootdir
*) ac_datarootdir_seen
=yes;;
23830 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23831 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23832 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23834 cat >>$CONFIG_STATUS <<_ACEOF
23835 ac_datarootdir_hack='
23836 s&@datadir@&$datadir&g
23837 s&@docdir@&$docdir&g
23838 s&@infodir@&$infodir&g
23839 s&@localedir@&$localedir&g
23840 s&@mandir@&$mandir&g
23841 s&\\\${datarootdir}&$datarootdir&g' ;;
23845 # Neutralize VPATH when `$srcdir' = `.'.
23846 # Shell code in configure.ac might set extrasub.
23847 # FIXME: do we really want to maintain this feature?
23848 cat >>$CONFIG_STATUS <<_ACEOF
23852 cat >>$CONFIG_STATUS <<\_ACEOF
23854 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23855 s
&@configure_input@
&$configure_input&;t t
23856 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23857 s
&@srcdir@
&$ac_srcdir&;t t
23858 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23859 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23860 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23861 s
&@builddir@
&$ac_builddir&;t t
23862 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23863 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23864 s
&@INSTALL@
&$ac_INSTALL&;t t
23865 $ac_datarootdir_hack
23866 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" >$tmp/out
23868 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23869 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23870 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23871 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23872 which seems to be undefined. Please make sure it is defined." >&5
23873 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23874 which seems to be undefined. Please make sure it is defined." >&2;}
23878 -) cat "$tmp/out"; rm -f "$tmp/out";;
23879 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23888 # Transform confdefs.h into a sed script `conftest.defines', that
23889 # substitutes the proper values into config.h.in to produce config.h.
23890 rm -f conftest.defines conftest.
tail
23891 # First, append a space to every undef/define line, to ease matching.
23892 echo 's/$/ /' >conftest.defines
23893 # Then, protect against being on the right side of a sed subst, or in
23894 # an unquoted here document, in config.status. If some macros were
23895 # called several times there might be several #defines for the same
23896 # symbol, which is useless. But do not sort them, since the last
23897 # AC_DEFINE must be honored.
23898 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
23899 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23900 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23901 # PARAMS is the parameter list in the macro definition--in most cases, it's
23902 # just an empty string.
23903 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23904 ac_dB
='\\)[ (].*,\\1define\\2'
23912 s/^[ ]*#[ ]*define[ ][ ]*//
23917 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23918 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23919 ' >>conftest.defines
23921 # Remove the space that was appended to ease matching.
23922 # Then replace #undef with comments. This is necessary, for
23923 # example, in the case of _POSIX_SOURCE, which is predefined and required
23924 # on some systems where configure will not decide to define it.
23925 # (The regexp can be short, since the line contains either #define or #undef.)
23927 s,^[ #]*u.*,/* & */,' >>conftest.defines
23929 # Break up conftest.defines:
23930 ac_max_sed_lines
=50
23932 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23933 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23934 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23936 ac_in
='$ac_file_inputs'
23937 ac_out
='"$tmp/out1"'
23938 ac_nxt
='"$tmp/out2"'
23942 # Write a here document:
23943 cat >>$CONFIG_STATUS <<_ACEOF
23944 # First, check the format of the line:
23945 cat >"\$tmp/defines.sed" <<\\CEOF
23946 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23947 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23951 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
23953 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23954 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
23955 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
23956 grep . conftest.
tail >/dev
/null ||
break
23957 rm -f conftest.defines
23958 mv conftest.
tail conftest.defines
23960 rm -f conftest.defines conftest.
tail
23962 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23963 cat >>$CONFIG_STATUS <<\_ACEOF
23964 if test x
"$ac_file" != x-
; then
23965 echo "/* $configure_input */" >"$tmp/config.h"
23966 cat "$ac_result" >>"$tmp/config.h"
23967 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
23968 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23969 echo "$as_me: $ac_file is unchanged" >&6;}
23972 mv "$tmp/config.h" $ac_file
23975 echo "/* $configure_input */"
23981 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23982 echo "$as_me: executing $ac_file commands" >&6;}
23987 case $ac_file$ac_mode in
23988 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
23989 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile
;;
23990 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
23991 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common
;;
23992 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
23993 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
23994 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
23995 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
23996 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
23997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
23998 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
23999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile test
/Makefile
;;
24000 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
24001 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
24002 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
24003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
24004 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
24005 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
24006 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
24007 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
24008 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
24009 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
24010 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
24011 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
24012 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
24013 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
24019 { (exit 0); exit 0; }
24021 chmod +x
$CONFIG_STATUS
24022 ac_clean_files
=$ac_clean_files_save
24025 # configure is writing to config.log, and then calls config.status.
24026 # config.status does its own redirection, appending to config.log.
24027 # Unfortunately, on DOS this fails, as config.log is still kept open
24028 # by configure, so config.status won't be able to write to it; its
24029 # output is simply discarded. So we exec the FD to /dev/null,
24030 # effectively closing config.log, so it can be properly (re)opened and
24031 # appended to by config.status. When coming back to configure, we
24032 # need to make the FD available again.
24033 if test "$no_create" != yes; then
24035 ac_config_status_args
=
24036 test "$silent" = yes &&
24037 ac_config_status_args
="$ac_config_status_args --quiet"
24039 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24041 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24042 # would make configure fail if this is the last instruction.
24043 $ac_cs_success ||
{ (exit 1); exit 1; }
24047 # CONFIG_SUBDIRS section.
24049 if test "$no_recursion" != yes; then
24051 # Remove --cache-file and --srcdir arguments so they do not pile up.
24052 ac_sub_configure_args
=
24054 eval "set x $ac_configure_args"
24058 if test -n "$ac_prev"; then
24063 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
24064 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
24065 ac_prev
=cache_file
;;
24066 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
24067 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
24070 --config-cache |
-C)
24072 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
24074 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
24076 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
24078 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
24082 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24084 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
24088 # Always prepend --prefix to ensure using the same prefix
24089 # in subdir configurations.
24090 ac_arg
="--prefix=$prefix"
24092 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24094 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
24097 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
24099 # Do not complain, so a configure script can configure whichever
24100 # parts of a large source tree are present.
24101 test -d "$srcdir/$ac_dir" ||
continue
24103 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24104 echo "$as_me:$LINENO: $ac_msg" >&5
24108 -*) as_dir
=.
/$as_dir;;
24110 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24114 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24115 *) as_qdir
=$as_dir;;
24117 as_dirs
="'$as_qdir' $as_dirs"
24118 as_dir
=`$as_dirname -- "$as_dir" ||
24119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24120 X"$as_dir" : 'X\(//\)[^/]' \| \
24121 X"$as_dir" : 'X\(//\)$' \| \
24122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24128 /^X\(\/\/\)[^/].*/{
24141 test -d "$as_dir" && break
24143 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24144 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24145 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24146 { (exit 1); exit 1; }; }; }
24150 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24152 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24153 # A ".." for each directory in $ac_dir_suffix.
24154 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24155 case $ac_top_builddir_sub in
24156 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24157 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24160 ac_abs_top_builddir
=$ac_pwd
24161 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24162 # for backward compatibility:
24163 ac_top_builddir
=$ac_top_build_prefix
24166 .
) # We are building in place.
24168 ac_top_srcdir
=$ac_top_builddir_sub
24169 ac_abs_top_srcdir
=$ac_pwd ;;
24170 [\\/]* | ?
:[\\/]* ) # Absolute name.
24171 ac_srcdir
=$srcdir$ac_dir_suffix;
24172 ac_top_srcdir
=$srcdir
24173 ac_abs_top_srcdir
=$srcdir ;;
24174 *) # Relative name.
24175 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24176 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24177 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24179 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24184 # Check for guested configure; otherwise get Cygnus style configure.
24185 if test -f "$ac_srcdir/configure.gnu"; then
24186 ac_sub_configure
=$ac_srcdir/configure.gnu
24187 elif test -f "$ac_srcdir/configure"; then
24188 ac_sub_configure
=$ac_srcdir/configure
24189 elif test -f "$ac_srcdir/configure.in"; then
24190 # This should be Cygnus configure.
24191 ac_sub_configure
=$ac_aux_dir/configure
24193 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24194 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24198 # The recursion is here.
24199 if test -n "$ac_sub_configure"; then
24200 # Make the cache file name correct relative to the subdirectory.
24201 case $cache_file in
24202 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
24203 *) # Relative name.
24204 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
24207 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24208 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24209 # The eval makes quoting arguments work.
24210 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24211 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24212 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24213 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24214 { (exit 1); exit 1; }; }