2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.8svn.
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-2010 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
='2.8svn'
565 PACKAGE_STRING
='llvm 2.8svn'
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
683 ENABLE_EXPENSIVE_CHECKS
696 LLVM_ENUM_ASM_PRINTERS
697 LLVM_ENUM_ASM_PARSERS
698 LLVM_ENUM_DISASSEMBLERS
753 HAVE_LINK_VERSION_SCRIPT
756 CONVENIENCE_LTDL_TRUE
757 CONVENIENCE_LTDL_FALSE
765 NO_MISSING_FIELD_INITIALIZERS
790 ENABLE_VISIBILITY_INLINES_HIDDEN
796 ac_precious_vars
='build_alias
807 ac_subdirs_all
='projects/llvm-gcc
811 projects/llvm-poolalloc
814 projects/llvm-stacker
819 projects/llvm-kernel'
821 # Initialize some variables set by options.
823 ac_init_version
=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
833 program_transform_name
=s
,x
,x
,
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir
='${exec_prefix}/bin'
848 sbindir
='${exec_prefix}/sbin'
849 libexecdir
='${exec_prefix}/libexec'
850 datarootdir
='${prefix}/share'
851 datadir
='${datarootdir}'
852 sysconfdir
='${prefix}/etc'
853 sharedstatedir
='${prefix}/com'
854 localstatedir
='${prefix}/var'
855 includedir
='${prefix}/include'
856 oldincludedir
='/usr/include'
857 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir
='${datarootdir}/info'
863 libdir
='${exec_prefix}/lib'
864 localedir
='${datarootdir}/locale'
865 mandir
='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\
$ac_option
879 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
889 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
891 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
894 -build |
--build |
--buil |
--bui |
--bu)
895 ac_prev
=build_alias
;;
896 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
897 build_alias
=$ac_optarg ;;
899 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
900 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
901 ac_prev
=cache_file
;;
902 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
903 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
904 cache_file
=$ac_optarg ;;
907 cache_file
=config.cache
;;
909 -datadir |
--datadir |
--datadi |
--datad)
911 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
912 datadir
=$ac_optarg ;;
914 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
915 |
--dataroo |
--dataro |
--datar)
916 ac_prev
=datarootdir
;;
917 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
918 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
919 datarootdir
=$ac_optarg ;;
921 -disable-* |
--disable-*)
922 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_
$ac_feature=no
;;
930 -docdir |
--docdir |
--docdi |
--doc |
--do)
932 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
935 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
937 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
940 -enable-* |
--enable-*)
941 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_
$ac_feature=\
$ac_optarg ;;
949 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
950 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
951 |
--exec |
--exe |
--ex)
952 ac_prev
=exec_prefix
;;
953 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
954 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
955 |
--exec=* |
--exe=* |
--ex=*)
956 exec_prefix
=$ac_optarg ;;
958 -gas |
--gas |
--ga |
--g)
959 # Obsolete; use --with-gas.
962 -help |
--help |
--hel |
--he |
-h)
964 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
965 ac_init_help
=recursive
;;
966 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
967 ac_init_help
=short
;;
969 -host |
--host |
--hos |
--ho)
970 ac_prev
=host_alias
;;
971 -host=* |
--host=* |
--hos=* |
--ho=*)
972 host_alias
=$ac_optarg ;;
974 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
976 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
978 htmldir
=$ac_optarg ;;
980 -includedir |
--includedir |
--includedi |
--included |
--include \
981 |
--includ |
--inclu |
--incl |
--inc)
982 ac_prev
=includedir
;;
983 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
984 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
985 includedir
=$ac_optarg ;;
987 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
989 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
990 infodir
=$ac_optarg ;;
992 -libdir |
--libdir |
--libdi |
--libd)
994 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
997 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
998 |
--libexe |
--libex |
--libe)
999 ac_prev
=libexecdir
;;
1000 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1001 |
--libexe=* |
--libex=* |
--libe=*)
1002 libexecdir
=$ac_optarg ;;
1004 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1005 ac_prev
=localedir
;;
1006 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1007 localedir
=$ac_optarg ;;
1009 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1010 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1011 ac_prev
=localstatedir
;;
1012 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1013 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1014 localstatedir
=$ac_optarg ;;
1016 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1018 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1019 mandir
=$ac_optarg ;;
1021 -nfp |
--nfp |
--nf)
1022 # Obsolete; use --without-fp.
1025 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1026 |
--no-cr |
--no-c |
-n)
1029 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1030 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1033 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1034 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1035 |
--oldin |
--oldi |
--old |
--ol |
--o)
1036 ac_prev
=oldincludedir
;;
1037 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1038 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1039 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1040 oldincludedir
=$ac_optarg ;;
1042 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1044 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1045 prefix
=$ac_optarg ;;
1047 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1048 |
--program-pre |
--program-pr |
--program-p)
1049 ac_prev
=program_prefix
;;
1050 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1051 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1052 program_prefix
=$ac_optarg ;;
1054 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1055 |
--program-suf |
--program-su |
--program-s)
1056 ac_prev
=program_suffix
;;
1057 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1058 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1059 program_suffix
=$ac_optarg ;;
1061 -program-transform-name |
--program-transform-name \
1062 |
--program-transform-nam |
--program-transform-na \
1063 |
--program-transform-n |
--program-transform- \
1064 |
--program-transform |
--program-transfor \
1065 |
--program-transfo |
--program-transf \
1066 |
--program-trans |
--program-tran \
1067 |
--progr-tra |
--program-tr |
--program-t)
1068 ac_prev
=program_transform_name
;;
1069 -program-transform-name=* |
--program-transform-name=* \
1070 |
--program-transform-nam=* |
--program-transform-na=* \
1071 |
--program-transform-n=* |
--program-transform-=* \
1072 |
--program-transform=* |
--program-transfor=* \
1073 |
--program-transfo=* |
--program-transf=* \
1074 |
--program-trans=* |
--program-tran=* \
1075 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1076 program_transform_name
=$ac_optarg ;;
1078 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1080 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1081 pdfdir
=$ac_optarg ;;
1083 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1085 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1088 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1089 |
-silent |
--silent |
--silen |
--sile |
--sil)
1092 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1094 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1096 sbindir
=$ac_optarg ;;
1098 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1099 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1100 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1102 ac_prev
=sharedstatedir
;;
1103 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1104 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1105 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1107 sharedstatedir
=$ac_optarg ;;
1109 -site |
--site |
--sit)
1111 -site=* |
--site=* |
--sit=*)
1114 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1116 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1117 srcdir
=$ac_optarg ;;
1119 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1120 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1121 ac_prev
=sysconfdir
;;
1122 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1123 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1124 sysconfdir
=$ac_optarg ;;
1126 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1127 ac_prev
=target_alias
;;
1128 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1129 target_alias
=$ac_optarg ;;
1131 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1134 -version |
--version |
--versio |
--versi |
--vers |
-V)
1135 ac_init_version
=: ;;
1138 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_
$ac_package=\
$ac_optarg ;;
1146 -without-* |
--without-*)
1147 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_
$ac_package=no
;;
1156 # Obsolete; use --with-x.
1159 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1160 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1161 ac_prev
=x_includes
;;
1162 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1163 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1164 x_includes
=$ac_optarg ;;
1166 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1167 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1168 ac_prev
=x_libraries
;;
1169 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1170 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1171 x_libraries
=$ac_optarg ;;
1173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
1179 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
1184 eval $ac_envvar=\
$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198 if test -n "$ac_prev"; then
1199 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
1204 # Be sure to have absolute directory names.
1205 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val
=\$
$ac_var
1212 [\\/$
]* | ?
:[\\/]* ) continue;;
1213 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1224 target
=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x
; then
1228 if test "x$build_alias" = x
; then
1229 cross_compiling
=maybe
1230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1240 test "$silent" = yes && exec 6>/dev
/null
1243 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di
=`ls -di .` &&
1245 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted
=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir
=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1285 ac_srcdir_defaulted
=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
1292 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var
in $ac_precious_vars; do
1308 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1310 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --build=BUILD configure
for building on BUILD
[guessed
]
1380 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1381 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive
) echo "Configuration of llvm 2.8svn:";;
1392 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1393 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1394 --enable-optimized Compile with optimizations enabled
(default is NO
)
1395 --enable-profiling Compile with profiling enabled
(default is NO
)
1396 --enable-assertions Compile with assertion checks enabled
(default is
1398 --enable-expensive-checks
1399 Compile with expensive debug checks enabled
(default
1401 --enable-debug-runtime Build runtime libs with debug symbols
(default is
1403 --enable-debug-symbols Build compiler with debug symbols
(default is NO
if
1404 optimization is on and YES
if it
's off)
1405 --enable-jit Enable Just In Time Compiling (default is YES)
1406 --enable-doxygen Build doxygen documentation (default is NO)
1407 --enable-threads Use threads if available (default is YES)
1408 --enable-pic Build LLVM with Position Independent Code (default
1410 --enable-shared Build a shared library and link tools against it
1412 --enable-timestamps Enable embedding timestamp information in build
1414 --enable-targets Build specific host targets: all or
1415 target1,target2,... Valid targets are: host, x86,
1416 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1417 pic16, xcore, msp430, systemz, blackfin, cbe,
1418 and cpp (default=all)
1419 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1421 --enable-bindings Build specific language bindings:
1422 all,auto,none,{binding-name} (default=auto)
1423 --enable-libffi Check for the presence of libffi (default is NO)
1424 --enable-ltdl-install install libltdl
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1431 --with-llvmgcc Specify location of llvm-gcc driver (default
1433 --with-llvmgxx Specify location of llvm-g++ driver (default
1435 --with-clang Specify location of clang compiler (default is
1437 --with-built-clang Use the compiled Clang as the LLVM compiler
1439 --with-optimize-option Select the compiler options to use for optimized
1441 --with-extra-options Specify additional options to compile LLVM with
1442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1444 --with-c-include-dirs Colon separated list of directories clang will
1446 --with-cxx-include-root Directory with the libstdc++ headers.
1447 --with-cxx-include-arch Architecture of the libstdc++ headers.
1448 --with-cxx-include-32bit-dir
1449 32 bit multilib dir.
1450 --with-cxx-include-64bit-dir
1451 64 bit multilib directory.
1452 --with-binutils-include Specify path to binutils/include/ containing
1453 plugin-api.h file for gold plugin.
1454 --with-tclinclude directory where tcl headers are
1455 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1456 clang, or none; default=check)
1457 --with-udis86=<path> Use udis86 external x86 disassembler library
1458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
1472 Use these variables to override the choices made by `configure' or to
help
1473 it to
find libraries and programs with nonstandard names
/locations.
1475 Report bugs to
<llvmbugs@cs.uiuc.edu
>.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1483 test -d "$ac_dir" ||
continue
1487 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1489 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1494 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir
=$ac_pwd
1498 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir
=$ac_top_build_prefix
1503 .
) # We are building in place.
1505 ac_top_srcdir
=$ac_top_builddir_sub
1506 ac_abs_top_srcdir
=$ac_pwd ;;
1507 [\\/]* | ?
:[\\/]* ) # Absolute name.
1508 ac_srcdir
=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir
=$srcdir
1510 ac_abs_top_srcdir
=$srcdir ;;
1512 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 llvm configure
2.8svn
1537 generated by GNU Autoconf
2.60
1539 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1541 This configure
script is free software
; the Free Software Foundation
1542 gives unlimited permission to copy
, distribute and modify it.
1544 Copyright
(c
) 2003-2010 University of Illinois
at Urbana-Champaign.
1548 cat >config.log
<<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by llvm $as_me 2.8svn, which was
1553 generated by GNU Autoconf 2.60. Invocation command line was
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir
=.
1589 echo "PATH: $as_dir"
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_must_keep_next
=false
1619 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1620 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1621 |
-silent |
--silent |
--silen |
--sile |
--sil)
1624 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1627 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true
; then
1631 ac_must_keep_next
=false
# Got value, back to normal.
1634 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1635 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1636 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1637 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642 -* ) ac_must_keep_next
=true
;;
1645 ac_configure_args
="$ac_configure_args '$ac_arg'"
1650 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1651 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1680 _ | IFS | as_nl) ;; #(
1681 *) $as_unset $ac_var ;;
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1706 for ac_var in $ac_subst_vars
1708 eval ac_val=\$$ac_var
1710 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 echo "$ac_var='\''$ac_val'\''"
1716 if test -n "$ac_subst_files"; then
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1723 for ac_var
in $ac_subst_files
1725 eval ac_val
=\$
$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1734 if test -s confdefs.h; then
1744 test "$ac_signal" != 0 &&
1745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1752 for ac_signal
in 1 2 13 15; do
1753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest
* confdefs.h
1760 # Predefined preprocessor variables.
1762 cat >>confdefs.h
<<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 cat >>confdefs.h
<<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772 cat >>confdefs.h
<<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1777 cat >>confdefs.h
<<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1782 cat >>confdefs.h
<<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790 set x
"$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE
; then
1792 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1794 set x
"$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
1800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803 sed 's/^/| /' "$ac_site_file" >&5
1808 if test -r "$cache_file"; then
1809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1815 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1816 *) .
"./$cache_file";;
1820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1825 # Check that the precious variables saved in the cache have kept the same
1827 ac_cache_corrupted
=false
1828 for ac_var
in $ac_precious_vars; do
1829 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1830 eval ac_new_set
=\
$ac_env_${ac_var}_set
1831 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1832 eval ac_new_val
=\
$ac_env_${ac_var}_value
1833 case $ac_old_set,$ac_new_set in
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837 ac_cache_corrupted
=: ;;
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841 ac_cache_corrupted
=: ;;
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
1845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848 echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850 echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted
=:
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1857 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 *) ac_arg
=$ac_var=$ac_new_val ;;
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1862 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1866 if $ac_cache_corrupted; then
1867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
1899 ac_cpp
='$CPP $CPPFLAGS'
1900 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1906 LLVM_COPYRIGHT
="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1915 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
1916 if test -f "$ac_dir/install-sh"; then
1918 ac_install_sh
="$ac_aux_dir/install-sh -c"
1920 elif test -f "$ac_dir/install.sh"; then
1922 ac_install_sh
="$ac_aux_dir/install.sh -c"
1924 elif test -f "$ac_dir/shtool"; then
1926 ac_install_sh
="$ac_aux_dir/shtool install -c"
1930 if test -z "$ac_aux_dir"; then
1931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 if test ${srcdir} != "." ; then
1947 if test -f ${srcdir}/include
/llvm
/Config
/config.h
; then
1948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
1956 if test -d ${srcdir}/projects
/llvm-gcc
; then
1957 subdirs
="$subdirs projects/llvm-gcc"
1961 if test -d ${srcdir}/projects
/test-suite
; then
1962 subdirs
="$subdirs projects/test-suite"
1966 if test -d ${srcdir}/projects
/llvm-test
; then
1967 subdirs
="$subdirs projects/llvm-test"
1971 if test -d ${srcdir}/projects
/poolalloc
; then
1972 subdirs
="$subdirs projects/poolalloc"
1976 if test -d ${srcdir}/projects
/llvm-poolalloc
; then
1977 subdirs
="$subdirs projects/llvm-poolalloc"
1981 for i
in `ls ${srcdir}/projects`
1983 if test -d ${srcdir}/projects
/${i} ; then
1985 sample
) subdirs
="$subdirs projects/sample"
1987 privbracket
) subdirs
="$subdirs projects/privbracket"
1989 llvm-stacker
) subdirs
="$subdirs projects/llvm-stacker"
1991 llvm-reopt
) subdirs
="$subdirs projects/llvm-reopt"
1993 llvm-java
) subdirs
="$subdirs projects/llvm-java"
1995 llvm-tv
) subdirs
="$subdirs projects/llvm-tv"
1997 safecode
) subdirs
="$subdirs projects/safecode"
1999 llvm-kernel
) subdirs
="$subdirs projects/llvm-kernel"
2007 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2008 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2015 # Make sure we can run config.sub.
2016 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2017 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2018 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2019 { (exit 1); exit 1; }; }
2021 { echo "$as_me:$LINENO: checking build system type" >&5
2022 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2023 if test "${ac_cv_build+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 ac_build_alias
=$build_alias
2027 test "x$ac_build_alias" = x
&&
2028 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2029 test "x$ac_build_alias" = x
&&
2030 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032 { (exit 1); exit 1; }; }
2033 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
2039 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040 echo "${ECHO_T}$ac_cv_build" >&6; }
2041 case $ac_cv_build in
2043 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2044 echo "$as_me: error: invalid value of canonical build" >&2;}
2045 { (exit 1); exit 1; }; };;
2048 ac_save_IFS
=$IFS; IFS
='-'
2054 # Remember, the first character of IFS is used to create $*,
2055 # except with old shells:
2058 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2061 { echo "$as_me:$LINENO: checking host system type" >&5
2062 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2063 if test "${ac_cv_host+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 if test "x$host_alias" = x
; then
2067 ac_cv_host
=$ac_cv_build
2069 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2070 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2071 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2072 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077 echo "${ECHO_T}$ac_cv_host" >&6; }
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081 echo "$as_me: error: invalid value of canonical host" >&2;}
2082 { (exit 1); exit 1; }; };;
2085 ac_save_IFS
=$IFS; IFS
='-'
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2095 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2098 { echo "$as_me:$LINENO: checking target system type" >&5
2099 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_target+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test "x$target_alias" = x
; then
2104 ac_cv_target
=$ac_cv_host
2106 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2114 echo "${ECHO_T}$ac_cv_target" >&6; }
2115 case $ac_cv_target in
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2118 echo "$as_me: error: invalid value of canonical target" >&2;}
2119 { (exit 1); exit 1; }; };;
2121 target
=$ac_cv_target
2122 ac_save_IFS
=$IFS; IFS
='-'
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2132 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2135 # The aliases save the names the user supplied, while $host etc.
2136 # will get canonicalized.
2137 test -n "$target_alias" &&
2138 test "$program_prefix$program_suffix$program_transform_name" = \
2140 program_prefix
=${target_alias}-
2142 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2143 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2144 if test "${llvm_cv_os_type+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 llvm_cv_link_all_option
="-Wl,--whole-archive"
2150 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2151 llvm_cv_os_type
="AIX"
2152 llvm_cv_platform_type
="Unix" ;;
2154 llvm_cv_link_all_option
="-Wl,--whole-archive"
2155 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2156 llvm_cv_os_type
="IRIX"
2157 llvm_cv_platform_type
="Unix" ;;
2159 llvm_cv_link_all_option
="-Wl,--whole-archive"
2160 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2161 llvm_cv_os_type
="Cygwin"
2162 llvm_cv_platform_type
="Unix" ;;
2164 llvm_cv_link_all_option
="-Wl,-all_load"
2165 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2166 llvm_cv_os_type
="Darwin"
2167 llvm_cv_platform_type
="Unix" ;;
2169 llvm_cv_link_all_option
="-Wl,-all_load"
2170 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2171 llvm_cv_os_type
="Minix"
2172 llvm_cv_platform_type
="Unix" ;;
2174 llvm_cv_link_all_option
="-Wl,--whole-archive"
2175 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2176 llvm_cv_os_type
="FreeBSD"
2177 llvm_cv_platform_type
="Unix" ;;
2179 llvm_cv_link_all_option
="-Wl,--whole-archive"
2180 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2181 llvm_cv_os_type
="OpenBSD"
2182 llvm_cv_platform_type
="Unix" ;;
2184 llvm_cv_link_all_option
="-Wl,--whole-archive"
2185 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2186 llvm_cv_os_type
="NetBSD"
2187 llvm_cv_platform_type
="Unix" ;;
2189 llvm_cv_link_all_option
="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2191 llvm_cv_os_type
="DragonFly"
2192 llvm_cv_platform_type
="Unix" ;;
2194 llvm_cv_link_all_option
="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2196 llvm_cv_os_type
="HP-UX"
2197 llvm_cv_platform_type
="Unix" ;;
2199 llvm_cv_link_all_option
="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2201 llvm_cv_os_type
="Interix"
2202 llvm_cv_platform_type
="Unix" ;;
2204 llvm_cv_link_all_option
="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2206 llvm_cv_os_type
="Linux"
2207 llvm_cv_platform_type
="Unix" ;;
2209 llvm_cv_link_all_option
="-Wl,-z,allextract"
2210 llvm_cv_no_link_all_option
="-Wl,-z,defaultextract"
2211 llvm_cv_os_type
="SunOS"
2212 llvm_cv_platform_type
="Unix" ;;
2214 llvm_cv_link_all_option
="-Wl,-z,allextract"
2215 llvm_cv_link_all_option
="-Wl,-z,defaultextract"
2216 llvm_cv_os_type
="AuroraUX"
2217 llvm_cv_platform_type
="Unix" ;;
2219 llvm_cv_link_all_option
="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2221 llvm_cv_os_type
="Win32"
2222 llvm_cv_platform_type
="Win32" ;;
2224 llvm_cv_link_all_option
="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2226 llvm_cv_os_type
="MingW"
2227 llvm_cv_platform_type
="Win32" ;;
2229 llvm_cv_link_all_option
="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2231 llvm_cv_os_type
="Haiku"
2232 llvm_cv_platform_type
="Unix" ;;
2234 llvm_cv_link_all_option
="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2236 llvm_cv_os_type
="Freestanding"
2237 llvm_cv_platform_type
="Unix" ;;
2239 llvm_cv_link_all_option
="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2241 llvm_cv_os_type
="Freestanding"
2242 llvm_cv_platform_type
="Unix" ;;
2244 llvm_cv_link_all_option
=""
2245 llvm_cv_no_link_all_option
=""
2246 llvm_cv_os_type
="Unknown"
2247 llvm_cv_platform_type
="Unknown" ;;
2250 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2251 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2253 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2254 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2255 if test "${llvm_cv_target_os_type+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 llvm_cv_target_os_type
="AIX" ;;
2262 llvm_cv_target_os_type
="IRIX" ;;
2264 llvm_cv_target_os_type
="Cygwin" ;;
2266 llvm_cv_target_os_type
="Darwin" ;;
2268 llvm_cv_target_os_type
="Minix" ;;
2270 llvm_cv_target_os_type
="FreeBSD" ;;
2272 llvm_cv_target_os_type
="OpenBSD" ;;
2274 llvm_cv_target_os_type
="NetBSD" ;;
2276 llvm_cv_target_os_type
="DragonFly" ;;
2278 llvm_cv_target_os_type
="HP-UX" ;;
2280 llvm_cv_target_os_type
="Interix" ;;
2282 llvm_cv_target_os_type
="Linux" ;;
2284 llvm_cv_target_os_type
="SunOS" ;;
2286 llvm_cv_target_os_type
="AuroraUX" ;;
2288 llvm_cv_target_os_type
="Win32" ;;
2290 llvm_cv_target_os_type
="MingW" ;;
2292 llvm_cv_target_os_type
="Haiku" ;;
2294 llvm_cv_target_os_type
="Freestanding" ;;
2296 llvm_cv_target_os_type
="Unknown" ;;
2299 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2300 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2302 if test "$llvm_cv_os_type" = "Unknown" ; then
2303 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2304 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2305 { (exit 1); exit 1; }; }
2310 HOST_OS
=$llvm_cv_os_type
2312 TARGET_OS
=$llvm_cv_target_os_type
2315 LINKALL
=$llvm_cv_link_all_option
2317 NOLINKALL
=$llvm_cv_no_link_all_option
2320 case $llvm_cv_platform_type in
2323 cat >>confdefs.h
<<\_ACEOF
2324 #define LLVM_ON_UNIX 1
2334 cat >>confdefs.h
<<\_ACEOF
2335 #define LLVM_ON_WIN32 1
2345 { echo "$as_me:$LINENO: checking target architecture" >&5
2346 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2347 if test "${llvm_cv_target_arch+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 i?
86-*) llvm_cv_target_arch
="x86" ;;
2352 amd64-
* | x86_64-
*) llvm_cv_target_arch
="x86_64" ;;
2353 sparc
*-*) llvm_cv_target_arch
="Sparc" ;;
2354 powerpc
*-*) llvm_cv_target_arch
="PowerPC" ;;
2355 alpha
*-*) llvm_cv_target_arch
="Alpha" ;;
2356 arm
*-*) llvm_cv_target_arch
="ARM" ;;
2357 mips-
*) llvm_cv_target_arch
="Mips" ;;
2358 pic16-
*) llvm_cv_target_arch
="PIC16" ;;
2359 xcore-
*) llvm_cv_target_arch
="XCore" ;;
2360 msp430-
*) llvm_cv_target_arch
="MSP430" ;;
2361 s390x-
*) llvm_cv_target_arch
="SystemZ" ;;
2362 bfin-
*) llvm_cv_target_arch
="Blackfin" ;;
2363 mblaze-
*) llvm_cv_target_arch
="MBlaze" ;;
2364 *) llvm_cv_target_arch
="Unknown" ;;
2367 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2368 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2370 if test "$llvm_cv_target_arch" = "Unknown" ; then
2371 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2372 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2375 # Determine the LLVM native architecture for the target
2376 case "$llvm_cv_target_arch" in
2377 x86
) LLVM_NATIVE_ARCH
="X86" ;;
2378 x86_64
) LLVM_NATIVE_ARCH
="X86" ;;
2379 *) LLVM_NATIVE_ARCH
="$llvm_cv_target_arch" ;;
2382 ARCH
=$llvm_cv_target_arch
2386 ac_cpp
='$CPP $CPPFLAGS'
2387 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2390 if test -n "$ac_tool_prefix"; then
2391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2392 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395 if test "${ac_cv_prog_CC+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 if test -n "$CC"; then
2399 ac_cv_prog_CC
="$CC" # Let the user override the test.
2401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2405 test -z "$as_dir" && as_dir
=.
2406 for ac_exec_ext
in '' $ac_executable_extensions; do
2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2408 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419 if test -n "$CC"; then
2420 { echo "$as_me:$LINENO: result: $CC" >&5
2421 echo "${ECHO_T}$CC" >&6; }
2423 { echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6; }
2429 if test -z "$ac_cv_prog_CC"; then
2431 # Extract the first word of "gcc", so it can be a program name with args.
2432 set dummy gcc
; ac_word
=$2
2433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir
=.
2446 for ac_exec_ext
in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_ac_ct_CC
="gcc"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2459 if test -n "$ac_ct_CC"; then
2460 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461 echo "${ECHO_T}$ac_ct_CC" >&6; }
2463 { echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6; }
2467 if test "x$ac_ct_CC" = x
; then
2470 case $cross_compiling:$ac_tool_warned in
2472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2473 whose name does not start with the host triplet. If you think this
2474 configuration is useful to you, please write to autoconf@gnu.org." >&5
2475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2476 whose name does not start with the host triplet. If you think this
2477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2478 ac_tool_warned
=yes ;;
2486 if test -z "$CC"; then
2487 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2489 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492 if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC
="$CC" # Let the user override the test.
2498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir
=.
2503 for ac_exec_ext
in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 if test -n "$CC"; then
2517 { echo "$as_me:$LINENO: result: $CC" >&5
2518 echo "${ECHO_T}$CC" >&6; }
2520 { echo "$as_me:$LINENO: result: no" >&5
2521 echo "${ECHO_T}no" >&6; }
2527 if test -z "$CC"; then
2528 # Extract the first word of "cc", so it can be a program name with args.
2529 set dummy cc
; ac_word
=$2
2530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC
="$CC" # Let the user override the test.
2539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir
=.
2544 for ac_exec_ext
in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2547 ac_prog_rejected
=yes
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 if test $ac_prog_rejected = yes; then
2559 # We found a bogon in the path, so make sure we never use it.
2560 set dummy
$ac_cv_prog_CC
2562 if test $# != 0; then
2563 # We chose a different compiler from the bogus one.
2564 # However, it has the same basename, so the bogon will be chosen
2565 # first if we set CC to just the basename; use the full file name.
2567 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2573 if test -n "$CC"; then
2574 { echo "$as_me:$LINENO: result: $CC" >&5
2575 echo "${ECHO_T}$CC" >&6; }
2577 { echo "$as_me:$LINENO: result: no" >&5
2578 echo "${ECHO_T}no" >&6; }
2583 if test -z "$CC"; then
2584 if test -n "$ac_tool_prefix"; then
2585 for ac_prog
in cl.exe
2587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2588 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC
="$CC" # Let the user override the test.
2597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2601 test -z "$as_dir" && as_dir
=.
2602 for ac_exec_ext
in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 if test -n "$CC"; then
2616 { echo "$as_me:$LINENO: result: $CC" >&5
2617 echo "${ECHO_T}$CC" >&6; }
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2624 test -n "$CC" && break
2627 if test -z "$CC"; then
2629 for ac_prog
in cl.exe
2631 # Extract the first word of "$ac_prog", so it can be a program name with args.
2632 set dummy
$ac_prog; ac_word
=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 if test -n "$ac_ct_CC"; then
2639 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir
=.
2646 for ac_exec_ext
in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_ac_ct_CC
="$ac_prog"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2659 if test -n "$ac_ct_CC"; then
2660 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2661 echo "${ECHO_T}$ac_ct_CC" >&6; }
2663 { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2668 test -n "$ac_ct_CC" && break
2671 if test "x$ac_ct_CC" = x
; then
2674 case $cross_compiling:$ac_tool_warned in
2676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet. If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&5
2679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2680 whose name does not start with the host triplet. If you think this
2681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2682 ac_tool_warned
=yes ;;
2691 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2692 See \`config.log' for more details." >&5
2693 echo "$as_me: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&2;}
2695 { (exit 1); exit 1; }; }
2697 # Provide some information about the compiler.
2698 echo "$as_me:$LINENO: checking for C compiler version" >&5
2699 ac_compiler
=`set X $ac_compile; echo $2`
2700 { (ac_try
="$ac_compiler --version >&5"
2702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compiler --version >&5") 2>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710 { (ac_try="$ac_compiler -v >&5"
2712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2713 *) ac_try_echo
=$ac_try;;
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compiler -v >&5") 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2720 { (ac_try
="$ac_compiler -V >&5"
2722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_compiler -V >&5") 2>&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }
2731 cat >conftest.$ac_ext <<_ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2746 ac_clean_files_save=$ac_clean_files
2747 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2748 # Try to create an executable without -o first, disregard a.out.
2749 # It will help us diagnose broken compilers, and finding out an intuition
2751 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2752 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2753 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2755 # List of possible output files, starting from the most likely.
2756 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2757 # only as a last resort. b.out is created by i960 compilers.
2758 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2760 # The IRIX 6 linker writes into existing files which may not be
2761 # executable, retaining their permissions. Remove them first so a
2762 # subsequent execution test works.
2764 for ac_file in $ac_files
2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2768 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2773 if { (ac_try="$ac_link_default"
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_link_default") 2>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; then
2783 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2784 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2785 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2786 # so that the user can short-circuit this test for compilers unknown to
2788 for ac_file
in $ac_files
2790 test -f "$ac_file" ||
continue
2792 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2795 # We found the default executable, but exeext='' is most
2799 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2801 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2803 # We set ac_cv_exeext here because the later test for it is not
2804 # safe: cross compilers may not add the suffix if given an `-o'
2805 # argument, so we may need to know it at that point already.
2806 # Even if this section looks crufty: it has the advantage of
2813 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.
$ac_ext >&5
2819 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2820 See \`config.log' for more details." >&5
2821 echo "$as_me: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&2;}
2823 { (exit 77); exit 77; }; }
2826 ac_exeext
=$ac_cv_exeext
2827 { echo "$as_me:$LINENO: result: $ac_file" >&5
2828 echo "${ECHO_T}$ac_file" >&6; }
2830 # Check that the compiler produces executables we can run. If not, either
2831 # the compiler is broken, or we cross compile.
2832 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2833 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2834 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2835 # If not cross compiling, check that we can run a simple program.
2836 if test "$cross_compiling" != yes; then
2837 if { ac_try
='./$ac_file'
2838 { (case "(($ac_try" in
2839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_try") 2>&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2849 if test "$cross_compiling" = maybe; then
2852 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2853 If you meant to cross compile, use \`--host'.
2854 See \`config.log' for more details.
" >&5
2855 echo "$as_me: error
: cannot run C compiled programs.
2856 If you meant to cross compile
, use \
`--host'.
2857 See \`config.log
' for more details." >&2;}
2858 { (exit 1); exit 1; }; }
2862 { echo "$as_me:$LINENO: result: yes" >&5
2863 echo "${ECHO_T}yes" >&6; }
2865 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2866 ac_clean_files=$ac_clean_files_save
2867 # Check that the compiler produces executables we can run. If not, either
2868 # the compiler is broken, or we cross compile.
2869 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2870 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2871 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2872 echo "${ECHO_T}$cross_compiling" >&6; }
2874 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2875 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2876 if { (ac_try="$ac_link"
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_link") 2>&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; then
2886 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2887 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2888 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2890 for ac_file
in conftest.exe conftest conftest.
*; do
2891 test -f "$ac_file" ||
continue
2893 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2894 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2901 See \`config.log' for more details." >&5
2902 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2903 See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }
2907 rm -f conftest
$ac_cv_exeext
2908 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2909 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2911 rm -f conftest.
$ac_ext
2912 EXEEXT
=$ac_cv_exeext
2914 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2915 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2916 if test "${ac_cv_objext+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 cat >conftest.
$ac_ext <<_ACEOF
2922 cat confdefs.h
>>conftest.
$ac_ext
2923 cat >>conftest.
$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2934 rm -f conftest.o conftest.obj
2935 if { (ac_try
="$ac_compile"
2937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compile") 2>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; then
2945 for ac_file in conftest.o conftest.obj conftest.*; do
2946 test -f "$ac_file" || continue;
2948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2958 See \`config.log
' for more details." >&5
2959 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2960 See \`config.log' for more details.
" >&2;}
2961 { (exit 1); exit 1; }; }
2964 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2966 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2967 echo "${ECHO_T}$ac_cv_objext" >&6; }
2968 OBJEXT=$ac_cv_objext
2970 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2971 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2972 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2973 echo $ECHO_N "(cached
) $ECHO_C" >&6
2975 cat >conftest.$ac_ext <<_ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2993 rm -f conftest.$ac_objext
2994 if { (ac_try="$ac_compile"
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2999 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_compile") 2>conftest.er1
3002 grep -v '^ *+' conftest.er1 >conftest.err
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3006 (exit $ac_status); } &&
3007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3008 { (case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_try") 2>&5
3015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3016 (exit $ac_status); }; } &&
3017 { ac_try='test -s conftest.$ac_objext'
3018 { (case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_try") 2>&5
3025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3026 (exit $ac_status); }; }; then
3029 echo "$as_me: failed program was
:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3039 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3040 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3041 GCC=`test $ac_compiler_gnu = yes && echo yes`
3042 ac_test_CFLAGS=${CFLAGS+set}
3043 ac_save_CFLAGS=$CFLAGS
3044 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3045 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3046 if test "${ac_cv_prog_cc_g+set}" = set; then
3047 echo $ECHO_N "(cached
) $ECHO_C" >&6
3049 ac_save_c_werror_flag=$ac_c_werror_flag
3050 ac_c_werror_flag=yes
3053 cat >conftest.$ac_ext <<_ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
3077 grep -v '^ *+' conftest.er1 >conftest.err
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3083 { (case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_try") 2>&5
3090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_try") 2>&5
3100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3101 (exit $ac_status); }; }; then
3104 echo "$as_me: failed program was
:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3108 cat >conftest.$ac_ext <<_ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3123 rm -f conftest.$ac_objext
3124 if { (ac_try="$ac_compile"
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3132 grep -v '^ *+' conftest.er1 >conftest.err
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3146 (exit $ac_status); }; } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3156 (exit $ac_status); }; }; then
3159 echo "$as_me: failed program was
:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 ac_c_werror_flag=$ac_save_c_werror_flag
3164 cat >conftest.$ac_ext <<_ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3179 rm -f conftest.$ac_objext
3180 if { (ac_try="$ac_compile"
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compile") 2>conftest.er1
3188 grep -v '^ *+' conftest.er1 >conftest.err
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3194 { (case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_try") 2>&5
3201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_try") 2>&5
3211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3212 (exit $ac_status); }; }; then
3215 echo "$as_me: failed program was
:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 ac_c_werror_flag=$ac_save_c_werror_flag
3230 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3231 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3232 if test "$ac_test_CFLAGS" = set; then
3233 CFLAGS=$ac_save_CFLAGS
3234 elif test $ac_cv_prog_cc_g = yes; then
3235 if test "$GCC" = yes; then
3241 if test "$GCC" = yes; then
3247 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3248 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3249 if test "${ac_cv_prog_cc_c89+set}" = set; then
3250 echo $ECHO_N "(cached
) $ECHO_C" >&6
3252 ac_cv_prog_cc_c89=no
3254 cat >conftest.$ac_ext <<_ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3262 #include <sys/types.h>
3263 #include <sys/stat.h>
3264 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3265 struct buf { int x; };
3266 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3267 static char *e (p, i)
3273 static char *f (char * (*g) (char **, int), char **p, ...)
3278 s = g (p, va_arg (v,int));
3283 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3284 function prototypes and stuff, but not '\xHH' hex character constants.
3285 These don't provoke an error unfortunately, instead are silently treated
3286 as 'x'. The following induces an error, until -std is added to get
3287 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3288 array size at least. It's necessary to write '\x00'==0 to get something
3289 that's true only with -std. */
3290 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3292 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3293 inside strings and character constants. */
3295 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3297 int test (int i, double x);
3298 struct s1 {int (*f) (int a);};
3299 struct s2 {int (*f) (double a);};
3300 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3306 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3311 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3312 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3314 CC="$ac_save_CC $ac_arg"
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3324 grep -v '^ *+' conftest.er1 >conftest.err
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3330 { (case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_try") 2>&5
3337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3338 (exit $ac_status); }; } &&
3339 { ac_try='test -s conftest.$ac_objext'
3340 { (case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3344 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_try") 2>&5
3347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3348 (exit $ac_status); }; }; then
3349 ac_cv_prog_cc_c89=$ac_arg
3351 echo "$as_me: failed program was
:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3357 rm -f core conftest.err conftest.$ac_objext
3358 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3360 rm -f conftest.$ac_ext
3365 case "x
$ac_cv_prog_cc_c89" in
3367 { echo "$as_me:$LINENO: result
: none needed
" >&5
3368 echo "${ECHO_T}none needed
" >&6; } ;;
3370 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3371 echo "${ECHO_T}unsupported
" >&6; } ;;
3373 CC="$CC $ac_cv_prog_cc_c89"
3374 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3375 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3392 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3393 # On Suns, sometimes $CPP names a directory.
3394 if test -n "$CPP" && test -d "$CPP"; then
3397 if test -z "$CPP"; then
3398 if test "${ac_cv_prog_CPP+set}" = set; then
3399 echo $ECHO_N "(cached
) $ECHO_C" >&6
3401 # Double quotes because CPP needs to be expanded
3402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3405 for ac_c_preproc_warn_flag in '' yes
3407 # Use a header file that comes with gcc, so configuring glibc
3408 # with a fresh cross-compiler works.
3409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410 # <limits.h> exists even on freestanding compilers.
3411 # On the NeXT, cc -E runs the code through the compiler's parser,
3412 # not just through cpp. "Syntax error
" is here to catch this case.
3413 cat >conftest.$ac_ext <<_ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3420 # include <limits.h>
3422 # include <assert.h>
3426 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3434 grep -v '^ *+' conftest.er1 >conftest.err
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3438 (exit $ac_status); } >/dev/null; then
3439 if test -s conftest.err; then
3440 ac_cpp_err=$ac_c_preproc_warn_flag
3441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448 if test -z "$ac_cpp_err"; then
3451 echo "$as_me: failed program was
:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 # Broken: fails on valid input.
3458 rm -f conftest.err conftest.$ac_ext
3460 # OK, works on sane cases. Now check whether nonexistent headers
3461 # can be detected and how.
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468 #include <ac_nonexistent.h>
3470 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3475 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3478 grep -v '^ *+' conftest.er1 >conftest.err
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_c_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492 if test -z "$ac_cpp_err"; then
3493 # Broken: success on invalid input.
3496 echo "$as_me: failed program was
:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 # Passes both tests.
3504 rm -f conftest.err conftest.$ac_ext
3507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3508 rm -f conftest.err conftest.$ac_ext
3509 if $ac_preproc_ok; then
3521 { echo "$as_me:$LINENO: result
: $CPP" >&5
3522 echo "${ECHO_T}$CPP" >&6; }
3524 for ac_c_preproc_warn_flag in '' yes
3526 # Use a header file that comes with gcc, so configuring glibc
3527 # with a fresh cross-compiler works.
3528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3529 # <limits.h> exists even on freestanding compilers.
3530 # On the NeXT, cc -E runs the code through the compiler's parser,
3531 # not just through cpp. "Syntax error
" is here to catch this case.
3532 cat >conftest.$ac_ext <<_ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3539 # include <limits.h>
3541 # include <assert.h>
3545 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3553 grep -v '^ *+' conftest.er1 >conftest.err
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3557 (exit $ac_status); } >/dev/null; then
3558 if test -s conftest.err; then
3559 ac_cpp_err=$ac_c_preproc_warn_flag
3560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567 if test -z "$ac_cpp_err"; then
3570 echo "$as_me: failed program was
:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 # Broken: fails on valid input.
3577 rm -f conftest.err conftest.$ac_ext
3579 # OK, works on sane cases. Now check whether nonexistent headers
3580 # can be detected and how.
3581 cat >conftest.$ac_ext <<_ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3587 #include <ac_nonexistent.h>
3589 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3597 grep -v '^ *+' conftest.er1 >conftest.err
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3601 (exit $ac_status); } >/dev/null; then
3602 if test -s conftest.err; then
3603 ac_cpp_err=$ac_c_preproc_warn_flag
3604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3611 if test -z "$ac_cpp_err"; then
3612 # Broken: success on invalid input.
3615 echo "$as_me: failed program was
:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 # Passes both tests.
3623 rm -f conftest.err conftest.$ac_ext
3626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3627 rm -f conftest.err conftest.$ac_ext
3628 if $ac_preproc_ok; then
3631 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3632 See \
`config.log' for more details." >&5
3633 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3634 See \`config.log
' for more details." >&2;}
3635 { (exit 1); exit 1; }; }
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3641 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3646 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3647 if test "${ac_cv_path_GREP+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 # Extract the first word of "grep ggrep" to use in msg output
3651 if test -z "$GREP"; then
3652 set dummy grep ggrep; ac_prog_name=$2
3653 if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 ac_path_GREP_found=false
3657 # Loop through the user's path and
test for each of PROGNAME-LIST
3658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3659 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3662 test -z "$as_dir" && as_dir
=.
3663 for ac_prog
in grep ggrep
; do
3664 for ac_exec_ext
in '' $ac_executable_extensions; do
3665 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3666 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3667 # Check for GNU ac_path_GREP and select it if it is found.
3668 # Check for GNU $ac_path_GREP
3669 case `"$ac_path_GREP" --version 2>&1` in
3671 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3674 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3677 cat "conftest.in" "conftest.in" >"conftest.tmp"
3678 mv "conftest.tmp" "conftest.in"
3679 cp "conftest.in" "conftest.nl"
3680 echo 'GREP' >> "conftest.nl"
3681 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3682 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3683 ac_count
=`expr $ac_count + 1`
3684 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3685 # Best one so far, save it but keep looking for a better one
3686 ac_cv_path_GREP
="$ac_path_GREP"
3687 ac_path_GREP_max
=$ac_count
3689 # 10*(2^10) chars as input seems more than enough
3690 test $ac_count -gt 10 && break
3692 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3696 $ac_path_GREP_found && break 3
3706 GREP
="$ac_cv_path_GREP"
3707 if test -z "$GREP"; then
3708 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3709 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3710 { (exit 1); exit 1; }; }
3714 ac_cv_path_GREP
=$GREP
3719 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3720 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3721 GREP
="$ac_cv_path_GREP"
3724 { echo "$as_me:$LINENO: checking for egrep" >&5
3725 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3726 if test "${ac_cv_path_EGREP+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3730 then ac_cv_path_EGREP
="$GREP -E"
3732 # Extract the first word of "egrep" to use in msg output
3733 if test -z "$EGREP"; then
3734 set dummy
egrep; ac_prog_name
=$2
3735 if test "${ac_cv_path_EGREP+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 ac_path_EGREP_found
=false
3739 # Loop through the user's path and test for each of PROGNAME-LIST
3740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3741 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3744 test -z "$as_dir" && as_dir
=.
3745 for ac_prog
in egrep; do
3746 for ac_exec_ext
in '' $ac_executable_extensions; do
3747 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3748 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3749 # Check for GNU ac_path_EGREP and select it if it is found.
3750 # Check for GNU $ac_path_EGREP
3751 case `"$ac_path_EGREP" --version 2>&1` in
3753 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3756 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3759 cat "conftest.in" "conftest.in" >"conftest.tmp"
3760 mv "conftest.tmp" "conftest.in"
3761 cp "conftest.in" "conftest.nl"
3762 echo 'EGREP' >> "conftest.nl"
3763 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3764 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3765 ac_count
=`expr $ac_count + 1`
3766 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3767 # Best one so far, save it but keep looking for a better one
3768 ac_cv_path_EGREP
="$ac_path_EGREP"
3769 ac_path_EGREP_max
=$ac_count
3771 # 10*(2^10) chars as input seems more than enough
3772 test $ac_count -gt 10 && break
3774 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3778 $ac_path_EGREP_found && break 3
3788 EGREP
="$ac_cv_path_EGREP"
3789 if test -z "$EGREP"; then
3790 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3791 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3792 { (exit 1); exit 1; }; }
3796 ac_cv_path_EGREP
=$EGREP
3802 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3803 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3804 EGREP
="$ac_cv_path_EGREP"
3807 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3808 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3809 if test "${ac_cv_header_stdc+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 cat >conftest.
$ac_ext <<_ACEOF
3815 cat confdefs.h
>>conftest.
$ac_ext
3816 cat >>conftest.
$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3831 rm -f conftest.
$ac_objext
3832 if { (ac_try
="$ac_compile"
3834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_compile") 2>conftest.er1
3840 grep -v '^ *+' conftest.er1 >conftest.err
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3846 { (case "(($ac_try" in
3847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3848 *) ac_try_echo
=$ac_try;;
3850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_try") 2>&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; } &&
3855 { ac_try
='test -s conftest.$ac_objext'
3856 { (case "(($ac_try" in
3857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3861 (eval "$ac_try") 2>&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3865 ac_cv_header_stdc=yes
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 ac_cv_header_stdc=no
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 if test $ac_cv_header_stdc = yes; then
3876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3877 cat >conftest.$ac_ext <<_ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3887 $EGREP "memchr" >/dev/null 2>&1; then
3890 ac_cv_header_stdc=no
3896 if test $ac_cv_header_stdc = yes; then
3897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3898 cat >conftest.$ac_ext <<_ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908 $EGREP "free" >/dev/null 2>&1; then
3911 ac_cv_header_stdc=no
3917 if test $ac_cv_header_stdc = yes; then
3918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3919 if test "$cross_compiling" = yes; then
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3930 #if ((' ' & 0x0FF) == 0x020)
3931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3934 # define ISLOWER(c) \
3935 (('a' <= (c) && (c) <= 'i') \
3936 || ('j' <= (c) && (c) <= 'r') \
3937 || ('s' <= (c) && (c) <= 'z'))
3938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3946 for (i = 0; i < 256; i++)
3947 if (XOR (islower (i), ISLOWER (i))
3948 || toupper (i) != TOUPPER (i))
3953 rm -f conftest$ac_exeext
3954 if { (ac_try="$ac_link"
3956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3957 *) ac_try_echo
=$ac_try;;
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_link") 2>&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3964 { (case "(($ac_try" in
3965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969 (eval "$ac_try") 2>&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3975 echo "$as_me: program exited with status $ac_status" >&5
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3980 ac_cv_header_stdc=no
3982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3988 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3989 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3990 if test $ac_cv_header_stdc = yes; then
3992 cat >>confdefs.h <<\_ACEOF
3993 #define STDC_HEADERS 1
3998 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4008 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4009 inttypes.h stdint.h unistd.h
4011 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 $ac_includes_default
4025 #include <$ac_header>
4027 rm -f conftest.$ac_objext
4028 if { (ac_try="$ac_compile"
4030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4031 *) ac_try_echo
=$ac_try;;
4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 (eval "$ac_compile") 2>conftest.er1
4036 grep -v '^ *+' conftest.er1
>conftest.err
4038 cat conftest.err
>&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4042 { (case "(($ac_try" in
4043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_try") 2>&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; } &&
4051 { ac_try='test -s conftest.$ac_objext'
4052 { (case "(($ac_try" in
4053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4054 *) ac_try_echo
=$ac_try;;
4056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4057 (eval "$ac_try") 2>&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 eval "$as_ac_Header=yes"
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.
$ac_ext >&5
4066 eval "$as_ac_Header=no"
4069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4071 ac_res
=`eval echo '${'$as_ac_Header'}'`
4072 { echo "$as_me:$LINENO: result: $ac_res" >&5
4073 echo "${ECHO_T}$ac_res" >&6; }
4074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4075 cat >>confdefs.h
<<_ACEOF
4076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4085 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4086 if test "${ac_cv_c_bigendian+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 # See if sys/param.h defines the BYTE_ORDER macro.
4090 cat >conftest.
$ac_ext <<_ACEOF
4093 cat confdefs.h
>>conftest.
$ac_ext
4094 cat >>conftest.
$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4096 #include <sys/types.h>
4097 #include <sys/param.h>
4102 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4110 rm -f conftest.
$ac_objext
4111 if { (ac_try
="$ac_compile"
4113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_compile") 2>conftest.er1
4119 grep -v '^ *+' conftest.er1 >conftest.err
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4125 { (case "(($ac_try" in
4126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4127 *) ac_try_echo
=$ac_try;;
4129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_try") 2>&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; } &&
4134 { ac_try
='test -s conftest.$ac_objext'
4135 { (case "(($ac_try" in
4136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_try") 2>&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
4144 # It does; now see whether it defined to BIG_ENDIAN or not.
4145 cat >conftest.$ac_ext <<_ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4151 #include <sys/types.h>
4152 #include <sys/param.h>
4157 #if BYTE_ORDER != BIG_ENDIAN
4165 rm -f conftest.$ac_objext
4166 if { (ac_try="$ac_compile"
4168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4169 *) ac_try_echo
=$ac_try;;
4171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172 (eval "$ac_compile") 2>conftest.er1
4174 grep -v '^ *+' conftest.er1
>conftest.err
4176 cat conftest.err
>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4180 { (case "(($ac_try" in
4181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (case "(($ac_try" in
4191 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4192 *) ac_try_echo
=$ac_try;;
4194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195 (eval "$ac_try") 2>&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
4199 ac_cv_c_bigendian
=yes
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.
$ac_ext >&5
4204 ac_cv_c_bigendian
=no
4207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.
$ac_ext >&5
4212 # It does not; compile a test program.
4213 if test "$cross_compiling" = yes; then
4214 # try to guess the endianness by grepping values into an object file
4215 ac_cv_c_bigendian
=unknown
4216 cat >conftest.
$ac_ext <<_ACEOF
4219 cat confdefs.h
>>conftest.
$ac_ext
4220 cat >>conftest.
$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4222 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4223 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4224 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4225 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4226 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4227 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4231 _ascii (); _ebcdic ();
4236 rm -f conftest.
$ac_objext
4237 if { (ac_try
="$ac_compile"
4239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_compile") 2>conftest.er1
4245 grep -v '^ *+' conftest.er1 >conftest.err
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4251 { (case "(($ac_try" in
4252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4253 *) ac_try_echo
=$ac_try;;
4255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_try") 2>&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; } &&
4260 { ac_try
='test -s conftest.$ac_objext'
4261 { (case "(($ac_try" in
4262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_try") 2>&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4270 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4271 ac_cv_c_bigendian=yes
4273 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4274 if test "$ac_cv_c_bigendian" = unknown; then
4275 ac_cv_c_bigendian=no
4277 # finding both strings is unlikely to happen, but who knows?
4278 ac_cv_c_bigendian=unknown
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 cat >conftest.$ac_ext <<_ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4296 $ac_includes_default
4301 /* Are we little or big endian? From Harbison&Steele. */
4305 char c[sizeof (long int)];
4308 return u.c[sizeof (long int) - 1] == 1;
4314 rm -f conftest$ac_exeext
4315 if { (ac_try="$ac_link"
4317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4318 *) ac_try_echo
=$ac_try;;
4320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_link") 2>&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4325 { (case "(($ac_try" in
4326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_try") 2>&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 ac_cv_c_bigendian=no
4336 echo "$as_me: program exited with status $ac_status" >&5
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4341 ac_cv_c_bigendian=yes
4343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4352 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4353 case $ac_cv_c_bigendian in
4361 { { echo "$as_me:$LINENO: error: unknown endianness
4362 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4363 echo "$as_me: error: unknown endianness
4364 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4365 { (exit 1); exit 1; }; } ;;
4369 if test "$cross_compiling" = yes; then
4370 LLVM_CROSS_COMPILING=1
4373 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4374 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4375 if test "${ac_cv_build_exeext+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4379 ac_cv_build_exeext=.exe
4381 ac_build_prefix=${build_alias}-
4383 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4384 set dummy ${ac_build_prefix}gcc; ac_word=$2
4385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 if test -n "$BUILD_CC"; then
4391 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4400 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 BUILD_CC=$ac_cv_prog_BUILD_CC
4411 if test -n "$BUILD_CC"; then
4412 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4413 echo "${ECHO_T}$BUILD_CC" >&6; }
4415 { echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6; }
4420 if test -z "$BUILD_CC"; then
4421 # Extract the first word of "gcc", so it can be a program name with args.
4422 set dummy gcc; ac_word=$2
4423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 if test -n "$BUILD_CC"; then
4429 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_prog_BUILD_CC="gcc"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 BUILD_CC=$ac_cv_prog_BUILD_CC
4449 if test -n "$BUILD_CC"; then
4450 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4451 echo "${ECHO_T}$BUILD_CC" >&6; }
4453 { echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6; }
4458 if test -z "$BUILD_CC"; then
4459 # Extract the first word of "cc", so it can be a program name with args.
4460 set dummy cc; ac_word=$2
4461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 if test -n "$BUILD_CC"; then
4467 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4478 ac_prog_rejected=yes
4481 ac_cv_prog_BUILD_CC="cc"
4482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 if test $ac_prog_rejected = yes; then
4490 # We found a bogon in the path, so make sure we never use it.
4491 set dummy $ac_cv_prog_BUILD_CC
4493 if test $# != 0; then
4494 # We chose a different compiler from the bogus one.
4495 # However, it has the same basename, so the bogon will be chosen
4496 # first if we set BUILD_CC to just the basename; use the full file name.
4498 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4503 BUILD_CC=$ac_cv_prog_BUILD_CC
4504 if test -n "$BUILD_CC"; then
4505 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4506 echo "${ECHO_T}$BUILD_CC" >&6; }
4508 { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4515 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4516 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4517 { (exit 1); exit 1; }; }
4518 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4520 echo 'int main () { return 0; }' > conftest.$ac_ext
4522 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4523 (eval $ac_build_link) 2>&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; then
4527 for file in conftest.*; do
4529 *.c | *.o | *.obj | *.dSYM) ;;
4530 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4534 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4535 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4536 { (exit 1); exit 1; }; }
4539 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4544 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4545 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4546 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4547 ac_build_exeext=$BUILD_EXEEXT
4549 ac_build_prefix=${build_alias}-
4550 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4551 set dummy ${ac_build_prefix}g++; ac_word=$2
4552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 if test -n "$BUILD_CXX"; then
4558 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4578 if test -n "$BUILD_CXX"; then
4579 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4580 echo "${ECHO_T}$BUILD_CXX" >&6; }
4582 { echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6; }
4587 if test -z "$BUILD_CXX"; then
4588 # Extract the first word of "g++", so it can be a program name with args.
4589 set dummy g++; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 if test -n "$BUILD_CXX"; then
4596 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_BUILD_CXX="g++"
4606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4616 if test -n "$BUILD_CXX"; then
4617 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4618 echo "${ECHO_T}$BUILD_CXX" >&6; }
4620 { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4625 if test -z "$BUILD_CXX"; then
4626 # Extract the first word of "c++", so it can be a program name with args.
4627 set dummy c++; ac_word=$2
4628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 if test -n "$BUILD_CXX"; then
4634 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4645 ac_prog_rejected=yes
4648 ac_cv_prog_BUILD_CXX="c++"
4649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 if test $ac_prog_rejected = yes; then
4657 # We found a bogon in the path, so make sure we never use it.
4658 set dummy $ac_cv_prog_BUILD_CXX
4660 if test $# != 0; then
4661 # We chose a different compiler from the bogus one.
4662 # However, it has the same basename, so the bogon will be chosen
4663 # first if we set BUILD_CXX to just the basename; use the full file name.
4665 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4670 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4671 if test -n "$BUILD_CXX"; then
4672 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4673 echo "${ECHO_T}$BUILD_CXX" >&6; }
4675 { echo "$as_me:$LINENO: result: no" >&5
4676 echo "${ECHO_T}no" >&6; }
4683 LLVM_CROSS_COMPILING=0
4687 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4698 # Check whether --enable-optimized was given.
4699 if test "${enable_optimized+set}" = set; then
4700 enableval=$enable_optimized;
4705 if test ${enableval} = "no" ; then
4709 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4713 # Check whether --enable-profiling was given.
4714 if test "${enable_profiling+set}" = set; then
4715 enableval=$enable_profiling;
4720 if test ${enableval} = "no" ; then
4724 ENABLE_PROFILING=ENABLE_PROFILING=1
4728 # Check whether --enable-assertions was given.
4729 if test "${enable_assertions+set}" = set; then
4730 enableval=$enable_assertions;
4735 if test ${enableval} = "yes" ; then
4739 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4743 # Check whether --enable-expensive-checks was given.
4744 if test "${enable_expensive_checks+set}" = set; then
4745 enableval=$enable_expensive_checks;
4750 if test ${enableval} = "yes" ; then
4751 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4753 EXPENSIVE_CHECKS=yes
4756 ENABLE_EXPENSIVE_CHECKS=
4762 # Check whether --enable-debug-runtime was given.
4763 if test "${enable_debug_runtime+set}" = set; then
4764 enableval=$enable_debug_runtime;
4769 if test ${enableval} = "no" ; then
4773 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4777 # Check whether --enable-debug-symbols was given.
4778 if test "${enable_debug_symbols+set}" = set; then
4779 enableval=$enable_debug_symbols;
4784 if test ${enableval} = "no" ; then
4788 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4792 # Check whether --enable-jit was given.
4793 if test "${enable_jit+set}" = set; then
4794 enableval=$enable_jit;
4799 if test ${enableval} = "no"
4804 case "$llvm_cv_target_arch" in
4805 x86) TARGET_HAS_JIT=1
4807 Sparc) TARGET_HAS_JIT=0
4809 PowerPC) TARGET_HAS_JIT=1
4811 x86_64) TARGET_HAS_JIT=1
4813 Alpha) TARGET_HAS_JIT=1
4815 ARM) TARGET_HAS_JIT=1
4817 Mips) TARGET_HAS_JIT=0
4819 PIC16) TARGET_HAS_JIT=0
4821 XCore) TARGET_HAS_JIT=0
4823 MSP430) TARGET_HAS_JIT=0
4825 SystemZ) TARGET_HAS_JIT=0
4827 Blackfin) TARGET_HAS_JIT=0
4829 MBlaze) TARGET_HAS_JIT=0
4836 # Check whether --enable-doxygen was given.
4837 if test "${enable_doxygen+set}" = set; then
4838 enableval=$enable_doxygen;
4843 case "$enableval" in
4844 yes) ENABLE_DOXYGEN=1
4846 no) ENABLE_DOXYGEN=0
4848 default) ENABLE_DOXYGEN=0
4850 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4851 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4852 { (exit 1); exit 1; }; } ;;
4855 # Check whether --enable-threads was given.
4856 if test "${enable_threads+set}" = set; then
4857 enableval=$enable_threads;
4862 case "$enableval" in
4863 yes) ENABLE_THREADS=1
4865 no) ENABLE_THREADS=0
4867 default) ENABLE_THREADS=1
4869 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4870 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4871 { (exit 1); exit 1; }; } ;;
4874 cat >>confdefs.h <<_ACEOF
4875 #define ENABLE_THREADS $ENABLE_THREADS
4879 # Check whether --enable-pic was given.
4880 if test "${enable_pic+set}" = set; then
4881 enableval=$enable_pic;
4886 case "$enableval" in
4891 default) ENABLE_PIC=1
4893 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4894 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4895 { (exit 1); exit 1; }; } ;;
4898 cat >>confdefs.h <<_ACEOF
4899 #define ENABLE_PIC $ENABLE_PIC
4903 # Check whether --enable-shared was given.
4904 if test "${enable_shared+set}" = set; then
4905 enableval=$enable_shared;
4910 case "$enableval" in
4911 yes) ENABLE_SHARED=1
4915 default) ENABLE_SHARED=0
4917 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4918 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4919 { (exit 1); exit 1; }; } ;;
4922 # Check whether --enable-timestamps was given.
4923 if test "${enable_timestamps+set}" = set; then
4924 enableval=$enable_timestamps;
4929 case "$enableval" in
4930 yes) ENABLE_TIMESTAMPS=1
4932 no) ENABLE_TIMESTAMPS=0
4934 default) ENABLE_TIMESTAMPS=1
4936 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4937 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4938 { (exit 1); exit 1; }; } ;;
4941 cat >>confdefs.h <<_ACEOF
4942 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4947 # Check whether --enable-targets was given.
4948 if test "${enable_targets+set}" = set; then
4949 enableval=$enable_targets;
4954 if test "$enableval" = host-only ; then
4957 case "$enableval" in
4958 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze" ;;
4959 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
4961 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4962 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4963 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4964 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4965 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4966 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4967 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4968 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4969 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4970 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4971 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4972 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4973 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4974 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4975 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4976 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4977 host) case "$llvm_cv_target_arch" in
4978 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4979 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4980 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4981 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4982 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4983 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4984 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4985 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4986 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4987 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4988 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4989 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4990 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4991 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4992 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4993 echo "$as_me: error: Can not set target to build" >&2;}
4994 { (exit 1); exit 1; }; } ;;
4996 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4997 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4998 { (exit 1); exit 1; }; } ;;
5003 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5006 # Determine whether we are building LLVM support for the native architecture.
5007 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5008 for a_target in $TARGETS_TO_BUILD; do
5009 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5010 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5012 cat >>confdefs.h <<_ACEOF
5013 #define LLVM_NATIVE_ARCHNAME $LLVM_NATIVE_ARCH
5017 cat >>confdefs.h <<_ACEOF
5018 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5024 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5025 # target feature def files.
5026 LLVM_ENUM_TARGETS=""
5027 LLVM_ENUM_ASM_PRINTERS=""
5028 LLVM_ENUM_ASM_PARSERS=""
5029 LLVM_ENUM_DISASSEMBLERS=""
5030 for target_to_build in $TARGETS_TO_BUILD; do
5031 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5032 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5033 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5035 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5036 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5038 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5039 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5047 # Check whether --enable-cbe-printf-a was given.
5048 if test "${enable_cbe_printf_a+set}" = set; then
5049 enableval=$enable_cbe_printf_a;
5054 case "$enableval" in
5055 yes) ENABLE_CBE_PRINTF_A=1
5057 no) ENABLE_CBE_PRINTF_A=0
5059 default) ENABLE_CBE_PRINTF_A=1
5061 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5062 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5063 { (exit 1); exit 1; }; } ;;
5066 cat >>confdefs.h <<_ACEOF
5067 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5072 # Check whether --with-llvmgccdir was given.
5073 if test "${with_llvmgccdir+set}" = set; then
5074 withval=$with_llvmgccdir;
5080 default) WITH_LLVMGCCDIR=default ;;
5081 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5082 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5083 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5084 { (exit 1); exit 1; }; } ;;
5088 # Check whether --with-llvmgcc was given.
5089 if test "${with_llvmgcc+set}" = set; then
5090 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5096 # Check whether --with-llvmgxx was given.
5097 if test "${with_llvmgxx+set}" = set; then
5098 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5103 if test -n "$LLVMGCC"; then
5104 LLVMGCCCOMMAND="$LLVMGCC"
5107 if test -n "$LLVMGXX"; then
5108 LLVMGXXCOMMAND="$LLVMGXX"
5111 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5112 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5113 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5114 { (exit 1); exit 1; }; };
5117 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5118 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5119 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5120 { (exit 1); exit 1; }; };
5124 # Check whether --with-clang was given.
5125 if test "${with_clang+set}" = set; then
5126 withval=$with_clang;
5133 # Check whether --with-built-clang was given.
5134 if test "${with_built_clang+set}" = set; then
5135 withval=$with_built_clang;
5137 with_built_clang=check
5141 { echo "$as_me:$LINENO: checking clang compiler" >&5
5142 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5145 if test "$with_clang" != "default"; then
5146 WITH_CLANGPATH="$with_clang"
5147 if ! test -x "$WITH_CLANGPATH"; then
5148 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5149 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5150 { (exit 1); exit 1; }; }
5152 elif test "$with_built_clang" = "yes"; then
5154 elif test "$with_built_clang" = "no"; then
5157 if test "$with_built_clang" != "check"; then
5158 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5159 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5160 { (exit 1); exit 1; }; }
5163 if test -f ${srcdir}/tools/clang/README.txt; then
5168 if ! test -z "$WITH_CLANGPATH"; then
5169 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5170 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5171 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang
++`
5172 elif test "$WITH_BUILT_CLANG" = "1"; then
5173 { echo "$as_me:$LINENO: result: built" >&5
5174 echo "${ECHO_T}built" >&6; }
5176 { echo "$as_me:$LINENO: result: none" >&5
5177 echo "${ECHO_T}none" >&6; }
5179 CLANGPATH=$WITH_CLANGPATH
5181 CLANGXXPATH=$WITH_CLANGXXPATH
5183 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5187 # Check whether --with-optimize-option was given.
5188 if test "${with_optimize_option+set}" = set; then
5189 withval=$with_optimize_option;
5194 { echo "$as_me:$LINENO: checking optimization flags" >&5
5195 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5198 case "$llvm_cv_os_type" in
5199 FreeBSD) optimize_option=-O2 ;;
5200 MingW) optimize_option=-O2 ;;
5201 *) optimize_option=-O3 ;;
5203 *) optimize_option="$withval" ;;
5205 OPTIMIZE_OPTION=$optimize_option
5207 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5208 echo "${ECHO_T}$optimize_option" >&6; }
5211 # Check whether --with-extra-options was given.
5212 if test "${with_extra_options+set}" = set; then
5213 withval=$with_extra_options;
5219 default) EXTRA_OPTIONS= ;;
5220 *) EXTRA_OPTIONS=$withval ;;
5222 EXTRA_OPTIONS=$EXTRA_OPTIONS
5225 # Check whether --enable-bindings was given.
5226 if test "${enable_bindings+set}" = set; then
5227 enableval=$enable_bindings;
5232 BINDINGS_TO_BUILD=""
5233 case "$enableval" in
5234 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5235 all ) BINDINGS_TO_BUILD="ocaml" ;;
5236 none | no) BINDINGS_TO_BUILD="" ;;
5237 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5238 case "$a_binding" in
5239 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5240 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5241 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5242 { (exit 1); exit 1; }; } ;;
5249 # Check whether --with-ocaml-libdir was given.
5250 if test "${with_ocaml_libdir+set}" = set; then
5251 withval=$with_ocaml_libdir;
5257 auto) with_ocaml_libdir="$withval" ;;
5258 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5259 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5260 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5261 { (exit 1); exit 1; }; } ;;
5265 # Check whether --with-c-include-dirs was given.
5266 if test "${with_c_include_dirs+set}" = set; then
5267 withval=$with_c_include_dirs;
5273 cat >>confdefs.h <<_ACEOF
5274 #define C_INCLUDE_DIRS "$withval"
5279 # Check whether --with-cxx-include-root was given.
5280 if test "${with_cxx_include_root+set}" = set; then
5281 withval=$with_cxx_include_root;
5287 cat >>confdefs.h <<_ACEOF
5288 #define CXX_INCLUDE_ROOT "$withval"
5293 # Check whether --with-cxx-include-arch was given.
5294 if test "${with_cxx_include_arch+set}" = set; then
5295 withval=$with_cxx_include_arch;
5301 cat >>confdefs.h <<_ACEOF
5302 #define CXX_INCLUDE_ARCH "$withval"
5307 # Check whether --with-cxx-include-32bit-dir was given.
5308 if test "${with_cxx_include_32bit_dir+set}" = set; then
5309 withval=$with_cxx_include_32bit_dir;
5315 cat >>confdefs.h <<_ACEOF
5316 #define CXX_INCLUDE_32BIT_DIR "$withval"
5321 # Check whether --with-cxx-include-64bit-dir was given.
5322 if test "${with_cxx_include_64bit_dir+set}" = set; then
5323 withval=$with_cxx_include_64bit_dir;
5329 cat >>confdefs.h <<_ACEOF
5330 #define CXX_INCLUDE_64BIT_DIR "$withval"
5335 # Check whether --with-binutils-include was given.
5336 if test "${with_binutils_include+set}" = set; then
5337 withval=$with_binutils_include;
5343 default) WITH_BINUTILS_INCDIR=default ;;
5344 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5345 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5346 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5347 { (exit 1); exit 1; }; } ;;
5349 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5350 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5352 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5353 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5354 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5355 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5356 { (exit 1); exit 1; }; };
5360 # Check whether --enable-libffi was given.
5361 if test "${enable_libffi+set}" = set; then
5362 enableval=$enable_libffi; case "$enableval" in
5363 yes) llvm_cv_enable_libffi="yes" ;;
5364 no) llvm_cv_enable_libffi="no" ;;
5365 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5366 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5367 { (exit 1); exit 1; }; } ;;
5370 llvm_cv_enable_libffi=no
5376 ac_cpp='$CPP $CPPFLAGS'
5377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5380 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5381 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5382 # On Suns, sometimes $CPP names a directory.
5383 if test -n "$CPP" && test -d "$CPP"; then
5386 if test -z "$CPP"; then
5387 if test "${ac_cv_prog_CPP+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 # Double quotes because CPP needs to be expanded
5391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5394 for ac_c_preproc_warn_flag in '' yes
5396 # Use a header file that comes with gcc, so configuring glibc
5397 # with a fresh cross-compiler works.
5398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5399 # <limits.h> exists even on freestanding compilers.
5400 # On the NeXT, cc -E runs the code through the compiler's parser,
5401 # not just through cpp. "Syntax error" is here to catch this case.
5402 cat >conftest.$ac_ext <<_ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5409 # include <limits.h>
5411 # include <assert.h>
5415 if { (ac_try="$ac_cpp conftest.$ac_ext"
5417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5418 *) ac_try_echo
=$ac_try;;
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5423 grep -v '^ *+' conftest.er1
>conftest.err
5425 cat conftest.err
>&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } >/dev
/null
; then
5428 if test -s conftest.err
; then
5429 ac_cpp_err
=$ac_c_preproc_warn_flag
5430 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5437 if test -z "$ac_cpp_err"; then
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.
$ac_ext >&5
5443 # Broken: fails on valid input.
5447 rm -f conftest.err conftest.
$ac_ext
5449 # OK, works on sane cases. Now check whether nonexistent headers
5450 # can be detected and how.
5451 cat >conftest.
$ac_ext <<_ACEOF
5454 cat confdefs.h
>>conftest.
$ac_ext
5455 cat >>conftest.
$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 #include <ac_nonexistent.h>
5459 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5467 grep -v '^ *+' conftest.er1 >conftest.err
5469 cat conftest.err >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } >/dev/null; then
5472 if test -s conftest.err; then
5473 ac_cpp_err=$ac_c_preproc_warn_flag
5474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5481 if test -z "$ac_cpp_err"; then
5482 # Broken: success on invalid input.
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5488 # Passes both tests.
5493 rm -f conftest.err conftest.$ac_ext
5496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5497 rm -f conftest.err conftest.
$ac_ext
5498 if $ac_preproc_ok; then
5510 { echo "$as_me:$LINENO: result: $CPP" >&5
5511 echo "${ECHO_T}$CPP" >&6; }
5513 for ac_c_preproc_warn_flag
in '' yes
5515 # Use a header file that comes with gcc, so configuring glibc
5516 # with a fresh cross-compiler works.
5517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5518 # <limits.h> exists even on freestanding compilers.
5519 # On the NeXT, cc -E runs the code through the compiler's parser,
5520 # not just through cpp. "Syntax error" is here to catch this case.
5521 cat >conftest.
$ac_ext <<_ACEOF
5524 cat confdefs.h
>>conftest.
$ac_ext
5525 cat >>conftest.
$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5528 # include <limits.h>
5530 # include <assert.h>
5534 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5542 grep -v '^ *+' conftest.er1 >conftest.err
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } >/dev/null; then
5547 if test -s conftest.err; then
5548 ac_cpp_err=$ac_c_preproc_warn_flag
5549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5556 if test -z "$ac_cpp_err"; then
5559 echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5562 # Broken: fails on valid input.
5566 rm -f conftest.err conftest.$ac_ext
5568 # OK, works on sane cases. Now check whether nonexistent headers
5569 # can be detected and how.
5570 cat >conftest.$ac_ext <<_ACEOF
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h. */
5576 #include <ac_nonexistent.h>
5578 if { (ac_try="$ac_cpp conftest.$ac_ext"
5580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5581 *) ac_try_echo
=$ac_try;;
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5586 grep -v '^ *+' conftest.er1
>conftest.err
5588 cat conftest.err
>&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } >/dev
/null
; then
5591 if test -s conftest.err
; then
5592 ac_cpp_err
=$ac_c_preproc_warn_flag
5593 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5600 if test -z "$ac_cpp_err"; then
5601 # Broken: success on invalid input.
5604 echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.
$ac_ext >&5
5607 # Passes both tests.
5612 rm -f conftest.err conftest.
$ac_ext
5615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5616 rm -f conftest.err conftest.
$ac_ext
5617 if $ac_preproc_ok; then
5620 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5621 See \`config.log' for more details." >&5
5622 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5623 See \`config.log' for more details." >&2;}
5624 { (exit 1); exit 1; }; }
5628 ac_cpp
='$CPP $CPPFLAGS'
5629 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5634 ac_cpp
='$CPP $CPPFLAGS'
5635 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5638 if test -n "$ac_tool_prefix"; then
5641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5642 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5645 if test "${ac_cv_prog_CC+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 if test -n "$CC"; then
5649 ac_cv_prog_CC
="$CC" # Let the user override the test.
5651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5655 test -z "$as_dir" && as_dir
=.
5656 for ac_exec_ext
in '' $ac_executable_extensions; do
5657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5658 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 if test -n "$CC"; then
5670 { echo "$as_me:$LINENO: result: $CC" >&5
5671 echo "${ECHO_T}$CC" >&6; }
5673 { echo "$as_me:$LINENO: result: no" >&5
5674 echo "${ECHO_T}no" >&6; }
5678 test -n "$CC" && break
5681 if test -z "$CC"; then
5685 # Extract the first word of "$ac_prog", so it can be a program name with args.
5686 set dummy
$ac_prog; ac_word
=$2
5687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5689 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 if test -n "$ac_ct_CC"; then
5693 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5699 test -z "$as_dir" && as_dir
=.
5700 for ac_exec_ext
in '' $ac_executable_extensions; do
5701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5702 ac_cv_prog_ac_ct_CC
="$ac_prog"
5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5713 if test -n "$ac_ct_CC"; then
5714 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5715 echo "${ECHO_T}$ac_ct_CC" >&6; }
5717 { echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6; }
5722 test -n "$ac_ct_CC" && break
5725 if test "x$ac_ct_CC" = x
; then
5728 case $cross_compiling:$ac_tool_warned in
5730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5731 whose name does not start with the host triplet. If you think this
5732 configuration is useful to you, please write to autoconf@gnu.org." >&5
5733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5734 whose name does not start with the host triplet. If you think this
5735 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5736 ac_tool_warned
=yes ;;
5743 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5744 See \`config.log' for more details." >&5
5745 echo "$as_me: error: no acceptable C compiler found in \$PATH
5746 See \`config.log' for more details." >&2;}
5747 { (exit 1); exit 1; }; }
5749 # Provide some information about the compiler.
5750 echo "$as_me:$LINENO: checking for C compiler version" >&5
5751 ac_compiler
=`set X $ac_compile; echo $2`
5752 { (ac_try
="$ac_compiler --version >&5"
5754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compiler --version >&5") 2>&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }
5762 { (ac_try="$ac_compiler -v >&5"
5764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5765 *) ac_try_echo
=$ac_try;;
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_compiler -v >&5") 2>&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }
5772 { (ac_try
="$ac_compiler -V >&5"
5774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_compiler -V >&5") 2>&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }
5783 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5784 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5785 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 cat >conftest.$ac_ext <<_ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5806 rm -f conftest.$ac_objext
5807 if { (ac_try="$ac_compile"
5809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5810 *) ac_try_echo
=$ac_try;;
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5815 grep -v '^ *+' conftest.er1
>conftest.err
5817 cat conftest.err
>&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5821 { (case "(($ac_try" in
5822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_try") 2>&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; } &&
5830 { ac_try='test -s conftest.$ac_objext'
5831 { (case "(($ac_try" in
5832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5833 *) ac_try_echo
=$ac_try;;
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_try") 2>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.
$ac_ext >&5
5848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5849 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5852 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5853 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5854 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5855 ac_test_CFLAGS
=${CFLAGS+set}
5856 ac_save_CFLAGS
=$CFLAGS
5857 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5858 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5859 if test "${ac_cv_prog_cc_g+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 ac_save_c_werror_flag
=$ac_c_werror_flag
5863 ac_c_werror_flag
=yes
5866 cat >conftest.
$ac_ext <<_ACEOF
5869 cat confdefs.h
>>conftest.
$ac_ext
5870 cat >>conftest.
$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5881 rm -f conftest.
$ac_objext
5882 if { (ac_try
="$ac_compile"
5884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_compile") 2>conftest.er1
5890 grep -v '^ *+' conftest.er1 >conftest.err
5892 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } &&
5895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5896 { (case "(($ac_try" in
5897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5898 *) ac_try_echo
=$ac_try;;
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_try") 2>&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; } &&
5905 { ac_try
='test -s conftest.$ac_objext'
5906 { (case "(($ac_try" in
5907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_try") 2>&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; }; then
5917 echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.$ac_ext >&5
5921 cat >conftest.$ac_ext <<_ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5936 rm -f conftest.$ac_objext
5937 if { (ac_try="$ac_compile"
5939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5940 *) ac_try_echo
=$ac_try;;
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_compile") 2>conftest.er1
5945 grep -v '^ *+' conftest.er1
>conftest.err
5947 cat conftest.err
>&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } &&
5950 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5951 { (case "(($ac_try" in
5952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_try") 2>&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; } &&
5960 { ac_try='test -s conftest.$ac_objext'
5961 { (case "(($ac_try" in
5962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5963 *) ac_try_echo
=$ac_try;;
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_try") 2>&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; }; then
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.
$ac_ext >&5
5975 ac_c_werror_flag
=$ac_save_c_werror_flag
5977 cat >conftest.
$ac_ext <<_ACEOF
5980 cat confdefs.h
>>conftest.
$ac_ext
5981 cat >>conftest.
$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5992 rm -f conftest.
$ac_objext
5993 if { (ac_try
="$ac_compile"
5995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_compile") 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6007 { (case "(($ac_try" in
6008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6009 *) ac_try_echo
=$ac_try;;
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_try") 2>&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try
='test -s conftest.$ac_objext'
6017 { (case "(($ac_try" in
6018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_try") 2>&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; }; then
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 ac_c_werror_flag=$ac_save_c_werror_flag
6043 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6044 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6045 if test "$ac_test_CFLAGS" = set; then
6046 CFLAGS=$ac_save_CFLAGS
6047 elif test $ac_cv_prog_cc_g = yes; then
6048 if test "$GCC" = yes; then
6054 if test "$GCC" = yes; then
6060 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6061 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6062 if test "${ac_cv_prog_cc_c89+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 ac_cv_prog_cc_c89=no
6067 cat >conftest.$ac_ext <<_ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6075 #include <sys/types.h>
6076 #include <sys/stat.h>
6077 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6078 struct buf { int x; };
6079 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6080 static char *e (p, i)
6086 static char *f (char * (*g) (char **, int), char **p, ...)
6091 s = g (p, va_arg (v,int));
6096 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6097 function prototypes and stuff, but not '\xHH' hex character constants.
6098 These don't provoke an error unfortunately, instead are silently treated
6099 as 'x'. The following induces an error, until -std is added to get
6100 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6101 array size at least. It's necessary to write '\x00'==0 to get something
6102 that's true only with -std. */
6103 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6105 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6106 inside strings and character constants. */
6108 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6110 int test (int i, double x);
6111 struct s1 {int (*f) (int a);};
6112 struct s2 {int (*f) (double a);};
6113 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6119 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6124 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6125 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6127 CC="$ac_save_CC $ac_arg"
6128 rm -f conftest.$ac_objext
6129 if { (ac_try="$ac_compile"
6131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6132 *) ac_try_echo
=$ac_try;;
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_compile") 2>conftest.er1
6137 grep -v '^ *+' conftest.er1
>conftest.err
6139 cat conftest.err
>&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } &&
6142 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6143 { (case "(($ac_try" in
6144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148 (eval "$ac_try") 2>&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest.$ac_objext'
6153 { (case "(($ac_try" in
6154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6155 *) ac_try_echo
=$ac_try;;
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_try") 2>&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_prog_cc_c89
=$ac_arg
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.
$ac_ext >&5
6170 rm -f core conftest.err conftest.
$ac_objext
6171 test "x$ac_cv_prog_cc_c89" != "xno" && break
6173 rm -f conftest.
$ac_ext
6178 case "x$ac_cv_prog_cc_c89" in
6180 { echo "$as_me:$LINENO: result: none needed" >&5
6181 echo "${ECHO_T}none needed" >&6; } ;;
6183 { echo "$as_me:$LINENO: result: unsupported" >&5
6184 echo "${ECHO_T}unsupported" >&6; } ;;
6186 CC
="$CC $ac_cv_prog_cc_c89"
6187 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6188 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6193 ac_cpp
='$CPP $CPPFLAGS'
6194 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6195 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6196 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6199 ac_cpp
='$CXXCPP $CPPFLAGS'
6200 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6201 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6202 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6203 if test -z "$CXX"; then
6204 if test -n "$CCC"; then
6207 if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6211 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_prog_CXX+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 if test -n "$CXX"; then
6218 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir
=.
6225 for ac_exec_ext
in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 if test -n "$CXX"; then
6239 { echo "$as_me:$LINENO: result: $CXX" >&5
6240 echo "${ECHO_T}$CXX" >&6; }
6242 { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6247 test -n "$CXX" && break
6250 if test -z "$CXX"; then
6254 # Extract the first word of "$ac_prog", so it can be a program name with args.
6255 set dummy
$ac_prog; ac_word
=$2
6256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6258 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 if test -n "$ac_ct_CXX"; then
6262 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6268 test -z "$as_dir" && as_dir
=.
6269 for ac_exec_ext
in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6282 if test -n "$ac_ct_CXX"; then
6283 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6284 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6286 { echo "$as_me:$LINENO: result: no" >&5
6287 echo "${ECHO_T}no" >&6; }
6291 test -n "$ac_ct_CXX" && break
6294 if test "x$ac_ct_CXX" = x
; then
6297 case $cross_compiling:$ac_tool_warned in
6299 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6300 whose name does not start with the host triplet. If you think this
6301 configuration is useful to you, please write to autoconf@gnu.org." >&5
6302 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6303 whose name does not start with the host triplet. If you think this
6304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6305 ac_tool_warned
=yes ;;
6313 # Provide some information about the compiler.
6314 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6315 ac_compiler
=`set X $ac_compile; echo $2`
6316 { (ac_try
="$ac_compiler --version >&5"
6318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322 (eval "$ac_compiler --version >&5") 2>&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }
6326 { (ac_try="$ac_compiler -v >&5"
6328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6329 *) ac_try_echo
=$ac_try;;
6331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332 (eval "$ac_compiler -v >&5") 2>&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }
6336 { (ac_try
="$ac_compiler -V >&5"
6338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_compiler -V >&5") 2>&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }
6347 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6348 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6349 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 cat >conftest.$ac_ext <<_ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6370 rm -f conftest.$ac_objext
6371 if { (ac_try="$ac_compile"
6373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6374 *) ac_try_echo
=$ac_try;;
6376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377 (eval "$ac_compile") 2>conftest.er1
6379 grep -v '^ *+' conftest.er1
>conftest.err
6381 cat conftest.err
>&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } &&
6384 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6385 { (case "(($ac_try" in
6386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_try") 2>&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; } &&
6394 { ac_try='test -s conftest.$ac_objext'
6395 { (case "(($ac_try" in
6396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6397 *) ac_try_echo
=$ac_try;;
6399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_try") 2>&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.
$ac_ext >&5
6412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6413 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6416 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6417 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6418 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6419 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6420 ac_save_CXXFLAGS
=$CXXFLAGS
6421 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6422 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6423 if test "${ac_cv_prog_cxx_g+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6427 ac_cxx_werror_flag
=yes
6430 cat >conftest.
$ac_ext <<_ACEOF
6433 cat confdefs.h
>>conftest.
$ac_ext
6434 cat >>conftest.
$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6445 rm -f conftest.
$ac_objext
6446 if { (ac_try
="$ac_compile"
6448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compile") 2>conftest.er1
6454 grep -v '^ *+' conftest.er1 >conftest.err
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } &&
6459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6460 { (case "(($ac_try" in
6461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6462 *) ac_try_echo
=$ac_try;;
6464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_try") 2>&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; } &&
6469 { ac_try
='test -s conftest.$ac_objext'
6470 { (case "(($ac_try" in
6471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475 (eval "$ac_try") 2>&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6479 ac_cv_prog_cxx_g=yes
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6485 cat >conftest.$ac_ext <<_ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6500 rm -f conftest.$ac_objext
6501 if { (ac_try="$ac_compile"
6503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6504 *) ac_try_echo
=$ac_try;;
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_compile") 2>conftest.er1
6509 grep -v '^ *+' conftest.er1
>conftest.err
6511 cat conftest.err
>&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6515 { (case "(($ac_try" in
6516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6517 *) ac_try_echo=$ac_try;;
6519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6520 (eval "$ac_try") 2>&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; } &&
6524 { ac_try='test -s conftest.$ac_objext'
6525 { (case "(($ac_try" in
6526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6527 *) ac_try_echo
=$ac_try;;
6529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_try") 2>&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; }; then
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.
$ac_ext >&5
6539 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6541 cat >conftest.
$ac_ext <<_ACEOF
6544 cat confdefs.h
>>conftest.
$ac_ext
6545 cat >>conftest.
$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6556 rm -f conftest.
$ac_objext
6557 if { (ac_try
="$ac_compile"
6559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_compile") 2>conftest.er1
6565 grep -v '^ *+' conftest.er1 >conftest.err
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } &&
6570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6571 { (case "(($ac_try" in
6572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6573 *) ac_try_echo
=$ac_try;;
6575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576 (eval "$ac_try") 2>&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; } &&
6580 { ac_try
='test -s conftest.$ac_objext'
6581 { (case "(($ac_try" in
6582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6583 *) ac_try_echo=$ac_try;;
6585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586 (eval "$ac_try") 2>&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; }; then
6590 ac_cv_prog_cxx_g=yes
6592 echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6607 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6608 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6609 if test "$ac_test_CXXFLAGS" = set; then
6610 CXXFLAGS=$ac_save_CXXFLAGS
6611 elif test $ac_cv_prog_cxx_g = yes; then
6612 if test "$GXX" = yes; then
6618 if test "$GXX" = yes; then
6625 ac_cpp='$CPP $CPPFLAGS'
6626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6631 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6632 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6633 if test "${lt_cv_path_NM+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 if test -n "$NM"; then
6637 # Let the user override the test.
6640 lt_nm_to_check="${ac_tool_prefix}nm"
6641 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6642 lt_nm_to_check="$lt_nm_to_check nm"
6644 for lt_tmp_nm in $lt_nm_to_check; do
6645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6646 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6648 test -z "$ac_dir" && ac_dir=.
6649 tmp_nm="$ac_dir/$lt_tmp_nm"
6650 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6651 # Check to see if the nm accepts a BSD-compat flag.
6652 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6653 # nm: unknown option "B" ignored
6654 # Tru64's nm complains that
/dev
/null is an invalid object
file
6655 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6656 */dev
/null
* |
*'Invalid file or object type'*)
6657 lt_cv_path_NM
="$tmp_nm -B"
6661 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6663 lt_cv_path_NM
="$tmp_nm -p"
6667 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6668 continue # so that we can try to find one that supports BSD flags
6677 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6680 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6681 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6686 { echo "$as_me:$LINENO: checking for GNU make" >&5
6687 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6688 if test "${llvm_cv_gnu_make_command+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 llvm_cv_gnu_make_command
=''
6692 for a
in "$MAKE" make gmake gnumake
; do
6693 if test -z "$a" ; then continue ; fi ;
6694 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6696 llvm_cv_gnu_make_command
=$a ;
6701 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6702 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6703 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6707 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6708 echo "${ECHO_T}\"Not found\"" >&6; };
6712 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6713 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6715 if test "$LN_S" = "ln -s"; then
6716 { echo "$as_me:$LINENO: result: yes" >&5
6717 echo "${ECHO_T}yes" >&6; }
6719 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6720 echo "${ECHO_T}no, using $LN_S" >&6; }
6723 # Extract the first word of "cmp", so it can be a program name with args.
6724 set dummy
cmp; ac_word
=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_path_CMP+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir
=.
6740 for ac_exec_ext
in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6755 if test -n "$CMP"; then
6756 { echo "$as_me:$LINENO: result: $CMP" >&5
6757 echo "${ECHO_T}$CMP" >&6; }
6759 { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6764 # Extract the first word of "cp", so it can be a program name with args.
6765 set dummy
cp; ac_word
=$2
6766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768 if test "${ac_cv_path_CP+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6780 test -z "$as_dir" && as_dir
=.
6781 for ac_exec_ext
in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6796 if test -n "$CP"; then
6797 { echo "$as_me:$LINENO: result: $CP" >&5
6798 echo "${ECHO_T}$CP" >&6; }
6800 { echo "$as_me:$LINENO: result: no" >&5
6801 echo "${ECHO_T}no" >&6; }
6805 # Extract the first word of "date", so it can be a program name with args.
6806 set dummy
date; ac_word
=$2
6807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6809 if test "${ac_cv_path_DATE+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6821 test -z "$as_dir" && as_dir
=.
6822 for ac_exec_ext
in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6836 DATE
=$ac_cv_path_DATE
6837 if test -n "$DATE"; then
6838 { echo "$as_me:$LINENO: result: $DATE" >&5
6839 echo "${ECHO_T}$DATE" >&6; }
6841 { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6846 # Extract the first word of "find", so it can be a program name with args.
6847 set dummy
find; ac_word
=$2
6848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6850 if test "${ac_cv_path_FIND+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6862 test -z "$as_dir" && as_dir
=.
6863 for ac_exec_ext
in '' $ac_executable_extensions; do
6864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6865 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6877 FIND
=$ac_cv_path_FIND
6878 if test -n "$FIND"; then
6879 { echo "$as_me:$LINENO: result: $FIND" >&5
6880 echo "${ECHO_T}$FIND" >&6; }
6882 { echo "$as_me:$LINENO: result: no" >&5
6883 echo "${ECHO_T}no" >&6; }
6887 # Extract the first word of "grep", so it can be a program name with args.
6888 set dummy
grep; ac_word
=$2
6889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891 if test "${ac_cv_path_GREP+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6903 test -z "$as_dir" && as_dir
=.
6904 for ac_exec_ext
in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
6918 GREP
=$ac_cv_path_GREP
6919 if test -n "$GREP"; then
6920 { echo "$as_me:$LINENO: result: $GREP" >&5
6921 echo "${ECHO_T}$GREP" >&6; }
6923 { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6928 # Extract the first word of "mkdir", so it can be a program name with args.
6929 set dummy mkdir
; ac_word
=$2
6930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932 if test "${ac_cv_path_MKDIR+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
6940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6944 test -z "$as_dir" && as_dir
=.
6945 for ac_exec_ext
in '' $ac_executable_extensions; do
6946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6947 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
6948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
6959 MKDIR
=$ac_cv_path_MKDIR
6960 if test -n "$MKDIR"; then
6961 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6962 echo "${ECHO_T}$MKDIR" >&6; }
6964 { echo "$as_me:$LINENO: result: no" >&5
6965 echo "${ECHO_T}no" >&6; }
6969 # Extract the first word of "mv", so it can be a program name with args.
6970 set dummy
mv; ac_word
=$2
6971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6973 if test "${ac_cv_path_MV+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
6981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6985 test -z "$as_dir" && as_dir
=.
6986 for ac_exec_ext
in '' $ac_executable_extensions; do
6987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6988 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
6989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
7001 if test -n "$MV"; then
7002 { echo "$as_me:$LINENO: result: $MV" >&5
7003 echo "${ECHO_T}$MV" >&6; }
7005 { echo "$as_me:$LINENO: result: no" >&5
7006 echo "${ECHO_T}no" >&6; }
7010 if test -n "$ac_tool_prefix"; then
7011 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7012 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015 if test "${ac_cv_prog_RANLIB+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 if test -n "$RANLIB"; then
7019 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7025 test -z "$as_dir" && as_dir
=.
7026 for ac_exec_ext
in '' $ac_executable_extensions; do
7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7028 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 RANLIB
=$ac_cv_prog_RANLIB
7039 if test -n "$RANLIB"; then
7040 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7041 echo "${ECHO_T}$RANLIB" >&6; }
7043 { echo "$as_me:$LINENO: result: no" >&5
7044 echo "${ECHO_T}no" >&6; }
7049 if test -z "$ac_cv_prog_RANLIB"; then
7050 ac_ct_RANLIB
=$RANLIB
7051 # Extract the first word of "ranlib", so it can be a program name with args.
7052 set dummy ranlib
; ac_word
=$2
7053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7055 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 if test -n "$ac_ct_RANLIB"; then
7059 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7065 test -z "$as_dir" && as_dir
=.
7066 for ac_exec_ext
in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7079 if test -n "$ac_ct_RANLIB"; then
7080 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7081 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7083 { echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6; }
7087 if test "x$ac_ct_RANLIB" = x
; then
7090 case $cross_compiling:$ac_tool_warned in
7092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7093 whose name does not start with the host triplet. If you think this
7094 configuration is useful to you, please write to autoconf@gnu.org." >&5
7095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7096 whose name does not start with the host triplet. If you think this
7097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7098 ac_tool_warned
=yes ;;
7100 RANLIB
=$ac_ct_RANLIB
7103 RANLIB
="$ac_cv_prog_RANLIB"
7106 if test -n "$ac_tool_prefix"; then
7107 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7108 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_prog_AR+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 if test -n "$AR"; then
7115 ac_cv_prog_AR
="$AR" # Let the user override the test.
7117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir
=.
7122 for ac_exec_ext
in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 if test -n "$AR"; then
7136 { echo "$as_me:$LINENO: result: $AR" >&5
7137 echo "${ECHO_T}$AR" >&6; }
7139 { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7145 if test -z "$ac_cv_prog_AR"; then
7147 # Extract the first word of "ar", so it can be a program name with args.
7148 set dummy
ar; ac_word
=$2
7149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7151 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 if test -n "$ac_ct_AR"; then
7155 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7161 test -z "$as_dir" && as_dir
=.
7162 for ac_exec_ext
in '' $ac_executable_extensions; do
7163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164 ac_cv_prog_ac_ct_AR
="ar"
7165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7175 if test -n "$ac_ct_AR"; then
7176 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7177 echo "${ECHO_T}$ac_ct_AR" >&6; }
7179 { echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6; }
7183 if test "x$ac_ct_AR" = x
; then
7186 case $cross_compiling:$ac_tool_warned in
7188 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7189 whose name does not start with the host triplet. If you think this
7190 configuration is useful to you, please write to autoconf@gnu.org." >&5
7191 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7192 whose name does not start with the host triplet. If you think this
7193 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7194 ac_tool_warned
=yes ;;
7202 # Extract the first word of "rm", so it can be a program name with args.
7203 set dummy
rm; ac_word
=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_RM+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
7214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir
=.
7219 for ac_exec_ext
in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
7234 if test -n "$RM"; then
7235 { echo "$as_me:$LINENO: result: $RM" >&5
7236 echo "${ECHO_T}$RM" >&6; }
7238 { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7243 # Extract the first word of "sed", so it can be a program name with args.
7244 set dummy
sed; ac_word
=$2
7245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7247 if test "${ac_cv_path_SED+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7259 test -z "$as_dir" && as_dir
=.
7260 for ac_exec_ext
in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7262 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7275 if test -n "$SED"; then
7276 { echo "$as_me:$LINENO: result: $SED" >&5
7277 echo "${ECHO_T}$SED" >&6; }
7279 { echo "$as_me:$LINENO: result: no" >&5
7280 echo "${ECHO_T}no" >&6; }
7284 # Extract the first word of "tar", so it can be a program name with args.
7285 set dummy
tar; ac_word
=$2
7286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7288 if test "${ac_cv_path_TAR+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7300 test -z "$as_dir" && as_dir
=.
7301 for ac_exec_ext
in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7316 if test -n "$TAR"; then
7317 { echo "$as_me:$LINENO: result: $TAR" >&5
7318 echo "${ECHO_T}$TAR" >&6; }
7320 { echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6; }
7325 # Extract the first word of "pwd", so it can be a program name with args.
7326 set dummy
pwd; ac_word
=$2
7327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329 if test "${ac_cv_path_BINPWD+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7341 test -z "$as_dir" && as_dir
=.
7342 for ac_exec_ext
in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7356 BINPWD
=$ac_cv_path_BINPWD
7357 if test -n "$BINPWD"; then
7358 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7359 echo "${ECHO_T}$BINPWD" >&6; }
7361 { echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6; }
7367 # Extract the first word of "Graphviz", so it can be a program name with args.
7368 set dummy Graphviz
; ac_word
=$2
7369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7371 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7383 test -z "$as_dir" && as_dir
=.
7384 for ac_exec_ext
in '' $ac_executable_extensions; do
7385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7386 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7398 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7399 if test -n "$GRAPHVIZ"; then
7400 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7401 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7403 { echo "$as_me:$LINENO: result: no" >&5
7404 echo "${ECHO_T}no" >&6; }
7408 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7410 cat >>confdefs.h
<<\_ACEOF
7411 #define HAVE_GRAPHVIZ 1
7414 if test "$llvm_cv_os_type" = "MingW" ; then
7415 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7418 cat >>confdefs.h
<<_ACEOF
7419 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7423 # Extract the first word of "dot", so it can be a program name with args.
7424 set dummy dot
; ac_word
=$2
7425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7427 if test "${ac_cv_path_DOT+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7435 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7439 test -z "$as_dir" && as_dir
=.
7440 for ac_exec_ext
in '' $ac_executable_extensions; do
7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7442 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7455 if test -n "$DOT"; then
7456 { echo "$as_me:$LINENO: result: $DOT" >&5
7457 echo "${ECHO_T}$DOT" >&6; }
7459 { echo "$as_me:$LINENO: result: no" >&5
7460 echo "${ECHO_T}no" >&6; }
7464 if test "$DOT" != "echo dot" ; then
7466 cat >>confdefs.h
<<\_ACEOF
7470 if test "$llvm_cv_os_type" = "MingW" ; then
7471 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7474 cat >>confdefs.h
<<_ACEOF
7475 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7479 # Extract the first word of "fdp", so it can be a program name with args.
7480 set dummy fdp
; ac_word
=$2
7481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7483 if test "${ac_cv_path_FDP+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 ac_cv_path_FDP
="$FDP" # Let the user override the test with a path.
7491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7495 test -z "$as_dir" && as_dir
=.
7496 for ac_exec_ext
in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_path_FDP
="$as_dir/$ac_word$ac_exec_ext"
7499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP
="echo fdp"
7511 if test -n "$FDP"; then
7512 { echo "$as_me:$LINENO: result: $FDP" >&5
7513 echo "${ECHO_T}$FDP" >&6; }
7515 { echo "$as_me:$LINENO: result: no" >&5
7516 echo "${ECHO_T}no" >&6; }
7520 if test "$FDP" != "echo fdp" ; then
7522 cat >>confdefs.h
<<\_ACEOF
7526 if test "$llvm_cv_os_type" = "MingW" ; then
7527 FDP
=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7530 cat >>confdefs.h
<<_ACEOF
7531 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7535 # Extract the first word of "neato", so it can be a program name with args.
7536 set dummy neato
; ac_word
=$2
7537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539 if test "${ac_cv_path_NEATO+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 ac_cv_path_NEATO
="$NEATO" # Let the user override the test with a path.
7547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir
=.
7552 for ac_exec_ext
in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_path_NEATO
="$as_dir/$ac_word$ac_exec_ext"
7555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO
="echo neato"
7566 NEATO
=$ac_cv_path_NEATO
7567 if test -n "$NEATO"; then
7568 { echo "$as_me:$LINENO: result: $NEATO" >&5
7569 echo "${ECHO_T}$NEATO" >&6; }
7571 { echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6; }
7576 if test "$NEATO" != "echo neato" ; then
7578 cat >>confdefs.h
<<\_ACEOF
7579 #define HAVE_NEATO 1
7582 if test "$llvm_cv_os_type" = "MingW" ; then
7583 NEATO
=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7586 cat >>confdefs.h
<<_ACEOF
7587 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7591 # Extract the first word of "twopi", so it can be a program name with args.
7592 set dummy twopi
; ac_word
=$2
7593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7595 if test "${ac_cv_path_TWOPI+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 ac_cv_path_TWOPI
="$TWOPI" # Let the user override the test with a path.
7603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7607 test -z "$as_dir" && as_dir
=.
7608 for ac_exec_ext
in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_path_TWOPI
="$as_dir/$ac_word$ac_exec_ext"
7611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI
="echo twopi"
7622 TWOPI
=$ac_cv_path_TWOPI
7623 if test -n "$TWOPI"; then
7624 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7625 echo "${ECHO_T}$TWOPI" >&6; }
7627 { echo "$as_me:$LINENO: result: no" >&5
7628 echo "${ECHO_T}no" >&6; }
7632 if test "$TWOPI" != "echo twopi" ; then
7634 cat >>confdefs.h
<<\_ACEOF
7635 #define HAVE_TWOPI 1
7638 if test "$llvm_cv_os_type" = "MingW" ; then
7639 TWOPI
=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7642 cat >>confdefs.h
<<_ACEOF
7643 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7647 # Extract the first word of "circo", so it can be a program name with args.
7648 set dummy circo
; ac_word
=$2
7649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7651 if test "${ac_cv_path_CIRCO+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 ac_cv_path_CIRCO
="$CIRCO" # Let the user override the test with a path.
7659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7663 test -z "$as_dir" && as_dir
=.
7664 for ac_exec_ext
in '' $ac_executable_extensions; do
7665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7666 ac_cv_path_CIRCO
="$as_dir/$ac_word$ac_exec_ext"
7667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7674 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO
="echo circo"
7678 CIRCO
=$ac_cv_path_CIRCO
7679 if test -n "$CIRCO"; then
7680 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7681 echo "${ECHO_T}$CIRCO" >&6; }
7683 { echo "$as_me:$LINENO: result: no" >&5
7684 echo "${ECHO_T}no" >&6; }
7688 if test "$CIRCO" != "echo circo" ; then
7690 cat >>confdefs.h
<<\_ACEOF
7691 #define HAVE_CIRCO 1
7694 if test "$llvm_cv_os_type" = "MingW" ; then
7695 CIRCO
=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7698 cat >>confdefs.h
<<_ACEOF
7699 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7703 for ac_prog
in gv gsview32
7705 # Extract the first word of "$ac_prog", so it can be a program name with args.
7706 set dummy
$ac_prog; ac_word
=$2
7707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7709 if test "${ac_cv_path_GV+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7721 test -z "$as_dir" && as_dir
=.
7722 for ac_exec_ext
in '' $ac_executable_extensions; do
7723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7724 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 if test -n "$GV"; then
7737 { echo "$as_me:$LINENO: result: $GV" >&5
7738 echo "${ECHO_T}$GV" >&6; }
7740 { echo "$as_me:$LINENO: result: no" >&5
7741 echo "${ECHO_T}no" >&6; }
7745 test -n "$GV" && break
7747 test -n "$GV" || GV
="echo gv"
7749 if test "$GV" != "echo gv" ; then
7751 cat >>confdefs.h
<<\_ACEOF
7755 if test "$llvm_cv_os_type" = "MingW" ; then
7756 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7759 cat >>confdefs.h
<<_ACEOF
7760 #define LLVM_PATH_GV "$GV${EXEEXT}"
7764 # Extract the first word of "dotty", so it can be a program name with args.
7765 set dummy dotty
; ac_word
=$2
7766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7768 if test "${ac_cv_path_DOTTY+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7780 test -z "$as_dir" && as_dir
=.
7781 for ac_exec_ext
in '' $ac_executable_extensions; do
7782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7783 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7795 DOTTY
=$ac_cv_path_DOTTY
7796 if test -n "$DOTTY"; then
7797 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7798 echo "${ECHO_T}$DOTTY" >&6; }
7800 { echo "$as_me:$LINENO: result: no" >&5
7801 echo "${ECHO_T}no" >&6; }
7805 if test "$DOTTY" != "echo dotty" ; then
7807 cat >>confdefs.h
<<\_ACEOF
7808 #define HAVE_DOTTY 1
7811 if test "$llvm_cv_os_type" = "MingW" ; then
7812 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7815 cat >>confdefs.h
<<_ACEOF
7816 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7822 # Extract the first word of "perl", so it can be a program name with args.
7823 set dummy perl
; ac_word
=$2
7824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7826 if test "${ac_cv_path_PERL+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7838 test -z "$as_dir" && as_dir
=.
7839 for ac_exec_ext
in '' $ac_executable_extensions; do
7840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7841 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7853 PERL
=$ac_cv_path_PERL
7854 if test -n "$PERL"; then
7855 { echo "$as_me:$LINENO: result: $PERL" >&5
7856 echo "${ECHO_T}$PERL" >&6; }
7858 { echo "$as_me:$LINENO: result: no" >&5
7859 echo "${ECHO_T}no" >&6; }
7863 if test "$PERL" != "none"; then
7864 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7865 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7866 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7867 { echo "$as_me:$LINENO: result: yes" >&5
7868 echo "${ECHO_T}yes" >&6; }
7871 { echo "$as_me:$LINENO: result: not found" >&5
7872 echo "${ECHO_T}not found" >&6; }
7877 if test x
"$PERL" = xnone
; then
7880 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7881 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7882 { (exit 1); exit 1; }; }
7888 # Find a good install program. We prefer a C program (faster),
7889 # so one script is as good as another. But avoid the broken or
7890 # incompatible versions:
7891 # SysV /etc/install, /usr/sbin/install
7892 # SunOS /usr/etc/install
7893 # IRIX /sbin/install
7895 # AmigaOS /C/install, which installs bootblocks on floppy discs
7896 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7897 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7898 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7899 # OS/2's system install, which has a completely different semantic
7900 # ./install, which can be erroneously created by make from ./install.sh.
7901 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7902 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7903 if test -z "$INSTALL"; then
7904 if test "${ac_cv_path_install+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7911 test -z "$as_dir" && as_dir
=.
7912 # Account for people who put trailing slashes in PATH elements.
7914 .
/ | .
// |
/cC
/* | \
7915 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7916 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7919 # OSF1 and SCO ODT 3.0 have their own names for install.
7920 # Don't use installbsd from OSF since it installs stuff as root
7922 for ac_prog
in ginstall scoinst
install; do
7923 for ac_exec_ext
in '' $ac_executable_extensions; do
7924 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7925 if test $ac_prog = install &&
7926 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7927 # AIX install. It has an incompatible calling convention.
7929 elif test $ac_prog = install &&
7930 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7931 # program-specific install script used by HP pwplus--don't use.
7934 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7947 if test "${ac_cv_path_install+set}" = set; then
7948 INSTALL
=$ac_cv_path_install
7950 # As a last resort, use the slow shell script. Don't cache a
7951 # value for INSTALL within a source directory, because that will
7952 # break other packages using the cache if that directory is
7953 # removed, or if the value is a relative name.
7954 INSTALL
=$ac_install_sh
7957 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7958 echo "${ECHO_T}$INSTALL" >&6; }
7960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7961 # It thinks the first close brace ends the variable substitution.
7962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7966 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7969 [\\/$
]* | ?
:[\\/]* ) ;;
7970 *) INSTALL
="\\\$(TOPSRCDIR)/$INSTALL" ;;
7973 # Extract the first word of "bzip2", so it can be a program name with args.
7974 set dummy
bzip2; ac_word
=$2
7975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7977 if test "${ac_cv_path_BZIP2+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7989 test -z "$as_dir" && as_dir
=.
7990 for ac_exec_ext
in '' $ac_executable_extensions; do
7991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7992 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8003 BZIP2
=$ac_cv_path_BZIP2
8004 if test -n "$BZIP2"; then
8005 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8006 echo "${ECHO_T}$BZIP2" >&6; }
8008 { echo "$as_me:$LINENO: result: no" >&5
8009 echo "${ECHO_T}no" >&6; }
8013 # Extract the first word of "cat", so it can be a program name with args.
8014 set dummy
cat; ac_word
=$2
8015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8017 if test "${ac_cv_path_CAT+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 ac_cv_path_CAT
="$CAT" # Let the user override the test with a path.
8025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8029 test -z "$as_dir" && as_dir
=.
8030 for ac_exec_ext
in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8032 ac_cv_path_CAT
="$as_dir/$ac_word$ac_exec_ext"
8033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 if test -n "$CAT"; then
8045 { echo "$as_me:$LINENO: result: $CAT" >&5
8046 echo "${ECHO_T}$CAT" >&6; }
8048 { echo "$as_me:$LINENO: result: no" >&5
8049 echo "${ECHO_T}no" >&6; }
8053 # Extract the first word of "doxygen", so it can be a program name with args.
8054 set dummy doxygen
; ac_word
=$2
8055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8057 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
8065 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8069 test -z "$as_dir" && as_dir
=.
8070 for ac_exec_ext
in '' $ac_executable_extensions; do
8071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8072 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
8073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8083 DOXYGEN
=$ac_cv_path_DOXYGEN
8084 if test -n "$DOXYGEN"; then
8085 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8086 echo "${ECHO_T}$DOXYGEN" >&6; }
8088 { echo "$as_me:$LINENO: result: no" >&5
8089 echo "${ECHO_T}no" >&6; }
8093 # Extract the first word of "groff", so it can be a program name with args.
8094 set dummy
groff; ac_word
=$2
8095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8097 if test "${ac_cv_path_GROFF+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
8105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8109 test -z "$as_dir" && as_dir
=.
8110 for ac_exec_ext
in '' $ac_executable_extensions; do
8111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8112 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
8113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8123 GROFF
=$ac_cv_path_GROFF
8124 if test -n "$GROFF"; then
8125 { echo "$as_me:$LINENO: result: $GROFF" >&5
8126 echo "${ECHO_T}$GROFF" >&6; }
8128 { echo "$as_me:$LINENO: result: no" >&5
8129 echo "${ECHO_T}no" >&6; }
8133 # Extract the first word of "gzip", so it can be a program name with args.
8134 set dummy
gzip; ac_word
=$2
8135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8137 if test "${ac_cv_path_GZIP+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
8145 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8149 test -z "$as_dir" && as_dir
=.
8150 for ac_exec_ext
in '' $ac_executable_extensions; do
8151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8152 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
8153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8163 GZIP
=$ac_cv_path_GZIP
8164 if test -n "$GZIP"; then
8165 { echo "$as_me:$LINENO: result: $GZIP" >&5
8166 echo "${ECHO_T}$GZIP" >&6; }
8168 { echo "$as_me:$LINENO: result: no" >&5
8169 echo "${ECHO_T}no" >&6; }
8173 # Extract the first word of "pod2html", so it can be a program name with args.
8174 set dummy pod2html
; ac_word
=$2
8175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8177 if test "${ac_cv_path_POD2HTML+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
8185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8189 test -z "$as_dir" && as_dir
=.
8190 for ac_exec_ext
in '' $ac_executable_extensions; do
8191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8192 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
8193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8203 POD2HTML
=$ac_cv_path_POD2HTML
8204 if test -n "$POD2HTML"; then
8205 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8206 echo "${ECHO_T}$POD2HTML" >&6; }
8208 { echo "$as_me:$LINENO: result: no" >&5
8209 echo "${ECHO_T}no" >&6; }
8213 # Extract the first word of "pod2man", so it can be a program name with args.
8214 set dummy pod2man
; ac_word
=$2
8215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8217 if test "${ac_cv_path_POD2MAN+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
8225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8229 test -z "$as_dir" && as_dir
=.
8230 for ac_exec_ext
in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
8233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 POD2MAN
=$ac_cv_path_POD2MAN
8244 if test -n "$POD2MAN"; then
8245 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8246 echo "${ECHO_T}$POD2MAN" >&6; }
8248 { echo "$as_me:$LINENO: result: no" >&5
8249 echo "${ECHO_T}no" >&6; }
8253 # Extract the first word of "pdfroff", so it can be a program name with args.
8254 set dummy pdfroff
; ac_word
=$2
8255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8257 if test "${ac_cv_path_PDFROFF+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 ac_cv_path_PDFROFF
="$PDFROFF" # Let the user override the test with a path.
8265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8269 test -z "$as_dir" && as_dir
=.
8270 for ac_exec_ext
in '' $ac_executable_extensions; do
8271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8272 ac_cv_path_PDFROFF
="$as_dir/$ac_word$ac_exec_ext"
8273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 PDFROFF
=$ac_cv_path_PDFROFF
8284 if test -n "$PDFROFF"; then
8285 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8286 echo "${ECHO_T}$PDFROFF" >&6; }
8288 { echo "$as_me:$LINENO: result: no" >&5
8289 echo "${ECHO_T}no" >&6; }
8293 # Extract the first word of "runtest", so it can be a program name with args.
8294 set dummy runtest
; ac_word
=$2
8295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8297 if test "${ac_cv_path_RUNTEST+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8302 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
8305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8309 test -z "$as_dir" && as_dir
=.
8310 for ac_exec_ext
in '' $ac_executable_extensions; do
8311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8312 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
8313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 RUNTEST
=$ac_cv_path_RUNTEST
8324 if test -n "$RUNTEST"; then
8325 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8326 echo "${ECHO_T}$RUNTEST" >&6; }
8328 { echo "$as_me:$LINENO: result: no" >&5
8329 echo "${ECHO_T}no" >&6; }
8335 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8336 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8338 # Check whether --with-tclinclude was given.
8339 if test "${with_tclinclude+set}" = set; then
8340 withval
=$with_tclinclude; with_tclinclude
=${withval}
8345 if test "${ac_cv_path_tclsh+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 if test x
"${with_tclinclude}" != x
; then
8350 if test -f ${with_tclinclude}/tclsh
; then
8351 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
8352 elif test -f ${with_tclinclude}/src
/tclsh
; then
8353 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
8355 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8356 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8357 { (exit 1); exit 1; }; }
8363 if test x
"${ac_cv_path_tclsh}" = x
; then
8364 { echo "$as_me:$LINENO: result: none" >&5
8365 echo "${ECHO_T}none" >&6; }
8366 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
8368 # Extract the first word of "$ac_prog", so it can be a program name with args.
8369 set dummy
$ac_prog; ac_word
=$2
8370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8372 if test "${ac_cv_path_TCLSH+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
8380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8384 test -z "$as_dir" && as_dir
=.
8385 for ac_exec_ext
in '' $ac_executable_extensions; do
8386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8387 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
8388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8398 TCLSH
=$ac_cv_path_TCLSH
8399 if test -n "$TCLSH"; then
8400 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8401 echo "${ECHO_T}$TCLSH" >&6; }
8403 { echo "$as_me:$LINENO: result: no" >&5
8404 echo "${ECHO_T}no" >&6; }
8408 test -n "$TCLSH" && break
8411 if test x
"${TCLSH}" = x
; then
8412 ac_cv_path_tclsh
='';
8414 ac_cv_path_tclsh
="${TCLSH}";
8417 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8418 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8419 TCLSH="${ac_cv_path_tclsh}"
8423 # Extract the first word of "zip", so it can be a program name with args.
8424 set dummy zip; ac_word=$2
8425 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8426 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8427 if test "${ac_cv_path_ZIP+set}" = set; then
8428 echo $ECHO_N "(cached
) $ECHO_C" >&6
8432 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 test -z "$as_dir" && as_dir=.
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8442 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8443 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8454 if test -n "$ZIP"; then
8455 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8456 echo "${ECHO_T}$ZIP" >&6; }
8458 { echo "$as_me:$LINENO: result
: no
" >&5
8459 echo "${ECHO_T}no
" >&6; }
8463 for ac_prog in ocamlc
8465 # Extract the first word of "$ac_prog", so it can be a program name with args.
8466 set dummy $ac_prog; ac_word=$2
8467 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8468 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8469 if test "${ac_cv_path_OCAMLC+set}" = set; then
8470 echo $ECHO_N "(cached
) $ECHO_C" >&6
8474 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481 test -z "$as_dir" && as_dir=.
8482 for ac_exec_ext in '' $ac_executable_extensions; do
8483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8484 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8485 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8495 OCAMLC=$ac_cv_path_OCAMLC
8496 if test -n "$OCAMLC"; then
8497 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8498 echo "${ECHO_T}$OCAMLC" >&6; }
8500 { echo "$as_me:$LINENO: result
: no
" >&5
8501 echo "${ECHO_T}no
" >&6; }
8505 test -n "$OCAMLC" && break
8508 for ac_prog in ocamlopt
8510 # Extract the first word of "$ac_prog", so it can be a program name with args.
8511 set dummy $ac_prog; ac_word=$2
8512 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8513 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8514 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8515 echo $ECHO_N "(cached
) $ECHO_C" >&6
8519 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8529 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8530 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8540 OCAMLOPT=$ac_cv_path_OCAMLOPT
8541 if test -n "$OCAMLOPT"; then
8542 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8543 echo "${ECHO_T}$OCAMLOPT" >&6; }
8545 { echo "$as_me:$LINENO: result
: no
" >&5
8546 echo "${ECHO_T}no
" >&6; }
8550 test -n "$OCAMLOPT" && break
8553 for ac_prog in ocamldep
8555 # Extract the first word of "$ac_prog", so it can be a program name with args.
8556 set dummy $ac_prog; ac_word=$2
8557 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8558 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8559 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8560 echo $ECHO_N "(cached
) $ECHO_C" >&6
8564 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8574 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8575 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8585 OCAMLDEP=$ac_cv_path_OCAMLDEP
8586 if test -n "$OCAMLDEP"; then
8587 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8588 echo "${ECHO_T}$OCAMLDEP" >&6; }
8590 { echo "$as_me:$LINENO: result
: no
" >&5
8591 echo "${ECHO_T}no
" >&6; }
8595 test -n "$OCAMLDEP" && break
8598 for ac_prog in ocamldoc
8600 # Extract the first word of "$ac_prog", so it can be a program name with args.
8601 set dummy $ac_prog; ac_word=$2
8602 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8603 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8604 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8605 echo $ECHO_N "(cached
) $ECHO_C" >&6
8609 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 test -z "$as_dir" && as_dir=.
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8619 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8620 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8630 OCAMLDOC=$ac_cv_path_OCAMLDOC
8631 if test -n "$OCAMLDOC"; then
8632 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8633 echo "${ECHO_T}$OCAMLDOC" >&6; }
8635 { echo "$as_me:$LINENO: result
: no
" >&5
8636 echo "${ECHO_T}no
" >&6; }
8640 test -n "$OCAMLDOC" && break
8643 for ac_prog in gas as
8645 # Extract the first word of "$ac_prog", so it can be a program name with args.
8646 set dummy $ac_prog; ac_word=$2
8647 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8648 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8649 if test "${ac_cv_path_GAS+set}" = set; then
8650 echo $ECHO_N "(cached
) $ECHO_C" >&6
8654 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661 test -z "$as_dir" && as_dir=.
8662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8664 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8665 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8676 if test -n "$GAS"; then
8677 { echo "$as_me:$LINENO: result
: $GAS" >&5
8678 echo "${ECHO_T}$GAS" >&6; }
8680 { echo "$as_me:$LINENO: result
: no
" >&5
8681 echo "${ECHO_T}no
" >&6; }
8685 test -n "$GAS" && break
8689 { echo "$as_me:$LINENO: checking
for linker version
" >&5
8690 echo $ECHO_N "checking
for linker version...
$ECHO_C" >&6; }
8691 if test "${llvm_cv_link_version+set}" = set; then
8692 echo $ECHO_N "(cached
) $ECHO_C" >&6
8695 version_string="$
(ld
-v 2>&1 |
head -1)"
8698 if (echo "$version_string" | grep -q "ld64
"); then
8699 llvm_cv_link_version=$(echo "$version_string" | sed -e "s
#.*ld64-\([^ ]*\)#\1#")
8701 llvm_cv_link_version
=$
(echo "$version_string" |
sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8705 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8706 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8708 cat >>confdefs.h
<<_ACEOF
8709 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8714 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8715 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8716 if test "${llvm_cv_link_use_r+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 ac_cpp
='$CPP $CPPFLAGS'
8721 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8722 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8723 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8726 CFLAGS
="$CFLAGS -Wl,-R."
8727 cat >conftest.
$ac_ext <<_ACEOF
8730 cat confdefs.h
>>conftest.
$ac_ext
8731 cat >>conftest.
$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8742 rm -f conftest.
$ac_objext conftest
$ac_exeext
8743 if { (ac_try
="$ac_link"
8745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8746 *) ac_try_echo=$ac_try;;
8748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8749 (eval "$ac_link") 2>conftest.er1
8751 grep -v '^ *+' conftest.er1 >conftest.err
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
8756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8757 { (case "(($ac_try" in
8758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8759 *) ac_try_echo
=$ac_try;;
8761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8762 (eval "$ac_try") 2>&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try
='test -s conftest$ac_exeext'
8767 { (case "(($ac_try" in
8768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8769 *) ac_try_echo=$ac_try;;
8771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772 (eval "$ac_try") 2>&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; }; then
8776 llvm_cv_link_use_r=yes
8778 echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8781 llvm_cv_link_use_r=no
8784 rm -f core conftest.err conftest.$ac_objext \
8785 conftest$ac_exeext conftest.$ac_ext
8788 ac_cpp='$CPP $CPPFLAGS'
8789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8795 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8796 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8797 if test "$llvm_cv_link_use_r" = yes ; then
8799 cat >>confdefs.h <<\_ACEOF
8800 #define HAVE_LINK_R 1
8806 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8807 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8808 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 ac_cpp='$CPP $CPPFLAGS'
8813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8818 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8819 cat >conftest.$ac_ext <<_ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h. */
8834 rm -f conftest.$ac_objext conftest$ac_exeext
8835 if { (ac_try="$ac_link"
8837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8838 *) ac_try_echo
=$ac_try;;
8840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841 (eval "$ac_link") 2>conftest.er1
8843 grep -v '^ *+' conftest.er1
>conftest.err
8845 cat conftest.err
>&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } &&
8848 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8849 { (case "(($ac_try" in
8850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_try") 2>&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; } &&
8858 { ac_try='test -s conftest$ac_exeext'
8859 { (case "(($ac_try" in
8860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8861 *) ac_try_echo
=$ac_try;;
8863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8864 (eval "$ac_try") 2>&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; }; then
8868 llvm_cv_link_use_export_dynamic
=yes
8870 echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.
$ac_ext >&5
8873 llvm_cv_link_use_export_dynamic
=no
8876 rm -f core conftest.err conftest.
$ac_objext \
8877 conftest
$ac_exeext conftest.
$ac_ext
8880 ac_cpp
='$CPP $CPPFLAGS'
8881 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8882 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8883 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8887 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8888 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8889 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8891 cat >>confdefs.h
<<\_ACEOF
8892 #define HAVE_LINK_EXPORT_DYNAMIC 1
8898 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8899 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8900 if test "${llvm_cv_link_use_version_script+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 ac_cpp
='$CPP $CPPFLAGS'
8905 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8906 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8907 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8911 # The following code is from the autoconf manual,
8912 # "11.13: Limitations of Usual Tools".
8913 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8914 # Use mktemp if possible; otherwise fall back on mkdir,
8915 # with $RANDOM to make collisions less likely.
8919 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8921 test -n "$tmp" && test -d "$tmp"
8923 tmp
=$TMPDIR/foo$$
-$RANDOM
8924 (umask 077 && mkdir
"$tmp")
8927 echo "{" > "$tmp/export.map"
8928 echo " global: main;" >> "$tmp/export.map"
8929 echo " local: *;" >> "$tmp/export.map"
8930 echo "};" >> "$tmp/export.map"
8932 CFLAGS
="$CFLAGS -Wl,--version-script=$tmp/export.map"
8933 cat >conftest.
$ac_ext <<_ACEOF
8936 cat confdefs.h
>>conftest.
$ac_ext
8937 cat >>conftest.
$ac_ext <<_ACEOF
8938 /* end confdefs.h. */
8948 rm -f conftest.
$ac_objext conftest
$ac_exeext
8949 if { (ac_try
="$ac_link"
8951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8952 *) ac_try_echo=$ac_try;;
8954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955 (eval "$ac_link") 2>conftest.er1
8957 grep -v '^ *+' conftest.er1 >conftest.err
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } &&
8962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8963 { (case "(($ac_try" in
8964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8965 *) ac_try_echo
=$ac_try;;
8967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968 (eval "$ac_try") 2>&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; } &&
8972 { ac_try
='test -s conftest$ac_exeext'
8973 { (case "(($ac_try" in
8974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_try") 2>&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 llvm_cv_link_use_version_script=yes
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8987 llvm_cv_link_use_version_script=no
8990 rm -f core conftest.err conftest.$ac_objext \
8991 conftest$ac_exeext conftest.$ac_ext
8992 rm "$tmp/export.map"
8996 ac_cpp='$CPP $CPPFLAGS'
8997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9003 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9004 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9005 if test "$llvm_cv_link_use_version_script" = yes ; then
9006 HAVE_LINK_VERSION_SCRIPT=1
9013 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9014 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9015 if test "${ac_cv_c_const+set}" = set; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
9018 cat >conftest.$ac_ext <<_ACEOF
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9028 /* FIXME: Include the comments suggested by Paul. */
9030 /* Ultrix mips cc rejects this. */
9031 typedef int charset[2];
9033 /* SunOS 4.1.1 cc rejects this. */
9034 char const *const *ccp;
9036 /* NEC SVR4.0.2 mips cc rejects this. */
9037 struct point {int x, y;};
9038 static struct point const zero = {0,0};
9039 /* AIX XL C 1.02.0.0 rejects this.
9040 It does not let you subtract one const X* pointer from another in
9041 an arm of an if-expression whose if-part is not a constant
9043 const char *g = "string";
9044 ccp = &g + (g ? g-g : 0);
9045 /* HPUX 7.0 cc rejects these. */
9048 ccp = (char const *const *) p;
9049 { /* SCO 3.2v4 cc rejects this. */
9051 char const *s = 0 ? (char *) 0 : (char const *) 0;
9056 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9058 const int *foo = &x[0];
9061 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9062 typedef const int *iptr;
9066 { /* AIX XL C 1.02.0.0 rejects this saying
9067 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9068 struct s { int j; const int *ap[3]; };
9069 struct s *b; b->j = 5;
9071 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9075 return !x[0] && !zero.x;
9082 rm -f conftest.$ac_objext
9083 if { (ac_try="$ac_compile"
9085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9086 *) ac_try_echo
=$ac_try;;
9088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_compile") 2>conftest.er1
9091 grep -v '^ *+' conftest.er1
>conftest.err
9093 cat conftest.err
>&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9097 { (case "(($ac_try" in
9098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9099 *) ac_try_echo=$ac_try;;
9101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9102 (eval "$ac_try") 2>&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; } &&
9106 { ac_try='test -s conftest.$ac_objext'
9107 { (case "(($ac_try" in
9108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9109 *) ac_try_echo
=$ac_try;;
9111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9112 (eval "$ac_try") 2>&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; }; then
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.
$ac_ext >&5
9124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9126 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9127 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9128 if test $ac_cv_c_const = no
; then
9130 cat >>confdefs.h
<<\_ACEOF
9142 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9143 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9144 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9145 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9146 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 cat >conftest.
$ac_ext <<_ACEOF
9152 cat confdefs.h
>>conftest.
$ac_ext
9153 cat >>conftest.
$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155 #include <sys/types.h>
9167 rm -f conftest.
$ac_objext
9168 if { (ac_try
="$ac_compile"
9170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174 (eval "$ac_compile") 2>conftest.er1
9176 grep -v '^ *+' conftest.er1 >conftest.err
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9182 { (case "(($ac_try" in
9183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9184 *) ac_try_echo
=$ac_try;;
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187 (eval "$ac_try") 2>&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; } &&
9191 { ac_try
='test -s conftest.$ac_objext'
9192 { (case "(($ac_try" in
9193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9194 *) ac_try_echo=$ac_try;;
9196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197 (eval "$ac_try") 2>&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; }; then
9201 eval "$as_ac_Header=yes"
9203 echo "$as_me: failed program was:" >&5
9204 sed 's/^/| /' conftest.$ac_ext >&5
9206 eval "$as_ac_Header=no"
9209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9211 ac_res=`eval echo '${'$as_ac_Header'}'`
9212 { echo "$as_me:$LINENO: result: $ac_res" >&5
9213 echo "${ECHO_T}$ac_res" >&6; }
9214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9215 cat >>confdefs.h <<_ACEOF
9216 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
9219 ac_header_dirent=$ac_hdr; break
9223 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9224 if test $ac_header_dirent = dirent.h; then
9225 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9226 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9227 if test "${ac_cv_search_opendir+set}" = set; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 ac_func_search_save_LIBS=$LIBS
9231 cat >conftest.$ac_ext <<_ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9238 /* Override any GCC internal prototype to avoid an error.
9239 Use char because int might match the return type of a GCC
9240 builtin and then its argument prototype would still apply. */
9253 for ac_lib in '' dir; do
9254 if test -z "$ac_lib"; then
9255 ac_res="none required"
9258 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9260 rm -f conftest.$ac_objext conftest$ac_exeext
9261 if { (ac_try="$ac_link"
9263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9264 *) ac_try_echo
=$ac_try;;
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_link") 2>conftest.er1
9269 grep -v '^ *+' conftest.er1
>conftest.err
9271 cat conftest.err
>&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } &&
9274 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9275 { (case "(($ac_try" in
9276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9277 *) ac_try_echo=$ac_try;;
9279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9280 (eval "$ac_try") 2>&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; } &&
9284 { ac_try='test -s conftest$ac_exeext'
9285 { (case "(($ac_try" in
9286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9287 *) ac_try_echo
=$ac_try;;
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290 (eval "$ac_try") 2>&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
9294 ac_cv_search_opendir
=$ac_res
9296 echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.
$ac_ext >&5
9302 rm -f core conftest.err conftest.
$ac_objext \
9304 if test "${ac_cv_search_opendir+set}" = set; then
9308 if test "${ac_cv_search_opendir+set}" = set; then
9311 ac_cv_search_opendir
=no
9314 LIBS
=$ac_func_search_save_LIBS
9316 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9317 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9318 ac_res
=$ac_cv_search_opendir
9319 if test "$ac_res" != no
; then
9320 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9325 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9326 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9327 if test "${ac_cv_search_opendir+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9330 ac_func_search_save_LIBS
=$LIBS
9331 cat >conftest.
$ac_ext <<_ACEOF
9334 cat confdefs.h
>>conftest.
$ac_ext
9335 cat >>conftest.
$ac_ext <<_ACEOF
9336 /* end confdefs.h. */
9338 /* Override any GCC internal prototype to avoid an error.
9339 Use char because int might match the return type of a GCC
9340 builtin and then its argument prototype would still apply. */
9353 for ac_lib
in '' x
; do
9354 if test -z "$ac_lib"; then
9355 ac_res
="none required"
9358 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9360 rm -f conftest.
$ac_objext conftest
$ac_exeext
9361 if { (ac_try
="$ac_link"
9363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_link") 2>conftest.er1
9369 grep -v '^ *+' conftest.er1 >conftest.err
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9375 { (case "(($ac_try" in
9376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9377 *) ac_try_echo
=$ac_try;;
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_try") 2>&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; } &&
9384 { ac_try
='test -s conftest$ac_exeext'
9385 { (case "(($ac_try" in
9386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390 (eval "$ac_try") 2>&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 ac_cv_search_opendir=$ac_res
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9402 rm -f core conftest.err conftest.$ac_objext \
9404 if test "${ac_cv_search_opendir+set}" = set; then
9408 if test "${ac_cv_search_opendir+set}" = set; then
9411 ac_cv_search_opendir=no
9414 LIBS=$ac_func_search_save_LIBS
9416 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9417 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9418 ac_res=$ac_cv_search_opendir
9419 if test "$ac_res" != no; then
9420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9427 for ac_header in dlfcn.h
9429 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 ac_res=`eval echo '${'$as_ac_Header'}'`
9437 { echo "$as_me:$LINENO: result: $ac_res" >&5
9438 echo "${ECHO_T}$ac_res" >&6; }
9440 # Is the header compilable?
9441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9443 cat >conftest.$ac_ext <<_ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 $ac_includes_default
9450 #include <$ac_header>
9452 rm -f conftest.$ac_objext
9453 if { (ac_try="$ac_compile"
9455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9456 *) ac_try_echo
=$ac_try;;
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459 (eval "$ac_compile") 2>conftest.er1
9461 grep -v '^ *+' conftest.er1
>conftest.err
9463 cat conftest.err
>&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } &&
9466 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9467 { (case "(($ac_try" in
9468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9469 *) ac_try_echo=$ac_try;;
9471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472 (eval "$ac_try") 2>&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; } &&
9476 { ac_try='test -s conftest.$ac_objext'
9477 { (case "(($ac_try" in
9478 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9479 *) ac_try_echo
=$ac_try;;
9481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482 (eval "$ac_try") 2>&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 ac_header_compiler
=yes
9488 echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.
$ac_ext >&5
9491 ac_header_compiler
=no
9494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9496 echo "${ECHO_T}$ac_header_compiler" >&6; }
9498 # Is the header present?
9499 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9501 cat >conftest.
$ac_ext <<_ACEOF
9504 cat confdefs.h
>>conftest.
$ac_ext
9505 cat >>conftest.
$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 #include <$ac_header>
9509 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9517 grep -v '^ *+' conftest.er1 >conftest.err
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } >/dev/null; then
9522 if test -s conftest.err; then
9523 ac_cpp_err=$ac_c_preproc_warn_flag
9524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9531 if test -z "$ac_cpp_err"; then
9532 ac_header_preproc=yes
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9537 ac_header_preproc=no
9540 rm -f conftest.err conftest.$ac_ext
9541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9542 echo "${ECHO_T}$ac_header_preproc" >&6; }
9544 # So? What about this header?
9545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9551 ac_header_preproc=yes
9554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9567 ## ----------------------------------- ##
9568 ## Report this to llvmbugs@cs.uiuc.edu ##
9569 ## ----------------------------------- ##
9571 ) | sed "s/^/$as_me: WARNING: /" >&2
9574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 eval "$as_ac_Header=\$ac_header_preproc"
9581 ac_res=`eval echo '${'$as_ac_Header'}'`
9582 { echo "$as_me:$LINENO: result: $ac_res" >&5
9583 echo "${ECHO_T}$ac_res" >&6; }
9586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9587 cat >>confdefs.h <<_ACEOF
9588 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9595 # Check whether --enable-ltdl-install was given.
9596 if test "${enable_ltdl_install+set}" = set; then
9597 enableval=$enable_ltdl_install;
9603 if test x"${enable_ltdl_install-no}" != xno; then
9605 INSTALL_LTDL_FALSE='#'
9607 INSTALL_LTDL_TRUE='#'
9613 if test x"${enable_ltdl_convenience-no}" != xno; then
9614 CONVENIENCE_LTDL_TRUE=
9615 CONVENIENCE_LTDL_FALSE='#'
9617 CONVENIENCE_LTDL_TRUE='#'
9618 CONVENIENCE_LTDL_FALSE=
9622 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9623 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9625 libname_spec='lib$name'
9633 shlibpath_overrides_runpath=unknown
9635 dynamic_linker="$host_os ld.so"
9636 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9637 if test "$GCC" = yes; then
9638 sys_lib_search_path_spec=`$CC -print-search-dirs |
grep "^libraries:" |
$SED -e "s/^libraries://" -e "s,=/,/,g"`
9639 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9640 # if the path contains ";" then we assume it to be the separator
9641 # otherwise default to the standard path separator (i.e. ":") - it is
9642 # assumed that no part of a normal pathname contains ";" but that should
9643 # okay in the real world where ";" in dirpaths is itself problematic.
9644 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" |
$SED -e 's/;/ /g'`
9646 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" |
$SED -e "s/$PATH_SEPARATOR/ /g"`
9649 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9651 need_lib_prefix=unknown
9652 hardcode_into_libs=no
9654 # when you set need_version to no, make sure it does not cause -set_version
9655 # flags to be left without arguments
9656 need_version=unknown
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9662 shlibpath_var=LIBPATH
9664 # AIX 3 has no versioning support, so we append a major version to the name.
9665 soname_spec='${libname}${release}${shared_ext}$major'
9672 hardcode_into_libs=yes
9673 if test "$host_cpu" = ia64; then
9674 # AIX 5 supports IA64
9675 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9676 shlibpath_var=LD_LIBRARY_PATH
9678 # With GCC up to 2.95.x, collect2 would create an import file
9679 # for dependence libraries. The import file would start with
9680 # the line `#! .'. This would cause the generated library to
9681 # depend on `.', always an invalid library. This was fixed in
9682 # development snapshots of GCC prior to 3.0.
9684 aix4 | aix4.
[01] | aix4.
[01].
*)
9685 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9687 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
9694 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9695 # soname into executable. Probably we can add versioning support to
9696 # collect2, so additional links can be useful in future.
9697 if test "$aix_use_runtimelinking" = yes; then
9698 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9699 # instead of lib<name>.a to let people know that these are not
9700 # typical AIX shared libraries.
9701 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703 # We preserve .a as extension for shared libraries through AIX4.2
9704 # and later when we are not doing run time linking.
9705 library_names_spec
='${libname}${release}.a $libname.a'
9706 soname_spec
='${libname}${release}${shared_ext}$major'
9708 shlibpath_var
=LIBPATH
9713 library_names_spec
='$libname.ixlibrary $libname.a'
9714 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9715 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'
9719 library_names_spec
='${libname}${shared_ext}'
9720 dynamic_linker
="$host_os ld.so"
9721 shlibpath_var
=LIBRARY_PATH
9727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728 soname_spec
='${libname}${release}${shared_ext}$major'
9729 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9730 shlibpath_var
=LD_LIBRARY_PATH
9731 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9732 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9733 # the default ld.so.conf also contains /usr/contrib/lib and
9734 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9735 # libtool to hard-code these into programs
9738 cygwin
* | mingw
* | pw32
*)
9739 version_type
=windows
9744 case $GCC,$host_os in
9745 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
9746 library_names_spec
='$libname.dll.a'
9747 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9748 postinstall_cmds
='base_file=`basename \${file}`~
9749 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9750 dldir=$destdir/`dirname \$dlpath`~
9751 test -d \$dldir || mkdir -p \$dldir~
9752 $install_prog $dir/$dlname \$dldir/$dlname~
9753 chmod a+x \$dldir/$dlname'
9754 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9755 dlpath=$dir/\$dldll~
9757 shlibpath_overrides_runpath
=yes
9761 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9762 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9763 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9766 # MinGW DLLs use traditional 'lib' prefix
9767 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9768 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9769 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
9770 # It is most probably a Windows format PATH printed by
9771 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9772 # path with ; separators, and with drive letters. We can handle the
9773 # drive letters (cygwin fileutils understands them), so leave them,
9774 # especially as we might pass files found there to a mingw objdump,
9775 # which wouldn't understand a cygwinified path. Ahh.
9776 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9778 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9782 # pw32 DLLs use 'pw' prefix rather than 'lib'
9783 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9789 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9792 dynamic_linker
='Win32 ld.exe'
9793 # FIXME: first we should search . and the directory the executable is in
9797 darwin
* | rhapsody
*)
9798 dynamic_linker
="$host_os dyld"
9802 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9803 soname_spec
='${libname}${release}${major}$shared_ext'
9804 shlibpath_overrides_runpath
=yes
9805 shlibpath_var
=DYLD_LIBRARY_PATH
9806 shrext_cmds
='.dylib'
9807 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9808 if test "$GCC" = yes; then
9809 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"`
9811 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
9813 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9820 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9821 soname_spec
='${libname}${release}${shared_ext}$major'
9822 shlibpath_var
=LD_LIBRARY_PATH
9833 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9834 soname_spec
='${libname}${release}${shared_ext}$major'
9835 shlibpath_var
=LD_LIBRARY_PATH
9836 shlibpath_overrides_runpath
=no
9837 hardcode_into_libs
=yes
9838 dynamic_linker
='GNU ld.so'
9841 freebsd
* | dragonfly
*)
9842 # DragonFly does not have aout. When/if they implement a new
9843 # versioning mechanism, adjust this.
9844 if test -x /usr
/bin
/objformat
; then
9845 objformat
=`/usr/bin/objformat`
9848 freebsd
[123]*) objformat
=aout
;;
9852 version_type
=freebsd-
$objformat
9853 case $version_type in
9855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9860 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9864 shlibpath_var
=LD_LIBRARY_PATH
9867 shlibpath_overrides_runpath
=yes
9869 freebsd3.
[01]* | freebsdelf3.
[01]*)
9870 shlibpath_overrides_runpath
=yes
9871 hardcode_into_libs
=yes
9873 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9874 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9875 shlibpath_overrides_runpath
=no
9876 hardcode_into_libs
=yes
9878 freebsd
*) # from 4.6 on
9879 shlibpath_overrides_runpath
=yes
9880 hardcode_into_libs
=yes
9889 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9890 soname_spec
='${libname}${release}${shared_ext}$major'
9891 shlibpath_var
=LD_LIBRARY_PATH
9892 hardcode_into_libs
=yes
9895 hpux9
* | hpux10
* | hpux11
*)
9896 # Give a soname corresponding to the major version so that dld.sl refuses to
9897 # link against other versions.
9904 hardcode_into_libs
=yes
9905 dynamic_linker
="$host_os dld.so"
9906 shlibpath_var
=LD_LIBRARY_PATH
9907 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9908 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909 soname_spec
='${libname}${release}${shared_ext}$major'
9910 if test "X$HPUX_IA64_MODE" = X32
; then
9911 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9913 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9915 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9919 hardcode_into_libs
=yes
9920 dynamic_linker
="$host_os dld.sl"
9921 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
9922 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9923 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924 soname_spec
='${libname}${release}${shared_ext}$major'
9925 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9926 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9930 dynamic_linker
="$host_os dld.sl"
9931 shlibpath_var
=SHLIB_PATH
9932 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
9933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934 soname_spec
='${libname}${release}${shared_ext}$major'
9937 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9938 postinstall_cmds
='chmod 555 $lib'
9945 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9946 soname_spec
='${libname}${release}${shared_ext}$major'
9947 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
9948 shlibpath_var
=LD_LIBRARY_PATH
9949 shlibpath_overrides_runpath
=no
9950 hardcode_into_libs
=yes
9953 irix5
* | irix6
* | nonstopux
*)
9955 nonstopux
*) version_type
=nonstopux
;;
9957 if test "$lt_cv_prog_gnu_ld" = yes; then
9965 soname_spec
='${libname}${release}${shared_ext}$major'
9966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9968 irix5
* | nonstopux
*)
9972 case $LD in # libtool.m4 will add one of these switches to LD
9973 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9974 libsuff
= shlibsuff
= libmagic
=32-bit;;
9975 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9976 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9977 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9978 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9979 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9983 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9984 shlibpath_overrides_runpath
=no
9985 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9986 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9987 hardcode_into_libs
=yes
9990 # No shared lib support for Linux oldld, aout, or coff.
9991 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9995 # This must be Linux ELF.
10000 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001 soname_spec
='${libname}${release}${shared_ext}$major'
10002 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10003 shlibpath_var
=LD_LIBRARY_PATH
10004 shlibpath_overrides_runpath
=no
10005 # This implies no fast_install, which is unacceptable.
10006 # Some rework will be needed to allow for fast_install
10007 # before this can be enabled.
10008 hardcode_into_libs
=yes
10010 # Append ld.so.conf contents to the search path
10011 if test -f /etc
/ld.so.conf
; then
10012 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' ' '`
10013 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10016 # We used to test for /lib/ld.so.1 and disable shared libraries on
10017 # powerpc, because MkLinux only supported shared libraries with the
10018 # GNU dynamic linker. Since this was broken with cross compilers,
10019 # most powerpc-linux boxes support dynamic linking these days and
10020 # people can always --disable-shared, the test was removed, and we
10021 # assume the GNU/Linux dynamic linker is in use.
10022 dynamic_linker
='GNU/Linux ld.so'
10029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10030 soname_spec
='${libname}${release}${shared_ext}$major'
10031 shlibpath_var
=LD_LIBRARY_PATH
10032 shlibpath_overrides_runpath
=no
10033 hardcode_into_libs
=yes
10034 dynamic_linker
='GNU ld.so'
10041 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10042 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10043 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10044 dynamic_linker
='NetBSD (a.out) ld.so'
10046 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10047 soname_spec
='${libname}${release}${shared_ext}$major'
10048 dynamic_linker
='NetBSD ld.elf_so'
10050 shlibpath_var
=LD_LIBRARY_PATH
10051 shlibpath_overrides_runpath
=yes
10052 hardcode_into_libs
=yes
10057 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058 shlibpath_var
=LD_LIBRARY_PATH
10059 shlibpath_overrides_runpath
=yes
10066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067 soname_spec
='${libname}${release}${shared_ext}$major'
10068 shlibpath_var
=LD_LIBRARY_PATH
10069 shlibpath_overrides_runpath
=yes
10074 sys_lib_dlsearch_path_spec
="/usr/lib"
10076 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10078 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10079 *) need_version
=no
;;
10081 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10082 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10083 shlibpath_var
=LD_LIBRARY_PATH
10084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10086 openbsd2.
[89] | openbsd2.
[89].
*)
10087 shlibpath_overrides_runpath
=no
10090 shlibpath_overrides_runpath
=yes
10094 shlibpath_overrides_runpath
=yes
10099 libname_spec
='$name'
10102 library_names_spec
='$libname${shared_ext} $libname.a'
10103 dynamic_linker
='OS/2 ld.exe'
10104 shlibpath_var
=LIBPATH
10107 osf3
* | osf4
* | osf5
*)
10111 soname_spec
='${libname}${release}${shared_ext}$major'
10112 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10113 shlibpath_var
=LD_LIBRARY_PATH
10114 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10115 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10122 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 soname_spec
='${libname}${release}${shared_ext}$major'
10124 shlibpath_var
=LD_LIBRARY_PATH
10125 shlibpath_overrides_runpath
=yes
10126 hardcode_into_libs
=yes
10127 # ldd complains unless libraries are executable
10128 postinstall_cmds
='chmod +x $lib'
10133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10134 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10135 shlibpath_var
=LD_LIBRARY_PATH
10136 shlibpath_overrides_runpath
=yes
10137 if test "$with_gnu_ld" = yes; then
10145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec
='${libname}${release}${shared_ext}$major'
10147 shlibpath_var
=LD_LIBRARY_PATH
10148 case $host_vendor in
10150 shlibpath_overrides_runpath
=no
10152 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10153 runpath_var
=LD_RUN_PATH
10161 shlibpath_overrides_runpath
=no
10162 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10168 if test -d /usr
/nec
;then
10170 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10171 soname_spec
='$libname${shared_ext}.$major'
10172 shlibpath_var
=LD_LIBRARY_PATH
10176 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10177 version_type
=freebsd-elf
10180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10181 soname_spec
='${libname}${release}${shared_ext}$major'
10182 shlibpath_var
=LD_LIBRARY_PATH
10183 hardcode_into_libs
=yes
10184 if test "$with_gnu_ld" = yes; then
10185 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10186 shlibpath_overrides_runpath
=no
10188 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10189 shlibpath_overrides_runpath
=yes
10192 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10196 sys_lib_dlsearch_path_spec
='/usr/lib'
10201 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10202 soname_spec
='${libname}${release}${shared_ext}$major'
10203 shlibpath_var
=LD_LIBRARY_PATH
10210 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10211 echo "${ECHO_T}$dynamic_linker" >&6; }
10212 test "$dynamic_linker" = no
&& can_build_shared
=no
10214 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10215 if test "$GCC" = yes; then
10216 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10220 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10221 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10222 if test "${libltdl_cv_shlibext+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10227 eval libltdl_cv_shlibext
=$shrext_cmds
10230 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10231 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10232 if test -n "$libltdl_cv_shlibext"; then
10234 cat >>confdefs.h
<<_ACEOF
10235 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10241 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10242 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10243 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 libltdl_cv_shlibpath_var
="$shlibpath_var"
10248 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10249 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10250 if test -n "$libltdl_cv_shlibpath_var"; then
10252 cat >>confdefs.h
<<_ACEOF
10253 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10259 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10260 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10261 if test "${libltdl_cv_sys_search_path+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10264 libltdl_cv_sys_search_path
="$sys_lib_dlsearch_path_spec"
10266 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10267 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10268 if test -n "$libltdl_cv_sys_search_path"; then
10270 for dir
in $libltdl_cv_sys_search_path; do
10271 if test -z "$sys_search_path"; then
10272 sys_search_path
="$dir"
10274 sys_search_path
="$sys_search_path$PATH_SEPARATOR$dir"
10278 cat >>confdefs.h
<<_ACEOF
10279 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10284 { echo "$as_me:$LINENO: checking for objdir" >&5
10285 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10286 if test "${libltdl_cv_objdir+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10289 libltdl_cv_objdir
="$objdir"
10290 if test -n "$objdir"; then
10293 rm -f .libs
2>/dev
/null
10294 mkdir .libs
2>/dev
/null
10295 if test -d .libs
; then
10296 libltdl_cv_objdir
=.libs
10298 # MS-DOS does not allow filenames that begin with a dot.
10299 libltdl_cv_objdir
=_libs
10301 rmdir .libs
2>/dev
/null
10305 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10306 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10308 cat >>confdefs.h
<<_ACEOF
10309 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10317 # Check for command to grab the raw symbol name followed by C symbol from nm.
10318 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10319 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10320 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 # These are sane defaults that work on at least a few old systems.
10325 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10327 # Character class describing NM global symbol codes.
10328 symcode
='[BCDEGRST]'
10330 # Regexp to match symbols that can be accessed directly from C.
10331 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
10333 # Transform an extracted symbol line into a proper C declaration
10334 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10336 # Transform an extracted symbol line into symbol name and symbol address
10337 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'"
10339 # Define system-specific variables.
10344 cygwin
* | mingw
* | pw32
*)
10345 symcode
='[ABCDGISTW]'
10347 hpux
*) # Its linker distinguishes data from code symbols
10348 if test "$host_cpu" = ia64
; then
10349 symcode
='[ABCDEGRST]'
10351 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10352 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'"
10355 if test "$host_cpu" = ia64
; then
10356 symcode
='[ABCDGIRSTW]'
10357 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10358 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'"
10361 irix
* | nonstopux
*)
10362 symcode
='[BCDEGRST]'
10365 symcode
='[BCDEGQRST]'
10376 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10384 # Handle CRLF in mingw tool chain
10388 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10392 # If we're using GNU nm, then use its standard symbol codes.
10393 case `$NM -V 2>&1` in
10394 *GNU
* |
*'with BFD'*)
10395 symcode
='[ABCDGIRSTW]' ;;
10398 # Try without a prefix undercore, then with it.
10399 for ac_symprfx
in "" "_"; do
10401 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10402 symxfrm
="\\1 $ac_symprfx\\2 \\2"
10404 # Write the raw and C identifiers.
10405 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10407 # Check to see that the pipe works correctly.
10411 cat > conftest.
$ac_ext <<EOF
10416 void nm_test_func(){}
10420 int main(){nm_test_var='a';nm_test_func();return(0);}
10423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10424 (eval $ac_compile) 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; then
10428 # Now try to grab the symbols.
10430 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10431 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && test -s "$nlist"; then
10435 # Try sorting and uniquifying the output.
10436 if sort "$nlist" |
uniq > "$nlist"T
; then
10437 mv -f "$nlist"T
"$nlist"
10442 # Make sure that we snagged all the symbols we need.
10443 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
10444 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
10445 cat <<EOF > conftest.$ac_ext
10451 # Now generate the symbol file.
10452 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10454 cat <<EOF >> conftest.$ac_ext
10455 #if defined (__STDC__) && __STDC__
10456 # define lt_ptr_t void *
10458 # define lt_ptr_t char *
10462 /* The mapping between symbol names and symbols. */
10467 lt_preloaded_symbols[] =
10470 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
10471 cat <<\EOF
>> conftest.
$ac_ext
10479 # Now try linking the two files.
10480 mv conftest.
$ac_objext conftstm.
$ac_objext
10481 lt_save_LIBS
="$LIBS"
10482 lt_save_CFLAGS
="$CFLAGS"
10483 LIBS
="conftstm.$ac_objext"
10484 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10486 (eval $ac_link) 2>&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
10492 LIBS
="$lt_save_LIBS"
10493 CFLAGS
="$lt_save_CFLAGS"
10495 echo "cannot find nm_test_func in $nlist" >&5
10498 echo "cannot find nm_test_var in $nlist" >&5
10501 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10504 echo "$progname: failed program was:" >&5
10505 cat conftest.
$ac_ext >&5
10507 rm -f conftest
* conftst
*
10509 # Do not use the global_symbol_pipe unless it works.
10510 if test "$pipe_works" = yes; then
10513 lt_cv_sys_global_symbol_pipe
=
10519 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10520 lt_cv_sys_global_symbol_to_cdecl
=
10522 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10523 { echo "$as_me:$LINENO: result: failed" >&5
10524 echo "${ECHO_T}failed" >&6; }
10526 { echo "$as_me:$LINENO: result: ok" >&5
10527 echo "${ECHO_T}ok" >&6; }
10531 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10532 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10533 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10537 libltdl_cv_preloaded_symbols
=yes
10539 libltdl_cv_preloaded_symbols
=no
10543 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10544 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10545 if test x
"$libltdl_cv_preloaded_symbols" = xyes
; then
10547 cat >>confdefs.h
<<\_ACEOF
10548 #define HAVE_PRELOADED_SYMBOLS 1
10556 ac_cpp
='$CPP $CPPFLAGS'
10557 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10558 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10559 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10562 { echo "$as_me:$LINENO: checking for shl_load" >&5
10563 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10564 if test "${ac_cv_func_shl_load+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 cat >conftest.
$ac_ext <<_ACEOF
10570 cat confdefs.h
>>conftest.
$ac_ext
10571 cat >>conftest.
$ac_ext <<_ACEOF
10572 /* end confdefs.h. */
10573 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10575 #define shl_load innocuous_shl_load
10577 /* System header to define __stub macros and hopefully few prototypes,
10578 which can conflict with char shl_load (); below.
10579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10580 <limits.h> exists even on freestanding compilers. */
10583 # include <limits.h>
10585 # include <assert.h>
10590 /* Override any GCC internal prototype to avoid an error.
10591 Use char because int might match the return type of a GCC
10592 builtin and then its argument prototype would still apply. */
10597 /* The GNU C library defines this for functions which it implements
10598 to always fail with ENOSYS. Some functions are actually named
10599 something starting with __ and the normal name is an alias. */
10600 #if defined __stub_shl_load || defined __stub___shl_load
10607 return shl_load ();
10612 rm -f conftest.
$ac_objext conftest
$ac_exeext
10613 if { (ac_try
="$ac_link"
10614 case "(($ac_try" in
10615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10616 *) ac_try_echo=$ac_try;;
10618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10619 (eval "$ac_link") 2>conftest.er1
10621 grep -v '^ *+' conftest.er1 >conftest.err
10623 cat conftest.err >&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
10626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10627 { (case "(($ac_try" in
10628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10629 *) ac_try_echo
=$ac_try;;
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_try") 2>&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; } &&
10636 { ac_try
='test -s conftest$ac_exeext'
10637 { (case "(($ac_try" in
10638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_try") 2>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; }; then
10646 ac_cv_func_shl_load=yes
10648 echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10651 ac_cv_func_shl_load=no
10654 rm -f core conftest.err conftest.$ac_objext \
10655 conftest$ac_exeext conftest.$ac_ext
10657 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10658 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10659 if test $ac_cv_func_shl_load = yes; then
10661 cat >>confdefs.h <<\_ACEOF
10662 #define HAVE_SHL_LOAD 1
10666 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10667 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10668 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 ac_check_lib_save_LIBS=$LIBS
10673 cat >conftest.$ac_ext <<_ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10680 /* Override any GCC internal prototype to avoid an error.
10681 Use char because int might match the return type of a GCC
10682 builtin and then its argument prototype would still apply. */
10690 return shl_load ();
10695 rm -f conftest.$ac_objext conftest$ac_exeext
10696 if { (ac_try="$ac_link"
10697 case "(($ac_try" in
10698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10699 *) ac_try_echo
=$ac_try;;
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_link") 2>conftest.er1
10704 grep -v '^ *+' conftest.er1
>conftest.err
10706 cat conftest.err
>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10710 { (case "(($ac_try" in
10711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_try") 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest$ac_exeext'
10720 { (case "(($ac_try" in
10721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10722 *) ac_try_echo
=$ac_try;;
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_try") 2>&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 ac_cv_lib_dld_shl_load
=yes
10731 echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.
$ac_ext >&5
10734 ac_cv_lib_dld_shl_load
=no
10737 rm -f core conftest.err conftest.
$ac_objext \
10738 conftest
$ac_exeext conftest.
$ac_ext
10739 LIBS
=$ac_check_lib_save_LIBS
10741 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10742 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10743 if test $ac_cv_lib_dld_shl_load = yes; then
10745 cat >>confdefs.h
<<\_ACEOF
10746 #define HAVE_SHL_LOAD 1
10749 LIBADD_DL
="$LIBADD_DL -ldld"
10751 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10752 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10753 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10756 ac_check_lib_save_LIBS
=$LIBS
10758 cat >conftest.
$ac_ext <<_ACEOF
10761 cat confdefs.h
>>conftest.
$ac_ext
10762 cat >>conftest.
$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10765 /* Override any GCC internal prototype to avoid an error.
10766 Use char because int might match the return type of a GCC
10767 builtin and then its argument prototype would still apply. */
10780 rm -f conftest.
$ac_objext conftest
$ac_exeext
10781 if { (ac_try
="$ac_link"
10782 case "(($ac_try" in
10783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10784 *) ac_try_echo=$ac_try;;
10786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787 (eval "$ac_link") 2>conftest.er1
10789 grep -v '^ *+' conftest.er1 >conftest.err
10791 cat conftest.err >&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } &&
10794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10795 { (case "(($ac_try" in
10796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10797 *) ac_try_echo
=$ac_try;;
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_try") 2>&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; } &&
10804 { ac_try
='test -s conftest$ac_exeext'
10805 { (case "(($ac_try" in
10806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_try") 2>&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then
10814 ac_cv_lib_dl_dlopen=yes
10816 echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10819 ac_cv_lib_dl_dlopen=no
10822 rm -f core conftest.err conftest.$ac_objext \
10823 conftest$ac_exeext conftest.$ac_ext
10824 LIBS=$ac_check_lib_save_LIBS
10826 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10828 if test $ac_cv_lib_dl_dlopen = yes; then
10830 cat >>confdefs.h <<\_ACEOF
10831 #define HAVE_LIBDL 1
10834 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10836 cat >conftest.$ac_ext <<_ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10843 # include <dlfcn.h>
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (ac_try="$ac_link"
10856 case "(($ac_try" in
10857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10858 *) ac_try_echo
=$ac_try;;
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_link") 2>conftest.er1
10863 grep -v '^ *+' conftest.er1
>conftest.err
10865 cat conftest.err
>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869 { (case "(($ac_try" in
10870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_try") 2>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest$ac_exeext'
10879 { (case "(($ac_try" in
10880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10881 *) ac_try_echo
=$ac_try;;
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_try") 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
10889 cat >>confdefs.h
<<\_ACEOF
10890 #define HAVE_LIBDL 1
10892 libltdl_cv_func_dlopen
="yes"
10894 echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.
$ac_ext >&5
10897 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10898 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10899 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10902 ac_check_lib_save_LIBS
=$LIBS
10903 LIBS
="-lsvld $LIBS"
10904 cat >conftest.
$ac_ext <<_ACEOF
10907 cat confdefs.h
>>conftest.
$ac_ext
10908 cat >>conftest.
$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10911 /* Override any GCC internal prototype to avoid an error.
10912 Use char because int might match the return type of a GCC
10913 builtin and then its argument prototype would still apply. */
10926 rm -f conftest.
$ac_objext conftest
$ac_exeext
10927 if { (ac_try
="$ac_link"
10928 case "(($ac_try" in
10929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_link") 2>conftest.er1
10935 grep -v '^ *+' conftest.er1 >conftest.err
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } &&
10940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10941 { (case "(($ac_try" in
10942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10943 *) ac_try_echo
=$ac_try;;
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_try") 2>&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; } &&
10950 { ac_try
='test -s conftest$ac_exeext'
10951 { (case "(($ac_try" in
10952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_try") 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; }; then
10960 ac_cv_lib_svld_dlopen=yes
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 ac_cv_lib_svld_dlopen=no
10968 rm -f core conftest.err conftest.$ac_objext \
10969 conftest$ac_exeext conftest.$ac_ext
10970 LIBS=$ac_check_lib_save_LIBS
10972 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10973 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10974 if test $ac_cv_lib_svld_dlopen = yes; then
10976 cat >>confdefs.h <<\_ACEOF
10977 #define HAVE_LIBDL 1
10980 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10982 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10983 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10984 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 ac_check_lib_save_LIBS=$LIBS
10989 cat >conftest.$ac_ext <<_ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h. */
10996 /* Override any GCC internal prototype to avoid an error.
10997 Use char because int might match the return type of a GCC
10998 builtin and then its argument prototype would still apply. */
11006 return dld_link ();
11011 rm -f conftest.$ac_objext conftest$ac_exeext
11012 if { (ac_try="$ac_link"
11013 case "(($ac_try" in
11014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11015 *) ac_try_echo
=$ac_try;;
11017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11018 (eval "$ac_link") 2>conftest.er1
11020 grep -v '^ *+' conftest.er1
>conftest.err
11022 cat conftest.err
>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11026 { (case "(($ac_try" in
11027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_try") 2>&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; } &&
11035 { ac_try='test -s conftest$ac_exeext'
11036 { (case "(($ac_try" in
11037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11038 *) ac_try_echo
=$ac_try;;
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_try") 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; }; then
11045 ac_cv_lib_dld_dld_link
=yes
11047 echo "$as_me: failed program was:" >&5
11048 sed 's/^/| /' conftest.
$ac_ext >&5
11050 ac_cv_lib_dld_dld_link
=no
11053 rm -f core conftest.err conftest.
$ac_objext \
11054 conftest
$ac_exeext conftest.
$ac_ext
11055 LIBS
=$ac_check_lib_save_LIBS
11057 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11058 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11059 if test $ac_cv_lib_dld_dld_link = yes; then
11061 cat >>confdefs.h
<<\_ACEOF
11065 LIBADD_DL
="$LIBADD_DL -ldld"
11067 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11068 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11069 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 cat >conftest.
$ac_ext <<_ACEOF
11075 cat confdefs.h
>>conftest.
$ac_ext
11076 cat >>conftest.
$ac_ext <<_ACEOF
11077 /* end confdefs.h. */
11078 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11080 #define _dyld_func_lookup innocuous__dyld_func_lookup
11082 /* System header to define __stub macros and hopefully few prototypes,
11083 which can conflict with char _dyld_func_lookup (); below.
11084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11085 <limits.h> exists even on freestanding compilers. */
11088 # include <limits.h>
11090 # include <assert.h>
11093 #undef _dyld_func_lookup
11095 /* Override any GCC internal prototype to avoid an error.
11096 Use char because int might match the return type of a GCC
11097 builtin and then its argument prototype would still apply. */
11101 char _dyld_func_lookup ();
11102 /* The GNU C library defines this for functions which it implements
11103 to always fail with ENOSYS. Some functions are actually named
11104 something starting with __ and the normal name is an alias. */
11105 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11112 return _dyld_func_lookup ();
11117 rm -f conftest.
$ac_objext conftest
$ac_exeext
11118 if { (ac_try
="$ac_link"
11119 case "(($ac_try" in
11120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_link") 2>conftest.er1
11126 grep -v '^ *+' conftest.er1 >conftest.err
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11132 { (case "(($ac_try" in
11133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11134 *) ac_try_echo
=$ac_try;;
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_try") 2>&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; } &&
11141 { ac_try
='test -s conftest$ac_exeext'
11142 { (case "(($ac_try" in
11143 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_try") 2>&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 ac_cv_func__dyld_func_lookup=yes
11153 echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11156 ac_cv_func__dyld_func_lookup=no
11159 rm -f core conftest.err conftest.$ac_objext \
11160 conftest$ac_exeext conftest.$ac_ext
11162 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11163 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11164 if test $ac_cv_func__dyld_func_lookup = yes; then
11166 cat >>confdefs.h <<\_ACEOF
11167 #define HAVE_DYLD 1
11181 rm -f core conftest.err conftest.$ac_objext \
11182 conftest$ac_exeext conftest.$ac_ext
11193 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11195 lt_save_LIBS="$LIBS"
11196 LIBS="$LIBS $LIBADD_DL"
11198 for ac_func in dlerror
11200 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11201 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11203 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 cat >conftest.$ac_ext <<_ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11214 #define $ac_func innocuous_$ac_func
11216 /* System header to define __stub macros and hopefully few prototypes,
11217 which can conflict with char $ac_func (); below.
11218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11219 <limits.h> exists even on freestanding compilers. */
11222 # include <limits.h>
11224 # include <assert.h>
11229 /* Override any GCC internal prototype to avoid an error.
11230 Use char because int might match the return type of a GCC
11231 builtin and then its argument prototype would still apply. */
11236 /* The GNU C library defines this for functions which it implements
11237 to always fail with ENOSYS. Some functions are actually named
11238 something starting with __ and the normal name is an alias. */
11239 #if defined __stub_$ac_func || defined __stub___$ac_func
11246 return $ac_func ();
11251 rm -f conftest.$ac_objext conftest$ac_exeext
11252 if { (ac_try="$ac_link"
11253 case "(($ac_try" in
11254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11255 *) ac_try_echo
=$ac_try;;
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_link") 2>conftest.er1
11260 grep -v '^ *+' conftest.er1
>conftest.err
11262 cat conftest.err
>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11266 { (case "(($ac_try" in
11267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_try") 2>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; } &&
11275 { ac_try='test -s conftest$ac_exeext'
11276 { (case "(($ac_try" in
11277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11278 *) ac_try_echo
=$ac_try;;
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_try") 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 eval "$as_ac_var=yes"
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.
$ac_ext >&5
11290 eval "$as_ac_var=no"
11293 rm -f core conftest.err conftest.
$ac_objext \
11294 conftest
$ac_exeext conftest.
$ac_ext
11296 ac_res
=`eval echo '${'$as_ac_var'}'`
11297 { echo "$as_me:$LINENO: result: $ac_res" >&5
11298 echo "${ECHO_T}$ac_res" >&6; }
11299 if test `eval echo '${'$as_ac_var'}'` = yes; then
11300 cat >>confdefs.h
<<_ACEOF
11301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11307 LIBS
="$lt_save_LIBS"
11310 ac_cpp
='$CPP $CPPFLAGS'
11311 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11312 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11313 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11317 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11318 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11319 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 ac_cv_sys_symbol_underscore
=no
11323 cat > conftest.
$ac_ext <<EOF
11324 void nm_test_func(){}
11325 int main(){nm_test_func;return 0;}
11327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11328 (eval $ac_compile) 2>&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; then
11332 # Now try to grab the symbols.
11333 ac_nlist
=conftest.nm
11334 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11335 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } && test -s "$ac_nlist"; then
11339 # See whether the symbols have a leading underscore.
11340 if grep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
11341 ac_cv_sys_symbol_underscore
=yes
11343 if grep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
11346 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11350 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11353 echo "configure: failed program was:" >&5
11359 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11360 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11363 if test x
"$ac_cv_sys_symbol_underscore" = xyes
; then
11364 if test x
"$libltdl_cv_func_dlopen" = xyes ||
11365 test x
"$libltdl_cv_lib_dl_dlopen" = xyes
; then
11366 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11367 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11368 if test "${libltdl_cv_need_uscore+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 libltdl_cv_need_uscore
=unknown
11373 LIBS
="$LIBS $LIBADD_DL"
11374 if test "$cross_compiling" = yes; then :
11375 libltdl_cv_need_uscore
=cross
11377 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11378 lt_status
=$lt_dlunknown
11379 cat > conftest.
$ac_ext <<EOF
11380 #line 11381 "configure"
11381 #include "confdefs.h"
11390 # define LT_DLGLOBAL RTLD_GLOBAL
11393 # define LT_DLGLOBAL DL_GLOBAL
11395 # define LT_DLGLOBAL 0
11399 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11400 find out it does not work in some platform. */
11401 #ifndef LT_DLLAZY_OR_NOW
11403 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11406 # define LT_DLLAZY_OR_NOW DL_LAZY
11409 # define LT_DLLAZY_OR_NOW RTLD_NOW
11412 # define LT_DLLAZY_OR_NOW DL_NOW
11414 # define LT_DLLAZY_OR_NOW 0
11422 extern "C" void exit (int);
11425 void fnord() { int i=42;}
11428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11429 int status = $lt_dlunknown;
11433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11434 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11435 /* dlclose (self); */
11443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11444 (eval $ac_link) 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11448 (.
/conftest
; exit; ) >&5 2>/dev
/null
11450 case x
$lt_status in
11451 x
$lt_dlno_uscore) libltdl_cv_need_uscore
=no
;;
11452 x
$lt_dlneed_uscore) libltdl_cv_need_uscore
=yes ;;
11453 x
$lt_dlunknown|x
*) ;;
11456 # compilation failed
11465 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11466 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11470 if test x
"$libltdl_cv_need_uscore" = xyes
; then
11472 cat >>confdefs.h
<<\_ACEOF
11473 #define NEED_USCORE 1
11479 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11480 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11481 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 # PORTME does your system automatically load deplibs for dlopen?
11485 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11486 # For now, we just catch OSes we know something about -- in the
11487 # future, we'll try test this programmatically.
11488 libltdl_cv_sys_dlopen_deplibs
=unknown
11490 aix3
*|aix4.1.
*|aix4.2.
*)
11491 # Unknown whether this is true for these versions of AIX, but
11492 # we want this `case' here to explicitly catch those versions.
11493 libltdl_cv_sys_dlopen_deplibs
=unknown
11496 libltdl_cv_sys_dlopen_deplibs
=yes
11499 # Assuming the user has installed a libdl from somewhere, this is true
11500 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11501 libltdl_cv_sys_dlopen_deplibs
=yes
11503 gnu
* | linux
* | kfreebsd
*-gnu | knetbsd
*-gnu)
11504 # GNU and its variants, using gnu ld.so (Glibc)
11505 libltdl_cv_sys_dlopen_deplibs
=yes
11508 libltdl_cv_sys_dlopen_deplibs
=yes
11511 libltdl_cv_sys_dlopen_deplibs
=yes
11513 irix
[12345]*|irix6.
[01]*)
11514 # Catch all versions of IRIX before 6.2, and indicate that we don't
11515 # know how it worked for any of those versions.
11516 libltdl_cv_sys_dlopen_deplibs
=unknown
11519 # The case above catches anything before 6.2, and it's known that
11520 # at 6.2 and later dlopen does load deplibs.
11521 libltdl_cv_sys_dlopen_deplibs
=yes
11524 libltdl_cv_sys_dlopen_deplibs
=yes
11527 libltdl_cv_sys_dlopen_deplibs
=yes
11530 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11531 # it did *not* use an RPATH in a shared library to find objects the
11532 # library depends on, so we explictly say `no'.
11533 libltdl_cv_sys_dlopen_deplibs
=no
11535 osf5.0|osf5.0a|osf5.1
)
11536 # dlopen *does* load deplibs and with the right loader patch applied
11537 # it even uses RPATH in a shared library to search for shared objects
11538 # that the library depends on, but there's no easy way to know if that
11539 # patch is installed. Since this is the case, all we can really
11540 # say is unknown -- it depends on the patch being installed. If
11541 # it is, this changes to `yes'. Without it, it would be `no'.
11542 libltdl_cv_sys_dlopen_deplibs
=unknown
11545 # the two cases above should catch all versions of osf <= 5.1. Read
11546 # the comments above for what we know about them.
11547 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11548 # is used to find them so we can finally say `yes'.
11549 libltdl_cv_sys_dlopen_deplibs
=yes
11552 libltdl_cv_sys_dlopen_deplibs
=yes
11554 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11555 libltdl_cv_sys_dlopen_deplibs
=yes
11560 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11561 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11562 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11564 cat >>confdefs.h
<<\_ACEOF
11565 #define LTDL_DLOPEN_DEPLIBS 1
11571 for ac_header
in argz.h
11573 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11574 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11577 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 ac_res
=`eval echo '${'$as_ac_Header'}'`
11581 { echo "$as_me:$LINENO: result: $ac_res" >&5
11582 echo "${ECHO_T}$ac_res" >&6; }
11584 # Is the header compilable?
11585 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11587 cat >conftest.
$ac_ext <<_ACEOF
11590 cat confdefs.h
>>conftest.
$ac_ext
11591 cat >>conftest.
$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11593 $ac_includes_default
11594 #include <$ac_header>
11596 rm -f conftest.
$ac_objext
11597 if { (ac_try
="$ac_compile"
11598 case "(($ac_try" in
11599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11600 *) ac_try_echo=$ac_try;;
11602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11603 (eval "$ac_compile") 2>conftest.er1
11605 grep -v '^ *+' conftest.er1 >conftest.err
11607 cat conftest.err >&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } &&
11610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11611 { (case "(($ac_try" in
11612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11613 *) ac_try_echo
=$ac_try;;
11615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11616 (eval "$ac_try") 2>&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; } &&
11620 { ac_try
='test -s conftest.$ac_objext'
11621 { (case "(($ac_try" in
11622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626 (eval "$ac_try") 2>&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; }; then
11630 ac_header_compiler=yes
11632 echo "$as_me: failed program was:" >&5
11633 sed 's/^/| /' conftest.$ac_ext >&5
11635 ac_header_compiler=no
11638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11640 echo "${ECHO_T}$ac_header_compiler" >&6; }
11642 # Is the header present?
11643 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11645 cat >conftest.$ac_ext <<_ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651 #include <$ac_header>
11653 if { (ac_try="$ac_cpp conftest.$ac_ext"
11654 case "(($ac_try" in
11655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11656 *) ac_try_echo
=$ac_try;;
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11661 grep -v '^ *+' conftest.er1
>conftest.err
11663 cat conftest.err
>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } >/dev
/null
; then
11666 if test -s conftest.err
; then
11667 ac_cpp_err
=$ac_c_preproc_warn_flag
11668 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11675 if test -z "$ac_cpp_err"; then
11676 ac_header_preproc
=yes
11678 echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.
$ac_ext >&5
11681 ac_header_preproc
=no
11684 rm -f conftest.err conftest.
$ac_ext
11685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11686 echo "${ECHO_T}$ac_header_preproc" >&6; }
11688 # So? What about this header?
11689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11695 ac_header_preproc
=yes
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11705 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11711 ## ----------------------------------- ##
11712 ## Report this to llvmbugs@cs.uiuc.edu ##
11713 ## ----------------------------------- ##
11715 ) |
sed "s/^/$as_me: WARNING: /" >&2
11718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11720 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 eval "$as_ac_Header=\$ac_header_preproc"
11725 ac_res
=`eval echo '${'$as_ac_Header'}'`
11726 { echo "$as_me:$LINENO: result: $ac_res" >&5
11727 echo "${ECHO_T}$ac_res" >&6; }
11730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11731 cat >>confdefs.h
<<_ACEOF
11732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11740 { echo "$as_me:$LINENO: checking for error_t" >&5
11741 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11742 if test "${ac_cv_type_error_t+set}" = set; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 cat >conftest.
$ac_ext <<_ACEOF
11748 cat confdefs.h
>>conftest.
$ac_ext
11749 cat >>conftest.
$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11755 typedef error_t ac__type_new_;
11759 if ((ac__type_new_ *) 0)
11761 if (sizeof (ac__type_new_))
11767 rm -f conftest.
$ac_objext
11768 if { (ac_try
="$ac_compile"
11769 case "(($ac_try" in
11770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774 (eval "$ac_compile") 2>conftest.er1
11776 grep -v '^ *+' conftest.er1 >conftest.err
11778 cat conftest.err >&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } &&
11781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11782 { (case "(($ac_try" in
11783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11784 *) ac_try_echo
=$ac_try;;
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_try") 2>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; } &&
11791 { ac_try
='test -s conftest.$ac_objext'
11792 { (case "(($ac_try" in
11793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_try") 2>&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 ac_cv_type_error_t=yes
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11806 ac_cv_type_error_t=no
11809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11811 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11812 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11813 if test $ac_cv_type_error_t = yes; then
11815 cat >>confdefs.h <<_ACEOF
11816 #define HAVE_ERROR_T 1
11822 cat >>confdefs.h <<\_ACEOF
11823 #define error_t int
11834 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11836 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11842 cat >conftest.$ac_ext <<_ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11850 #define $ac_func innocuous_$ac_func
11852 /* System header to define __stub macros and hopefully few prototypes,
11853 which can conflict with char $ac_func (); below.
11854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11855 <limits.h> exists even on freestanding compilers. */
11858 # include <limits.h>
11860 # include <assert.h>
11865 /* Override any GCC internal prototype to avoid an error.
11866 Use char because int might match the return type of a GCC
11867 builtin and then its argument prototype would still apply. */
11872 /* The GNU C library defines this for functions which it implements
11873 to always fail with ENOSYS. Some functions are actually named
11874 something starting with __ and the normal name is an alias. */
11875 #if defined __stub_$ac_func || defined __stub___$ac_func
11882 return $ac_func ();
11887 rm -f conftest.$ac_objext conftest$ac_exeext
11888 if { (ac_try="$ac_link"
11889 case "(($ac_try" in
11890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11891 *) ac_try_echo
=$ac_try;;
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_link") 2>conftest.er1
11896 grep -v '^ *+' conftest.er1
>conftest.err
11898 cat conftest.err
>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } &&
11901 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11902 { (case "(($ac_try" in
11903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_try") 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; } &&
11911 { ac_try='test -s conftest$ac_exeext'
11912 { (case "(($ac_try" in
11913 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11914 *) ac_try_echo
=$ac_try;;
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_try") 2>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
11921 eval "$as_ac_var=yes"
11923 echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.
$ac_ext >&5
11926 eval "$as_ac_var=no"
11929 rm -f core conftest.err conftest.
$ac_objext \
11930 conftest
$ac_exeext conftest.
$ac_ext
11932 ac_res
=`eval echo '${'$as_ac_var'}'`
11933 { echo "$as_me:$LINENO: result: $ac_res" >&5
11934 echo "${ECHO_T}$ac_res" >&6; }
11935 if test `eval echo '${'$as_ac_var'}'` = yes; then
11936 cat >>confdefs.h
<<_ACEOF
11937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11970 for ac_header
in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11973 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11974 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11977 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 ac_res
=`eval echo '${'$as_ac_Header'}'`
11981 { echo "$as_me:$LINENO: result: $ac_res" >&5
11982 echo "${ECHO_T}$ac_res" >&6; }
11984 # Is the header compilable?
11985 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11987 cat >conftest.
$ac_ext <<_ACEOF
11990 cat confdefs.h
>>conftest.
$ac_ext
11991 cat >>conftest.
$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11993 $ac_includes_default
11994 #include <$ac_header>
11996 rm -f conftest.
$ac_objext
11997 if { (ac_try
="$ac_compile"
11998 case "(($ac_try" in
11999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_compile") 2>conftest.er1
12005 grep -v '^ *+' conftest.er1 >conftest.err
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } &&
12010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12011 { (case "(($ac_try" in
12012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12013 *) ac_try_echo
=$ac_try;;
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_try") 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try
='test -s conftest.$ac_objext'
12021 { (case "(($ac_try" in
12022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_try") 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 ac_header_compiler=yes
12032 echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12035 ac_header_compiler=no
12038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12040 echo "${ECHO_T}$ac_header_compiler" >&6; }
12042 # Is the header present?
12043 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12045 cat >conftest.$ac_ext <<_ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12051 #include <$ac_header>
12053 if { (ac_try="$ac_cpp conftest.$ac_ext"
12054 case "(($ac_try" in
12055 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12056 *) ac_try_echo
=$ac_try;;
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12061 grep -v '^ *+' conftest.er1
>conftest.err
12063 cat conftest.err
>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } >/dev
/null
; then
12066 if test -s conftest.err
; then
12067 ac_cpp_err
=$ac_c_preproc_warn_flag
12068 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12075 if test -z "$ac_cpp_err"; then
12076 ac_header_preproc
=yes
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.
$ac_ext >&5
12081 ac_header_preproc
=no
12084 rm -f conftest.err conftest.
$ac_ext
12085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12086 echo "${ECHO_T}$ac_header_preproc" >&6; }
12088 # So? What about this header?
12089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12095 ac_header_preproc
=yes
12098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12105 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12111 ## ----------------------------------- ##
12112 ## Report this to llvmbugs@cs.uiuc.edu ##
12113 ## ----------------------------------- ##
12115 ) |
sed "s/^/$as_me: WARNING: /" >&2
12118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12120 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 eval "$as_ac_Header=\$ac_header_preproc"
12125 ac_res
=`eval echo '${'$as_ac_Header'}'`
12126 { echo "$as_me:$LINENO: result: $ac_res" >&5
12127 echo "${ECHO_T}$ac_res" >&6; }
12130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12131 cat >>confdefs.h
<<_ACEOF
12132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12143 for ac_header
in dl.h sys
/dl.h dld.h mach-o
/dyld.h
12145 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12146 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12149 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 ac_res
=`eval echo '${'$as_ac_Header'}'`
12153 { echo "$as_me:$LINENO: result: $ac_res" >&5
12154 echo "${ECHO_T}$ac_res" >&6; }
12156 # Is the header compilable?
12157 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12159 cat >conftest.
$ac_ext <<_ACEOF
12162 cat confdefs.h
>>conftest.
$ac_ext
12163 cat >>conftest.
$ac_ext <<_ACEOF
12164 /* end confdefs.h. */
12165 $ac_includes_default
12166 #include <$ac_header>
12168 rm -f conftest.
$ac_objext
12169 if { (ac_try
="$ac_compile"
12170 case "(($ac_try" in
12171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_compile") 2>conftest.er1
12177 grep -v '^ *+' conftest.er1 >conftest.err
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } &&
12182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12183 { (case "(($ac_try" in
12184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12185 *) ac_try_echo
=$ac_try;;
12187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188 (eval "$ac_try") 2>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; } &&
12192 { ac_try
='test -s conftest.$ac_objext'
12193 { (case "(($ac_try" in
12194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_try") 2>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 ac_header_compiler=yes
12204 echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12207 ac_header_compiler=no
12210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12212 echo "${ECHO_T}$ac_header_compiler" >&6; }
12214 # Is the header present?
12215 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12217 cat >conftest.$ac_ext <<_ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12223 #include <$ac_header>
12225 if { (ac_try="$ac_cpp conftest.$ac_ext"
12226 case "(($ac_try" in
12227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12228 *) ac_try_echo
=$ac_try;;
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12233 grep -v '^ *+' conftest.er1
>conftest.err
12235 cat conftest.err
>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } >/dev
/null
; then
12238 if test -s conftest.err
; then
12239 ac_cpp_err
=$ac_c_preproc_warn_flag
12240 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12247 if test -z "$ac_cpp_err"; then
12248 ac_header_preproc
=yes
12250 echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.
$ac_ext >&5
12253 ac_header_preproc
=no
12256 rm -f conftest.err conftest.
$ac_ext
12257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12258 echo "${ECHO_T}$ac_header_preproc" >&6; }
12260 # So? What about this header?
12261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12267 ac_header_preproc
=yes
12270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12277 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12283 ## ----------------------------------- ##
12284 ## Report this to llvmbugs@cs.uiuc.edu ##
12285 ## ----------------------------------- ##
12287 ) |
sed "s/^/$as_me: WARNING: /" >&2
12290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12292 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12293 echo $ECHO_N "(cached) $ECHO_C" >&6
12295 eval "$as_ac_Header=\$ac_header_preproc"
12297 ac_res
=`eval echo '${'$as_ac_Header'}'`
12298 { echo "$as_me:$LINENO: result: $ac_res" >&5
12299 echo "${ECHO_T}$ac_res" >&6; }
12302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12303 cat >>confdefs.h
<<_ACEOF
12304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12313 for ac_header
in string.h
strings.h
12315 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12316 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12319 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 ac_res
=`eval echo '${'$as_ac_Header'}'`
12323 { echo "$as_me:$LINENO: result: $ac_res" >&5
12324 echo "${ECHO_T}$ac_res" >&6; }
12326 # Is the header compilable?
12327 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12329 cat >conftest.
$ac_ext <<_ACEOF
12332 cat confdefs.h
>>conftest.
$ac_ext
12333 cat >>conftest.
$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12335 $ac_includes_default
12336 #include <$ac_header>
12338 rm -f conftest.
$ac_objext
12339 if { (ac_try
="$ac_compile"
12340 case "(($ac_try" in
12341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_compile") 2>conftest.er1
12347 grep -v '^ *+' conftest.er1 >conftest.err
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } &&
12352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12353 { (case "(($ac_try" in
12354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12355 *) ac_try_echo
=$ac_try;;
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_try") 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; } &&
12362 { ac_try
='test -s conftest.$ac_objext'
12363 { (case "(($ac_try" in
12364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_try") 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; }; then
12372 ac_header_compiler=yes
12374 echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12377 ac_header_compiler=no
12380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12382 echo "${ECHO_T}$ac_header_compiler" >&6; }
12384 # Is the header present?
12385 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12387 cat >conftest.$ac_ext <<_ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12393 #include <$ac_header>
12395 if { (ac_try="$ac_cpp conftest.$ac_ext"
12396 case "(($ac_try" in
12397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12398 *) ac_try_echo
=$ac_try;;
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12403 grep -v '^ *+' conftest.er1
>conftest.err
12405 cat conftest.err
>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } >/dev
/null
; then
12408 if test -s conftest.err
; then
12409 ac_cpp_err
=$ac_c_preproc_warn_flag
12410 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12417 if test -z "$ac_cpp_err"; then
12418 ac_header_preproc
=yes
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.
$ac_ext >&5
12423 ac_header_preproc
=no
12426 rm -f conftest.err conftest.
$ac_ext
12427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12428 echo "${ECHO_T}$ac_header_preproc" >&6; }
12430 # So? What about this header?
12431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12437 ac_header_preproc
=yes
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12453 ## ----------------------------------- ##
12454 ## Report this to llvmbugs@cs.uiuc.edu ##
12455 ## ----------------------------------- ##
12457 ) |
sed "s/^/$as_me: WARNING: /" >&2
12460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12462 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 eval "$as_ac_Header=\$ac_header_preproc"
12467 ac_res
=`eval echo '${'$as_ac_Header'}'`
12468 { echo "$as_me:$LINENO: result: $ac_res" >&5
12469 echo "${ECHO_T}$ac_res" >&6; }
12472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12473 cat >>confdefs.h
<<_ACEOF
12474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12484 for ac_func
in strchr index
12486 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12489 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 cat >conftest.
$ac_ext <<_ACEOF
12495 cat confdefs.h
>>conftest.
$ac_ext
12496 cat >>conftest.
$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12500 #define $ac_func innocuous_$ac_func
12502 /* System header to define __stub macros and hopefully few prototypes,
12503 which can conflict with char $ac_func (); below.
12504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12505 <limits.h> exists even on freestanding compilers. */
12508 # include <limits.h>
12510 # include <assert.h>
12515 /* Override any GCC internal prototype to avoid an error.
12516 Use char because int might match the return type of a GCC
12517 builtin and then its argument prototype would still apply. */
12522 /* The GNU C library defines this for functions which it implements
12523 to always fail with ENOSYS. Some functions are actually named
12524 something starting with __ and the normal name is an alias. */
12525 #if defined __stub_$ac_func || defined __stub___$ac_func
12532 return $ac_func ();
12537 rm -f conftest.
$ac_objext conftest
$ac_exeext
12538 if { (ac_try
="$ac_link"
12539 case "(($ac_try" in
12540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_link") 2>conftest.er1
12546 grep -v '^ *+' conftest.er1 >conftest.err
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
12551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12552 { (case "(($ac_try" in
12553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12554 *) ac_try_echo
=$ac_try;;
12556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_try") 2>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; } &&
12561 { ac_try
='test -s conftest$ac_exeext'
12562 { (case "(($ac_try" in
12563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12564 *) ac_try_echo=$ac_try;;
12566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12567 (eval "$ac_try") 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; }; then
12571 eval "$as_ac_var=yes"
12573 echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12576 eval "$as_ac_var=no"
12579 rm -f core conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext conftest.$ac_ext
12582 ac_res=`eval echo '${'$as_ac_var'}'`
12583 { echo "$as_me:$LINENO: result: $ac_res" >&5
12584 echo "${ECHO_T}$ac_res" >&6; }
12585 if test `eval echo '${'$as_ac_var'}'` = yes; then
12586 cat >>confdefs.h <<_ACEOF
12587 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12595 for ac_func in strrchr rindex
12597 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12598 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 cat >conftest.$ac_ext <<_ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12611 #define $ac_func innocuous_$ac_func
12613 /* System header to define __stub macros and hopefully few prototypes,
12614 which can conflict with char $ac_func (); below.
12615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12616 <limits.h> exists even on freestanding compilers. */
12619 # include <limits.h>
12621 # include <assert.h>
12626 /* Override any GCC internal prototype to avoid an error.
12627 Use char because int might match the return type of a GCC
12628 builtin and then its argument prototype would still apply. */
12633 /* The GNU C library defines this for functions which it implements
12634 to always fail with ENOSYS. Some functions are actually named
12635 something starting with __ and the normal name is an alias. */
12636 #if defined __stub_$ac_func || defined __stub___$ac_func
12643 return $ac_func ();
12648 rm -f conftest.$ac_objext conftest$ac_exeext
12649 if { (ac_try="$ac_link"
12650 case "(($ac_try" in
12651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12652 *) ac_try_echo
=$ac_try;;
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655 (eval "$ac_link") 2>conftest.er1
12657 grep -v '^ *+' conftest.er1
>conftest.err
12659 cat conftest.err
>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } &&
12662 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12663 { (case "(($ac_try" in
12664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_try") 2>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try='test -s conftest$ac_exeext'
12673 { (case "(($ac_try" in
12674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12675 *) ac_try_echo
=$ac_try;;
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_try") 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
12682 eval "$as_ac_var=yes"
12684 echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.
$ac_ext >&5
12687 eval "$as_ac_var=no"
12690 rm -f core conftest.err conftest.
$ac_objext \
12691 conftest
$ac_exeext conftest.
$ac_ext
12693 ac_res
=`eval echo '${'$as_ac_var'}'`
12694 { echo "$as_me:$LINENO: result: $ac_res" >&5
12695 echo "${ECHO_T}$ac_res" >&6; }
12696 if test `eval echo '${'$as_ac_var'}'` = yes; then
12697 cat >>confdefs.h
<<_ACEOF
12698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12706 for ac_func
in memcpy bcopy
12708 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12709 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12711 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 cat >conftest.
$ac_ext <<_ACEOF
12717 cat confdefs.h
>>conftest.
$ac_ext
12718 cat >>conftest.
$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12722 #define $ac_func innocuous_$ac_func
12724 /* System header to define __stub macros and hopefully few prototypes,
12725 which can conflict with char $ac_func (); below.
12726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12727 <limits.h> exists even on freestanding compilers. */
12730 # include <limits.h>
12732 # include <assert.h>
12737 /* Override any GCC internal prototype to avoid an error.
12738 Use char because int might match the return type of a GCC
12739 builtin and then its argument prototype would still apply. */
12744 /* The GNU C library defines this for functions which it implements
12745 to always fail with ENOSYS. Some functions are actually named
12746 something starting with __ and the normal name is an alias. */
12747 #if defined __stub_$ac_func || defined __stub___$ac_func
12754 return $ac_func ();
12759 rm -f conftest.
$ac_objext conftest
$ac_exeext
12760 if { (ac_try
="$ac_link"
12761 case "(($ac_try" in
12762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_link") 2>conftest.er1
12768 grep -v '^ *+' conftest.er1 >conftest.err
12770 cat conftest.err >&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } &&
12773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12774 { (case "(($ac_try" in
12775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12776 *) ac_try_echo
=$ac_try;;
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_try") 2>&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; } &&
12783 { ac_try
='test -s conftest$ac_exeext'
12784 { (case "(($ac_try" in
12785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789 (eval "$ac_try") 2>&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793 eval "$as_ac_var=yes"
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12798 eval "$as_ac_var=no"
12801 rm -f core conftest.err conftest.$ac_objext \
12802 conftest$ac_exeext conftest.$ac_ext
12804 ac_res=`eval echo '${'$as_ac_var'}'`
12805 { echo "$as_me:$LINENO: result: $ac_res" >&5
12806 echo "${ECHO_T}$ac_res" >&6; }
12807 if test `eval echo '${'$as_ac_var'}'` = yes; then
12808 cat >>confdefs.h <<_ACEOF
12809 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12817 for ac_func in memmove strcmp
12819 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12820 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12825 cat >conftest.$ac_ext <<_ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h. */
12831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12833 #define $ac_func innocuous_$ac_func
12835 /* System header to define __stub macros and hopefully few prototypes,
12836 which can conflict with char $ac_func (); below.
12837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12838 <limits.h> exists even on freestanding compilers. */
12841 # include <limits.h>
12843 # include <assert.h>
12848 /* Override any GCC internal prototype to avoid an error.
12849 Use char because int might match the return type of a GCC
12850 builtin and then its argument prototype would still apply. */
12855 /* The GNU C library defines this for functions which it implements
12856 to always fail with ENOSYS. Some functions are actually named
12857 something starting with __ and the normal name is an alias. */
12858 #if defined __stub_$ac_func || defined __stub___$ac_func
12865 return $ac_func ();
12870 rm -f conftest.$ac_objext conftest$ac_exeext
12871 if { (ac_try="$ac_link"
12872 case "(($ac_try" in
12873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12874 *) ac_try_echo
=$ac_try;;
12876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877 (eval "$ac_link") 2>conftest.er1
12879 grep -v '^ *+' conftest.er1
>conftest.err
12881 cat conftest.err
>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
12884 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12885 { (case "(($ac_try" in
12886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_try") 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; } &&
12894 { ac_try='test -s conftest$ac_exeext'
12895 { (case "(($ac_try" in
12896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12897 *) ac_try_echo
=$ac_try;;
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_try") 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12904 eval "$as_ac_var=yes"
12906 echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.
$ac_ext >&5
12909 eval "$as_ac_var=no"
12912 rm -f core conftest.err conftest.
$ac_objext \
12913 conftest
$ac_exeext conftest.
$ac_ext
12915 ac_res
=`eval echo '${'$as_ac_var'}'`
12916 { echo "$as_me:$LINENO: result: $ac_res" >&5
12917 echo "${ECHO_T}$ac_res" >&6; }
12918 if test `eval echo '${'$as_ac_var'}'` = yes; then
12919 cat >>confdefs.h
<<_ACEOF
12920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12929 for ac_func
in closedir opendir readdir
12931 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12934 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12935 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 cat >conftest.
$ac_ext <<_ACEOF
12940 cat confdefs.h
>>conftest.
$ac_ext
12941 cat >>conftest.
$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12945 #define $ac_func innocuous_$ac_func
12947 /* System header to define __stub macros and hopefully few prototypes,
12948 which can conflict with char $ac_func (); below.
12949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12950 <limits.h> exists even on freestanding compilers. */
12953 # include <limits.h>
12955 # include <assert.h>
12960 /* Override any GCC internal prototype to avoid an error.
12961 Use char because int might match the return type of a GCC
12962 builtin and then its argument prototype would still apply. */
12967 /* The GNU C library defines this for functions which it implements
12968 to always fail with ENOSYS. Some functions are actually named
12969 something starting with __ and the normal name is an alias. */
12970 #if defined __stub_$ac_func || defined __stub___$ac_func
12977 return $ac_func ();
12982 rm -f conftest.
$ac_objext conftest
$ac_exeext
12983 if { (ac_try
="$ac_link"
12984 case "(($ac_try" in
12985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_link") 2>conftest.er1
12991 grep -v '^ *+' conftest.er1 >conftest.err
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12997 { (case "(($ac_try" in
12998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12999 *) ac_try_echo
=$ac_try;;
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_try") 2>&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; } &&
13006 { ac_try
='test -s conftest$ac_exeext'
13007 { (case "(($ac_try" in
13008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_try") 2>&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; }; then
13016 eval "$as_ac_var=yes"
13018 echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.$ac_ext >&5
13021 eval "$as_ac_var=no"
13024 rm -f core conftest.err conftest.$ac_objext \
13025 conftest$ac_exeext conftest.$ac_ext
13027 ac_res=`eval echo '${'$as_ac_var'}'`
13028 { echo "$as_me:$LINENO: result: $ac_res" >&5
13029 echo "${ECHO_T}$ac_res" >&6; }
13030 if test `eval echo '${'$as_ac_var'}'` = yes; then
13031 cat >>confdefs.h <<_ACEOF
13032 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13040 if test "$WITH_LLVMGCCDIR" = "default" ; then
13041 LLVMGCC="llvm-gcc${EXEEXT}"
13042 LLVMGXX="llvm-g++${EXEEXT}"
13043 LLVMGCCCOMMAND="$LLVMGCC"
13044 LLVMGXXCOMMAND="$LLVMGXX"
13045 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13047 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13049 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13050 set dummy $LLVMGCC; ac_word=$2
13051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13053 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13058 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13062 for as_dir in $PATH
13065 test -z "$as_dir" && as_dir=.
13066 for ac_exec_ext in '' $ac_executable_extensions; do
13067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13068 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13079 LLVMGCC=$ac_cv_path_LLVMGCC
13080 if test -n "$LLVMGCC"; then
13081 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13082 echo "${ECHO_T}$LLVMGCC" >&6; }
13084 { echo "$as_me:$LINENO: result: no" >&5
13085 echo "${ECHO_T}no" >&6; }
13089 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13090 set dummy $LLVMGXX; ac_word=$2
13091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13093 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13098 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102 for as_dir in $PATH
13105 test -z "$as_dir" && as_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13108 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13119 LLVMGXX=$ac_cv_path_LLVMGXX
13120 if test -n "$LLVMGXX"; then
13121 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13122 echo "${ECHO_T}$LLVMGXX" >&6; }
13124 { echo "$as_me:$LINENO: result: no" >&5
13125 echo "${ECHO_T}no" >&6; }
13130 if test -z "$LLVMGCC"; then
13131 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13132 LLVMGCCCOMMAND="$LLVMGCC"
13134 if test -z "$LLVMGXX"; then
13135 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13136 LLVMGXXCOMMAND="$LLVMGXX"
13143 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13145 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13150 # Check whether --with-llvmcc was given.
13151 if test "${with_llvmcc+set}" = set; then
13152 withval=$with_llvmcc;
13157 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13158 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13159 if test "$with_llvmcc" != "check"; then
13160 if (test "$with_llvmcc" != "llvm-gcc" &&
13161 test "$with_llvmcc" != "clang" &&
13162 test "$with_llvmcc" != "none"); then
13163 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13164 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13165 { (exit 1); exit 1; }; }
13167 WITH_LLVMCC="$with_llvmcc"
13168 elif test -n "$LLVMGCC"; then
13169 WITH_LLVMCC=llvm-gcc
13170 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13175 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13176 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13177 LLVMCC_OPTION=$WITH_LLVMCC
13180 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13181 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13194 if test "$GCC" != "yes" && test "$ICC" != "yes"
13196 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13197 echo "$as_me: error: gcc|icc required but not found" >&2;}
13198 { (exit 1); exit 1; }; }
13201 if test "$GXX" != "yes" && test "$IXX" != "yes"
13203 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13204 echo "$as_me: error: g++|icc required but not found" >&2;}
13205 { (exit 1); exit 1; }; }
13208 if test "$GCC" = "yes"
13210 cat >conftest.$ac_ext <<_ACEOF
13211 #if !defined(__GNUC__) || __GNUC__ < 3
13212 #error Unsupported GCC version
13216 rm -f conftest.$ac_objext
13217 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13225 grep -v '^ *+' conftest.er1
>conftest.err
13227 cat conftest.err
>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } &&
13230 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13231 { (case "(($ac_try" in
13232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236 (eval "$ac_try") 2>&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; } &&
13240 { ac_try='test -s conftest.$ac_objext'
13241 { (case "(($ac_try" in
13242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13243 *) ac_try_echo
=$ac_try;;
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_try") 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.
$ac_ext >&5
13255 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13256 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13257 { (exit 1); exit 1; }; }
13260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13263 if test -z "$llvm_cv_gnu_make_command"
13265 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13266 echo "$as_me: error: GNU Make required but not found" >&2;}
13267 { (exit 1); exit 1; }; }
13270 { echo "$as_me:$LINENO: result: ok" >&5
13271 echo "${ECHO_T}ok" >&6; }
13273 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13274 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13275 NO_VARIADIC_MACROS
=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13277 NO_MISSING_FIELD_INITIALIZERS
=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13279 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13280 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13284 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13285 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13286 if test "${ac_cv_lib_m_sin+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 ac_check_lib_save_LIBS
=$LIBS
13291 cat >conftest.
$ac_ext <<_ACEOF
13294 cat confdefs.h
>>conftest.
$ac_ext
13295 cat >>conftest.
$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13298 /* Override any GCC internal prototype to avoid an error.
13299 Use char because int might match the return type of a GCC
13300 builtin and then its argument prototype would still apply. */
13313 rm -f conftest.
$ac_objext conftest
$ac_exeext
13314 if { (ac_try
="$ac_link"
13315 case "(($ac_try" in
13316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_link") 2>conftest.er1
13322 grep -v '^ *+' conftest.er1 >conftest.err
13324 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } &&
13327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13328 { (case "(($ac_try" in
13329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13330 *) ac_try_echo
=$ac_try;;
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_try") 2>&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; } &&
13337 { ac_try
='test -s conftest$ac_exeext'
13338 { (case "(($ac_try" in
13339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_try") 2>&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; }; then
13347 ac_cv_lib_m_sin=yes
13349 echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13355 rm -f core conftest.err conftest.$ac_objext \
13356 conftest$ac_exeext conftest.$ac_ext
13357 LIBS=$ac_check_lib_save_LIBS
13359 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13360 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13361 if test $ac_cv_lib_m_sin = yes; then
13362 cat >>confdefs.h <<_ACEOF
13363 #define HAVE_LIBM 1
13370 if test "$llvm_cv_os_type" = "MingW" ; then
13372 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13373 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13374 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13377 ac_check_lib_save_LIBS=$LIBS
13378 LIBS="-limagehlp $LIBS"
13379 cat >conftest.$ac_ext <<_ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13395 rm -f conftest.$ac_objext conftest$ac_exeext
13396 if { (ac_try="$ac_link"
13397 case "(($ac_try" in
13398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13399 *) ac_try_echo
=$ac_try;;
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402 (eval "$ac_link") 2>conftest.er1
13404 grep -v '^ *+' conftest.er1
>conftest.err
13406 cat conftest.err
>&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } &&
13409 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13410 { (case "(($ac_try" in
13411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_try") 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; } &&
13419 { ac_try='test -s conftest$ac_exeext'
13420 { (case "(($ac_try" in
13421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13422 *) ac_try_echo
=$ac_try;;
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_try") 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; }; then
13429 ac_cv_lib_imagehlp_main
=yes
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.
$ac_ext >&5
13434 ac_cv_lib_imagehlp_main
=no
13437 rm -f core conftest.err conftest.
$ac_objext \
13438 conftest
$ac_exeext conftest.
$ac_ext
13439 LIBS
=$ac_check_lib_save_LIBS
13441 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13442 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13443 if test $ac_cv_lib_imagehlp_main = yes; then
13444 cat >>confdefs.h
<<_ACEOF
13445 #define HAVE_LIBIMAGEHLP 1
13448 LIBS
="-limagehlp $LIBS"
13453 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13454 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13455 if test "${ac_cv_lib_psapi_main+set}" = set; then
13456 echo $ECHO_N "(cached) $ECHO_C" >&6
13458 ac_check_lib_save_LIBS
=$LIBS
13459 LIBS
="-lpsapi $LIBS"
13460 cat >conftest.
$ac_ext <<_ACEOF
13463 cat confdefs.h
>>conftest.
$ac_ext
13464 cat >>conftest.
$ac_ext <<_ACEOF
13465 /* end confdefs.h. */
13476 rm -f conftest.
$ac_objext conftest
$ac_exeext
13477 if { (ac_try
="$ac_link"
13478 case "(($ac_try" in
13479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_link") 2>conftest.er1
13485 grep -v '^ *+' conftest.er1 >conftest.err
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } &&
13490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13491 { (case "(($ac_try" in
13492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13493 *) ac_try_echo
=$ac_try;;
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_try") 2>&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; } &&
13500 { ac_try
='test -s conftest$ac_exeext'
13501 { (case "(($ac_try" in
13502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_try") 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13510 ac_cv_lib_psapi_main=yes
13512 echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13515 ac_cv_lib_psapi_main=no
13518 rm -f core conftest.err conftest.$ac_objext \
13519 conftest$ac_exeext conftest.$ac_ext
13520 LIBS=$ac_check_lib_save_LIBS
13522 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13523 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13524 if test $ac_cv_lib_psapi_main = yes; then
13525 cat >>confdefs.h <<_ACEOF
13526 #define HAVE_LIBPSAPI 1
13529 LIBS="-lpsapi $LIBS"
13535 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13536 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13537 if test "${ac_cv_search_dlopen+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 ac_func_search_save_LIBS=$LIBS
13541 cat >conftest.$ac_ext <<_ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13548 /* Override any GCC internal prototype to avoid an error.
13549 Use char because int might match the return type of a GCC
13550 builtin and then its argument prototype would still apply. */
13563 for ac_lib in '' dl; do
13564 if test -z "$ac_lib"; then
13565 ac_res="none required"
13568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13570 rm -f conftest.$ac_objext conftest$ac_exeext
13571 if { (ac_try="$ac_link"
13572 case "(($ac_try" in
13573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13574 *) ac_try_echo
=$ac_try;;
13576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13577 (eval "$ac_link") 2>conftest.er1
13579 grep -v '^ *+' conftest.er1
>conftest.err
13581 cat conftest.err
>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13585 { (case "(($ac_try" in
13586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13587 *) ac_try_echo=$ac_try;;
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590 (eval "$ac_try") 2>&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; } &&
13594 { ac_try='test -s conftest$ac_exeext'
13595 { (case "(($ac_try" in
13596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13597 *) ac_try_echo
=$ac_try;;
13599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13600 (eval "$ac_try") 2>&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); }; }; then
13604 ac_cv_search_dlopen
=$ac_res
13606 echo "$as_me: failed program was:" >&5
13607 sed 's/^/| /' conftest.
$ac_ext >&5
13612 rm -f core conftest.err conftest.
$ac_objext \
13614 if test "${ac_cv_search_dlopen+set}" = set; then
13618 if test "${ac_cv_search_dlopen+set}" = set; then
13621 ac_cv_search_dlopen
=no
13623 rm conftest.
$ac_ext
13624 LIBS
=$ac_func_search_save_LIBS
13626 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13627 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13628 ac_res
=$ac_cv_search_dlopen
13629 if test "$ac_res" != no
; then
13630 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13632 cat >>confdefs.h
<<\_ACEOF
13633 #define HAVE_DLOPEN 1
13637 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13638 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13642 if test "$llvm_cv_enable_libffi" = "yes" ; then
13643 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13644 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13645 if test "${ac_cv_search_ffi_call+set}" = set; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 ac_func_search_save_LIBS
=$LIBS
13649 cat >conftest.
$ac_ext <<_ACEOF
13652 cat confdefs.h
>>conftest.
$ac_ext
13653 cat >>conftest.
$ac_ext <<_ACEOF
13654 /* end confdefs.h. */
13656 /* Override any GCC internal prototype to avoid an error.
13657 Use char because int might match the return type of a GCC
13658 builtin and then its argument prototype would still apply. */
13666 return ffi_call ();
13671 for ac_lib
in '' ffi
; do
13672 if test -z "$ac_lib"; then
13673 ac_res
="none required"
13676 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13678 rm -f conftest.
$ac_objext conftest
$ac_exeext
13679 if { (ac_try
="$ac_link"
13680 case "(($ac_try" in
13681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685 (eval "$ac_link") 2>conftest.er1
13687 grep -v '^ *+' conftest.er1 >conftest.err
13689 cat conftest.err >&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } &&
13692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13693 { (case "(($ac_try" in
13694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13695 *) ac_try_echo
=$ac_try;;
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_try") 2>&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }; } &&
13702 { ac_try
='test -s conftest$ac_exeext'
13703 { (case "(($ac_try" in
13704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708 (eval "$ac_try") 2>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
13712 ac_cv_search_ffi_call=$ac_res
13714 echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13720 rm -f core conftest.err conftest.$ac_objext \
13722 if test "${ac_cv_search_ffi_call+set}" = set; then
13726 if test "${ac_cv_search_ffi_call+set}" = set; then
13729 ac_cv_search_ffi_call=no
13731 rm conftest.$ac_ext
13732 LIBS=$ac_func_search_save_LIBS
13734 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13735 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13736 ac_res=$ac_cv_search_ffi_call
13737 if test "$ac_res" != no; then
13738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13740 cat >>confdefs.h <<\_ACEOF
13741 #define HAVE_FFI_CALL 1
13745 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13746 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13747 { (exit 1); exit 1; }; }
13752 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13753 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13754 if test "${ac_cv_search_mallinfo+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13757 ac_func_search_save_LIBS=$LIBS
13758 cat >conftest.$ac_ext <<_ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h. */
13765 /* Override any GCC internal prototype to avoid an error.
13766 Use char because int might match the return type of a GCC
13767 builtin and then its argument prototype would still apply. */
13775 return mallinfo ();
13780 for ac_lib in '' malloc; do
13781 if test -z "$ac_lib"; then
13782 ac_res="none required"
13785 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13787 rm -f conftest.$ac_objext conftest$ac_exeext
13788 if { (ac_try="$ac_link"
13789 case "(($ac_try" in
13790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13791 *) ac_try_echo
=$ac_try;;
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_link") 2>conftest.er1
13796 grep -v '^ *+' conftest.er1
>conftest.err
13798 cat conftest.err
>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13802 { (case "(($ac_try" in
13803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_try") 2>&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; } &&
13811 { ac_try='test -s conftest$ac_exeext'
13812 { (case "(($ac_try" in
13813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13814 *) ac_try_echo
=$ac_try;;
13816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817 (eval "$ac_try") 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 ac_cv_search_mallinfo
=$ac_res
13823 echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.
$ac_ext >&5
13829 rm -f core conftest.err conftest.
$ac_objext \
13831 if test "${ac_cv_search_mallinfo+set}" = set; then
13835 if test "${ac_cv_search_mallinfo+set}" = set; then
13838 ac_cv_search_mallinfo
=no
13840 rm conftest.
$ac_ext
13841 LIBS
=$ac_func_search_save_LIBS
13843 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13844 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13845 ac_res
=$ac_cv_search_mallinfo
13846 if test "$ac_res" != no
; then
13847 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13849 cat >>confdefs.h
<<\_ACEOF
13850 #define HAVE_MALLINFO 1
13856 if test "$ENABLE_THREADS" -eq 1 ; then
13858 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13859 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13860 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
13863 ac_check_lib_save_LIBS
=$LIBS
13864 LIBS
="-lpthread $LIBS"
13865 cat >conftest.
$ac_ext <<_ACEOF
13868 cat confdefs.h
>>conftest.
$ac_ext
13869 cat >>conftest.
$ac_ext <<_ACEOF
13870 /* end confdefs.h. */
13872 /* Override any GCC internal prototype to avoid an error.
13873 Use char because int might match the return type of a GCC
13874 builtin and then its argument prototype would still apply. */
13878 char pthread_mutex_init ();
13882 return pthread_mutex_init ();
13887 rm -f conftest.
$ac_objext conftest
$ac_exeext
13888 if { (ac_try
="$ac_link"
13889 case "(($ac_try" in
13890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13891 *) ac_try_echo=$ac_try;;
13893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894 (eval "$ac_link") 2>conftest.er1
13896 grep -v '^ *+' conftest.er1 >conftest.err
13898 cat conftest.err >&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13902 { (case "(($ac_try" in
13903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13904 *) ac_try_echo
=$ac_try;;
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_try") 2>&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; } &&
13911 { ac_try
='test -s conftest$ac_exeext'
13912 { (case "(($ac_try" in
13913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13914 *) ac_try_echo=$ac_try;;
13916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13917 (eval "$ac_try") 2>&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; }; then
13921 ac_cv_lib_pthread_pthread_mutex_init=yes
13923 echo "$as_me: failed program was:" >&5
13924 sed 's/^/| /' conftest.$ac_ext >&5
13926 ac_cv_lib_pthread_pthread_mutex_init=no
13929 rm -f core conftest.err conftest.$ac_objext \
13930 conftest$ac_exeext conftest.$ac_ext
13931 LIBS=$ac_check_lib_save_LIBS
13933 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13934 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13935 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13936 cat >>confdefs.h <<_ACEOF
13937 #define HAVE_LIBPTHREAD 1
13940 LIBS="-lpthread $LIBS"
13944 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13945 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13946 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13949 ac_func_search_save_LIBS=$LIBS
13950 cat >conftest.$ac_ext <<_ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h. */
13957 /* Override any GCC internal prototype to avoid an error.
13958 Use char because int might match the return type of a GCC
13959 builtin and then its argument prototype would still apply. */
13963 char pthread_mutex_lock ();
13967 return pthread_mutex_lock ();
13972 for ac_lib in '' pthread; do
13973 if test -z "$ac_lib"; then
13974 ac_res="none required"
13977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13979 rm -f conftest.$ac_objext conftest$ac_exeext
13980 if { (ac_try="$ac_link"
13981 case "(($ac_try" in
13982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13983 *) ac_try_echo
=$ac_try;;
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_link") 2>conftest.er1
13988 grep -v '^ *+' conftest.er1
>conftest.err
13990 cat conftest.err
>&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13994 { (case "(($ac_try" in
13995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13996 *) ac_try_echo=$ac_try;;
13998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999 (eval "$ac_try") 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest$ac_exeext'
14004 { (case "(($ac_try" in
14005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14006 *) ac_try_echo
=$ac_try;;
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_try") 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 ac_cv_search_pthread_mutex_lock
=$ac_res
14015 echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.
$ac_ext >&5
14021 rm -f core conftest.err conftest.
$ac_objext \
14023 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14027 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14030 ac_cv_search_pthread_mutex_lock
=no
14032 rm conftest.
$ac_ext
14033 LIBS
=$ac_func_search_save_LIBS
14035 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14036 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14037 ac_res
=$ac_cv_search_pthread_mutex_lock
14038 if test "$ac_res" != no
; then
14039 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14041 cat >>confdefs.h
<<\_ACEOF
14042 #define HAVE_PTHREAD_MUTEX_LOCK 1
14047 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14048 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14049 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
14052 ac_func_search_save_LIBS
=$LIBS
14053 cat >conftest.
$ac_ext <<_ACEOF
14056 cat confdefs.h
>>conftest.
$ac_ext
14057 cat >>conftest.
$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14060 /* Override any GCC internal prototype to avoid an error.
14061 Use char because int might match the return type of a GCC
14062 builtin and then its argument prototype would still apply. */
14066 char pthread_rwlock_init ();
14070 return pthread_rwlock_init ();
14075 for ac_lib
in '' pthread
; do
14076 if test -z "$ac_lib"; then
14077 ac_res
="none required"
14080 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14082 rm -f conftest.
$ac_objext conftest
$ac_exeext
14083 if { (ac_try
="$ac_link"
14084 case "(($ac_try" in
14085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_link") 2>conftest.er1
14091 grep -v '^ *+' conftest.er1 >conftest.err
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
14096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14097 { (case "(($ac_try" in
14098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14099 *) ac_try_echo
=$ac_try;;
14101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14102 (eval "$ac_try") 2>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; } &&
14106 { ac_try
='test -s conftest$ac_exeext'
14107 { (case "(($ac_try" in
14108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_try") 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 ac_cv_search_pthread_rwlock_init=$ac_res
14118 echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14124 rm -f core conftest.err conftest.$ac_objext \
14126 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14130 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14133 ac_cv_search_pthread_rwlock_init=no
14135 rm conftest.$ac_ext
14136 LIBS=$ac_func_search_save_LIBS
14138 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14139 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14140 ac_res=$ac_cv_search_pthread_rwlock_init
14141 if test "$ac_res" != no; then
14142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14144 cat >>confdefs.h <<\_ACEOF
14145 #define HAVE_PTHREAD_RWLOCK_INIT 1
14150 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14151 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14152 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
14155 ac_func_search_save_LIBS=$LIBS
14156 cat >conftest.$ac_ext <<_ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14163 /* Override any GCC internal prototype to avoid an error.
14164 Use char because int might match the return type of a GCC
14165 builtin and then its argument prototype would still apply. */
14169 char pthread_getspecific ();
14173 return pthread_getspecific ();
14178 for ac_lib in '' pthread; do
14179 if test -z "$ac_lib"; then
14180 ac_res="none required"
14183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14185 rm -f conftest.$ac_objext conftest$ac_exeext
14186 if { (ac_try="$ac_link"
14187 case "(($ac_try" in
14188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14189 *) ac_try_echo
=$ac_try;;
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_link") 2>conftest.er1
14194 grep -v '^ *+' conftest.er1
>conftest.err
14196 cat conftest.err
>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14200 { (case "(($ac_try" in
14201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14202 *) ac_try_echo=$ac_try;;
14204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14205 (eval "$ac_try") 2>&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; } &&
14209 { ac_try='test -s conftest$ac_exeext'
14210 { (case "(($ac_try" in
14211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14212 *) ac_try_echo
=$ac_try;;
14214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215 (eval "$ac_try") 2>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; }; then
14219 ac_cv_search_pthread_getspecific
=$ac_res
14221 echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.
$ac_ext >&5
14227 rm -f core conftest.err conftest.
$ac_objext \
14229 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14233 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14236 ac_cv_search_pthread_getspecific
=no
14238 rm conftest.
$ac_ext
14239 LIBS
=$ac_func_search_save_LIBS
14241 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14242 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14243 ac_res
=$ac_cv_search_pthread_getspecific
14244 if test "$ac_res" != no
; then
14245 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14247 cat >>confdefs.h
<<\_ACEOF
14248 #define HAVE_PTHREAD_GETSPECIFIC 1
14256 # Check whether --with-udis86 was given.
14257 if test "${with_udis86+set}" = set; then
14258 withval
=$with_udis86;
14263 *) LDFLAGS
="$LDFLAGS -L${withval}" ;;
14266 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14267 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14268 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14271 ac_check_lib_save_LIBS
=$LIBS
14272 LIBS
="-ludis86 $LIBS"
14273 cat >conftest.
$ac_ext <<_ACEOF
14276 cat confdefs.h
>>conftest.
$ac_ext
14277 cat >>conftest.
$ac_ext <<_ACEOF
14278 /* end confdefs.h. */
14280 /* Override any GCC internal prototype to avoid an error.
14281 Use char because int might match the return type of a GCC
14282 builtin and then its argument prototype would still apply. */
14295 rm -f conftest.
$ac_objext conftest
$ac_exeext
14296 if { (ac_try
="$ac_link"
14297 case "(($ac_try" in
14298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_link") 2>conftest.er1
14304 grep -v '^ *+' conftest.er1 >conftest.err
14306 cat conftest.err >&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } &&
14309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14310 { (case "(($ac_try" in
14311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14312 *) ac_try_echo
=$ac_try;;
14314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315 (eval "$ac_try") 2>&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; } &&
14319 { ac_try
='test -s conftest$ac_exeext'
14320 { (case "(($ac_try" in
14321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_try") 2>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; }; then
14329 ac_cv_lib_udis86_ud_init=yes
14331 echo "$as_me: failed program was:" >&5
14332 sed 's/^/| /' conftest.$ac_ext >&5
14334 ac_cv_lib_udis86_ud_init=no
14337 rm -f core conftest.err conftest.$ac_objext \
14338 conftest$ac_exeext conftest.$ac_ext
14339 LIBS=$ac_check_lib_save_LIBS
14341 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14342 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14343 if test $ac_cv_lib_udis86_ud_init = yes; then
14344 cat >>confdefs.h <<_ACEOF
14345 #define HAVE_LIBUDIS86 1
14348 LIBS="-ludis86 $LIBS"
14352 echo "Error! You need to have libudis86 around."
14364 cat >>confdefs.h <<_ACEOF
14365 #define USE_UDIS86 $USE_UDIS86
14370 # Check whether --with-oprofile was given.
14371 if test "${with_oprofile+set}" = set; then
14372 withval=$with_oprofile;
14376 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14377 no) llvm_cv_oppath=
14380 *) llvm_cv_oppath="${withval}/lib/oprofile"
14381 CPPFLAGS="-I${withval}/include";;
14383 if test -n "$llvm_cv_oppath" ; then
14384 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14385 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14386 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14387 if test "${ac_cv_search_bfd_init+set}" = set; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 ac_func_search_save_LIBS=$LIBS
14391 cat >conftest.$ac_ext <<_ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14398 /* Override any GCC internal prototype to avoid an error.
14399 Use char because int might match the return type of a GCC
14400 builtin and then its argument prototype would still apply. */
14408 return bfd_init ();
14413 for ac_lib in '' bfd; do
14414 if test -z "$ac_lib"; then
14415 ac_res="none required"
14418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14420 rm -f conftest.$ac_objext conftest$ac_exeext
14421 if { (ac_try="$ac_link"
14422 case "(($ac_try" in
14423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14424 *) ac_try_echo
=$ac_try;;
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_link") 2>conftest.er1
14429 grep -v '^ *+' conftest.er1
>conftest.err
14431 cat conftest.err
>&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14435 { (case "(($ac_try" in
14436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_try") 2>&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; } &&
14444 { ac_try='test -s conftest$ac_exeext'
14445 { (case "(($ac_try" in
14446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14447 *) ac_try_echo
=$ac_try;;
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_try") 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_cv_search_bfd_init
=$ac_res
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.
$ac_ext >&5
14462 rm -f core conftest.err conftest.
$ac_objext \
14464 if test "${ac_cv_search_bfd_init+set}" = set; then
14468 if test "${ac_cv_search_bfd_init+set}" = set; then
14471 ac_cv_search_bfd_init
=no
14473 rm conftest.
$ac_ext
14474 LIBS
=$ac_func_search_save_LIBS
14476 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14477 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14478 ac_res
=$ac_cv_search_bfd_init
14479 if test "$ac_res" != no
; then
14480 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14484 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14485 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14486 if test "${ac_cv_search_op_open_agent+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14489 ac_func_search_save_LIBS
=$LIBS
14490 cat >conftest.
$ac_ext <<_ACEOF
14493 cat confdefs.h
>>conftest.
$ac_ext
14494 cat >>conftest.
$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14497 /* Override any GCC internal prototype to avoid an error.
14498 Use char because int might match the return type of a GCC
14499 builtin and then its argument prototype would still apply. */
14503 char op_open_agent ();
14507 return op_open_agent ();
14512 for ac_lib
in '' opagent
; do
14513 if test -z "$ac_lib"; then
14514 ac_res
="none required"
14517 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14519 rm -f conftest.
$ac_objext conftest
$ac_exeext
14520 if { (ac_try
="$ac_link"
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_link") 2>conftest.er1
14528 grep -v '^ *+' conftest.er1 >conftest.err
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14534 { (case "(($ac_try" in
14535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14536 *) ac_try_echo
=$ac_try;;
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_try") 2>&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; } &&
14543 { ac_try
='test -s conftest$ac_exeext'
14544 { (case "(($ac_try" in
14545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_try") 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; }; then
14553 ac_cv_search_op_open_agent=$ac_res
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14561 rm -f core conftest.err conftest.$ac_objext \
14563 if test "${ac_cv_search_op_open_agent+set}" = set; then
14567 if test "${ac_cv_search_op_open_agent+set}" = set; then
14570 ac_cv_search_op_open_agent=no
14572 rm conftest.$ac_ext
14573 LIBS=$ac_func_search_save_LIBS
14575 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14576 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14577 ac_res=$ac_cv_search_op_open_agent
14578 if test "$ac_res" != no; then
14579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14583 echo "Error! You need to have libopagent around."
14588 if test "${ac_cv_header_opagent_h+set}" = set; then
14589 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14590 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14591 if test "${ac_cv_header_opagent_h+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14595 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14597 # Is the header compilable?
14598 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14599 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14600 cat >conftest.$ac_ext <<_ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 $ac_includes_default
14607 #include <opagent.h>
14609 rm -f conftest.$ac_objext
14610 if { (ac_try="$ac_compile"
14611 case "(($ac_try" in
14612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14613 *) ac_try_echo
=$ac_try;;
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_compile") 2>conftest.er1
14618 grep -v '^ *+' conftest.er1
>conftest.err
14620 cat conftest.err
>&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
14623 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14624 { (case "(($ac_try" in
14625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14626 *) ac_try_echo=$ac_try;;
14628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14629 (eval "$ac_try") 2>&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; } &&
14633 { ac_try='test -s conftest.$ac_objext'
14634 { (case "(($ac_try" in
14635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14636 *) ac_try_echo
=$ac_try;;
14638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639 (eval "$ac_try") 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
14643 ac_header_compiler
=yes
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.
$ac_ext >&5
14648 ac_header_compiler
=no
14651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14653 echo "${ECHO_T}$ac_header_compiler" >&6; }
14655 # Is the header present?
14656 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14657 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14658 cat >conftest.
$ac_ext <<_ACEOF
14661 cat confdefs.h
>>conftest.
$ac_ext
14662 cat >>conftest.
$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664 #include <opagent.h>
14666 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14667 case "(($ac_try" in
14668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14674 grep -v '^ *+' conftest.er1 >conftest.err
14676 cat conftest.err >&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } >/dev/null; then
14679 if test -s conftest.err; then
14680 ac_cpp_err=$ac_c_preproc_warn_flag
14681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14688 if test -z "$ac_cpp_err"; then
14689 ac_header_preproc=yes
14691 echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14694 ac_header_preproc=no
14697 rm -f conftest.err conftest.$ac_ext
14698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14699 echo "${ECHO_T}$ac_header_preproc" >&6; }
14701 # So? What about this header?
14702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14704 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14705 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14706 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14707 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14708 ac_header_preproc=yes
14711 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14712 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14714 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14715 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14716 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14717 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14718 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14719 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14720 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14721 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14722 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14724 ## ----------------------------------- ##
14725 ## Report this to llvmbugs@cs.uiuc.edu ##
14726 ## ----------------------------------- ##
14728 ) | sed "s/^/$as_me: WARNING: /" >&2
14731 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14732 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14733 if test "${ac_cv_header_opagent_h+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 ac_cv_header_opagent_h=$ac_header_preproc
14738 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14739 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14742 if test $ac_cv_header_opagent_h = yes; then
14746 echo "Error! You need to have opagent.h around."
14762 cat >>confdefs.h <<_ACEOF
14763 #define USE_OPROFILE $USE_OPROFILE
14773 ac_header_dirent=no
14774 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14775 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
14776 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14777 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 cat >conftest.$ac_ext <<_ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14787 #include <sys/types.h>
14799 rm -f conftest.$ac_objext
14800 if { (ac_try="$ac_compile"
14801 case "(($ac_try" in
14802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14803 *) ac_try_echo
=$ac_try;;
14805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14806 (eval "$ac_compile") 2>conftest.er1
14808 grep -v '^ *+' conftest.er1
>conftest.err
14810 cat conftest.err
>&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
14813 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14814 { (case "(($ac_try" in
14815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_try") 2>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; } &&
14823 { ac_try='test -s conftest.$ac_objext'
14824 { (case "(($ac_try" in
14825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14826 *) ac_try_echo
=$ac_try;;
14828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829 (eval "$ac_try") 2>&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
14833 eval "$as_ac_Header=yes"
14835 echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.
$ac_ext >&5
14838 eval "$as_ac_Header=no"
14841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14843 ac_res
=`eval echo '${'$as_ac_Header'}'`
14844 { echo "$as_me:$LINENO: result: $ac_res" >&5
14845 echo "${ECHO_T}$ac_res" >&6; }
14846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14847 cat >>confdefs.h
<<_ACEOF
14848 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14851 ac_header_dirent
=$ac_hdr; break
14855 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14856 if test $ac_header_dirent = dirent.h
; then
14857 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14858 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14859 if test "${ac_cv_search_opendir+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 ac_func_search_save_LIBS
=$LIBS
14863 cat >conftest.
$ac_ext <<_ACEOF
14866 cat confdefs.h
>>conftest.
$ac_ext
14867 cat >>conftest.
$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14870 /* Override any GCC internal prototype to avoid an error.
14871 Use char because int might match the return type of a GCC
14872 builtin and then its argument prototype would still apply. */
14885 for ac_lib
in '' dir
; do
14886 if test -z "$ac_lib"; then
14887 ac_res
="none required"
14890 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14892 rm -f conftest.
$ac_objext conftest
$ac_exeext
14893 if { (ac_try
="$ac_link"
14894 case "(($ac_try" in
14895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899 (eval "$ac_link") 2>conftest.er1
14901 grep -v '^ *+' conftest.er1 >conftest.err
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } &&
14906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14907 { (case "(($ac_try" in
14908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14909 *) ac_try_echo
=$ac_try;;
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912 (eval "$ac_try") 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; } &&
14916 { ac_try
='test -s conftest$ac_exeext'
14917 { (case "(($ac_try" in
14918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14919 *) ac_try_echo=$ac_try;;
14921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14922 (eval "$ac_try") 2>&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; }; then
14926 ac_cv_search_opendir=$ac_res
14928 echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.$ac_ext >&5
14934 rm -f core conftest.err conftest.$ac_objext \
14936 if test "${ac_cv_search_opendir+set}" = set; then
14940 if test "${ac_cv_search_opendir+set}" = set; then
14943 ac_cv_search_opendir=no
14945 rm conftest.$ac_ext
14946 LIBS=$ac_func_search_save_LIBS
14948 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14949 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14950 ac_res=$ac_cv_search_opendir
14951 if test "$ac_res" != no; then
14952 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14957 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14958 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14959 if test "${ac_cv_search_opendir+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14962 ac_func_search_save_LIBS=$LIBS
14963 cat >conftest.$ac_ext <<_ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14970 /* Override any GCC internal prototype to avoid an error.
14971 Use char because int might match the return type of a GCC
14972 builtin and then its argument prototype would still apply. */
14985 for ac_lib in '' x; do
14986 if test -z "$ac_lib"; then
14987 ac_res="none required"
14990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14992 rm -f conftest.$ac_objext conftest$ac_exeext
14993 if { (ac_try="$ac_link"
14994 case "(($ac_try" in
14995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14996 *) ac_try_echo
=$ac_try;;
14998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999 (eval "$ac_link") 2>conftest.er1
15001 grep -v '^ *+' conftest.er1
>conftest.err
15003 cat conftest.err
>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
15006 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15007 { (case "(($ac_try" in
15008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_try") 2>&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; } &&
15016 { ac_try='test -s conftest$ac_exeext'
15017 { (case "(($ac_try" in
15018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15019 *) ac_try_echo
=$ac_try;;
15021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_try") 2>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 ac_cv_search_opendir
=$ac_res
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.
$ac_ext >&5
15034 rm -f core conftest.err conftest.
$ac_objext \
15036 if test "${ac_cv_search_opendir+set}" = set; then
15040 if test "${ac_cv_search_opendir+set}" = set; then
15043 ac_cv_search_opendir
=no
15045 rm conftest.
$ac_ext
15046 LIBS
=$ac_func_search_save_LIBS
15048 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15049 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15050 ac_res
=$ac_cv_search_opendir
15051 if test "$ac_res" != no
; then
15052 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15058 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15059 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15060 if test "${ac_cv_header_mmap_anon+set}" = set; then
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
15064 ac_cpp
='$CPP $CPPFLAGS'
15065 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15066 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15067 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15069 cat >conftest.
$ac_ext <<_ACEOF
15072 cat confdefs.h
>>conftest.
$ac_ext
15073 cat >>conftest.
$ac_ext <<_ACEOF
15074 /* end confdefs.h. */
15075 #include <sys/mman.h>
15076 #include <unistd.h>
15081 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15086 rm -f conftest.
$ac_objext
15087 if { (ac_try
="$ac_compile"
15088 case "(($ac_try" in
15089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_compile") 2>conftest.er1
15095 grep -v '^ *+' conftest.er1 >conftest.err
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } &&
15100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15101 { (case "(($ac_try" in
15102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15103 *) ac_try_echo
=$ac_try;;
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_try") 2>&5
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; } &&
15110 { ac_try
='test -s conftest.$ac_objext'
15111 { (case "(($ac_try" in
15112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15113 *) ac_try_echo=$ac_try;;
15115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15116 (eval "$ac_try") 2>&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }; then
15120 ac_cv_header_mmap_anon=yes
15122 echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15125 ac_cv_header_mmap_anon=no
15128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130 ac_cpp='$CPP $CPPFLAGS'
15131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15137 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15138 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15139 if test "$ac_cv_header_mmap_anon" = yes; then
15141 cat >>confdefs.h <<\_ACEOF
15142 #define HAVE_MMAP_ANONYMOUS 1
15147 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15148 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15149 if test "${ac_cv_header_stat_broken+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 cat >conftest.$ac_ext <<_ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 #include <sys/types.h>
15159 #include <sys/stat.h>
15161 #if defined S_ISBLK && defined S_IFDIR
15162 # if S_ISBLK (S_IFDIR)
15167 #if defined S_ISBLK && defined S_IFCHR
15168 # if S_ISBLK (S_IFCHR)
15173 #if defined S_ISLNK && defined S_IFREG
15174 # if S_ISLNK (S_IFREG)
15179 #if defined S_ISSOCK && defined S_IFREG
15180 # if S_ISSOCK (S_IFREG)
15186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15187 $EGREP "You lose" >/dev/null 2>&1; then
15188 ac_cv_header_stat_broken=yes
15190 ac_cv_header_stat_broken=no
15195 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15196 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15197 if test $ac_cv_header_stat_broken = yes; then
15199 cat >>confdefs.h <<\_ACEOF
15200 #define STAT_MACROS_BROKEN 1
15205 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15206 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15207 if test "${ac_cv_header_stdc+set}" = set; then
15208 echo $ECHO_N "(cached) $ECHO_C" >&6
15210 cat >conftest.$ac_ext <<_ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h. */
15216 #include <stdlib.h>
15217 #include <stdarg.h>
15218 #include <string.h>
15229 rm -f conftest.$ac_objext
15230 if { (ac_try="$ac_compile"
15231 case "(($ac_try" in
15232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15233 *) ac_try_echo
=$ac_try;;
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_compile") 2>conftest.er1
15238 grep -v '^ *+' conftest.er1
>conftest.err
15240 cat conftest.err
>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15244 { (case "(($ac_try" in
15245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_try") 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try='test -s conftest.$ac_objext'
15254 { (case "(($ac_try" in
15255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15256 *) ac_try_echo
=$ac_try;;
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259 (eval "$ac_try") 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 ac_cv_header_stdc
=yes
15265 echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.
$ac_ext >&5
15268 ac_cv_header_stdc
=no
15271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15273 if test $ac_cv_header_stdc = yes; then
15274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15275 cat >conftest.
$ac_ext <<_ACEOF
15278 cat confdefs.h
>>conftest.
$ac_ext
15279 cat >>conftest.
$ac_ext <<_ACEOF
15280 /* end confdefs.h. */
15281 #include <string.h>
15284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15285 $EGREP "memchr" >/dev
/null
2>&1; then
15288 ac_cv_header_stdc
=no
15294 if test $ac_cv_header_stdc = yes; then
15295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15296 cat >conftest.
$ac_ext <<_ACEOF
15299 cat confdefs.h
>>conftest.
$ac_ext
15300 cat >>conftest.
$ac_ext <<_ACEOF
15301 /* end confdefs.h. */
15302 #include <stdlib.h>
15305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15306 $EGREP "free" >/dev
/null
2>&1; then
15309 ac_cv_header_stdc
=no
15315 if test $ac_cv_header_stdc = yes; then
15316 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15317 if test "$cross_compiling" = yes; then
15320 cat >conftest.
$ac_ext <<_ACEOF
15323 cat confdefs.h
>>conftest.
$ac_ext
15324 cat >>conftest.
$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15327 #include <stdlib.h>
15328 #if ((' ' & 0x0FF) == 0x020)
15329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15332 # define ISLOWER(c) \
15333 (('a' <= (c) && (c) <= 'i') \
15334 || ('j' <= (c) && (c) <= 'r') \
15335 || ('s' <= (c) && (c) <= 'z'))
15336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15344 for (i = 0; i < 256; i++)
15345 if (XOR (islower (i), ISLOWER (i))
15346 || toupper (i) != TOUPPER (i))
15351 rm -f conftest
$ac_exeext
15352 if { (ac_try
="$ac_link"
15353 case "(($ac_try" in
15354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358 (eval "$ac_link") 2>&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15362 { (case "(($ac_try" in
15363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15364 *) ac_try_echo
=$ac_try;;
15366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15367 (eval "$ac_try") 2>&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
15373 echo "$as_me: program exited with status $ac_status" >&5
15374 echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.
$ac_ext >&5
15377 ( exit $ac_status )
15378 ac_cv_header_stdc
=no
15380 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15386 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15387 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15388 if test $ac_cv_header_stdc = yes; then
15390 cat >>confdefs.h
<<\_ACEOF
15391 #define STDC_HEADERS 1
15396 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15397 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15398 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15399 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 cat >conftest.
$ac_ext <<_ACEOF
15404 cat confdefs.h
>>conftest.
$ac_ext
15405 cat >>conftest.
$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15407 #include <sys/types.h>
15408 #include <sys/wait.h>
15409 #ifndef WEXITSTATUS
15410 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15413 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15421 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15426 rm -f conftest.
$ac_objext
15427 if { (ac_try
="$ac_compile"
15428 case "(($ac_try" in
15429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_compile") 2>conftest.er1
15435 grep -v '^ *+' conftest.er1 >conftest.err
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } &&
15440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15441 { (case "(($ac_try" in
15442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15443 *) ac_try_echo
=$ac_try;;
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_try") 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; } &&
15450 { ac_try
='test -s conftest.$ac_objext'
15451 { (case "(($ac_try" in
15452 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_try") 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15460 ac_cv_header_sys_wait_h=yes
15462 echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15465 ac_cv_header_sys_wait_h=no
15468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15470 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15471 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15472 if test $ac_cv_header_sys_wait_h = yes; then
15474 cat >>confdefs.h <<\_ACEOF
15475 #define HAVE_SYS_WAIT_H 1
15480 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15481 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15482 if test "${ac_cv_header_time+set}" = set; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15485 cat >conftest.$ac_ext <<_ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15491 #include <sys/types.h>
15492 #include <sys/time.h>
15498 if ((struct tm *) 0)
15504 rm -f conftest.$ac_objext
15505 if { (ac_try="$ac_compile"
15506 case "(($ac_try" in
15507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15508 *) ac_try_echo
=$ac_try;;
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511 (eval "$ac_compile") 2>conftest.er1
15513 grep -v '^ *+' conftest.er1
>conftest.err
15515 cat conftest.err
>&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } &&
15518 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15519 { (case "(($ac_try" in
15520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_try") 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; } &&
15528 { ac_try='test -s conftest.$ac_objext'
15529 { (case "(($ac_try" in
15530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15531 *) ac_try_echo
=$ac_try;;
15533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534 (eval "$ac_try") 2>&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_cv_header_time
=yes
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.
$ac_ext >&5
15543 ac_cv_header_time
=no
15546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15548 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15549 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15550 if test $ac_cv_header_time = yes; then
15552 cat >>confdefs.h
<<\_ACEOF
15553 #define TIME_WITH_SYS_TIME 1
15565 for ac_header
in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15567 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15568 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15571 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 ac_res
=`eval echo '${'$as_ac_Header'}'`
15575 { echo "$as_me:$LINENO: result: $ac_res" >&5
15576 echo "${ECHO_T}$ac_res" >&6; }
15578 # Is the header compilable?
15579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15581 cat >conftest.
$ac_ext <<_ACEOF
15584 cat confdefs.h
>>conftest.
$ac_ext
15585 cat >>conftest.
$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15587 $ac_includes_default
15588 #include <$ac_header>
15590 rm -f conftest.
$ac_objext
15591 if { (ac_try
="$ac_compile"
15592 case "(($ac_try" in
15593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597 (eval "$ac_compile") 2>conftest.er1
15599 grep -v '^ *+' conftest.er1 >conftest.err
15601 cat conftest.err >&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } &&
15604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15605 { (case "(($ac_try" in
15606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15607 *) ac_try_echo
=$ac_try;;
15609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610 (eval "$ac_try") 2>&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; } &&
15614 { ac_try
='test -s conftest.$ac_objext'
15615 { (case "(($ac_try" in
15616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15617 *) ac_try_echo=$ac_try;;
15619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15620 (eval "$ac_try") 2>&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; }; then
15624 ac_header_compiler=yes
15626 echo "$as_me: failed program was:" >&5
15627 sed 's/^/| /' conftest.$ac_ext >&5
15629 ac_header_compiler=no
15632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15634 echo "${ECHO_T}$ac_header_compiler" >&6; }
15636 # Is the header present?
15637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15639 cat >conftest.$ac_ext <<_ACEOF
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h. */
15645 #include <$ac_header>
15647 if { (ac_try="$ac_cpp conftest.$ac_ext"
15648 case "(($ac_try" in
15649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15650 *) ac_try_echo
=$ac_try;;
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15655 grep -v '^ *+' conftest.er1
>conftest.err
15657 cat conftest.err
>&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } >/dev
/null
; then
15660 if test -s conftest.err
; then
15661 ac_cpp_err
=$ac_c_preproc_warn_flag
15662 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15669 if test -z "$ac_cpp_err"; then
15670 ac_header_preproc
=yes
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.
$ac_ext >&5
15675 ac_header_preproc
=no
15678 rm -f conftest.err conftest.
$ac_ext
15679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15680 echo "${ECHO_T}$ac_header_preproc" >&6; }
15682 # So? What about this header?
15683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15689 ac_header_preproc
=yes
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15705 ## ----------------------------------- ##
15706 ## Report this to llvmbugs@cs.uiuc.edu ##
15707 ## ----------------------------------- ##
15709 ) |
sed "s/^/$as_me: WARNING: /" >&2
15712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15714 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15715 echo $ECHO_N "(cached) $ECHO_C" >&6
15717 eval "$as_ac_Header=\$ac_header_preproc"
15719 ac_res
=`eval echo '${'$as_ac_Header'}'`
15720 { echo "$as_me:$LINENO: result: $ac_res" >&5
15721 echo "${ECHO_T}$ac_res" >&6; }
15724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15725 cat >>confdefs.h
<<_ACEOF
15726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15739 for ac_header
in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15741 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15742 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15745 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 ac_res
=`eval echo '${'$as_ac_Header'}'`
15749 { echo "$as_me:$LINENO: result: $ac_res" >&5
15750 echo "${ECHO_T}$ac_res" >&6; }
15752 # Is the header compilable?
15753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15755 cat >conftest.
$ac_ext <<_ACEOF
15758 cat confdefs.h
>>conftest.
$ac_ext
15759 cat >>conftest.
$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 $ac_includes_default
15762 #include <$ac_header>
15764 rm -f conftest.
$ac_objext
15765 if { (ac_try
="$ac_compile"
15766 case "(($ac_try" in
15767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_compile") 2>conftest.er1
15773 grep -v '^ *+' conftest.er1 >conftest.err
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } &&
15778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15779 { (case "(($ac_try" in
15780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15781 *) ac_try_echo
=$ac_try;;
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_try") 2>&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; } &&
15788 { ac_try
='test -s conftest.$ac_objext'
15789 { (case "(($ac_try" in
15790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_try") 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }; then
15798 ac_header_compiler=yes
15800 echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15803 ac_header_compiler=no
15806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15808 echo "${ECHO_T}$ac_header_compiler" >&6; }
15810 # Is the header present?
15811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15813 cat >conftest.$ac_ext <<_ACEOF
15816 cat confdefs.h >>conftest.$ac_ext
15817 cat >>conftest.$ac_ext <<_ACEOF
15818 /* end confdefs.h. */
15819 #include <$ac_header>
15821 if { (ac_try="$ac_cpp conftest.$ac_ext"
15822 case "(($ac_try" in
15823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15824 *) ac_try_echo
=$ac_try;;
15826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15829 grep -v '^ *+' conftest.er1
>conftest.err
15831 cat conftest.err
>&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } >/dev
/null
; then
15834 if test -s conftest.err
; then
15835 ac_cpp_err
=$ac_c_preproc_warn_flag
15836 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15843 if test -z "$ac_cpp_err"; then
15844 ac_header_preproc
=yes
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.
$ac_ext >&5
15849 ac_header_preproc
=no
15852 rm -f conftest.err conftest.
$ac_ext
15853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15854 echo "${ECHO_T}$ac_header_preproc" >&6; }
15856 # So? What about this header?
15857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15863 ac_header_preproc
=yes
15866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15879 ## ----------------------------------- ##
15880 ## Report this to llvmbugs@cs.uiuc.edu ##
15881 ## ----------------------------------- ##
15883 ) |
sed "s/^/$as_me: WARNING: /" >&2
15886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15888 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 eval "$as_ac_Header=\$ac_header_preproc"
15893 ac_res
=`eval echo '${'$as_ac_Header'}'`
15894 { echo "$as_me:$LINENO: result: $ac_res" >&5
15895 echo "${ECHO_T}$ac_res" >&6; }
15898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15899 cat >>confdefs.h
<<_ACEOF
15900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15909 for ac_header
in utime.h windows.h
15911 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15912 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15915 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15916 echo $ECHO_N "(cached) $ECHO_C" >&6
15918 ac_res
=`eval echo '${'$as_ac_Header'}'`
15919 { echo "$as_me:$LINENO: result: $ac_res" >&5
15920 echo "${ECHO_T}$ac_res" >&6; }
15922 # Is the header compilable?
15923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15925 cat >conftest.
$ac_ext <<_ACEOF
15928 cat confdefs.h
>>conftest.
$ac_ext
15929 cat >>conftest.
$ac_ext <<_ACEOF
15930 /* end confdefs.h. */
15931 $ac_includes_default
15932 #include <$ac_header>
15934 rm -f conftest.
$ac_objext
15935 if { (ac_try
="$ac_compile"
15936 case "(($ac_try" in
15937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941 (eval "$ac_compile") 2>conftest.er1
15943 grep -v '^ *+' conftest.er1 >conftest.err
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } &&
15948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15949 { (case "(($ac_try" in
15950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15951 *) ac_try_echo
=$ac_try;;
15953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954 (eval "$ac_try") 2>&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try
='test -s conftest.$ac_objext'
15959 { (case "(($ac_try" in
15960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_try") 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 ac_header_compiler=yes
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 ac_header_compiler=no
15976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15978 echo "${ECHO_T}$ac_header_compiler" >&6; }
15980 # Is the header present?
15981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15983 cat >conftest.$ac_ext <<_ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h. */
15989 #include <$ac_header>
15991 if { (ac_try="$ac_cpp conftest.$ac_ext"
15992 case "(($ac_try" in
15993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15994 *) ac_try_echo
=$ac_try;;
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15999 grep -v '^ *+' conftest.er1
>conftest.err
16001 cat conftest.err
>&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } >/dev
/null
; then
16004 if test -s conftest.err
; then
16005 ac_cpp_err
=$ac_c_preproc_warn_flag
16006 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16013 if test -z "$ac_cpp_err"; then
16014 ac_header_preproc
=yes
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.
$ac_ext >&5
16019 ac_header_preproc
=no
16022 rm -f conftest.err conftest.
$ac_ext
16023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16024 echo "${ECHO_T}$ac_header_preproc" >&6; }
16026 # So? What about this header?
16027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16033 ac_header_preproc
=yes
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16049 ## ----------------------------------- ##
16050 ## Report this to llvmbugs@cs.uiuc.edu ##
16051 ## ----------------------------------- ##
16053 ) |
sed "s/^/$as_me: WARNING: /" >&2
16056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16058 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16059 echo $ECHO_N "(cached) $ECHO_C" >&6
16061 eval "$as_ac_Header=\$ac_header_preproc"
16063 ac_res
=`eval echo '${'$as_ac_Header'}'`
16064 { echo "$as_me:$LINENO: result: $ac_res" >&5
16065 echo "${ECHO_T}$ac_res" >&6; }
16068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16069 cat >>confdefs.h
<<_ACEOF
16070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16081 for ac_header
in sys
/mman.h sys
/param.h sys
/resource.h sys
/time.h
16083 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16084 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16087 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16088 echo $ECHO_N "(cached) $ECHO_C" >&6
16090 ac_res
=`eval echo '${'$as_ac_Header'}'`
16091 { echo "$as_me:$LINENO: result: $ac_res" >&5
16092 echo "${ECHO_T}$ac_res" >&6; }
16094 # Is the header compilable?
16095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16097 cat >conftest.
$ac_ext <<_ACEOF
16100 cat confdefs.h
>>conftest.
$ac_ext
16101 cat >>conftest.
$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 $ac_includes_default
16104 #include <$ac_header>
16106 rm -f conftest.
$ac_objext
16107 if { (ac_try
="$ac_compile"
16108 case "(($ac_try" in
16109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16110 *) ac_try_echo=$ac_try;;
16112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16113 (eval "$ac_compile") 2>conftest.er1
16115 grep -v '^ *+' conftest.er1 >conftest.err
16117 cat conftest.err >&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); } &&
16120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16121 { (case "(($ac_try" in
16122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16123 *) ac_try_echo
=$ac_try;;
16125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126 (eval "$ac_try") 2>&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; } &&
16130 { ac_try
='test -s conftest.$ac_objext'
16131 { (case "(($ac_try" in
16132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16133 *) ac_try_echo=$ac_try;;
16135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16136 (eval "$ac_try") 2>&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; }; then
16140 ac_header_compiler=yes
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16145 ac_header_compiler=no
16148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16150 echo "${ECHO_T}$ac_header_compiler" >&6; }
16152 # Is the header present?
16153 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16155 cat >conftest.$ac_ext <<_ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16161 #include <$ac_header>
16163 if { (ac_try="$ac_cpp conftest.$ac_ext"
16164 case "(($ac_try" in
16165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16166 *) ac_try_echo
=$ac_try;;
16168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16171 grep -v '^ *+' conftest.er1
>conftest.err
16173 cat conftest.err
>&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } >/dev
/null
; then
16176 if test -s conftest.err
; then
16177 ac_cpp_err
=$ac_c_preproc_warn_flag
16178 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16185 if test -z "$ac_cpp_err"; then
16186 ac_header_preproc
=yes
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.
$ac_ext >&5
16191 ac_header_preproc
=no
16194 rm -f conftest.err conftest.
$ac_ext
16195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16196 echo "${ECHO_T}$ac_header_preproc" >&6; }
16198 # So? What about this header?
16199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16205 ac_header_preproc
=yes
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16221 ## ----------------------------------- ##
16222 ## Report this to llvmbugs@cs.uiuc.edu ##
16223 ## ----------------------------------- ##
16225 ) |
sed "s/^/$as_me: WARNING: /" >&2
16228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16230 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16233 eval "$as_ac_Header=\$ac_header_preproc"
16235 ac_res
=`eval echo '${'$as_ac_Header'}'`
16236 { echo "$as_me:$LINENO: result: $ac_res" >&5
16237 echo "${ECHO_T}$ac_res" >&6; }
16240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16241 cat >>confdefs.h
<<_ACEOF
16242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16253 for ac_header
in sys
/types.h sys
/ioctl.h malloc
/malloc.h mach
/mach.h
16255 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16256 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16259 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16260 echo $ECHO_N "(cached) $ECHO_C" >&6
16262 ac_res
=`eval echo '${'$as_ac_Header'}'`
16263 { echo "$as_me:$LINENO: result: $ac_res" >&5
16264 echo "${ECHO_T}$ac_res" >&6; }
16266 # Is the header compilable?
16267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16269 cat >conftest.
$ac_ext <<_ACEOF
16272 cat confdefs.h
>>conftest.
$ac_ext
16273 cat >>conftest.
$ac_ext <<_ACEOF
16274 /* end confdefs.h. */
16275 $ac_includes_default
16276 #include <$ac_header>
16278 rm -f conftest.
$ac_objext
16279 if { (ac_try
="$ac_compile"
16280 case "(($ac_try" in
16281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16282 *) ac_try_echo=$ac_try;;
16284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285 (eval "$ac_compile") 2>conftest.er1
16287 grep -v '^ *+' conftest.er1 >conftest.err
16289 cat conftest.err >&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } &&
16292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16293 { (case "(($ac_try" in
16294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16295 *) ac_try_echo
=$ac_try;;
16297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298 (eval "$ac_try") 2>&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; } &&
16302 { ac_try
='test -s conftest.$ac_objext'
16303 { (case "(($ac_try" in
16304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_try") 2>&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; }; then
16312 ac_header_compiler=yes
16314 echo "$as_me: failed program was:" >&5
16315 sed 's/^/| /' conftest.$ac_ext >&5
16317 ac_header_compiler=no
16320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16322 echo "${ECHO_T}$ac_header_compiler" >&6; }
16324 # Is the header present?
16325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16327 cat >conftest.$ac_ext <<_ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16333 #include <$ac_header>
16335 if { (ac_try="$ac_cpp conftest.$ac_ext"
16336 case "(($ac_try" in
16337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16338 *) ac_try_echo
=$ac_try;;
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16343 grep -v '^ *+' conftest.er1
>conftest.err
16345 cat conftest.err
>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } >/dev
/null
; then
16348 if test -s conftest.err
; then
16349 ac_cpp_err
=$ac_c_preproc_warn_flag
16350 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16357 if test -z "$ac_cpp_err"; then
16358 ac_header_preproc
=yes
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.
$ac_ext >&5
16363 ac_header_preproc
=no
16366 rm -f conftest.err conftest.
$ac_ext
16367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16368 echo "${ECHO_T}$ac_header_preproc" >&6; }
16370 # So? What about this header?
16371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16377 ac_header_preproc
=yes
16380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16393 ## ----------------------------------- ##
16394 ## Report this to llvmbugs@cs.uiuc.edu ##
16395 ## ----------------------------------- ##
16397 ) |
sed "s/^/$as_me: WARNING: /" >&2
16400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16402 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16405 eval "$as_ac_Header=\$ac_header_preproc"
16407 ac_res
=`eval echo '${'$as_ac_Header'}'`
16408 { echo "$as_me:$LINENO: result: $ac_res" >&5
16409 echo "${ECHO_T}$ac_res" >&6; }
16412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16413 cat >>confdefs.h
<<_ACEOF
16414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16422 for ac_header
in valgrind
/valgrind.h
16424 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16425 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16428 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16429 echo $ECHO_N "(cached) $ECHO_C" >&6
16431 ac_res
=`eval echo '${'$as_ac_Header'}'`
16432 { echo "$as_me:$LINENO: result: $ac_res" >&5
16433 echo "${ECHO_T}$ac_res" >&6; }
16435 # Is the header compilable?
16436 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16438 cat >conftest.
$ac_ext <<_ACEOF
16441 cat confdefs.h
>>conftest.
$ac_ext
16442 cat >>conftest.
$ac_ext <<_ACEOF
16443 /* end confdefs.h. */
16444 $ac_includes_default
16445 #include <$ac_header>
16447 rm -f conftest.
$ac_objext
16448 if { (ac_try
="$ac_compile"
16449 case "(($ac_try" in
16450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16451 *) ac_try_echo=$ac_try;;
16453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454 (eval "$ac_compile") 2>conftest.er1
16456 grep -v '^ *+' conftest.er1 >conftest.err
16458 cat conftest.err >&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } &&
16461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16462 { (case "(($ac_try" in
16463 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16464 *) ac_try_echo
=$ac_try;;
16466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16467 (eval "$ac_try") 2>&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; } &&
16471 { ac_try
='test -s conftest.$ac_objext'
16472 { (case "(($ac_try" in
16473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477 (eval "$ac_try") 2>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; }; then
16481 ac_header_compiler=yes
16483 echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16486 ac_header_compiler=no
16489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16491 echo "${ECHO_T}$ac_header_compiler" >&6; }
16493 # Is the header present?
16494 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16496 cat >conftest.$ac_ext <<_ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16502 #include <$ac_header>
16504 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
16512 grep -v '^ *+' conftest.er1
>conftest.err
16514 cat conftest.err
>&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } >/dev
/null
; then
16517 if test -s conftest.err
; then
16518 ac_cpp_err
=$ac_c_preproc_warn_flag
16519 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16526 if test -z "$ac_cpp_err"; then
16527 ac_header_preproc
=yes
16529 echo "$as_me: failed program was:" >&5
16530 sed 's/^/| /' conftest.
$ac_ext >&5
16532 ac_header_preproc
=no
16535 rm -f conftest.err conftest.
$ac_ext
16536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16537 echo "${ECHO_T}$ac_header_preproc" >&6; }
16539 # So? What about this header?
16540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16546 ac_header_preproc
=yes
16549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16562 ## ----------------------------------- ##
16563 ## Report this to llvmbugs@cs.uiuc.edu ##
16564 ## ----------------------------------- ##
16566 ) |
sed "s/^/$as_me: WARNING: /" >&2
16569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16571 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16572 echo $ECHO_N "(cached) $ECHO_C" >&6
16574 eval "$as_ac_Header=\$ac_header_preproc"
16576 ac_res
=`eval echo '${'$as_ac_Header'}'`
16577 { echo "$as_me:$LINENO: result: $ac_res" >&5
16578 echo "${ECHO_T}$ac_res" >&6; }
16581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16582 cat >>confdefs.h
<<_ACEOF
16583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16590 if test "$ENABLE_THREADS" -eq 1 ; then
16592 for ac_header
in pthread.h
16594 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16595 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16598 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16601 ac_res
=`eval echo '${'$as_ac_Header'}'`
16602 { echo "$as_me:$LINENO: result: $ac_res" >&5
16603 echo "${ECHO_T}$ac_res" >&6; }
16605 # Is the header compilable?
16606 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16608 cat >conftest.
$ac_ext <<_ACEOF
16611 cat confdefs.h
>>conftest.
$ac_ext
16612 cat >>conftest.
$ac_ext <<_ACEOF
16613 /* end confdefs.h. */
16614 $ac_includes_default
16615 #include <$ac_header>
16617 rm -f conftest.
$ac_objext
16618 if { (ac_try
="$ac_compile"
16619 case "(($ac_try" in
16620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_compile") 2>conftest.er1
16626 grep -v '^ *+' conftest.er1 >conftest.err
16628 cat conftest.err >&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
16631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16632 { (case "(($ac_try" in
16633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16634 *) ac_try_echo
=$ac_try;;
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_try") 2>&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; } &&
16641 { ac_try
='test -s conftest.$ac_objext'
16642 { (case "(($ac_try" in
16643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 ac_header_compiler=yes
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656 ac_header_compiler=no
16659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16661 echo "${ECHO_T}$ac_header_compiler" >&6; }
16663 # Is the header present?
16664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16666 cat >conftest.$ac_ext <<_ACEOF
16669 cat confdefs.h >>conftest.$ac_ext
16670 cat >>conftest.$ac_ext <<_ACEOF
16671 /* end confdefs.h. */
16672 #include <$ac_header>
16674 if { (ac_try="$ac_cpp conftest.$ac_ext"
16675 case "(($ac_try" in
16676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16677 *) ac_try_echo
=$ac_try;;
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16682 grep -v '^ *+' conftest.er1
>conftest.err
16684 cat conftest.err
>&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } >/dev
/null
; then
16687 if test -s conftest.err
; then
16688 ac_cpp_err
=$ac_c_preproc_warn_flag
16689 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16696 if test -z "$ac_cpp_err"; then
16697 ac_header_preproc
=yes
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.
$ac_ext >&5
16702 ac_header_preproc
=no
16705 rm -f conftest.err conftest.
$ac_ext
16706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16707 echo "${ECHO_T}$ac_header_preproc" >&6; }
16709 # So? What about this header?
16710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16716 ac_header_preproc
=yes
16719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16732 ## ----------------------------------- ##
16733 ## Report this to llvmbugs@cs.uiuc.edu ##
16734 ## ----------------------------------- ##
16736 ) |
sed "s/^/$as_me: WARNING: /" >&2
16739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16741 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16742 echo $ECHO_N "(cached) $ECHO_C" >&6
16744 eval "$as_ac_Header=\$ac_header_preproc"
16746 ac_res
=`eval echo '${'$as_ac_Header'}'`
16747 { echo "$as_me:$LINENO: result: $ac_res" >&5
16748 echo "${ECHO_T}$ac_res" >&6; }
16751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16752 cat >>confdefs.h
<<_ACEOF
16753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16769 if test "$llvm_cv_enable_libffi" = "yes" ; then
16772 for ac_header
in ffi.h ffi
/ffi.h
16774 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16775 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16778 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16781 ac_res
=`eval echo '${'$as_ac_Header'}'`
16782 { echo "$as_me:$LINENO: result: $ac_res" >&5
16783 echo "${ECHO_T}$ac_res" >&6; }
16785 # Is the header compilable?
16786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16788 cat >conftest.
$ac_ext <<_ACEOF
16791 cat confdefs.h
>>conftest.
$ac_ext
16792 cat >>conftest.
$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16794 $ac_includes_default
16795 #include <$ac_header>
16797 rm -f conftest.
$ac_objext
16798 if { (ac_try
="$ac_compile"
16799 case "(($ac_try" in
16800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16801 *) ac_try_echo=$ac_try;;
16803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804 (eval "$ac_compile") 2>conftest.er1
16806 grep -v '^ *+' conftest.er1 >conftest.err
16808 cat conftest.err >&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } &&
16811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16812 { (case "(($ac_try" in
16813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16814 *) ac_try_echo
=$ac_try;;
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_try") 2>&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; } &&
16821 { ac_try
='test -s conftest.$ac_objext'
16822 { (case "(($ac_try" in
16823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827 (eval "$ac_try") 2>&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; }; then
16831 ac_header_compiler=yes
16833 echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16836 ac_header_compiler=no
16839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16841 echo "${ECHO_T}$ac_header_compiler" >&6; }
16843 # Is the header present?
16844 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16846 cat >conftest.$ac_ext <<_ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h. */
16852 #include <$ac_header>
16854 if { (ac_try="$ac_cpp conftest.$ac_ext"
16855 case "(($ac_try" in
16856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16857 *) ac_try_echo
=$ac_try;;
16859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16862 grep -v '^ *+' conftest.er1
>conftest.err
16864 cat conftest.err
>&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } >/dev
/null
; then
16867 if test -s conftest.err
; then
16868 ac_cpp_err
=$ac_c_preproc_warn_flag
16869 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16876 if test -z "$ac_cpp_err"; then
16877 ac_header_preproc
=yes
16879 echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.
$ac_ext >&5
16882 ac_header_preproc
=no
16885 rm -f conftest.err conftest.
$ac_ext
16886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16887 echo "${ECHO_T}$ac_header_preproc" >&6; }
16889 # So? What about this header?
16890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16896 ac_header_preproc
=yes
16899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16912 ## ----------------------------------- ##
16913 ## Report this to llvmbugs@cs.uiuc.edu ##
16914 ## ----------------------------------- ##
16916 ) |
sed "s/^/$as_me: WARNING: /" >&2
16919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16921 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16922 echo $ECHO_N "(cached) $ECHO_C" >&6
16924 eval "$as_ac_Header=\$ac_header_preproc"
16926 ac_res
=`eval echo '${'$as_ac_Header'}'`
16927 { echo "$as_me:$LINENO: result: $ac_res" >&5
16928 echo "${ECHO_T}$ac_res" >&6; }
16931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16932 cat >>confdefs.h
<<_ACEOF
16933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16943 for ac_header
in CrashReporterClient.h
16945 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16946 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16949 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16950 echo $ECHO_N "(cached) $ECHO_C" >&6
16952 ac_res
=`eval echo '${'$as_ac_Header'}'`
16953 { echo "$as_me:$LINENO: result: $ac_res" >&5
16954 echo "${ECHO_T}$ac_res" >&6; }
16956 # Is the header compilable?
16957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16959 cat >conftest.
$ac_ext <<_ACEOF
16962 cat confdefs.h
>>conftest.
$ac_ext
16963 cat >>conftest.
$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16965 $ac_includes_default
16966 #include <$ac_header>
16968 rm -f conftest.
$ac_objext
16969 if { (ac_try
="$ac_compile"
16970 case "(($ac_try" in
16971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16972 *) ac_try_echo=$ac_try;;
16974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975 (eval "$ac_compile") 2>conftest.er1
16977 grep -v '^ *+' conftest.er1 >conftest.err
16979 cat conftest.err >&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } &&
16982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16983 { (case "(($ac_try" in
16984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16985 *) ac_try_echo
=$ac_try;;
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_try") 2>&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; } &&
16992 { ac_try
='test -s conftest.$ac_objext'
16993 { (case "(($ac_try" in
16994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_try") 2>&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; }; then
17002 ac_header_compiler=yes
17004 echo "$as_me: failed program was:" >&5
17005 sed 's/^/| /' conftest.$ac_ext >&5
17007 ac_header_compiler=no
17010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17012 echo "${ECHO_T}$ac_header_compiler" >&6; }
17014 # Is the header present?
17015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17017 cat >conftest.$ac_ext <<_ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h. */
17023 #include <$ac_header>
17025 if { (ac_try="$ac_cpp conftest.$ac_ext"
17026 case "(($ac_try" in
17027 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17028 *) ac_try_echo
=$ac_try;;
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17033 grep -v '^ *+' conftest.er1
>conftest.err
17035 cat conftest.err
>&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } >/dev
/null
; then
17038 if test -s conftest.err
; then
17039 ac_cpp_err
=$ac_c_preproc_warn_flag
17040 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17047 if test -z "$ac_cpp_err"; then
17048 ac_header_preproc
=yes
17050 echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.
$ac_ext >&5
17053 ac_header_preproc
=no
17056 rm -f conftest.err conftest.
$ac_ext
17057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17058 echo "${ECHO_T}$ac_header_preproc" >&6; }
17060 # So? What about this header?
17061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17067 ac_header_preproc
=yes
17070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17083 ## ----------------------------------- ##
17084 ## Report this to llvmbugs@cs.uiuc.edu ##
17085 ## ----------------------------------- ##
17087 ) |
sed "s/^/$as_me: WARNING: /" >&2
17090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17092 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17095 eval "$as_ac_Header=\$ac_header_preproc"
17097 ac_res
=`eval echo '${'$as_ac_Header'}'`
17098 { echo "$as_me:$LINENO: result: $ac_res" >&5
17099 echo "${ECHO_T}$ac_res" >&6; }
17102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17103 cat >>confdefs.h
<<_ACEOF
17104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17115 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17116 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17117 if test "${ac_cv_huge_val_sanity+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17122 ac_cpp
='$CXXCPP $CPPFLAGS'
17123 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17124 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17125 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17127 ac_save_CXXFLAGS
=$CXXFLAGS
17129 if test "$cross_compiling" = yes; then
17130 ac_cv_huge_val_sanity
=yes
17132 cat >conftest.
$ac_ext <<_ACEOF
17135 cat confdefs.h
>>conftest.
$ac_ext
17136 cat >>conftest.
$ac_ext <<_ACEOF
17137 /* end confdefs.h. */
17142 double x = HUGE_VAL; return x != x;
17147 rm -f conftest
$ac_exeext
17148 if { (ac_try
="$ac_link"
17149 case "(($ac_try" in
17150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_link") 2>&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17158 { (case "(($ac_try" in
17159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17160 *) ac_try_echo
=$ac_try;;
17162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163 (eval "$ac_try") 2>&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
17167 ac_cv_huge_val_sanity
=yes
17169 echo "$as_me: program exited with status $ac_status" >&5
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.
$ac_ext >&5
17173 ( exit $ac_status )
17174 ac_cv_huge_val_sanity
=no
17176 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17180 CXXFLAGS
=$ac_save_CXXFLAGS
17182 ac_cpp
='$CPP $CPPFLAGS'
17183 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17184 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17185 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17189 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17190 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17191 HUGE_VAL_SANITY
=$ac_cv_huge_val_sanity
17194 { echo "$as_me:$LINENO: checking for pid_t" >&5
17195 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17196 if test "${ac_cv_type_pid_t+set}" = set; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17199 cat >conftest.
$ac_ext <<_ACEOF
17202 cat confdefs.h
>>conftest.
$ac_ext
17203 cat >>conftest.
$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17205 $ac_includes_default
17206 typedef pid_t ac__type_new_;
17210 if ((ac__type_new_ *) 0)
17212 if (sizeof (ac__type_new_))
17218 rm -f conftest.
$ac_objext
17219 if { (ac_try
="$ac_compile"
17220 case "(($ac_try" in
17221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_compile") 2>conftest.er1
17227 grep -v '^ *+' conftest.er1 >conftest.err
17229 cat conftest.err >&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } &&
17232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17235 *) ac_try_echo
=$ac_try;;
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; } &&
17242 { ac_try
='test -s conftest.$ac_objext'
17243 { (case "(($ac_try" in
17244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17245 *) ac_try_echo=$ac_try;;
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248 (eval "$ac_try") 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17252 ac_cv_type_pid_t=yes
17254 echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17257 ac_cv_type_pid_t=no
17260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17262 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17263 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17264 if test $ac_cv_type_pid_t = yes; then
17268 cat >>confdefs.h <<_ACEOF
17274 { echo "$as_me:$LINENO: checking for size_t" >&5
17275 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17276 if test "${ac_cv_type_size_t+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17279 cat >conftest.$ac_ext <<_ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h. */
17285 $ac_includes_default
17286 typedef size_t ac__type_new_;
17290 if ((ac__type_new_ *) 0)
17292 if (sizeof (ac__type_new_))
17298 rm -f conftest.$ac_objext
17299 if { (ac_try="$ac_compile"
17300 case "(($ac_try" in
17301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17302 *) ac_try_echo
=$ac_try;;
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305 (eval "$ac_compile") 2>conftest.er1
17307 grep -v '^ *+' conftest.er1
>conftest.err
17309 cat conftest.err
>&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } &&
17312 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17313 { (case "(($ac_try" in
17314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17315 *) ac_try_echo=$ac_try;;
17317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17318 (eval "$ac_try") 2>&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } &&
17322 { ac_try='test -s conftest.$ac_objext'
17323 { (case "(($ac_try" in
17324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17325 *) ac_try_echo
=$ac_try;;
17327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328 (eval "$ac_try") 2>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332 ac_cv_type_size_t
=yes
17334 echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.
$ac_ext >&5
17337 ac_cv_type_size_t
=no
17340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17342 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17343 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17344 if test $ac_cv_type_size_t = yes; then
17348 cat >>confdefs.h
<<_ACEOF
17349 #define size_t unsigned int
17355 cat >>confdefs.h
<<_ACEOF
17356 #define RETSIGTYPE void
17359 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17360 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17361 if test "${ac_cv_struct_tm+set}" = set; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 cat >conftest.
$ac_ext <<_ACEOF
17367 cat confdefs.h
>>conftest.
$ac_ext
17368 cat >>conftest.
$ac_ext <<_ACEOF
17369 /* end confdefs.h. */
17370 #include <sys/types.h>
17376 struct tm *tp; tp->tm_sec;
17381 rm -f conftest.
$ac_objext
17382 if { (ac_try
="$ac_compile"
17383 case "(($ac_try" in
17384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_compile") 2>conftest.er1
17390 grep -v '^ *+' conftest.er1 >conftest.err
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
17395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17396 { (case "(($ac_try" in
17397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17398 *) ac_try_echo
=$ac_try;;
17400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_try") 2>&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
17405 { ac_try
='test -s conftest.$ac_objext'
17406 { (case "(($ac_try" in
17407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_try") 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415 ac_cv_struct_tm=time.h
17417 echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17420 ac_cv_struct_tm=sys/time.h
17423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17425 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17426 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17427 if test $ac_cv_struct_tm = sys/time.h; then
17429 cat >>confdefs.h <<\_ACEOF
17430 #define TM_IN_SYS_TIME 1
17435 { echo "$as_me:$LINENO: checking for int64_t" >&5
17436 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17437 if test "${ac_cv_type_int64_t+set}" = set; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17440 cat >conftest.$ac_ext <<_ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17446 $ac_includes_default
17447 typedef int64_t ac__type_new_;
17451 if ((ac__type_new_ *) 0)
17453 if (sizeof (ac__type_new_))
17459 rm -f conftest.$ac_objext
17460 if { (ac_try="$ac_compile"
17461 case "(($ac_try" in
17462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17463 *) ac_try_echo
=$ac_try;;
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_compile") 2>conftest.er1
17468 grep -v '^ *+' conftest.er1
>conftest.err
17470 cat conftest.err
>&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } &&
17473 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17474 { (case "(($ac_try" in
17475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_try") 2>&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; } &&
17483 { ac_try='test -s conftest.$ac_objext'
17484 { (case "(($ac_try" in
17485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17486 *) ac_try_echo
=$ac_try;;
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_try") 2>&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 ac_cv_type_int64_t
=yes
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.
$ac_ext >&5
17498 ac_cv_type_int64_t
=no
17501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17503 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17504 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17505 if test $ac_cv_type_int64_t = yes; then
17507 cat >>confdefs.h
<<_ACEOF
17508 #define HAVE_INT64_T 1
17513 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17514 echo "$as_me: error: Type int64_t required but not found" >&2;}
17515 { (exit 1); exit 1; }; }
17518 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17519 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17520 if test "${ac_cv_type_uint64_t+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17523 cat >conftest.
$ac_ext <<_ACEOF
17526 cat confdefs.h
>>conftest.
$ac_ext
17527 cat >>conftest.
$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17529 $ac_includes_default
17530 typedef uint64_t ac__type_new_;
17534 if ((ac__type_new_ *) 0)
17536 if (sizeof (ac__type_new_))
17542 rm -f conftest.
$ac_objext
17543 if { (ac_try
="$ac_compile"
17544 case "(($ac_try" in
17545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_compile") 2>conftest.er1
17551 grep -v '^ *+' conftest.er1 >conftest.err
17553 cat conftest.err >&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } &&
17556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17557 { (case "(($ac_try" in
17558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17559 *) ac_try_echo
=$ac_try;;
17561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_try") 2>&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; } &&
17566 { ac_try
='test -s conftest.$ac_objext'
17567 { (case "(($ac_try" in
17568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17569 *) ac_try_echo=$ac_try;;
17571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17572 (eval "$ac_try") 2>&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17576 ac_cv_type_uint64_t=yes
17578 echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17581 ac_cv_type_uint64_t=no
17584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17586 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17587 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17588 if test $ac_cv_type_uint64_t = yes; then
17590 cat >>confdefs.h <<_ACEOF
17591 #define HAVE_UINT64_T 1
17596 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17597 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17598 if test "${ac_cv_type_u_int64_t+set}" = set; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 cat >conftest.$ac_ext <<_ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17607 $ac_includes_default
17608 typedef u_int64_t ac__type_new_;
17612 if ((ac__type_new_ *) 0)
17614 if (sizeof (ac__type_new_))
17620 rm -f conftest.$ac_objext
17621 if { (ac_try="$ac_compile"
17622 case "(($ac_try" in
17623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17624 *) ac_try_echo
=$ac_try;;
17626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17627 (eval "$ac_compile") 2>conftest.er1
17629 grep -v '^ *+' conftest.er1
>conftest.err
17631 cat conftest.err
>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } &&
17634 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17635 { (case "(($ac_try" in
17636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17637 *) ac_try_echo=$ac_try;;
17639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640 (eval "$ac_try") 2>&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; } &&
17644 { ac_try='test -s conftest.$ac_objext'
17645 { (case "(($ac_try" in
17646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17647 *) ac_try_echo
=$ac_try;;
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_try") 2>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; }; then
17654 ac_cv_type_u_int64_t
=yes
17656 echo "$as_me: failed program was:" >&5
17657 sed 's/^/| /' conftest.
$ac_ext >&5
17659 ac_cv_type_u_int64_t
=no
17662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17664 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17665 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17666 if test $ac_cv_type_u_int64_t = yes; then
17668 cat >>confdefs.h
<<_ACEOF
17669 #define HAVE_U_INT64_T 1
17674 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17675 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17676 { (exit 1); exit 1; }; }
17690 for ac_func
in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17692 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17695 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17696 echo $ECHO_N "(cached) $ECHO_C" >&6
17698 cat >conftest.
$ac_ext <<_ACEOF
17701 cat confdefs.h
>>conftest.
$ac_ext
17702 cat >>conftest.
$ac_ext <<_ACEOF
17703 /* end confdefs.h. */
17704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17706 #define $ac_func innocuous_$ac_func
17708 /* System header to define __stub macros and hopefully few prototypes,
17709 which can conflict with char $ac_func (); below.
17710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17711 <limits.h> exists even on freestanding compilers. */
17714 # include <limits.h>
17716 # include <assert.h>
17721 /* Override any GCC internal prototype to avoid an error.
17722 Use char because int might match the return type of a GCC
17723 builtin and then its argument prototype would still apply. */
17728 /* The GNU C library defines this for functions which it implements
17729 to always fail with ENOSYS. Some functions are actually named
17730 something starting with __ and the normal name is an alias. */
17731 #if defined __stub_$ac_func || defined __stub___$ac_func
17738 return $ac_func ();
17743 rm -f conftest.
$ac_objext conftest
$ac_exeext
17744 if { (ac_try
="$ac_link"
17745 case "(($ac_try" in
17746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_link") 2>conftest.er1
17752 grep -v '^ *+' conftest.er1 >conftest.err
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17758 { (case "(($ac_try" in
17759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17760 *) ac_try_echo
=$ac_try;;
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_try") 2>&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try
='test -s conftest$ac_exeext'
17768 { (case "(($ac_try" in
17769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_try") 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777 eval "$as_ac_var=yes"
17779 echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17782 eval "$as_ac_var=no"
17785 rm -f core conftest.err conftest.$ac_objext \
17786 conftest$ac_exeext conftest.$ac_ext
17788 ac_res=`eval echo '${'$as_ac_var'}'`
17789 { echo "$as_me:$LINENO: result: $ac_res" >&5
17790 echo "${ECHO_T}$ac_res" >&6; }
17791 if test `eval echo '${'$as_ac_var'}'` = yes; then
17792 cat >>confdefs.h <<_ACEOF
17793 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17803 for ac_func in powf fmodf strtof round
17805 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17811 cat >conftest.$ac_ext <<_ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h. */
17817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17819 #define $ac_func innocuous_$ac_func
17821 /* System header to define __stub macros and hopefully few prototypes,
17822 which can conflict with char $ac_func (); below.
17823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17824 <limits.h> exists even on freestanding compilers. */
17827 # include <limits.h>
17829 # include <assert.h>
17834 /* Override any GCC internal prototype to avoid an error.
17835 Use char because int might match the return type of a GCC
17836 builtin and then its argument prototype would still apply. */
17841 /* The GNU C library defines this for functions which it implements
17842 to always fail with ENOSYS. Some functions are actually named
17843 something starting with __ and the normal name is an alias. */
17844 #if defined __stub_$ac_func || defined __stub___$ac_func
17851 return $ac_func ();
17856 rm -f conftest.$ac_objext conftest$ac_exeext
17857 if { (ac_try="$ac_link"
17858 case "(($ac_try" in
17859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17860 *) ac_try_echo
=$ac_try;;
17862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17863 (eval "$ac_link") 2>conftest.er1
17865 grep -v '^ *+' conftest.er1
>conftest.err
17867 cat conftest.err
>&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } &&
17870 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17871 { (case "(($ac_try" in
17872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876 (eval "$ac_try") 2>&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; } &&
17880 { ac_try='test -s conftest$ac_exeext'
17881 { (case "(($ac_try" in
17882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17883 *) ac_try_echo
=$ac_try;;
17885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886 (eval "$ac_try") 2>&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; }; then
17890 eval "$as_ac_var=yes"
17892 echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.
$ac_ext >&5
17895 eval "$as_ac_var=no"
17898 rm -f core conftest.err conftest.
$ac_objext \
17899 conftest
$ac_exeext conftest.
$ac_ext
17901 ac_res
=`eval echo '${'$as_ac_var'}'`
17902 { echo "$as_me:$LINENO: result: $ac_res" >&5
17903 echo "${ECHO_T}$ac_res" >&6; }
17904 if test `eval echo '${'$as_ac_var'}'` = yes; then
17905 cat >>confdefs.h
<<_ACEOF
17906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17917 for ac_func
in getpagesize getrusage getrlimit setrlimit gettimeofday
17919 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17922 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17923 echo $ECHO_N "(cached) $ECHO_C" >&6
17925 cat >conftest.
$ac_ext <<_ACEOF
17928 cat confdefs.h
>>conftest.
$ac_ext
17929 cat >>conftest.
$ac_ext <<_ACEOF
17930 /* end confdefs.h. */
17931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17933 #define $ac_func innocuous_$ac_func
17935 /* System header to define __stub macros and hopefully few prototypes,
17936 which can conflict with char $ac_func (); below.
17937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17938 <limits.h> exists even on freestanding compilers. */
17941 # include <limits.h>
17943 # include <assert.h>
17948 /* Override any GCC internal prototype to avoid an error.
17949 Use char because int might match the return type of a GCC
17950 builtin and then its argument prototype would still apply. */
17955 /* The GNU C library defines this for functions which it implements
17956 to always fail with ENOSYS. Some functions are actually named
17957 something starting with __ and the normal name is an alias. */
17958 #if defined __stub_$ac_func || defined __stub___$ac_func
17965 return $ac_func ();
17970 rm -f conftest.
$ac_objext conftest
$ac_exeext
17971 if { (ac_try
="$ac_link"
17972 case "(($ac_try" in
17973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17974 *) ac_try_echo=$ac_try;;
17976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17977 (eval "$ac_link") 2>conftest.er1
17979 grep -v '^ *+' conftest.er1 >conftest.err
17981 cat conftest.err >&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); } &&
17984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17985 { (case "(($ac_try" in
17986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17987 *) ac_try_echo
=$ac_try;;
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_try") 2>&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try
='test -s conftest$ac_exeext'
17995 { (case "(($ac_try" in
17996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17997 *) ac_try_echo=$ac_try;;
17999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000 (eval "$ac_try") 2>&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; }; then
18004 eval "$as_ac_var=yes"
18006 echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18009 eval "$as_ac_var=no"
18012 rm -f core conftest.err conftest.$ac_objext \
18013 conftest$ac_exeext conftest.$ac_ext
18015 ac_res=`eval echo '${'$as_ac_var'}'`
18016 { echo "$as_me:$LINENO: result: $ac_res" >&5
18017 echo "${ECHO_T}$ac_res" >&6; }
18018 if test `eval echo '${'$as_ac_var'}'` = yes; then
18019 cat >>confdefs.h <<_ACEOF
18020 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18029 for ac_func in isatty mkdtemp mkstemp
18031 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18032 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18034 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18035 echo $ECHO_N "(cached) $ECHO_C" >&6
18037 cat >conftest.$ac_ext <<_ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18045 #define $ac_func innocuous_$ac_func
18047 /* System header to define __stub macros and hopefully few prototypes,
18048 which can conflict with char $ac_func (); below.
18049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18050 <limits.h> exists even on freestanding compilers. */
18053 # include <limits.h>
18055 # include <assert.h>
18060 /* Override any GCC internal prototype to avoid an error.
18061 Use char because int might match the return type of a GCC
18062 builtin and then its argument prototype would still apply. */
18067 /* The GNU C library defines this for functions which it implements
18068 to always fail with ENOSYS. Some functions are actually named
18069 something starting with __ and the normal name is an alias. */
18070 #if defined __stub_$ac_func || defined __stub___$ac_func
18077 return $ac_func ();
18082 rm -f conftest.$ac_objext conftest$ac_exeext
18083 if { (ac_try="$ac_link"
18084 case "(($ac_try" in
18085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18086 *) ac_try_echo
=$ac_try;;
18088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18089 (eval "$ac_link") 2>conftest.er1
18091 grep -v '^ *+' conftest.er1
>conftest.err
18093 cat conftest.err
>&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); } &&
18096 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18097 { (case "(($ac_try" in
18098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102 (eval "$ac_try") 2>&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; } &&
18106 { ac_try='test -s conftest$ac_exeext'
18107 { (case "(($ac_try" in
18108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18109 *) ac_try_echo
=$ac_try;;
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_try") 2>&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; }; then
18116 eval "$as_ac_var=yes"
18118 echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.
$ac_ext >&5
18121 eval "$as_ac_var=no"
18124 rm -f core conftest.err conftest.
$ac_objext \
18125 conftest
$ac_exeext conftest.
$ac_ext
18127 ac_res
=`eval echo '${'$as_ac_var'}'`
18128 { echo "$as_me:$LINENO: result: $ac_res" >&5
18129 echo "${ECHO_T}$ac_res" >&6; }
18130 if test `eval echo '${'$as_ac_var'}'` = yes; then
18131 cat >>confdefs.h
<<_ACEOF
18132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18144 for ac_func
in mktemp posix_spawn realpath sbrk setrlimit strdup
18146 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18149 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18152 cat >conftest.
$ac_ext <<_ACEOF
18155 cat confdefs.h
>>conftest.
$ac_ext
18156 cat >>conftest.
$ac_ext <<_ACEOF
18157 /* end confdefs.h. */
18158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18160 #define $ac_func innocuous_$ac_func
18162 /* System header to define __stub macros and hopefully few prototypes,
18163 which can conflict with char $ac_func (); below.
18164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18165 <limits.h> exists even on freestanding compilers. */
18168 # include <limits.h>
18170 # include <assert.h>
18175 /* Override any GCC internal prototype to avoid an error.
18176 Use char because int might match the return type of a GCC
18177 builtin and then its argument prototype would still apply. */
18182 /* The GNU C library defines this for functions which it implements
18183 to always fail with ENOSYS. Some functions are actually named
18184 something starting with __ and the normal name is an alias. */
18185 #if defined __stub_$ac_func || defined __stub___$ac_func
18192 return $ac_func ();
18197 rm -f conftest.
$ac_objext conftest
$ac_exeext
18198 if { (ac_try
="$ac_link"
18199 case "(($ac_try" in
18200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_link") 2>conftest.er1
18206 grep -v '^ *+' conftest.er1 >conftest.err
18208 cat conftest.err >&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } &&
18211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18212 { (case "(($ac_try" in
18213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18214 *) ac_try_echo
=$ac_try;;
18216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217 (eval "$ac_try") 2>&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; } &&
18221 { ac_try
='test -s conftest$ac_exeext'
18222 { (case "(($ac_try" in
18223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_try") 2>&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; }; then
18231 eval "$as_ac_var=yes"
18233 echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18236 eval "$as_ac_var=no"
18239 rm -f core conftest.err conftest.$ac_objext \
18240 conftest$ac_exeext conftest.$ac_ext
18242 ac_res=`eval echo '${'$as_ac_var'}'`
18243 { echo "$as_me:$LINENO: result: $ac_res" >&5
18244 echo "${ECHO_T}$ac_res" >&6; }
18245 if test `eval echo '${'$as_ac_var'}'` = yes; then
18246 cat >>confdefs.h <<_ACEOF
18247 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18257 for ac_func in strerror strerror_r strerror_s setenv
18259 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18263 echo $ECHO_N "(cached) $ECHO_C" >&6
18265 cat >conftest.$ac_ext <<_ACEOF
18268 cat confdefs.h >>conftest.$ac_ext
18269 cat >>conftest.$ac_ext <<_ACEOF
18270 /* end confdefs.h. */
18271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18273 #define $ac_func innocuous_$ac_func
18275 /* System header to define __stub macros and hopefully few prototypes,
18276 which can conflict with char $ac_func (); below.
18277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18278 <limits.h> exists even on freestanding compilers. */
18281 # include <limits.h>
18283 # include <assert.h>
18288 /* Override any GCC internal prototype to avoid an error.
18289 Use char because int might match the return type of a GCC
18290 builtin and then its argument prototype would still apply. */
18295 /* The GNU C library defines this for functions which it implements
18296 to always fail with ENOSYS. Some functions are actually named
18297 something starting with __ and the normal name is an alias. */
18298 #if defined __stub_$ac_func || defined __stub___$ac_func
18305 return $ac_func ();
18310 rm -f conftest.$ac_objext conftest$ac_exeext
18311 if { (ac_try="$ac_link"
18312 case "(($ac_try" in
18313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18314 *) ac_try_echo
=$ac_try;;
18316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18317 (eval "$ac_link") 2>conftest.er1
18319 grep -v '^ *+' conftest.er1
>conftest.err
18321 cat conftest.err
>&5
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); } &&
18324 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18325 { (case "(($ac_try" in
18326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_try") 2>&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; } &&
18334 { ac_try='test -s conftest$ac_exeext'
18335 { (case "(($ac_try" in
18336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18337 *) ac_try_echo
=$ac_try;;
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_try") 2>&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 eval "$as_ac_var=yes"
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.
$ac_ext >&5
18349 eval "$as_ac_var=no"
18352 rm -f core conftest.err conftest.
$ac_objext \
18353 conftest
$ac_exeext conftest.
$ac_ext
18355 ac_res
=`eval echo '${'$as_ac_var'}'`
18356 { echo "$as_me:$LINENO: result: $ac_res" >&5
18357 echo "${ECHO_T}$ac_res" >&6; }
18358 if test `eval echo '${'$as_ac_var'}'` = yes; then
18359 cat >>confdefs.h
<<_ACEOF
18360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18370 for ac_func
in strtoll strtoq sysconf malloc_zone_statistics
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
18483 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18485 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18486 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18488 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18489 echo $ECHO_N "(cached) $ECHO_C" >&6
18491 cat >conftest.$ac_ext <<_ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18499 #define $ac_func innocuous_$ac_func
18501 /* System header to define __stub macros and hopefully few prototypes,
18502 which can conflict with char $ac_func (); below.
18503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18504 <limits.h> exists even on freestanding compilers. */
18507 # include <limits.h>
18509 # include <assert.h>
18514 /* Override any GCC internal prototype to avoid an error.
18515 Use char because int might match the return type of a GCC
18516 builtin and then its argument prototype would still apply. */
18521 /* The GNU C library defines this for functions which it implements
18522 to always fail with ENOSYS. Some functions are actually named
18523 something starting with __ and the normal name is an alias. */
18524 #if defined __stub_$ac_func || defined __stub___$ac_func
18531 return $ac_func ();
18536 rm -f conftest.$ac_objext conftest$ac_exeext
18537 if { (ac_try="$ac_link"
18538 case "(($ac_try" in
18539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18540 *) ac_try_echo
=$ac_try;;
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_link") 2>conftest.er1
18545 grep -v '^ *+' conftest.er1
>conftest.err
18547 cat conftest.err
>&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } &&
18550 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18551 { (case "(($ac_try" in
18552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18553 *) ac_try_echo=$ac_try;;
18555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18556 (eval "$ac_try") 2>&5
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); }; } &&
18560 { ac_try='test -s conftest$ac_exeext'
18561 { (case "(($ac_try" in
18562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18563 *) ac_try_echo
=$ac_try;;
18565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18566 (eval "$ac_try") 2>&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); }; }; then
18570 eval "$as_ac_var=yes"
18572 echo "$as_me: failed program was:" >&5
18573 sed 's/^/| /' conftest.
$ac_ext >&5
18575 eval "$as_ac_var=no"
18578 rm -f core conftest.err conftest.
$ac_objext \
18579 conftest
$ac_exeext conftest.
$ac_ext
18581 ac_res
=`eval echo '${'$as_ac_var'}'`
18582 { echo "$as_me:$LINENO: result: $ac_res" >&5
18583 echo "${ECHO_T}$ac_res" >&6; }
18584 if test `eval echo '${'$as_ac_var'}'` = yes; then
18585 cat >>confdefs.h
<<_ACEOF
18586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18592 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18593 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18594 if test "${llvm_cv_c_printf_a+set}" = set; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18598 ac_cpp
='$CPP $CPPFLAGS'
18599 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18600 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18601 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18603 if test "$cross_compiling" = yes; then
18604 llvmac_cv_c_printf_a
=no
18606 cat >conftest.
$ac_ext <<_ACEOF
18610 cat confdefs.h
>>conftest.
$ac_ext
18611 cat >>conftest.
$ac_ext <<_ACEOF
18612 /* end confdefs.h. */
18615 #include <stdlib.h>
18621 volatile double A, B;
18625 sprintf(Buffer, "%a", A);
18629 if (A != 0x1.999999999999ap-4)
18636 rm -f conftest
$ac_exeext
18637 if { (ac_try
="$ac_link"
18638 case "(($ac_try" in
18639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18640 *) ac_try_echo=$ac_try;;
18642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643 (eval "$ac_link") 2>&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18647 { (case "(($ac_try" in
18648 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18649 *) ac_try_echo
=$ac_try;;
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652 (eval "$ac_try") 2>&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; }; then
18656 llvm_cv_c_printf_a
=yes
18658 echo "$as_me: program exited with status $ac_status" >&5
18659 echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.
$ac_ext >&5
18662 ( exit $ac_status )
18663 llvmac_cv_c_printf_a
=no
18665 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18670 ac_cpp
='$CPP $CPPFLAGS'
18671 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18672 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18673 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18676 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18677 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18678 if test "$llvm_cv_c_printf_a" = "yes"; then
18680 cat >>confdefs.h
<<\_ACEOF
18681 #define HAVE_PRINTF_A 1
18687 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18688 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18689 if test "${ac_cv_func_rand48+set}" = set; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18693 ac_cpp
='$CXXCPP $CPPFLAGS'
18694 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18695 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18696 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18698 cat >conftest.
$ac_ext <<_ACEOF
18701 cat confdefs.h
>>conftest.
$ac_ext
18702 cat >>conftest.
$ac_ext <<_ACEOF
18703 /* end confdefs.h. */
18704 #include <stdlib.h>
18708 srand48(0);lrand48();drand48();
18713 rm -f conftest.
$ac_objext
18714 if { (ac_try
="$ac_compile"
18715 case "(($ac_try" in
18716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_compile") 2>conftest.er1
18722 grep -v '^ *+' conftest.er1 >conftest.err
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } &&
18727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18728 { (case "(($ac_try" in
18729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18730 *) ac_try_echo
=$ac_try;;
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_try") 2>&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; } &&
18737 { ac_try
='test -s conftest.$ac_objext'
18738 { (case "(($ac_try" in
18739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743 (eval "$ac_try") 2>&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; }; then
18747 ac_cv_func_rand48=yes
18749 echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18752 ac_cv_func_rand48=no
18755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18757 ac_cpp='$CPP $CPPFLAGS'
18758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18763 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18764 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18766 if test "$ac_cv_func_rand48" = "yes" ; then
18768 cat >>confdefs.h <<\_ACEOF
18769 #define HAVE_RAND48 1
18776 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18777 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18778 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18782 ac_cpp='$CXXCPP $CPPFLAGS'
18783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18787 cat >conftest.$ac_ext <<_ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18802 rm -f conftest.$ac_objext
18803 if { (ac_try="$ac_compile"
18804 case "(($ac_try" in
18805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18806 *) ac_try_echo
=$ac_try;;
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_compile") 2>conftest.er1
18811 grep -v '^ *+' conftest.er1
>conftest.err
18813 cat conftest.err
>&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } &&
18816 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18817 { (case "(($ac_try" in
18818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18819 *) ac_try_echo=$ac_try;;
18821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822 (eval "$ac_try") 2>&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try='test -s conftest.$ac_objext'
18827 { (case "(($ac_try" in
18828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18829 *) ac_try_echo
=$ac_try;;
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_try") 2>&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; }; then
18836 ac_cv_func_isnan_in_math_h
=yes
18838 echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.
$ac_ext >&5
18841 ac_cv_func_isnan_in_math_h
=no
18844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18846 ac_cpp
='$CPP $CPPFLAGS'
18847 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18848 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18849 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18852 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18853 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18856 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18858 cat >>confdefs.h
<<\_ACEOF
18859 #define HAVE_ISNAN_IN_MATH_H 1
18864 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18865 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18866 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18870 ac_cpp
='$CXXCPP $CPPFLAGS'
18871 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18872 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18873 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18875 cat >conftest.
$ac_ext <<_ACEOF
18878 cat confdefs.h
>>conftest.
$ac_ext
18879 cat >>conftest.
$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18890 rm -f conftest.
$ac_objext
18891 if { (ac_try
="$ac_compile"
18892 case "(($ac_try" in
18893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_compile") 2>conftest.er1
18899 grep -v '^ *+' conftest.er1 >conftest.err
18901 cat conftest.err >&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } &&
18904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18905 { (case "(($ac_try" in
18906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18907 *) ac_try_echo
=$ac_try;;
18909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910 (eval "$ac_try") 2>&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; } &&
18914 { ac_try
='test -s conftest.$ac_objext'
18915 { (case "(($ac_try" in
18916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_try") 2>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; }; then
18924 ac_cv_func_isnan_in_cmath=yes
18926 echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18929 ac_cv_func_isnan_in_cmath=no
18932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18934 ac_cpp='$CPP $CPPFLAGS'
18935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18940 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18941 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18943 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18945 cat >>confdefs.h <<\_ACEOF
18946 #define HAVE_ISNAN_IN_CMATH 1
18951 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18952 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18953 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18957 ac_cpp='$CXXCPP $CPPFLAGS'
18958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18962 cat >conftest.$ac_ext <<_ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h. */
18972 float f; std::isnan(f);
18977 rm -f conftest.$ac_objext
18978 if { (ac_try="$ac_compile"
18979 case "(($ac_try" in
18980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18981 *) ac_try_echo
=$ac_try;;
18983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18984 (eval "$ac_compile") 2>conftest.er1
18986 grep -v '^ *+' conftest.er1
>conftest.err
18988 cat conftest.err
>&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } &&
18991 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18992 { (case "(($ac_try" in
18993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_try") 2>&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; } &&
19001 { ac_try='test -s conftest.$ac_objext'
19002 { (case "(($ac_try" in
19003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19004 *) ac_try_echo
=$ac_try;;
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_try") 2>&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
19011 ac_cv_func_std_isnan_in_cmath
=yes
19013 echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.
$ac_ext >&5
19016 ac_cv_func_std_isnan_in_cmath
=no
19019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19021 ac_cpp
='$CPP $CPPFLAGS'
19022 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19023 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19024 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19027 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19028 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19030 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19032 cat >>confdefs.h
<<\_ACEOF
19033 #define HAVE_STD_ISNAN_IN_CMATH 1
19039 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19040 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19041 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19045 ac_cpp
='$CXXCPP $CPPFLAGS'
19046 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19047 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19048 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19050 cat >conftest.
$ac_ext <<_ACEOF
19053 cat confdefs.h
>>conftest.
$ac_ext
19054 cat >>conftest.
$ac_ext <<_ACEOF
19055 /* end confdefs.h. */
19065 rm -f conftest.
$ac_objext
19066 if { (ac_try
="$ac_compile"
19067 case "(($ac_try" in
19068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_compile") 2>conftest.er1
19074 grep -v '^ *+' conftest.er1 >conftest.err
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } &&
19079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19080 { (case "(($ac_try" in
19081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19082 *) ac_try_echo
=$ac_try;;
19084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_try") 2>&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; } &&
19089 { ac_try
='test -s conftest.$ac_objext'
19090 { (case "(($ac_try" in
19091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_try") 2>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 ac_cv_func_isinf_in_math_h=yes
19101 echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19104 ac_cv_func_isinf_in_math_h=no
19107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19109 ac_cpp='$CPP $CPPFLAGS'
19110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19115 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19116 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19118 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19120 cat >>confdefs.h <<\_ACEOF
19121 #define HAVE_ISINF_IN_MATH_H 1
19126 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19127 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19128 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19129 echo $ECHO_N "(cached) $ECHO_C" >&6
19132 ac_cpp='$CXXCPP $CPPFLAGS'
19133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19137 cat >conftest.$ac_ext <<_ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19152 rm -f conftest.$ac_objext
19153 if { (ac_try="$ac_compile"
19154 case "(($ac_try" in
19155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19156 *) ac_try_echo
=$ac_try;;
19158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19159 (eval "$ac_compile") 2>conftest.er1
19161 grep -v '^ *+' conftest.er1
>conftest.err
19163 cat conftest.err
>&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
19166 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19167 { (case "(($ac_try" in
19168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19172 (eval "$ac_try") 2>&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; } &&
19176 { ac_try='test -s conftest.$ac_objext'
19177 { (case "(($ac_try" in
19178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19179 *) ac_try_echo
=$ac_try;;
19181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182 (eval "$ac_try") 2>&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; }; then
19186 ac_cv_func_isinf_in_cmath
=yes
19188 echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.
$ac_ext >&5
19191 ac_cv_func_isinf_in_cmath
=no
19194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19196 ac_cpp
='$CPP $CPPFLAGS'
19197 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19198 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19199 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19202 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19203 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19205 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19207 cat >>confdefs.h
<<\_ACEOF
19208 #define HAVE_ISINF_IN_CMATH 1
19213 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19214 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19215 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19219 ac_cpp
='$CXXCPP $CPPFLAGS'
19220 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19221 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19222 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19224 cat >conftest.
$ac_ext <<_ACEOF
19227 cat confdefs.h
>>conftest.
$ac_ext
19228 cat >>conftest.
$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19234 float f; std::isinf(f)}
19239 rm -f conftest.
$ac_objext
19240 if { (ac_try
="$ac_compile"
19241 case "(($ac_try" in
19242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19243 *) ac_try_echo=$ac_try;;
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246 (eval "$ac_compile") 2>conftest.er1
19248 grep -v '^ *+' conftest.er1 >conftest.err
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } &&
19253 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; } &&
19263 { ac_try
='test -s conftest.$ac_objext'
19264 { (case "(($ac_try" in
19265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19266 *) ac_try_echo=$ac_try;;
19268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269 (eval "$ac_try") 2>&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; }; then
19273 ac_cv_func_std_isinf_in_cmath=yes
19275 echo "$as_me: failed program was:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19278 ac_cv_func_std_isinf_in_cmath=no
19281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19283 ac_cpp='$CPP $CPPFLAGS'
19284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19289 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19290 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19292 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19294 cat >>confdefs.h <<\_ACEOF
19295 #define HAVE_STD_ISINF_IN_CMATH 1
19300 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19301 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19302 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19303 echo $ECHO_N "(cached) $ECHO_C" >&6
19306 ac_cpp='$CXXCPP $CPPFLAGS'
19307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19311 cat >conftest.$ac_ext <<_ACEOF
19314 cat confdefs.h >>conftest.$ac_ext
19315 cat >>conftest.$ac_ext <<_ACEOF
19316 /* end confdefs.h. */
19317 #include <ieeefp.h>
19321 float f; finite(f);
19326 rm -f conftest.$ac_objext
19327 if { (ac_try="$ac_compile"
19328 case "(($ac_try" in
19329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19330 *) ac_try_echo
=$ac_try;;
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_compile") 2>conftest.er1
19335 grep -v '^ *+' conftest.er1
>conftest.err
19337 cat conftest.err
>&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); } &&
19340 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19341 { (case "(($ac_try" in
19342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_try") 2>&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; } &&
19350 { ac_try='test -s conftest.$ac_objext'
19351 { (case "(($ac_try" in
19352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19353 *) ac_try_echo
=$ac_try;;
19355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19356 (eval "$ac_try") 2>&5
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; }; then
19360 ac_cv_func_finite_in_ieeefp_h
=yes
19362 echo "$as_me: failed program was:" >&5
19363 sed 's/^/| /' conftest.
$ac_ext >&5
19365 ac_cv_func_finite_in_ieeefp_h
=no
19368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19370 ac_cpp
='$CPP $CPPFLAGS'
19371 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19372 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19373 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19376 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19377 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19379 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19381 cat >>confdefs.h
<<\_ACEOF
19382 #define HAVE_FINITE_IN_IEEEFP_H 1
19389 if test "$llvm_cv_platform_type" = "Unix" ; then
19392 for ac_header
in stdlib.h unistd.h
19394 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19395 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19398 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19401 ac_res
=`eval echo '${'$as_ac_Header'}'`
19402 { echo "$as_me:$LINENO: result: $ac_res" >&5
19403 echo "${ECHO_T}$ac_res" >&6; }
19405 # Is the header compilable?
19406 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19408 cat >conftest.
$ac_ext <<_ACEOF
19411 cat confdefs.h
>>conftest.
$ac_ext
19412 cat >>conftest.
$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19414 $ac_includes_default
19415 #include <$ac_header>
19417 rm -f conftest.
$ac_objext
19418 if { (ac_try
="$ac_compile"
19419 case "(($ac_try" in
19420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_compile") 2>conftest.er1
19426 grep -v '^ *+' conftest.er1 >conftest.err
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } &&
19431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; } &&
19441 { ac_try
='test -s conftest.$ac_objext'
19442 { (case "(($ac_try" in
19443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_try") 2>&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; }; then
19451 ac_header_compiler=yes
19453 echo "$as_me: failed program was:" >&5
19454 sed 's/^/| /' conftest.$ac_ext >&5
19456 ac_header_compiler=no
19459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19461 echo "${ECHO_T}$ac_header_compiler" >&6; }
19463 # Is the header present?
19464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19466 cat >conftest.$ac_ext <<_ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h. */
19472 #include <$ac_header>
19474 if { (ac_try="$ac_cpp conftest.$ac_ext"
19475 case "(($ac_try" in
19476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19477 *) ac_try_echo
=$ac_try;;
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19482 grep -v '^ *+' conftest.er1
>conftest.err
19484 cat conftest.err
>&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } >/dev
/null
; then
19487 if test -s conftest.err
; then
19488 ac_cpp_err
=$ac_c_preproc_warn_flag
19489 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19496 if test -z "$ac_cpp_err"; then
19497 ac_header_preproc
=yes
19499 echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.
$ac_ext >&5
19502 ac_header_preproc
=no
19505 rm -f conftest.err conftest.
$ac_ext
19506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19507 echo "${ECHO_T}$ac_header_preproc" >&6; }
19509 # So? What about this header?
19510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19516 ac_header_preproc
=yes
19519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19532 ## ----------------------------------- ##
19533 ## Report this to llvmbugs@cs.uiuc.edu ##
19534 ## ----------------------------------- ##
19536 ) |
sed "s/^/$as_me: WARNING: /" >&2
19539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19541 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19544 eval "$as_ac_Header=\$ac_header_preproc"
19546 ac_res
=`eval echo '${'$as_ac_Header'}'`
19547 { echo "$as_me:$LINENO: result: $ac_res" >&5
19548 echo "${ECHO_T}$ac_res" >&6; }
19551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19552 cat >>confdefs.h
<<_ACEOF
19553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19561 for ac_func
in getpagesize
19563 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19566 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19567 echo $ECHO_N "(cached) $ECHO_C" >&6
19569 cat >conftest.
$ac_ext <<_ACEOF
19572 cat confdefs.h
>>conftest.
$ac_ext
19573 cat >>conftest.
$ac_ext <<_ACEOF
19574 /* end confdefs.h. */
19575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19577 #define $ac_func innocuous_$ac_func
19579 /* System header to define __stub macros and hopefully few prototypes,
19580 which can conflict with char $ac_func (); below.
19581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19582 <limits.h> exists even on freestanding compilers. */
19585 # include <limits.h>
19587 # include <assert.h>
19592 /* Override any GCC internal prototype to avoid an error.
19593 Use char because int might match the return type of a GCC
19594 builtin and then its argument prototype would still apply. */
19599 /* The GNU C library defines this for functions which it implements
19600 to always fail with ENOSYS. Some functions are actually named
19601 something starting with __ and the normal name is an alias. */
19602 #if defined __stub_$ac_func || defined __stub___$ac_func
19609 return $ac_func ();
19614 rm -f conftest.
$ac_objext conftest
$ac_exeext
19615 if { (ac_try
="$ac_link"
19616 case "(($ac_try" in
19617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_link") 2>conftest.er1
19623 grep -v '^ *+' conftest.er1 >conftest.err
19625 cat conftest.err >&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
19628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19629 { (case "(($ac_try" in
19630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19631 *) ac_try_echo
=$ac_try;;
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_try") 2>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try
='test -s conftest$ac_exeext'
19639 { (case "(($ac_try" in
19640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_try") 2>&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
19648 eval "$as_ac_var=yes"
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19653 eval "$as_ac_var=no"
19656 rm -f core conftest.err conftest.$ac_objext \
19657 conftest$ac_exeext conftest.$ac_ext
19659 ac_res=`eval echo '${'$as_ac_var'}'`
19660 { echo "$as_me:$LINENO: result: $ac_res" >&5
19661 echo "${ECHO_T}$ac_res" >&6; }
19662 if test `eval echo '${'$as_ac_var'}'` = yes; then
19663 cat >>confdefs.h <<_ACEOF
19664 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19670 { echo "$as_me:$LINENO: checking for working mmap" >&5
19671 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19672 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19675 if test "$cross_compiling" = yes; then
19676 ac_cv_func_mmap_fixed_mapped=no
19678 cat >conftest.$ac_ext <<_ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h. */
19684 $ac_includes_default
19685 /* malloc might have been renamed as rpl_malloc. */
19688 /* Thanks to Mike Haertel and Jim Avera for this test.
19689 Here is a matrix of mmap possibilities:
19690 mmap private not fixed
19691 mmap private fixed at somewhere currently unmapped
19692 mmap private fixed at somewhere already mapped
19693 mmap shared not fixed
19694 mmap shared fixed at somewhere currently unmapped
19695 mmap shared fixed at somewhere already mapped
19696 For private mappings, we should verify that changes cannot be read()
19697 back from the file, nor mmap's back from the file at a different
19698 address. (There have been systems where private was not correctly
19699 implemented like the infamous i386 svr4.0, and systems where the
19700 VM page cache was not coherent with the file system buffer cache
19701 like early versions of FreeBSD and possibly contemporary NetBSD.)
19702 For shared mappings, we should conversely verify that changes get
19703 propagated back to all the places they're supposed to be.
19705 Grep wants private fixed already mapped.
19706 The main things grep needs to know about mmap are:
19707 * does it exist and is it safe to write into the mmap'd area
19708 * how to use it (BSD variants) */
19711 #include <sys/mman.h>
19713 #if !STDC_HEADERS && !HAVE_STDLIB_H
19717 /* This mess was copied from the GNU getpagesize.h. */
19718 #if !HAVE_GETPAGESIZE
19719 /* Assume that all systems that can run configure have sys/param.h. */
19720 # if !HAVE_SYS_PARAM_H
19721 # define HAVE_SYS_PARAM_H 1
19724 # ifdef _SC_PAGESIZE
19725 # define getpagesize() sysconf(_SC_PAGESIZE)
19726 # else /* no _SC_PAGESIZE */
19727 # if HAVE_SYS_PARAM_H
19728 # include <sys/param.h>
19729 # ifdef EXEC_PAGESIZE
19730 # define getpagesize() EXEC_PAGESIZE
19731 # else /* no EXEC_PAGESIZE */
19733 # define getpagesize() NBPG * CLSIZE
19736 # endif /* no CLSIZE */
19737 # else /* no NBPG */
19739 # define getpagesize() NBPC
19740 # else /* no NBPC */
19742 # define getpagesize() PAGESIZE
19743 # endif /* PAGESIZE */
19744 # endif /* no NBPC */
19745 # endif /* no NBPG */
19746 # endif /* no EXEC_PAGESIZE */
19747 # else /* no HAVE_SYS_PARAM_H */
19748 # define getpagesize() 8192 /* punt totally */
19749 # endif /* no HAVE_SYS_PARAM_H */
19750 # endif /* no _SC_PAGESIZE */
19752 #endif /* no HAVE_GETPAGESIZE */
19757 char *data, *data2, *data3;
19761 pagesize = getpagesize ();
19763 /* First, make a file with some known garbage in it. */
19764 data = (char *) malloc (pagesize);
19767 for (i = 0; i < pagesize; ++i)
19768 *(data + i) = rand ();
19770 fd = creat ("conftest.mmap", 0600);
19773 if (write (fd, data, pagesize) != pagesize)
19777 /* Next, try to mmap the file at a fixed address which already has
19778 something else allocated at it. If we can, also make sure that
19779 we see the same garbage. */
19780 fd = open ("conftest.mmap", O_RDWR);
19783 data2 = (char *) malloc (2 * pagesize);
19786 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19787 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19788 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19790 for (i = 0; i < pagesize; ++i)
19791 if (*(data + i) != *(data2 + i))
19794 /* Finally, make sure that changes to the mapped area do not
19795 percolate back to the file as seen by read(). (This is a bug on
19796 some variants of i386 svr4.0.) */
19797 for (i = 0; i < pagesize; ++i)
19798 *(data2 + i) = *(data2 + i) + 1;
19799 data3 = (char *) malloc (pagesize);
19802 if (read (fd, data3, pagesize) != pagesize)
19804 for (i = 0; i < pagesize; ++i)
19805 if (*(data + i) != *(data3 + i))
19811 rm -f conftest$ac_exeext
19812 if { (ac_try="$ac_link"
19813 case "(($ac_try" in
19814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19815 *) ac_try_echo
=$ac_try;;
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_link") 2>&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19822 { (case "(($ac_try" in
19823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827 (eval "$ac_try") 2>&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
19831 ac_cv_func_mmap_fixed_mapped=yes
19833 echo "$as_me: program exited with status $ac_status" >&5
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19837 ( exit $ac_status )
19838 ac_cv_func_mmap_fixed_mapped=no
19840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19845 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19846 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19847 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19849 cat >>confdefs.h <<\_ACEOF
19850 #define HAVE_MMAP 1
19854 rm -f conftest.mmap
19856 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19857 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19858 if test "${ac_cv_func_mmap_file+set}" = set; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
19862 ac_cpp='$CPP $CPPFLAGS'
19863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19867 if test "$cross_compiling" = yes; then
19868 ac_cv_func_mmap_file=no
19870 cat >conftest.$ac_ext <<_ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19878 #include <sys/types.h>
19879 #include <sys/mman.h>
19887 fd = creat ("foo",0777);
19888 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19890 return (fd != (int) MAP_FAILED);
19895 rm -f conftest$ac_exeext
19896 if { (ac_try="$ac_link"
19897 case "(($ac_try" in
19898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19899 *) ac_try_echo
=$ac_try;;
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902 (eval "$ac_link") 2>&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19906 { (case "(($ac_try" in
19907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19908 *) ac_try_echo=$ac_try;;
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911 (eval "$ac_try") 2>&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; }; then
19915 ac_cv_func_mmap_file=yes
19917 echo "$as_me: program exited with status $ac_status" >&5
19918 echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19921 ( exit $ac_status )
19922 ac_cv_func_mmap_file=no
19924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19929 ac_cpp='$CPP $CPPFLAGS'
19930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19936 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19937 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19938 if test "$ac_cv_func_mmap_file" = yes; then
19940 cat >>confdefs.h <<\_ACEOF
19941 #define HAVE_MMAP_FILE
19948 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19949 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19950 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19953 if test "$llvm_cv_os_type" = "Interix" ; then
19954 ac_cv_need_dev_zero_for_mmap=yes
19956 ac_cv_need_dev_zero_for_mmap=no
19960 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19961 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19962 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19964 cat >>confdefs.h <<\_ACEOF
19965 #define NEED_DEV_ZERO_FOR_MMAP 1
19970 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19972 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19973 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19975 if test "$ac_cv_func_mmap_file" = "no"
19977 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19978 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19982 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19983 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19985 ac_cpp='$CXXCPP $CPPFLAGS'
19986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19990 cat >conftest.$ac_ext <<_ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h. */
19997 volatile unsigned long val = 1;
19998 __sync_synchronize();
19999 __sync_val_compare_and_swap(&val, 1, 0);
20000 __sync_add_and_fetch(&val, 1);
20001 __sync_sub_and_fetch(&val, 1);
20006 rm -f conftest.$ac_objext conftest$ac_exeext
20007 if { (ac_try="$ac_link"
20008 case "(($ac_try" in
20009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20010 *) ac_try_echo
=$ac_try;;
20012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013 (eval "$ac_link") 2>conftest.er1
20015 grep -v '^ *+' conftest.er1
>conftest.err
20017 cat conftest.err
>&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); } &&
20020 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20021 { (case "(($ac_try" in
20022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20023 *) ac_try_echo=$ac_try;;
20025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20026 (eval "$ac_try") 2>&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; } &&
20030 { ac_try='test -s conftest$ac_exeext'
20031 { (case "(($ac_try" in
20032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20033 *) ac_try_echo
=$ac_try;;
20035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036 (eval "$ac_try") 2>&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20041 ac_cpp
='$CPP $CPPFLAGS'
20042 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20043 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20044 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20046 { echo "$as_me:$LINENO: result: yes" >&5
20047 echo "${ECHO_T}yes" >&6; }
20049 cat >>confdefs.h
<<\_ACEOF
20050 #define LLVM_MULTITHREADED 1
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.
$ac_ext >&5
20057 { echo "$as_me:$LINENO: result: no" >&5
20058 echo "${ECHO_T}no" >&6; }
20060 cat >>confdefs.h
<<\_ACEOF
20061 #define LLVM_MULTITHREADED 0
20064 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20065 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20068 rm -f core conftest.err conftest.
$ac_objext \
20069 conftest
$ac_exeext conftest.
$ac_ext
20072 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20073 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20074 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20075 if test "${llvm_cv_linux_mixed+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20079 ac_cpp
='$CPP $CPPFLAGS'
20080 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20081 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20082 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20084 cat >conftest.
$ac_ext <<_ACEOF
20087 cat confdefs.h
>>conftest.
$ac_ext
20088 cat >>conftest.
$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20091 error: Not x86-64 even if uname says so!
20102 rm -f conftest.
$ac_objext
20103 if { (ac_try
="$ac_compile"
20104 case "(($ac_try" in
20105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_compile") 2>conftest.er1
20111 grep -v '^ *+' conftest.er1 >conftest.err
20113 cat conftest.err >&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } &&
20116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20117 { (case "(($ac_try" in
20118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20119 *) ac_try_echo
=$ac_try;;
20121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20122 (eval "$ac_try") 2>&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; } &&
20126 { ac_try
='test -s conftest.$ac_objext'
20127 { (case "(($ac_try" in
20128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132 (eval "$ac_try") 2>&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); }; }; then
20136 llvm_cv_linux_mixed=no
20138 echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20141 llvm_cv_linux_mixed=yes
20144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20146 ac_cpp='$CPP $CPPFLAGS'
20147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20153 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20154 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20156 if test "$llvm_cv_linux_mixed" = "yes"; then
20157 llvm_cv_target_arch="x86"
20163 for ac_func in __dso_handle
20165 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20169 echo $ECHO_N "(cached) $ECHO_C" >&6
20171 cat >conftest.$ac_ext <<_ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20179 #define $ac_func innocuous_$ac_func
20181 /* System header to define __stub macros and hopefully few prototypes,
20182 which can conflict with char $ac_func (); below.
20183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20184 <limits.h> exists even on freestanding compilers. */
20187 # include <limits.h>
20189 # include <assert.h>
20194 /* Override any GCC internal prototype to avoid an error.
20195 Use char because int might match the return type of a GCC
20196 builtin and then its argument prototype would still apply. */
20201 /* The GNU C library defines this for functions which it implements
20202 to always fail with ENOSYS. Some functions are actually named
20203 something starting with __ and the normal name is an alias. */
20204 #if defined __stub_$ac_func || defined __stub___$ac_func
20211 return $ac_func ();
20216 rm -f conftest.$ac_objext conftest$ac_exeext
20217 if { (ac_try="$ac_link"
20218 case "(($ac_try" in
20219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20220 *) ac_try_echo
=$ac_try;;
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223 (eval "$ac_link") 2>conftest.er1
20225 grep -v '^ *+' conftest.er1
>conftest.err
20227 cat conftest.err
>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } &&
20230 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20231 { (case "(($ac_try" in
20232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_try") 2>&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; } &&
20240 { ac_try='test -s conftest$ac_exeext'
20241 { (case "(($ac_try" in
20242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20243 *) ac_try_echo
=$ac_try;;
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246 (eval "$ac_try") 2>&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; }; then
20250 eval "$as_ac_var=yes"
20252 echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.
$ac_ext >&5
20255 eval "$as_ac_var=no"
20258 rm -f core conftest.err conftest.
$ac_objext \
20259 conftest
$ac_exeext conftest.
$ac_ext
20261 ac_res
=`eval echo '${'$as_ac_var'}'`
20262 { echo "$as_me:$LINENO: result: $ac_res" >&5
20263 echo "${ECHO_T}$ac_res" >&6; }
20264 if test `eval echo '${'$as_ac_var'}'` = yes; then
20265 cat >>confdefs.h
<<_ACEOF
20266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20273 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20274 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20275 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20276 echo $ECHO_N "(cached) $ECHO_C" >&6
20278 llvm_cv_llvmgcc_sanity
="no"
20279 if test -x "$LLVMGCC" ; then
20280 cp /dev
/null conftest.c
20281 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20282 grep 'target datalayout =' > /dev
/null
2>&1
20283 if test $?
-eq 0 ; then
20284 llvm_cv_llvmgcc_sanity
="yes"
20289 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20290 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20292 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20293 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20294 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20295 llvmcc1path
=`"$LLVMGCC" --print-prog-name=cc1`
20296 LLVMCC1
=$llvmcc1path
20298 llvmcc1pluspath
=`"$LLVMGCC" --print-prog-name=cc1plus`
20299 LLVMCC1PLUS
=$llvmcc1pluspath
20301 llvmgccdir
=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20302 LLVMGCCDIR
=$llvmgccdir
20304 llvmgcclangs
=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20305 LLVMGCC_LANGS
=$llvmgcclangs
20307 { echo "$as_me:$LINENO: result: ok" >&5
20308 echo "${ECHO_T}ok" >&6; }
20311 SHLIBEXT
=$libltdl_cv_shlibext
20314 SHLIBPATH_VAR
=$libltdl_cv_shlibpath_var
20317 # Translate the various configuration directories and other basic
20318 # information into substitutions that will end up in Makefile.config.in
20319 # that these configured values can be used by the makefiles
20320 if test "${prefix}" = "NONE" ; then
20321 prefix
="/usr/local"
20323 eval LLVM_PREFIX
="${prefix}";
20324 eval LLVM_BINDIR
="${prefix}/bin";
20325 eval LLVM_LIBDIR
="${prefix}/lib";
20326 eval LLVM_DATADIR
="${prefix}/share/llvm";
20327 eval LLVM_DOCSDIR
="${prefix}/share/doc/llvm";
20328 eval LLVM_ETCDIR
="${prefix}/etc/llvm";
20329 eval LLVM_INCLUDEDIR
="${prefix}/include";
20330 eval LLVM_INFODIR
="${prefix}/info";
20331 eval LLVM_MANDIR
="${prefix}/man";
20332 LLVM_CONFIGTIME
=`date`
20344 # Place the various directores into the config.h file as #defines so that we
20345 # can know about the installation paths within LLVM.
20347 cat >>confdefs.h
<<_ACEOF
20348 #define LLVM_PREFIX "$LLVM_PREFIX"
20352 cat >>confdefs.h
<<_ACEOF
20353 #define LLVM_BINDIR "$LLVM_BINDIR"
20357 cat >>confdefs.h
<<_ACEOF
20358 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20362 cat >>confdefs.h
<<_ACEOF
20363 #define LLVM_DATADIR "$LLVM_DATADIR"
20367 cat >>confdefs.h
<<_ACEOF
20368 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20372 cat >>confdefs.h
<<_ACEOF
20373 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20377 cat >>confdefs.h
<<_ACEOF
20378 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20382 cat >>confdefs.h
<<_ACEOF
20383 #define LLVM_INFODIR "$LLVM_INFODIR"
20387 cat >>confdefs.h
<<_ACEOF
20388 #define LLVM_MANDIR "$LLVM_MANDIR"
20392 cat >>confdefs.h
<<_ACEOF
20393 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20397 cat >>confdefs.h
<<_ACEOF
20398 #define LLVM_HOSTTRIPLE "$host"
20402 # Determine which bindings to build.
20403 if test "$BINDINGS_TO_BUILD" = auto
; then
20404 BINDINGS_TO_BUILD
=""
20405 if test "x$OCAMLC" != x
-a "x$OCAMLDEP" != x
; then
20406 BINDINGS_TO_BUILD
="ocaml $BINDINGS_TO_BUILD"
20409 BINDINGS_TO_BUILD
=$BINDINGS_TO_BUILD
20412 # This isn't really configurey, but it avoids having to repeat the list in
20417 # Do any work necessary to ensure that bindings have what they need.
20418 binding_prereqs_failed
=0
20419 for a_binding
in $BINDINGS_TO_BUILD ; do
20420 case "$a_binding" in
20422 if test "x$OCAMLC" = x
; then
20423 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20424 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20425 binding_prereqs_failed
=1
20427 if test "x$OCAMLDEP" = x
; then
20428 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20429 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20430 binding_prereqs_failed
=1
20432 if test "x$OCAMLOPT" = x
; then
20433 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20434 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20436 if test "x$with_ocaml_libdir" != xauto
; then
20437 OCAML_LIBDIR
=$with_ocaml_libdir
20440 ocaml_stdlib
="`"$OCAMLC" -where`"
20441 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20443 # ocaml stdlib is beneath our prefix; use stdlib
20444 OCAML_LIBDIR
=$ocaml_stdlib
20447 # ocaml stdlib is outside our prefix; use libdir/ocaml
20448 OCAML_LIBDIR
=$LLVM_LIBDIR/ocaml
20455 if test "$binding_prereqs_failed" = 1 ; then
20456 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20457 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20458 { (exit 1); exit 1; }; }
20461 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20462 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20463 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20464 echo $ECHO_N "(cached) $ECHO_C" >&6
20467 ac_cpp
='$CXXCPP $CPPFLAGS'
20468 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20469 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20470 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20472 oldcxxflags
="$CXXFLAGS"
20473 CXXFLAGS
="$CXXFLAGS -fvisibility-inlines-hidden"
20474 cat >conftest.
$ac_ext <<_ACEOF
20477 cat confdefs.h
>>conftest.
$ac_ext
20478 cat >>conftest.
$ac_ext <<_ACEOF
20479 /* end confdefs.h. */
20489 rm -f conftest.
$ac_objext
20490 if { (ac_try
="$ac_compile"
20491 case "(($ac_try" in
20492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_compile") 2>conftest.er1
20498 grep -v '^ *+' conftest.er1 >conftest.err
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } &&
20503 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20504 { (case "(($ac_try" in
20505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20506 *) ac_try_echo
=$ac_try;;
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509 (eval "$ac_try") 2>&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; } &&
20513 { ac_try
='test -s conftest.$ac_objext'
20514 { (case "(($ac_try" in
20515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20516 *) ac_try_echo=$ac_try;;
20518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20519 (eval "$ac_try") 2>&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); }; }; then
20523 llvm_cv_cxx_visibility_inlines_hidden=yes
20525 echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20528 llvm_cv_cxx_visibility_inlines_hidden=no
20531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20532 CXXFLAGS="$oldcxxflags"
20534 ac_cpp='$CPP $CPPFLAGS'
20535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20541 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20542 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20543 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20544 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20547 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20552 if test "$llvm_cv_link_use_r" = "yes" ; then
20559 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20560 RDYNAMIC="-Wl,-export-dynamic"
20567 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20574 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20576 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20578 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20580 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20582 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20585 ac_config_files="$ac_config_files Makefile.config"
20588 ac_config_files="$ac_config_files llvm.spec"
20591 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20594 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20597 ac_config_commands="$ac_config_commands setup"
20599 ac_config_commands="$ac_config_commands Makefile"
20602 ac_config_commands="$ac_config_commands Makefile.common"
20605 ac_config_commands="$ac_config_commands examples/Makefile"
20608 ac_config_commands="$ac_config_commands lib/Makefile"
20611 ac_config_commands="$ac_config_commands runtime/Makefile"
20614 ac_config_commands="$ac_config_commands test/Makefile"
20617 ac_config_commands="$ac_config_commands test/Makefile.tests"
20620 ac_config_commands="$ac_config_commands unittests/Makefile"
20623 ac_config_commands="$ac_config_commands tools/Makefile"
20626 ac_config_commands="$ac_config_commands utils/Makefile"
20629 ac_config_commands="$ac_config_commands projects/Makefile"
20632 ac_config_commands="$ac_config_commands bindings/Makefile"
20635 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20639 cat >confcache <<\_ACEOF
20640 # This file is a shell script that caches the results of configure
20641 # tests run on this system so they can be shared between configure
20642 # scripts and configure runs, see configure's option --config-cache.
20643 # It is not useful on other systems. If it contains results you don't
20644 # want to keep, you may remove or edit it.
20646 # config.status only pays attention to the cache file if you give it
20647 # the --recheck option to rerun configure.
20649 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
20650 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20651 # following values.
20655 # The following way of writing the cache mishandles newlines in values,
20656 # but we know of no workaround that is simple, portable, and efficient.
20657 # So, we kill variables containing newlines.
20658 # Ultrix sh set writes to stderr and can't be redirected directly,
20659 # and sets the high bit in the cache file unless we assign to the vars.
20661 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20662 eval ac_val
=\$
$ac_var
20666 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20667 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20670 _ | IFS | as_nl
) ;; #(
20671 *) $as_unset $ac_var ;;
20677 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20678 *${as_nl}ac_space
=\
*)
20679 # `set' does not quote correctly, so add quotes (double-quote
20680 # substitution turns \\\\ into \\, and sed turns \\ into \).
20683 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20686 # `set' quotes correctly as required by POSIX, so do not add quotes.
20687 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20696 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20698 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20700 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20701 if test -w "$cache_file"; then
20702 test "x$cache_file" != "x/dev/null" &&
20703 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20704 echo "$as_me: updating cache $cache_file" >&6;}
20705 cat confcache
>$cache_file
20707 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20708 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20713 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20714 # Let make expand exec_prefix.
20715 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20717 DEFS
=-DHAVE_CONFIG_H
20721 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20722 # 1. Remove the extension, and $U if already installed.
20723 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20724 ac_i
=`echo "$ac_i" | sed "$ac_script"`
20725 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20726 # will be set to the directory where LIBOBJS objects are built.
20727 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20728 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20730 LIBOBJS
=$ac_libobjs
20732 LTLIBOBJS
=$ac_ltlibobjs
20735 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20736 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20737 Usually this means the macro was only invoked conditionally." >&5
20738 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20739 Usually this means the macro was only invoked conditionally." >&2;}
20740 { (exit 1); exit 1; }; }
20742 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20743 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20744 Usually this means the macro was only invoked conditionally." >&5
20745 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20746 Usually this means the macro was only invoked conditionally." >&2;}
20747 { (exit 1); exit 1; }; }
20750 : ${CONFIG_STATUS=./config.status}
20751 ac_clean_files_save
=$ac_clean_files
20752 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20753 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20754 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20755 cat >$CONFIG_STATUS <<_ACEOF
20757 # Generated by $as_me.
20758 # Run this file to recreate the current configuration.
20759 # Compiler output produced by configure, useful for debugging
20760 # configure, is in config.log if it exists.
20763 ac_cs_recheck=false
20765 SHELL=\${CONFIG_SHELL-$SHELL}
20768 cat >>$CONFIG_STATUS <<\_ACEOF
20769 ## --------------------- ##
20770 ## M4sh Initialization. ##
20771 ## --------------------- ##
20773 # Be Bourne compatible
20774 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20777 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20778 # is contrary to our usage. Disable this feature.
20779 alias -g '${1+"$@"}'='"$@"'
20780 setopt NO_GLOB_SUBST
20782 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
20784 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
20785 DUALCASE
=1; export DUALCASE
# for MKS sh
20789 # Avoid depending upon Character Ranges.
20790 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20791 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20792 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20793 as_cr_digits
='0123456789'
20794 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20796 # The user is always right.
20797 if test "${PATH_SEPARATOR+set}" != set; then
20798 echo "#! /bin/sh" >conf$$.sh
20799 echo "exit 0" >>conf$$.sh
20801 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
20809 # Support unset when possible.
20810 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
20818 # We need space, tab and new line, in precisely that order. Quoting is
20819 # there to prevent editors from complaining about space-tab.
20820 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20821 # splitting by setting IFS to empty value.)
20826 # Find who we are. Look in the path if we contain no directory separator.
20828 *[\\/]* ) as_myself
=$0 ;;
20829 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20830 for as_dir
in $PATH
20833 test -z "$as_dir" && as_dir
=.
20834 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
20840 # We did not find ourselves, most probably we were run as `sh COMMAND'
20841 # in which case we are not to be found in the path.
20842 if test "x$as_myself" = x
; then
20845 if test ! -f "$as_myself"; then
20846 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20847 { (exit 1); exit 1; }
20850 # Work around bugs in pre-3.0 UWIN ksh.
20851 for as_var
in ENV MAIL MAILPATH
20852 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
20860 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20861 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20862 LC_TELEPHONE LC_TIME
20864 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20865 eval $as_var=C
; export $as_var
20867 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
20871 # Required to use basename.
20872 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20873 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20879 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20880 as_basename
=basename
20886 # Name of the executable.
20887 as_me
=`$as_basename -- "$0" ||
20888 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20889 X"$0" : 'X\(//\)$' \| \
20890 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20892 sed '/^.*\/\([^/][^/]*\)\/*$/{
20911 as_lineno_1
=$LINENO
20912 as_lineno_2
=$LINENO
20913 test "x$as_lineno_1" != "x$as_lineno_2" &&
20914 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
20916 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20917 # uniformly replaced by the line number. The first 'sed' inserts a
20918 # line-number line after each line using $LINENO; the second 'sed'
20919 # does the real work. The second script uses 'N' to pair each
20920 # line-number line with the line containing $LINENO, and appends
20921 # trailing '-' during substitution so that $LINENO is not a special
20922 # case at line end.
20923 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20924 # scripts with optimization help from Paolo Bonzini. Blame Lee
20925 # E. McMahon (1931-1989) for sed's syntax. :-)
20937 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20940 ' >$as_me.lineno
&&
20941 chmod +x
"$as_me.lineno" ||
20942 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20943 { (exit 1); exit 1; }; }
20945 # Don't try to exec as it changes $[0], causing all sort of problems
20946 # (the dirname of $[0] is not the place where we might find the
20947 # original and so on. Autoconf is especially sensitive to this).
20948 .
"./$as_me.lineno"
20949 # Exit status is that of the last command.
20954 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20960 ECHO_C
= ECHO_N
= ECHO_T
=
20961 case `echo -n x` in
20963 case `echo 'x\c'` in
20964 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20971 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20972 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20978 rm -f conf$$ conf$$.exe conf$$.
file
20979 if test -d conf$$.dir
; then
20980 rm -f conf$$.dir
/conf$$.
file
20986 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20988 # ... but there are two gotchas:
20989 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20990 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20991 # In both cases, we have to default to `cp -p'.
20992 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20994 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20999 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
21000 rmdir conf$$.dir
2>/dev
/null
21002 if mkdir
-p .
2>/dev
/null
; then
21005 test -d .
/-p && rmdir .
/-p
21009 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21010 # systems may use methods other than mode bits to determine executability.
21011 cat >conf$$.
file <<_ASEOF
21015 chmod +x conf$$.
file
21016 if test -x conf$$.
file >/dev
/null
2>&1; then
21017 as_executable_p
="test -x"
21023 # Sed expression to map a string onto a valid CPP name.
21024 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21026 # Sed expression to map a string onto a valid variable name.
21027 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21032 # Save the log message, to keep $[0] and so on meaningful, and to
21033 # report actual input values of CONFIG_FILES etc. instead of their
21034 # values after options handling.
21036 This file was extended by llvm $as_me 2.8svn, which was
21037 generated by GNU Autoconf 2.60. Invocation command line was
21039 CONFIG_FILES = $CONFIG_FILES
21040 CONFIG_HEADERS = $CONFIG_HEADERS
21041 CONFIG_LINKS = $CONFIG_LINKS
21042 CONFIG_COMMANDS = $CONFIG_COMMANDS
21045 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21050 cat >>$CONFIG_STATUS <<_ACEOF
21051 # Files that config.status was made for.
21052 config_files="$ac_config_files"
21053 config_headers="$ac_config_headers"
21054 config_commands="$ac_config_commands"
21058 cat >>$CONFIG_STATUS <<\_ACEOF
21060 \`$as_me' instantiates files from templates according to the
21061 current configuration.
21063 Usage: $0 [OPTIONS] [FILE]...
21065 -h, --help print this help, then exit
21066 -V, --version print version number, then exit
21067 -q, --quiet do not print progress messages
21068 -d, --debug don't remove temporary files
21069 --recheck update $as_me by reconfiguring in the same conditions
21070 --file=FILE[:TEMPLATE]
21071 instantiate the configuration file FILE
21072 --header=FILE[:TEMPLATE]
21073 instantiate the configuration header FILE
21075 Configuration files:
21078 Configuration headers:
21081 Configuration commands:
21084 Report bugs to <bug-autoconf@gnu.org>."
21087 cat >>$CONFIG_STATUS <<_ACEOF
21089 llvm config.status 2.8svn
21090 configured by $0, generated by GNU Autoconf 2.60,
21091 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21093 Copyright (C) 2006 Free Software Foundation, Inc.
21094 This config.status script is free software; the Free Software Foundation
21095 gives unlimited permission to copy, distribute and modify it."
21102 cat >>$CONFIG_STATUS <<\_ACEOF
21103 # If no file are specified by the user, then we need to provide default
21104 # value. By we need to know if files were specified by the user.
21110 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
21111 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
21122 # Handling of the options.
21123 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21125 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
21126 echo "$ac_cs_version"; exit ;;
21127 --debug |
--debu |
--deb |
--de |
--d |
-d )
21129 --file |
--fil |
--fi |
--f )
21131 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21132 ac_need_defaults
=false
;;
21133 --header |
--heade |
--head |
--hea )
21135 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21136 ac_need_defaults
=false
;;
21138 # Conflict between --help and --header
21139 { echo "$as_me: error: ambiguous option: $1
21140 Try \`$0 --help' for more information." >&2
21141 { (exit 1); exit 1; }; };;
21142 --help |
--hel |
-h )
21143 echo "$ac_cs_usage"; exit ;;
21144 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21145 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21148 # This is an error.
21149 -*) { echo "$as_me: error: unrecognized option: $1
21150 Try \`$0 --help' for more information." >&2
21151 { (exit 1); exit 1; }; } ;;
21153 *) ac_config_targets
="$ac_config_targets $1"
21154 ac_need_defaults
=false
;;
21160 ac_configure_extra_args
=
21162 if $ac_cs_silent; then
21164 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21168 cat >>$CONFIG_STATUS <<_ACEOF
21169 if \$ac_cs_recheck; then
21170 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21171 CONFIG_SHELL=$SHELL
21172 export CONFIG_SHELL
21173 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21177 cat >>$CONFIG_STATUS <<\_ACEOF
21181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21182 ## Running $as_me. ##
21188 cat >>$CONFIG_STATUS <<_ACEOF
21192 llvm_src="${srcdir}"
21196 cat >>$CONFIG_STATUS <<\_ACEOF
21198 # Handling of arguments.
21199 for ac_config_target
in $ac_config_targets
21201 case $ac_config_target in
21202 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21203 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21204 "include/llvm/Config/Targets.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21205 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21206 "include/llvm/Config/AsmParsers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21207 "include/llvm/Config/Disassemblers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21208 "include/llvm/System/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21209 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
21210 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
21211 "tools/llvmc/src/Base.td") CONFIG_FILES
="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21212 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21213 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
21214 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
21215 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
21216 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
21217 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
21218 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
21219 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
21220 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
21221 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
21222 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
21223 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
21224 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
21225 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
21226 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21228 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21229 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21230 { (exit 1); exit 1; }; };;
21235 # If the user did not use the arguments to specify the items to instantiate,
21236 # then the envvar interface is used. Set only those that are not.
21237 # We use the long form for the default assignment because of an extremely
21238 # bizarre bug on SunOS 4.1.3.
21239 if $ac_need_defaults; then
21240 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21241 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21242 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21245 # Have a temporary directory for convenience. Make it in the build tree
21246 # simply because there is no reason against having it here, and in addition,
21247 # creating and moving files from /tmp can sometimes cause problems.
21248 # Hook for its removal unless debugging.
21249 # Note that there is a small window in which the directory will not be cleaned:
21250 # after its creation but before its name has been assigned to `$tmp'.
21254 trap 'exit_status=$?
21255 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21257 trap '{ (exit 1); exit 1; }' 1 2 13 15
21259 # Create a (secure) tmp directory for tmp files.
21262 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21263 test -n "$tmp" && test -d "$tmp"
21266 tmp
=.
/conf$$
-$RANDOM
21267 (umask 077 && mkdir
"$tmp")
21270 echo "$me: cannot create a temporary directory in ." >&2
21271 { (exit 1); exit 1; }
21275 # Set up the sed scripts for CONFIG_FILES section.
21278 # No need to generate the scripts if there are no CONFIG_FILES.
21279 # This happens for instance when ./config.status config.h
21280 if test -n "$CONFIG_FILES"; then
21287 for ac_last_try
in false false false false false
:; do
21288 cat >conf$
$subs.
sed <<_ACEOF
21289 SHELL!$SHELL$ac_delim
21290 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21291 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21292 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21293 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21294 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21295 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21296 exec_prefix!$exec_prefix$ac_delim
21297 prefix!$prefix$ac_delim
21298 program_transform_name!$program_transform_name$ac_delim
21299 bindir!$bindir$ac_delim
21300 sbindir!$sbindir$ac_delim
21301 libexecdir!$libexecdir$ac_delim
21302 datarootdir!$datarootdir$ac_delim
21303 datadir!$datadir$ac_delim
21304 sysconfdir!$sysconfdir$ac_delim
21305 sharedstatedir!$sharedstatedir$ac_delim
21306 localstatedir!$localstatedir$ac_delim
21307 includedir!$includedir$ac_delim
21308 oldincludedir!$oldincludedir$ac_delim
21309 docdir!$docdir$ac_delim
21310 infodir!$infodir$ac_delim
21311 htmldir!$htmldir$ac_delim
21312 dvidir!$dvidir$ac_delim
21313 pdfdir!$pdfdir$ac_delim
21314 psdir!$psdir$ac_delim
21315 libdir!$libdir$ac_delim
21316 localedir!$localedir$ac_delim
21317 mandir!$mandir$ac_delim
21318 DEFS!$DEFS$ac_delim
21319 ECHO_C!$ECHO_C$ac_delim
21320 ECHO_N!$ECHO_N$ac_delim
21321 ECHO_T!$ECHO_T$ac_delim
21322 LIBS!$LIBS$ac_delim
21323 build_alias!$build_alias$ac_delim
21324 host_alias!$host_alias$ac_delim
21325 target_alias!$target_alias$ac_delim
21326 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21327 subdirs!$subdirs$ac_delim
21328 build!$build$ac_delim
21329 build_cpu!$build_cpu$ac_delim
21330 build_vendor!$build_vendor$ac_delim
21331 build_os!$build_os$ac_delim
21332 host!$host$ac_delim
21333 host_cpu!$host_cpu$ac_delim
21334 host_vendor!$host_vendor$ac_delim
21335 host_os!$host_os$ac_delim
21336 target!$target$ac_delim
21337 target_cpu!$target_cpu$ac_delim
21338 target_vendor!$target_vendor$ac_delim
21339 target_os!$target_os$ac_delim
21341 HOST_OS!$HOST_OS$ac_delim
21342 TARGET_OS!$TARGET_OS$ac_delim
21343 LINKALL!$LINKALL$ac_delim
21344 NOLINKALL!$NOLINKALL$ac_delim
21345 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21346 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21347 ARCH!$ARCH$ac_delim
21348 ENDIAN!$ENDIAN$ac_delim
21350 CFLAGS!$CFLAGS$ac_delim
21351 LDFLAGS!$LDFLAGS$ac_delim
21352 CPPFLAGS!$CPPFLAGS$ac_delim
21353 ac_ct_CC!$ac_ct_CC$ac_delim
21354 EXEEXT!$EXEEXT$ac_delim
21355 OBJEXT!$OBJEXT$ac_delim
21357 GREP!$GREP$ac_delim
21358 EGREP!$EGREP$ac_delim
21359 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21360 BUILD_CC!$BUILD_CC$ac_delim
21361 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21362 BUILD_CXX!$BUILD_CXX$ac_delim
21363 CVSBUILD!$CVSBUILD$ac_delim
21364 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21365 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21366 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21367 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21368 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21369 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21370 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21372 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21373 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21374 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21375 ENABLE_PIC!$ENABLE_PIC$ac_delim
21376 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21377 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21378 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21379 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21380 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21381 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21382 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21383 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21384 CLANGPATH!$CLANGPATH$ac_delim
21385 CLANGXXPATH!$CLANGXXPATH$ac_delim
21388 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21390 elif $ac_last_try; then
21391 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21392 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21393 { (exit 1); exit 1; }; }
21395 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
21399 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21400 if test -n "$ac_eof"; then
21401 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
21402 ac_eof
=`expr $ac_eof + 1`
21405 cat >>$CONFIG_STATUS <<_ACEOF
21406 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21407 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21410 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21411 s/^/s,@/; s/!/@,|#_!!_#|/
21414 s/'"$ac_delim"'$/,g/; t
21416 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21417 ' >>$CONFIG_STATUS <conf$
$subs.
sed
21418 rm -f conf$
$subs.
sed
21419 cat >>$CONFIG_STATUS <<_ACEOF
21425 for ac_last_try
in false false false false false
:; do
21426 cat >conf$
$subs.
sed <<_ACEOF
21427 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21428 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21429 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21430 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21432 CXXFLAGS!$CXXFLAGS$ac_delim
21433 ac_ct_CXX!$ac_ct_CXX$ac_delim
21435 ifGNUmake!$ifGNUmake$ac_delim
21436 LN_S!$LN_S$ac_delim
21439 DATE!$DATE$ac_delim
21440 FIND!$FIND$ac_delim
21441 MKDIR!$MKDIR$ac_delim
21443 RANLIB!$RANLIB$ac_delim
21448 BINPWD!$BINPWD$ac_delim
21449 GRAPHVIZ!$GRAPHVIZ$ac_delim
21452 NEATO!$NEATO$ac_delim
21453 TWOPI!$TWOPI$ac_delim
21454 CIRCO!$CIRCO$ac_delim
21456 DOTTY!$DOTTY$ac_delim
21457 PERL!$PERL$ac_delim
21458 HAVE_PERL!$HAVE_PERL$ac_delim
21459 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21460 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21461 INSTALL_DATA!$INSTALL_DATA$ac_delim
21462 BZIP2!$BZIP2$ac_delim
21464 DOXYGEN!$DOXYGEN$ac_delim
21465 GROFF!$GROFF$ac_delim
21466 GZIP!$GZIP$ac_delim
21467 POD2HTML!$POD2HTML$ac_delim
21468 POD2MAN!$POD2MAN$ac_delim
21469 PDFROFF!$PDFROFF$ac_delim
21470 RUNTEST!$RUNTEST$ac_delim
21471 TCLSH!$TCLSH$ac_delim
21473 OCAMLC!$OCAMLC$ac_delim
21474 OCAMLOPT!$OCAMLOPT$ac_delim
21475 OCAMLDEP!$OCAMLDEP$ac_delim
21476 OCAMLDOC!$OCAMLDOC$ac_delim
21478 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21479 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21480 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21481 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21482 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21483 LIBADD_DL!$LIBADD_DL$ac_delim
21484 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21485 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21486 LLVMGCC!$LLVMGCC$ac_delim
21487 LLVMGXX!$LLVMGXX$ac_delim
21488 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21489 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21490 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21491 USE_UDIS86!$USE_UDIS86$ac_delim
21492 USE_OPROFILE!$USE_OPROFILE$ac_delim
21493 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21494 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21495 MMAP_FILE!$MMAP_FILE$ac_delim
21496 LLVMCC1!$LLVMCC1$ac_delim
21497 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21498 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21499 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21500 SHLIBEXT!$SHLIBEXT$ac_delim
21501 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21502 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21503 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21504 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21505 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21506 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21507 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21508 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21509 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21510 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21511 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21512 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21513 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21514 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21515 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21516 RPATH!$RPATH$ac_delim
21517 RDYNAMIC!$RDYNAMIC$ac_delim
21518 LIBOBJS!$LIBOBJS$ac_delim
21519 LTLIBOBJS!$LTLIBOBJS$ac_delim
21522 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
21524 elif $ac_last_try; then
21525 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21526 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21527 { (exit 1); exit 1; }; }
21529 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
21533 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21534 if test -n "$ac_eof"; then
21535 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
21536 ac_eof
=`expr $ac_eof + 1`
21539 cat >>$CONFIG_STATUS <<_ACEOF
21540 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21541 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21544 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21545 s/^/s,@/; s/!/@,|#_!!_#|/
21548 s/'"$ac_delim"'$/,g/; t
21550 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21551 ' >>$CONFIG_STATUS <conf$
$subs.
sed
21552 rm -f conf$
$subs.
sed
21553 cat >>$CONFIG_STATUS <<_ACEOF
21560 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21561 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21562 # trailing colons and then remove the whole line if VPATH becomes empty
21563 # (actually we leave an empty line to preserve line numbers).
21564 if test "x$srcdir" = x.
; then
21565 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21566 s/:*\$(srcdir):*/:/
21567 s/:*\${srcdir}:*/:/
21569 s/^\([^=]*=[ ]*\):*/\1/
21575 cat >>$CONFIG_STATUS <<\_ACEOF
21576 fi # test -n "$CONFIG_FILES"
21579 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
21582 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21584 case $ac_mode$ac_tag in
21586 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21587 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21588 { (exit 1); exit 1; }; };;
21589 :[FH
]-) ac_tag
=-:-;;
21590 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21607 -) ac_f
="$tmp/stdin";;
21608 *) # Look for the file first in the build tree, then in the source tree
21609 # (if the path is not absolute). The absolute path cannot be DOS-style,
21610 # because $ac_f cannot contain `:'.
21614 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21616 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21617 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21618 { (exit 1); exit 1; }; };;
21620 ac_file_inputs
="$ac_file_inputs $ac_f"
21623 # Let's still pretend it is `configure' which instantiates (i.e., don't
21624 # use $as_me), people would be surprised to read:
21625 # /* config.h. Generated by config.status. */
21626 configure_input
="Generated from "`IFS=:
21627 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21628 if test x
"$ac_file" != x-
; then
21629 configure_input
="$ac_file. $configure_input"
21630 { echo "$as_me:$LINENO: creating $ac_file" >&5
21631 echo "$as_me: creating $ac_file" >&6;}
21635 *:-:* |
*:-) cat >"$tmp/stdin";;
21640 ac_dir
=`$as_dirname -- "$ac_file" ||
21641 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21642 X"$ac_file" : 'X\(//\)[^/]' \| \
21643 X"$ac_file" : 'X\(//\)$' \| \
21644 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21650 /^X\(\/\/\)[^/].*/{
21665 -*) as_dir
=.
/$as_dir;;
21667 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
21671 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21672 *) as_qdir
=$as_dir;;
21674 as_dirs
="'$as_qdir' $as_dirs"
21675 as_dir
=`$as_dirname -- "$as_dir" ||
21676 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21677 X"$as_dir" : 'X\(//\)[^/]' \| \
21678 X"$as_dir" : 'X\(//\)$' \| \
21679 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21685 /^X\(\/\/\)[^/].*/{
21698 test -d "$as_dir" && break
21700 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21701 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21702 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21703 { (exit 1); exit 1; }; }; }
21707 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21709 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21710 # A ".." for each directory in $ac_dir_suffix.
21711 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21712 case $ac_top_builddir_sub in
21713 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21714 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21717 ac_abs_top_builddir
=$ac_pwd
21718 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21719 # for backward compatibility:
21720 ac_top_builddir
=$ac_top_build_prefix
21723 .
) # We are building in place.
21725 ac_top_srcdir
=$ac_top_builddir_sub
21726 ac_abs_top_srcdir
=$ac_pwd ;;
21727 [\\/]* | ?
:[\\/]* ) # Absolute name.
21728 ac_srcdir
=$srcdir$ac_dir_suffix;
21729 ac_top_srcdir
=$srcdir
21730 ac_abs_top_srcdir
=$srcdir ;;
21731 *) # Relative name.
21732 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21733 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21734 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21736 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21746 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21747 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21751 cat >>$CONFIG_STATUS <<\_ACEOF
21752 # If the template does not know about datarootdir, expand it.
21753 # FIXME: This hack should be removed a few years after 2.60.
21754 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21756 case `sed -n '/datarootdir/ {
21765 ' $ac_file_inputs` in
21766 *datarootdir
*) ac_datarootdir_seen
=yes;;
21767 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21768 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21769 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21771 cat >>$CONFIG_STATUS <<_ACEOF
21772 ac_datarootdir_hack='
21773 s&@datadir@&$datadir&g
21774 s&@docdir@&$docdir&g
21775 s&@infodir@&$infodir&g
21776 s&@localedir@&$localedir&g
21777 s&@mandir@&$mandir&g
21778 s&\\\${datarootdir}&$datarootdir&g' ;;
21782 # Neutralize VPATH when `$srcdir' = `.'.
21783 # Shell code in configure.ac might set extrasub.
21784 # FIXME: do we really want to maintain this feature?
21785 cat >>$CONFIG_STATUS <<_ACEOF
21789 cat >>$CONFIG_STATUS <<\_ACEOF
21791 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21792 s
&@configure_input@
&$configure_input&;t t
21793 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21794 s
&@srcdir@
&$ac_srcdir&;t t
21795 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21796 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21797 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21798 s
&@builddir@
&$ac_builddir&;t t
21799 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21800 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21801 s
&@INSTALL@
&$ac_INSTALL&;t t
21802 $ac_datarootdir_hack
21803 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
21805 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21806 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
21807 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
21808 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21809 which seems to be undefined. Please make sure it is defined." >&5
21810 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21811 which seems to be undefined. Please make sure it is defined." >&2;}
21815 -) cat "$tmp/out"; rm -f "$tmp/out";;
21816 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21825 # Transform confdefs.h into a sed script `conftest.defines', that
21826 # substitutes the proper values into config.h.in to produce config.h.
21827 rm -f conftest.defines conftest.
tail
21828 # First, append a space to every undef/define line, to ease matching.
21829 echo 's/$/ /' >conftest.defines
21830 # Then, protect against being on the right side of a sed subst, or in
21831 # an unquoted here document, in config.status. If some macros were
21832 # called several times there might be several #defines for the same
21833 # symbol, which is useless. But do not sort them, since the last
21834 # AC_DEFINE must be honored.
21835 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
21836 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21837 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21838 # PARAMS is the parameter list in the macro definition--in most cases, it's
21839 # just an empty string.
21840 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21841 ac_dB
='\\)[ (].*,\\1define\\2'
21849 s/^[ ]*#[ ]*define[ ][ ]*//
21854 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21855 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21856 ' >>conftest.defines
21858 # Remove the space that was appended to ease matching.
21859 # Then replace #undef with comments. This is necessary, for
21860 # example, in the case of _POSIX_SOURCE, which is predefined and required
21861 # on some systems where configure will not decide to define it.
21862 # (The regexp can be short, since the line contains either #define or #undef.)
21864 s,^[ #]*u.*,/* & */,' >>conftest.defines
21866 # Break up conftest.defines:
21867 ac_max_sed_lines
=50
21869 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21870 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21871 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21873 ac_in
='$ac_file_inputs'
21874 ac_out
='"$tmp/out1"'
21875 ac_nxt
='"$tmp/out2"'
21879 # Write a here document:
21880 cat >>$CONFIG_STATUS <<_ACEOF
21881 # First, check the format of the line:
21882 cat >"\$tmp/defines.sed" <<\\CEOF
21883 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21884 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21888 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
21890 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21891 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
21892 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
21893 grep . conftest.
tail >/dev
/null ||
break
21894 rm -f conftest.defines
21895 mv conftest.
tail conftest.defines
21897 rm -f conftest.defines conftest.
tail
21899 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21900 cat >>$CONFIG_STATUS <<\_ACEOF
21901 if test x
"$ac_file" != x-
; then
21902 echo "/* $configure_input */" >"$tmp/config.h"
21903 cat "$ac_result" >>"$tmp/config.h"
21904 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
21905 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21906 echo "$as_me: $ac_file is unchanged" >&6;}
21909 mv "$tmp/config.h" $ac_file
21912 echo "/* $configure_input */"
21918 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21919 echo "$as_me: executing $ac_file commands" >&6;}
21924 case $ac_file$ac_mode in
21925 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
21926 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile
;;
21927 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
21928 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common
;;
21929 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
21930 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
21931 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
21932 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
21933 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
21934 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
21935 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
21936 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile test
/Makefile
;;
21937 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
21938 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
21939 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
21940 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
21941 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
21942 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
21943 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
21944 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
21945 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
21946 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
21947 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
21948 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
21949 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
21950 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
21956 { (exit 0); exit 0; }
21958 chmod +x
$CONFIG_STATUS
21959 ac_clean_files
=$ac_clean_files_save
21962 # configure is writing to config.log, and then calls config.status.
21963 # config.status does its own redirection, appending to config.log.
21964 # Unfortunately, on DOS this fails, as config.log is still kept open
21965 # by configure, so config.status won't be able to write to it; its
21966 # output is simply discarded. So we exec the FD to /dev/null,
21967 # effectively closing config.log, so it can be properly (re)opened and
21968 # appended to by config.status. When coming back to configure, we
21969 # need to make the FD available again.
21970 if test "$no_create" != yes; then
21972 ac_config_status_args
=
21973 test "$silent" = yes &&
21974 ac_config_status_args
="$ac_config_status_args --quiet"
21976 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21978 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21979 # would make configure fail if this is the last instruction.
21980 $ac_cs_success ||
{ (exit 1); exit 1; }
21984 # CONFIG_SUBDIRS section.
21986 if test "$no_recursion" != yes; then
21988 # Remove --cache-file and --srcdir arguments so they do not pile up.
21989 ac_sub_configure_args
=
21991 eval "set x $ac_configure_args"
21995 if test -n "$ac_prev"; then
22000 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
22001 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
22002 ac_prev
=cache_file
;;
22003 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
22004 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
22007 --config-cache |
-C)
22009 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
22011 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
22013 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
22015 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
22019 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22021 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
22025 # Always prepend --prefix to ensure using the same prefix
22026 # in subdir configurations.
22027 ac_arg
="--prefix=$prefix"
22029 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22031 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
22034 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
22036 # Do not complain, so a configure script can configure whichever
22037 # parts of a large source tree are present.
22038 test -d "$srcdir/$ac_dir" ||
continue
22040 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22041 echo "$as_me:$LINENO: $ac_msg" >&5
22045 -*) as_dir
=.
/$as_dir;;
22047 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
22051 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22052 *) as_qdir
=$as_dir;;
22054 as_dirs
="'$as_qdir' $as_dirs"
22055 as_dir
=`$as_dirname -- "$as_dir" ||
22056 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22057 X"$as_dir" : 'X\(//\)[^/]' \| \
22058 X"$as_dir" : 'X\(//\)$' \| \
22059 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22065 /^X\(\/\/\)[^/].*/{
22078 test -d "$as_dir" && break
22080 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
22081 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22082 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22083 { (exit 1); exit 1; }; }; }
22087 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22089 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22090 # A ".." for each directory in $ac_dir_suffix.
22091 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22092 case $ac_top_builddir_sub in
22093 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22094 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
22097 ac_abs_top_builddir
=$ac_pwd
22098 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
22099 # for backward compatibility:
22100 ac_top_builddir
=$ac_top_build_prefix
22103 .
) # We are building in place.
22105 ac_top_srcdir
=$ac_top_builddir_sub
22106 ac_abs_top_srcdir
=$ac_pwd ;;
22107 [\\/]* | ?
:[\\/]* ) # Absolute name.
22108 ac_srcdir
=$srcdir$ac_dir_suffix;
22109 ac_top_srcdir
=$srcdir
22110 ac_abs_top_srcdir
=$srcdir ;;
22111 *) # Relative name.
22112 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
22113 ac_top_srcdir
=$ac_top_build_prefix$srcdir
22114 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
22116 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
22121 # Check for guested configure; otherwise get Cygnus style configure.
22122 if test -f "$ac_srcdir/configure.gnu"; then
22123 ac_sub_configure
=$ac_srcdir/configure.gnu
22124 elif test -f "$ac_srcdir/configure"; then
22125 ac_sub_configure
=$ac_srcdir/configure
22126 elif test -f "$ac_srcdir/configure.in"; then
22127 # This should be Cygnus configure.
22128 ac_sub_configure
=$ac_aux_dir/configure
22130 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22131 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22135 # The recursion is here.
22136 if test -n "$ac_sub_configure"; then
22137 # Make the cache file name correct relative to the subdirectory.
22138 case $cache_file in
22139 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
22140 *) # Relative name.
22141 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
22144 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22145 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22146 # The eval makes quoting arguments work.
22147 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22148 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22149 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22150 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22151 { (exit 1); exit 1; }; }