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
695 LLVM_ENUM_ASM_PRINTERS
696 LLVM_ENUM_ASM_PARSERS
697 LLVM_ENUM_DISASSEMBLERS
706 ENABLE_LLVMC_DYNAMIC_PLUGINS
752 HAVE_LINK_RETAIN_SYMBOLS_FILE
755 CONVENIENCE_LTDL_TRUE
756 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
789 ENABLE_VISIBILITY_INLINES_HIDDEN
795 ac_precious_vars
='build_alias
806 ac_subdirs_all
='projects/llvm-gcc
810 projects/llvm-poolalloc
813 projects/llvm-stacker
818 projects/llvm-kernel'
820 # Initialize some variables set by options.
822 ac_init_version
=false
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
832 program_transform_name
=s
,x
,x
,
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir
='${exec_prefix}/bin'
847 sbindir
='${exec_prefix}/sbin'
848 libexecdir
='${exec_prefix}/libexec'
849 datarootdir
='${prefix}/share'
850 datadir
='${datarootdir}'
851 sysconfdir
='${prefix}/etc'
852 sharedstatedir
='${prefix}/com'
853 localstatedir
='${prefix}/var'
854 includedir
='${prefix}/include'
855 oldincludedir
='/usr/include'
856 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir
='${datarootdir}/info'
862 libdir
='${exec_prefix}/lib'
863 localedir
='${datarootdir}/locale'
864 mandir
='${datarootdir}/man'
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\
$ac_option
878 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 # Accept the important Cygnus configure options, so we can diagnose typos.
884 case $ac_dashdash$ac_option in
888 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
890 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
893 -build |
--build |
--buil |
--bui |
--bu)
894 ac_prev
=build_alias
;;
895 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
896 build_alias
=$ac_optarg ;;
898 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
899 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
900 ac_prev
=cache_file
;;
901 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
902 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
903 cache_file
=$ac_optarg ;;
906 cache_file
=config.cache
;;
908 -datadir |
--datadir |
--datadi |
--datad)
910 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
911 datadir
=$ac_optarg ;;
913 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
914 |
--dataroo |
--dataro |
--datar)
915 ac_prev
=datarootdir
;;
916 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
917 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
918 datarootdir
=$ac_optarg ;;
920 -disable-* |
--disable-*)
921 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
927 eval enable_
$ac_feature=no
;;
929 -docdir |
--docdir |
--docdi |
--doc |
--do)
931 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
934 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
936 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
939 -enable-* |
--enable-*)
940 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
943 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944 { (exit 1); exit 1; }; }
945 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
946 eval enable_
$ac_feature=\
$ac_optarg ;;
948 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
949 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
950 |
--exec |
--exe |
--ex)
951 ac_prev
=exec_prefix
;;
952 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
953 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
954 |
--exec=* |
--exe=* |
--ex=*)
955 exec_prefix
=$ac_optarg ;;
957 -gas |
--gas |
--ga |
--g)
958 # Obsolete; use --with-gas.
961 -help |
--help |
--hel |
--he |
-h)
963 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
964 ac_init_help
=recursive
;;
965 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
966 ac_init_help
=short
;;
968 -host |
--host |
--hos |
--ho)
969 ac_prev
=host_alias
;;
970 -host=* |
--host=* |
--hos=* |
--ho=*)
971 host_alias
=$ac_optarg ;;
973 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
975 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
977 htmldir
=$ac_optarg ;;
979 -includedir |
--includedir |
--includedi |
--included |
--include \
980 |
--includ |
--inclu |
--incl |
--inc)
981 ac_prev
=includedir
;;
982 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
983 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
984 includedir
=$ac_optarg ;;
986 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
988 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
989 infodir
=$ac_optarg ;;
991 -libdir |
--libdir |
--libdi |
--libd)
993 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
996 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
997 |
--libexe |
--libex |
--libe)
998 ac_prev
=libexecdir
;;
999 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1000 |
--libexe=* |
--libex=* |
--libe=*)
1001 libexecdir
=$ac_optarg ;;
1003 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1004 ac_prev
=localedir
;;
1005 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1006 localedir
=$ac_optarg ;;
1008 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1009 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1010 ac_prev
=localstatedir
;;
1011 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1012 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1013 localstatedir
=$ac_optarg ;;
1015 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1017 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1018 mandir
=$ac_optarg ;;
1020 -nfp |
--nfp |
--nf)
1021 # Obsolete; use --without-fp.
1024 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1025 |
--no-cr |
--no-c |
-n)
1028 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1029 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1032 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1033 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1034 |
--oldin |
--oldi |
--old |
--ol |
--o)
1035 ac_prev
=oldincludedir
;;
1036 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1037 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1038 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1039 oldincludedir
=$ac_optarg ;;
1041 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1043 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1044 prefix
=$ac_optarg ;;
1046 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1047 |
--program-pre |
--program-pr |
--program-p)
1048 ac_prev
=program_prefix
;;
1049 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1050 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1051 program_prefix
=$ac_optarg ;;
1053 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1054 |
--program-suf |
--program-su |
--program-s)
1055 ac_prev
=program_suffix
;;
1056 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1057 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1058 program_suffix
=$ac_optarg ;;
1060 -program-transform-name |
--program-transform-name \
1061 |
--program-transform-nam |
--program-transform-na \
1062 |
--program-transform-n |
--program-transform- \
1063 |
--program-transform |
--program-transfor \
1064 |
--program-transfo |
--program-transf \
1065 |
--program-trans |
--program-tran \
1066 |
--progr-tra |
--program-tr |
--program-t)
1067 ac_prev
=program_transform_name
;;
1068 -program-transform-name=* |
--program-transform-name=* \
1069 |
--program-transform-nam=* |
--program-transform-na=* \
1070 |
--program-transform-n=* |
--program-transform-=* \
1071 |
--program-transform=* |
--program-transfor=* \
1072 |
--program-transfo=* |
--program-transf=* \
1073 |
--program-trans=* |
--program-tran=* \
1074 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1075 program_transform_name
=$ac_optarg ;;
1077 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1079 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1080 pdfdir
=$ac_optarg ;;
1082 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1084 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1087 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1088 |
-silent |
--silent |
--silen |
--sile |
--sil)
1091 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1093 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1095 sbindir
=$ac_optarg ;;
1097 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1098 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1099 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1101 ac_prev
=sharedstatedir
;;
1102 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1103 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1104 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1106 sharedstatedir
=$ac_optarg ;;
1108 -site |
--site |
--sit)
1110 -site=* |
--site=* |
--sit=*)
1113 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1115 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1116 srcdir
=$ac_optarg ;;
1118 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1119 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1120 ac_prev
=sysconfdir
;;
1121 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1122 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1123 sysconfdir
=$ac_optarg ;;
1125 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1126 ac_prev
=target_alias
;;
1127 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1128 target_alias
=$ac_optarg ;;
1130 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1133 -version |
--version |
--versio |
--versi |
--vers |
-V)
1134 ac_init_version
=: ;;
1137 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1143 eval with_
$ac_package=\
$ac_optarg ;;
1145 -without-* |
--without-*)
1146 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1152 eval with_
$ac_package=no
;;
1155 # Obsolete; use --with-x.
1158 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1159 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1160 ac_prev
=x_includes
;;
1161 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1162 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1163 x_includes
=$ac_optarg ;;
1165 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1166 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1167 ac_prev
=x_libraries
;;
1168 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1169 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1170 x_libraries
=$ac_optarg ;;
1172 -*) { echo "$as_me: error: unrecognized option: $ac_option
1173 Try \`$0 --help' for more information." >&2
1174 { (exit 1); exit 1; }; }
1178 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1181 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182 { (exit 1); exit 1; }; }
1183 eval $ac_envvar=\
$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1190 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 if test -n "$ac_prev"; then
1198 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1199 { echo "$as_me: error: missing argument to $ac_option" >&2
1200 { (exit 1); exit 1; }; }
1203 # Be sure to have absolute directory names.
1204 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val
=\$
$ac_var
1211 [\\/$
]* | ?
:[\\/]* ) continue;;
1212 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1214 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215 { (exit 1); exit 1; }; }
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1223 target
=$target_alias
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x
; then
1227 if test "x$build_alias" = x
; then
1228 cross_compiling
=maybe
1229 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1237 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1239 test "$silent" = yes && exec 6>/dev
/null
1242 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di
=`ls -di .` &&
1244 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1245 { echo "$as_me: error: Working directory cannot be determined" >&2
1246 { (exit 1); exit 1; }; }
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 { echo "$as_me: error: pwd does not report name of working directory" >&2
1249 { (exit 1); exit 1; }; }
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted
=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir
=`$as_dirname -- "$0" ||
1257 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$0" : 'X\(//\)[^/]' \| \
1259 X"$0" : 'X\(//\)$' \| \
1260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1284 ac_srcdir_defaulted
=no
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1288 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289 { (exit 1); exit 1; }; }
1291 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294 { (exit 1); exit 1; }; }
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1304 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 for ac_var
in $ac_precious_vars; do
1307 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1309 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1320 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1378 --build=BUILD configure
for building on BUILD
[guessed
]
1379 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1380 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive
) echo "Configuration of llvm 2.8svn:";;
1391 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1392 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1393 --enable-optimized Compile with optimizations enabled
(default is NO
)
1394 --enable-profiling Compile with profiling enabled
(default is NO
)
1395 --enable-assertions Compile with assertion checks enabled
(default is
1397 --enable-expensive-checks
1398 Compile with expensive debug checks enabled
(default
1400 --enable-debug-runtime Build runtime libs with debug symbols
(default is
1402 --enable-debug-symbols Build compiler with debug symbols
(default is NO
if
1403 optimization is on and YES
if it
's off)
1404 --enable-jit Enable Just In Time Compiling (default is YES)
1405 --enable-doxygen Build doxygen documentation (default is NO)
1406 --enable-threads Use threads if available (default is YES)
1407 --enable-pic Build LLVM with Position Independent Code (default
1409 --enable-shared Build a shared library and link tools against it
1411 --enable-targets Build specific host targets: all or
1412 target1,target2,... Valid targets are: host, x86,
1413 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1414 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1415 and cpp (default=all)
1416 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1418 --enable-bindings Build specific language bindings:
1419 all,auto,none,{binding-name} (default=auto)
1420 --enable-libffi Check for the presence of libffi (default is NO)
1421 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1423 --enable-llvmc-dynamic-plugins
1424 Enable dynamic LLVMC plugins (default is YES)
1425 --enable-ltdl-install install libltdl
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1432 --with-llvmgcc Specify location of llvm-gcc driver (default
1434 --with-llvmgxx Specify location of llvm-g++ driver (default
1436 --with-clang Specify location of clang compiler (default is
1438 --with-built-clang Use the compiled Clang as the LLVM compiler
1440 --with-optimize-option Select the compiler options to use for optimized
1442 --with-extra-options Specify additional options to compile LLVM with
1443 --with-ocaml-libdir Specify install location for ocaml bindings (default
1445 --with-c-include-dirs Colon separated list of directories clang will
1447 --with-cxx-include-root Directory with the libstdc++ headers.
1448 --with-cxx-include-arch Architecture of the libstdc++ headers.
1449 --with-cxx-include-32bit-dir
1450 32 bit multilib dir.
1451 --with-cxx-include-64bit-dir
1452 64 bit multilib directory.
1453 --with-binutils-include Specify path to binutils/include/ containing
1454 plugin-api.h file for gold plugin.
1455 --with-tclinclude directory where tcl headers are
1456 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1457 clang, or none; default=check)
1458 --with-udis86=<path> Use udis86 external x86 disassembler library
1459 --with-oprofile=<prefix>
1460 Tell OProfile >= 0.9.4 how to symbolize JIT output
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1468 you have headers in a nonstandard directory <include dir>
1470 CXX C++ compiler command
1471 CXXFLAGS C++ compiler flags
1473 Use these variables to override the choices made by `configure' or to
help
1474 it to
find libraries and programs with nonstandard names
/locations.
1476 Report bugs to
<llvmbugs@cs.uiuc.edu
>.
1481 if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
1483 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1484 test -d "$ac_dir" ||
continue
1488 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1490 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1495 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1498 ac_abs_top_builddir
=$ac_pwd
1499 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir
=$ac_top_build_prefix
1504 .
) # We are building in place.
1506 ac_top_srcdir
=$ac_top_builddir_sub
1507 ac_abs_top_srcdir
=$ac_pwd ;;
1508 [\\/]* | ?
:[\\/]* ) # Absolute name.
1509 ac_srcdir
=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir
=$srcdir
1511 ac_abs_top_srcdir
=$srcdir ;;
1513 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1517 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1519 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1528 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1537 llvm configure
2.8svn
1538 generated by GNU Autoconf
2.60
1540 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1541 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1542 This configure
script is free software
; the Free Software Foundation
1543 gives unlimited permission to copy
, distribute and modify it.
1545 Copyright
(c
) 2003-2010 University of Illinois
at Urbana-Champaign.
1549 cat >config.log
<<_ACEOF
1550 This file contains any messages produced by compilers while
1551 running configure, to aid debugging if configure makes a mistake.
1553 It was created by llvm $as_me 2.8svn, which was
1554 generated by GNU Autoconf 2.60. Invocation command line was
1566 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1572 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1575 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1576 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1577 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1578 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1579 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1580 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1581 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1589 test -z "$as_dir" && as_dir
=.
1590 echo "PATH: $as_dir"
1606 # Keep a trace of the command line.
1607 # Strip out --no-create and --no-recursion so they do not pile up.
1608 # Strip out --silent because we don't want to record it for future runs.
1609 # Also quote any args containing shell meta-characters.
1610 # Make two passes to allow for proper duplicate-argument suppression.
1614 ac_must_keep_next
=false
1620 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1621 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1622 |
-silent |
--silent |
--silen |
--sile |
--sil)
1625 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1628 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1630 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1631 if test $ac_must_keep_next = true
; then
1632 ac_must_keep_next
=false
# Got value, back to normal.
1635 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1636 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1637 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1638 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1639 case "$ac_configure_args0 " in
1640 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1643 -* ) ac_must_keep_next
=true
;;
1646 ac_configure_args
="$ac_configure_args '$ac_arg'"
1651 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1652 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1654 # When interrupted or exit'd, cleanup temporary files, and complete
1655 # config.log. We remove comments because anyway the quotes in there
1656 # would cause problems or look ugly.
1657 # WARNING: Use '\'' to represent an apostrophe within the trap.
1658 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1659 trap 'exit_status=$?
1660 # Save into config.log some information that might help in debugging.
1665 ## ---------------- ##
1666 ## Cache variables. ##
1667 ## ---------------- ##
1670 # The following way of writing the cache mishandles newlines in values,
1672 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673 eval ac_val=\$$ac_var
1677 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1681 _ | IFS | as_nl) ;; #(
1682 *) $as_unset $ac_var ;;
1687 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688 *${as_nl}ac_space=\ *)
1690 "s/'\''/'\''\\\\'\'''\''/g;
1691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1702 ## ----------------- ##
1703 ## Output variables. ##
1704 ## ----------------- ##
1707 for ac_var in $ac_subst_vars
1709 eval ac_val=\$$ac_var
1711 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1713 echo "$ac_var='\''$ac_val'\''"
1717 if test -n "$ac_subst_files"; then
1719 ## ------------------- ##
1720 ## File substitutions. ##
1721 ## ------------------- ##
1724 for ac_var
in $ac_subst_files
1726 eval ac_val
=\$
$ac_var
1728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730 echo "$ac_var='\''$ac_val'\''"
1735 if test -s confdefs.h; then
1745 test "$ac_signal" != 0 &&
1746 echo "$as_me: caught signal $ac_signal"
1747 echo "$as_me: exit $exit_status"
1749 rm -f core *.core core.conftest.* &&
1750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1753 for ac_signal
in 1 2 13 15; do
1754 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1759 rm -f -r conftest
* confdefs.h
1761 # Predefined preprocessor variables.
1763 cat >>confdefs.h
<<_ACEOF
1764 #define PACKAGE_NAME "$PACKAGE_NAME"
1768 cat >>confdefs.h
<<_ACEOF
1769 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1773 cat >>confdefs.h
<<_ACEOF
1774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1778 cat >>confdefs.h
<<_ACEOF
1779 #define PACKAGE_STRING "$PACKAGE_STRING"
1783 cat >>confdefs.h
<<_ACEOF
1784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1788 # Let the site file select an alternate cache file if it wants to.
1789 # Prefer explicitly selected file to automatically selected ones.
1790 if test -n "$CONFIG_SITE"; then
1791 set x
"$CONFIG_SITE"
1792 elif test "x$prefix" != xNONE
; then
1793 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1795 set x
"$ac_default_prefix/share/config.site" \
1796 "$ac_default_prefix/etc/config.site"
1801 if test -r "$ac_site_file"; then
1802 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803 echo "$as_me: loading site script $ac_site_file" >&6;}
1804 sed 's/^/| /' "$ac_site_file" >&5
1809 if test -r "$cache_file"; then
1810 # Some versions of bash will fail to source /dev/null (special
1811 # files actually), so we avoid doing that.
1812 if test -f "$cache_file"; then
1813 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814 echo "$as_me: loading cache $cache_file" >&6;}
1816 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1817 *) .
"./$cache_file";;
1821 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822 echo "$as_me: creating cache $cache_file" >&6;}
1826 # Check that the precious variables saved in the cache have kept the same
1828 ac_cache_corrupted
=false
1829 for ac_var
in $ac_precious_vars; do
1830 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1831 eval ac_new_set
=\
$ac_env_${ac_var}_set
1832 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1833 eval ac_new_val
=\
$ac_env_${ac_var}_value
1834 case $ac_old_set,$ac_new_set in
1836 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1838 ac_cache_corrupted
=: ;;
1840 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1842 ac_cache_corrupted
=: ;;
1845 if test "x$ac_old_val" != "x$ac_new_val"; then
1846 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1849 echo "$as_me: former value: $ac_old_val" >&2;}
1850 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1851 echo "$as_me: current value: $ac_new_val" >&2;}
1852 ac_cache_corrupted
=:
1855 # Pass precious variables to config.status.
1856 if test "$ac_new_set" = set; then
1858 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1859 *) ac_arg
=$ac_var=$ac_new_val ;;
1861 case " $ac_configure_args " in
1862 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1863 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1867 if $ac_cache_corrupted; then
1868 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872 { (exit 1); exit 1; }; }
1900 ac_cpp
='$CPP $CPPFLAGS'
1901 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1907 LLVM_COPYRIGHT
="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1916 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
1917 if test -f "$ac_dir/install-sh"; then
1919 ac_install_sh
="$ac_aux_dir/install-sh -c"
1921 elif test -f "$ac_dir/install.sh"; then
1923 ac_install_sh
="$ac_aux_dir/install.sh -c"
1925 elif test -f "$ac_dir/shtool"; then
1927 ac_install_sh
="$ac_aux_dir/shtool install -c"
1931 if test -z "$ac_aux_dir"; then
1932 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1933 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1934 { (exit 1); exit 1; }; }
1937 # These three variables are undocumented and unsupported,
1938 # and are intended to be withdrawn in a future Autoconf release.
1939 # They can cause serious problems if a builder's source tree is in a directory
1940 # whose full name contains unusual characters.
1941 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1942 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1943 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1947 if test ${srcdir} != "." ; then
1948 if test -f ${srcdir}/include
/llvm
/Config
/config.h
; then
1949 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1950 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1951 { (exit 1); exit 1; }; }
1957 if test -d ${srcdir}/projects
/llvm-gcc
; then
1958 subdirs
="$subdirs projects/llvm-gcc"
1962 if test -d ${srcdir}/projects
/test-suite
; then
1963 subdirs
="$subdirs projects/test-suite"
1967 if test -d ${srcdir}/projects
/llvm-test
; then
1968 subdirs
="$subdirs projects/llvm-test"
1972 if test -d ${srcdir}/projects
/poolalloc
; then
1973 subdirs
="$subdirs projects/poolalloc"
1977 if test -d ${srcdir}/projects
/llvm-poolalloc
; then
1978 subdirs
="$subdirs projects/llvm-poolalloc"
1982 for i
in `ls ${srcdir}/projects`
1984 if test -d ${srcdir}/projects
/${i} ; then
1987 sample
) subdirs
="$subdirs projects/sample"
1989 privbracket
) subdirs
="$subdirs projects/privbracket"
1991 llvm-stacker
) subdirs
="$subdirs projects/llvm-stacker"
1993 llvm-reopt
) subdirs
="$subdirs projects/llvm-reopt"
1995 llvm-java
) subdirs
="$subdirs projects/llvm-java"
1997 llvm-tv
) subdirs
="$subdirs projects/llvm-tv"
1999 safecode
) subdirs
="$subdirs projects/safecode"
2001 llvm-kernel
) subdirs
="$subdirs projects/llvm-kernel"
2009 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2010 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2017 # Make sure we can run config.sub.
2018 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2019 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2020 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2021 { (exit 1); exit 1; }; }
2023 { echo "$as_me:$LINENO: checking build system type" >&5
2024 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2025 if test "${ac_cv_build+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 ac_build_alias
=$build_alias
2029 test "x$ac_build_alias" = x
&&
2030 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2031 test "x$ac_build_alias" = x
&&
2032 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2033 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2034 { (exit 1); exit 1; }; }
2035 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2036 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2037 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2038 { (exit 1); exit 1; }; }
2041 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2042 echo "${ECHO_T}$ac_cv_build" >&6; }
2043 case $ac_cv_build in
2045 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2046 echo "$as_me: error: invalid value of canonical build" >&2;}
2047 { (exit 1); exit 1; }; };;
2050 ac_save_IFS
=$IFS; IFS
='-'
2056 # Remember, the first character of IFS is used to create $*,
2057 # except with old shells:
2060 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2063 { echo "$as_me:$LINENO: checking host system type" >&5
2064 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2065 if test "${ac_cv_host+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 if test "x$host_alias" = x
; then
2069 ac_cv_host
=$ac_cv_build
2071 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2072 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2073 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2074 { (exit 1); exit 1; }; }
2078 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2079 echo "${ECHO_T}$ac_cv_host" >&6; }
2082 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2083 echo "$as_me: error: invalid value of canonical host" >&2;}
2084 { (exit 1); exit 1; }; };;
2087 ac_save_IFS
=$IFS; IFS
='-'
2093 # Remember, the first character of IFS is used to create $*,
2094 # except with old shells:
2097 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2100 { echo "$as_me:$LINENO: checking target system type" >&5
2101 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2102 if test "${ac_cv_target+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 if test "x$target_alias" = x
; then
2106 ac_cv_target
=$ac_cv_host
2108 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2109 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2110 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2111 { (exit 1); exit 1; }; }
2115 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2116 echo "${ECHO_T}$ac_cv_target" >&6; }
2117 case $ac_cv_target in
2119 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2120 echo "$as_me: error: invalid value of canonical target" >&2;}
2121 { (exit 1); exit 1; }; };;
2123 target
=$ac_cv_target
2124 ac_save_IFS
=$IFS; IFS
='-'
2130 # Remember, the first character of IFS is used to create $*,
2131 # except with old shells:
2134 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2137 # The aliases save the names the user supplied, while $host etc.
2138 # will get canonicalized.
2139 test -n "$target_alias" &&
2140 test "$program_prefix$program_suffix$program_transform_name" = \
2142 program_prefix
=${target_alias}-
2144 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2145 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2146 if test "${llvm_cv_os_type+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 llvm_cv_link_all_option
="-Wl,--whole-archive"
2152 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2153 llvm_cv_os_type
="AIX"
2154 llvm_cv_platform_type
="Unix" ;;
2156 llvm_cv_link_all_option
="-Wl,--whole-archive"
2157 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2158 llvm_cv_os_type
="IRIX"
2159 llvm_cv_platform_type
="Unix" ;;
2161 llvm_cv_link_all_option
="-Wl,--whole-archive"
2162 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2163 llvm_cv_os_type
="Cygwin"
2164 llvm_cv_platform_type
="Unix" ;;
2166 llvm_cv_link_all_option
="-Wl,-all_load"
2167 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2168 llvm_cv_os_type
="Darwin"
2169 llvm_cv_platform_type
="Unix" ;;
2171 llvm_cv_link_all_option
="-Wl,-all_load"
2172 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2173 llvm_cv_os_type
="Minix"
2174 llvm_cv_platform_type
="Unix" ;;
2176 llvm_cv_link_all_option
="-Wl,--whole-archive"
2177 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2178 llvm_cv_os_type
="FreeBSD"
2179 llvm_cv_platform_type
="Unix" ;;
2181 llvm_cv_link_all_option
="-Wl,--whole-archive"
2182 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2183 llvm_cv_os_type
="OpenBSD"
2184 llvm_cv_platform_type
="Unix" ;;
2186 llvm_cv_link_all_option
="-Wl,--whole-archive"
2187 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2188 llvm_cv_os_type
="NetBSD"
2189 llvm_cv_platform_type
="Unix" ;;
2191 llvm_cv_link_all_option
="-Wl,--whole-archive"
2192 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2193 llvm_cv_os_type
="DragonFly"
2194 llvm_cv_platform_type
="Unix" ;;
2196 llvm_cv_link_all_option
="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2198 llvm_cv_os_type
="HP-UX"
2199 llvm_cv_platform_type
="Unix" ;;
2201 llvm_cv_link_all_option
="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2203 llvm_cv_os_type
="Interix"
2204 llvm_cv_platform_type
="Unix" ;;
2206 llvm_cv_link_all_option
="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2208 llvm_cv_os_type
="Linux"
2209 llvm_cv_platform_type
="Unix" ;;
2211 llvm_cv_link_all_option
="-Wl,-z,allextract"
2212 llvm_cv_no_link_all_option
="-Wl,-z,defaultextract"
2213 llvm_cv_os_type
="SunOS"
2214 llvm_cv_platform_type
="Unix" ;;
2216 llvm_cv_link_all_option
="-Wl,-z,allextract"
2217 llvm_cv_link_all_option
="-Wl,-z,defaultextract"
2218 llvm_cv_os_type
="AuroraUX"
2219 llvm_cv_platform_type
="Unix" ;;
2221 llvm_cv_link_all_option
="-Wl,--whole-archive"
2222 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2223 llvm_cv_os_type
="Win32"
2224 llvm_cv_platform_type
="Win32" ;;
2226 llvm_cv_link_all_option
="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2228 llvm_cv_os_type
="MingW"
2229 llvm_cv_platform_type
="Win32" ;;
2231 llvm_cv_link_all_option
="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2233 llvm_cv_os_type
="Haiku"
2234 llvm_cv_platform_type
="Unix" ;;
2236 llvm_cv_link_all_option
="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2238 llvm_cv_os_type
="Freestanding"
2239 llvm_cv_platform_type
="Unix" ;;
2241 llvm_cv_link_all_option
="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2243 llvm_cv_os_type
="Freestanding"
2244 llvm_cv_platform_type
="Unix" ;;
2246 llvm_cv_link_all_option
=""
2247 llvm_cv_no_link_all_option
=""
2248 llvm_cv_os_type
="Unknown"
2249 llvm_cv_platform_type
="Unknown" ;;
2252 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2253 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2255 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2256 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2257 if test "${llvm_cv_target_os_type+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 llvm_cv_target_os_type
="AIX" ;;
2264 llvm_cv_target_os_type
="IRIX" ;;
2266 llvm_cv_target_os_type
="Cygwin" ;;
2268 llvm_cv_target_os_type
="Darwin" ;;
2270 llvm_cv_target_os_type
="Minix" ;;
2272 llvm_cv_target_os_type
="FreeBSD" ;;
2274 llvm_cv_target_os_type
="OpenBSD" ;;
2276 llvm_cv_target_os_type
="NetBSD" ;;
2278 llvm_cv_target_os_type
="DragonFly" ;;
2280 llvm_cv_target_os_type
="HP-UX" ;;
2282 llvm_cv_target_os_type
="Interix" ;;
2284 llvm_cv_target_os_type
="Linux" ;;
2286 llvm_cv_target_os_type
="SunOS" ;;
2288 llvm_cv_target_os_type
="AuroraUX" ;;
2290 llvm_cv_target_os_type
="Win32" ;;
2292 llvm_cv_target_os_type
="MingW" ;;
2294 llvm_cv_target_os_type
="Haiku" ;;
2296 llvm_cv_target_os_type
="Freestanding" ;;
2298 llvm_cv_target_os_type
="Unknown" ;;
2301 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2302 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2304 if test "$llvm_cv_os_type" = "Unknown" ; then
2305 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2306 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2307 { (exit 1); exit 1; }; }
2312 HOST_OS
=$llvm_cv_os_type
2314 TARGET_OS
=$llvm_cv_target_os_type
2317 LINKALL
=$llvm_cv_link_all_option
2319 NOLINKALL
=$llvm_cv_no_link_all_option
2322 case $llvm_cv_platform_type in
2325 cat >>confdefs.h
<<\_ACEOF
2326 #define LLVM_ON_UNIX 1
2336 cat >>confdefs.h
<<\_ACEOF
2337 #define LLVM_ON_WIN32 1
2347 { echo "$as_me:$LINENO: checking target architecture" >&5
2348 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2349 if test "${llvm_cv_target_arch+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 i?
86-*) llvm_cv_target_arch
="x86" ;;
2354 amd64-
* | x86_64-
*) llvm_cv_target_arch
="x86_64" ;;
2355 sparc
*-*) llvm_cv_target_arch
="Sparc" ;;
2356 powerpc
*-*) llvm_cv_target_arch
="PowerPC" ;;
2357 alpha
*-*) llvm_cv_target_arch
="Alpha" ;;
2358 arm
*-*) llvm_cv_target_arch
="ARM" ;;
2359 mips-
*) llvm_cv_target_arch
="Mips" ;;
2360 pic16-
*) llvm_cv_target_arch
="PIC16" ;;
2361 xcore-
*) llvm_cv_target_arch
="XCore" ;;
2362 msp430-
*) llvm_cv_target_arch
="MSP430" ;;
2363 s390x-
*) llvm_cv_target_arch
="SystemZ" ;;
2364 bfin-
*) llvm_cv_target_arch
="Blackfin" ;;
2365 mblaze-
*) llvm_cv_target_arch
="MBlaze" ;;
2366 *) llvm_cv_target_arch
="Unknown" ;;
2369 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2372 if test "$llvm_cv_target_arch" = "Unknown" ; then
2373 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2377 # Determine the LLVM native architecture for the target
2378 case "$llvm_cv_target_arch" in
2379 x86
) LLVM_NATIVE_ARCH
="X86" ;;
2380 x86_64
) LLVM_NATIVE_ARCH
="X86" ;;
2381 *) LLVM_NATIVE_ARCH
="$llvm_cv_target_arch" ;;
2384 ARCH
=$llvm_cv_target_arch
2388 ac_cpp
='$CPP $CPPFLAGS'
2389 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2392 if test -n "$ac_tool_prefix"; then
2393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 if test -n "$CC"; then
2401 ac_cv_prog_CC
="$CC" # Let the user override the test.
2403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir
=.
2408 for ac_exec_ext
in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 if test -n "$CC"; then
2422 { echo "$as_me:$LINENO: result: $CC" >&5
2423 echo "${ECHO_T}$CC" >&6; }
2425 { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2431 if test -z "$ac_cv_prog_CC"; then
2433 # Extract the first word of "gcc", so it can be a program name with args.
2434 set dummy gcc
; ac_word
=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2447 test -z "$as_dir" && as_dir
=.
2448 for ac_exec_ext
in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_ac_ct_CC
="gcc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2461 if test -n "$ac_ct_CC"; then
2462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463 echo "${ECHO_T}$ac_ct_CC" >&6; }
2465 { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2469 if test "x$ac_ct_CC" = x
; then
2472 case $cross_compiling:$ac_tool_warned in
2474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475 whose name does not start with the host triplet. If you think this
2476 configuration is useful to you, please write to autoconf@gnu.org." >&5
2477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478 whose name does not start with the host triplet. If you think this
2479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480 ac_tool_warned
=yes ;;
2488 if test -z "$CC"; then
2489 if test -n "$ac_tool_prefix"; then
2490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2491 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC
="$CC" # Let the user override the test.
2500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2504 test -z "$as_dir" && as_dir
=.
2505 for ac_exec_ext
in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 if test -n "$CC"; then
2519 { echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6; }
2522 { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2529 if test -z "$CC"; then
2530 # Extract the first word of "cc", so it can be a program name with args.
2531 set dummy cc
; ac_word
=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC
="$CC" # Let the user override the test.
2541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2545 test -z "$as_dir" && as_dir
=.
2546 for ac_exec_ext
in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549 ac_prog_rejected
=yes
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 if test $ac_prog_rejected = yes; then
2561 # We found a bogon in the path, so make sure we never use it.
2562 set dummy
$ac_cv_prog_CC
2564 if test $# != 0; then
2565 # We chose a different compiler from the bogus one.
2566 # However, it has the same basename, so the bogon will be chosen
2567 # first if we set CC to just the basename; use the full file name.
2569 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2575 if test -n "$CC"; then
2576 { echo "$as_me:$LINENO: result: $CC" >&5
2577 echo "${ECHO_T}$CC" >&6; }
2579 { echo "$as_me:$LINENO: result: no" >&5
2580 echo "${ECHO_T}no" >&6; }
2585 if test -z "$CC"; then
2586 if test -n "$ac_tool_prefix"; then
2587 for ac_prog
in cl.exe
2589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC
="$CC" # Let the user override the test.
2599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2603 test -z "$as_dir" && as_dir
=.
2604 for ac_exec_ext
in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2606 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 if test -n "$CC"; then
2618 { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2621 { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2626 test -n "$CC" && break
2629 if test -z "$CC"; then
2631 for ac_prog
in cl.exe
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634 set dummy
$ac_prog; ac_word
=$2
2635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 if test -n "$ac_ct_CC"; then
2641 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir
=.
2648 for ac_exec_ext
in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_prog_ac_ct_CC
="$ac_prog"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663 echo "${ECHO_T}$ac_ct_CC" >&6; }
2665 { echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6; }
2670 test -n "$ac_ct_CC" && break
2673 if test "x$ac_ct_CC" = x
; then
2676 case $cross_compiling:$ac_tool_warned in
2678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679 whose name does not start with the host triplet. If you think this
2680 configuration is useful to you, please write to autoconf@gnu.org." >&5
2681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682 whose name does not start with the host triplet. If you think this
2683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684 ac_tool_warned
=yes ;;
2693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&5
2695 echo "$as_me: error: no acceptable C compiler found in \$PATH
2696 See \`config.log' for more details." >&2;}
2697 { (exit 1); exit 1; }; }
2699 # Provide some information about the compiler.
2700 echo "$as_me:$LINENO: checking for C compiler version" >&5
2701 ac_compiler
=`set X $ac_compile; echo $2`
2702 { (ac_try
="$ac_compiler --version >&5"
2704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compiler --version >&5") 2>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }
2712 { (ac_try="$ac_compiler -v >&5"
2714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2715 *) ac_try_echo
=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler -v >&5") 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2722 { (ac_try
="$ac_compiler -V >&5"
2724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -V >&5") 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2733 cat >conftest.$ac_ext <<_ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2748 ac_clean_files_save=$ac_clean_files
2749 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2750 # Try to create an executable without -o first, disregard a.out.
2751 # It will help us diagnose broken compilers, and finding out an intuition
2753 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2755 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2757 # List of possible output files, starting from the most likely.
2758 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2759 # only as a last resort. b.out is created by i960 compilers.
2760 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2762 # The IRIX 6 linker writes into existing files which may not be
2763 # executable, retaining their permissions. Remove them first so a
2764 # subsequent execution test works.
2766 for ac_file in $ac_files
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2775 if { (ac_try="$ac_link_default"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_link_default") 2>&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; then
2785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2788 # so that the user can short-circuit this test for compilers unknown to
2790 for ac_file
in $ac_files
2792 test -f "$ac_file" ||
continue
2794 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2797 # We found the default executable, but exeext='' is most
2801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2803 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2805 # We set ac_cv_exeext here because the later test for it is not
2806 # safe: cross compilers may not add the suffix if given an `-o'
2807 # argument, so we may need to know it at that point already.
2808 # Even if this section looks crufty: it has the advantage of
2815 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.
$ac_ext >&5
2821 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&5
2823 echo "$as_me: error: C compiler cannot create executables
2824 See \`config.log' for more details." >&2;}
2825 { (exit 77); exit 77; }; }
2828 ac_exeext
=$ac_cv_exeext
2829 { echo "$as_me:$LINENO: result: $ac_file" >&5
2830 echo "${ECHO_T}$ac_file" >&6; }
2832 # Check that the compiler produces executables we can run. If not, either
2833 # the compiler is broken, or we cross compile.
2834 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2836 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837 # If not cross compiling, check that we can run a simple program.
2838 if test "$cross_compiling" != yes; then
2839 if { ac_try
='./$ac_file'
2840 { (case "(($ac_try" in
2841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_try") 2>&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2851 if test "$cross_compiling" = maybe; then
2854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2855 If you meant to cross compile, use \`--host'.
2856 See \`config.log' for more details.
" >&5
2857 echo "$as_me: error
: cannot run C compiled programs.
2858 If you meant to cross compile
, use \
`--host'.
2859 See \`config.log
' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2864 { echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6; }
2867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2868 ac_clean_files=$ac_clean_files_save
2869 # Check that the compiler produces executables we can run. If not, either
2870 # the compiler is broken, or we cross compile.
2871 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874 echo "${ECHO_T}$cross_compiling" >&6; }
2876 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878 if { (ac_try="$ac_link"
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_link") 2>&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
2888 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2889 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2890 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2892 for ac_file
in conftest.exe conftest conftest.
*; do
2893 test -f "$ac_file" ||
continue
2895 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2896 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2905 See \`config.log' for more details." >&2;}
2906 { (exit 1); exit 1; }; }
2909 rm -f conftest
$ac_cv_exeext
2910 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2913 rm -f conftest.
$ac_ext
2914 EXEEXT
=$ac_cv_exeext
2916 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2918 if test "${ac_cv_objext+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 cat >conftest.
$ac_ext <<_ACEOF
2924 cat confdefs.h
>>conftest.
$ac_ext
2925 cat >>conftest.
$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2936 rm -f conftest.o conftest.obj
2937 if { (ac_try
="$ac_compile"
2939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; then
2947 for ac_file in conftest.o conftest.obj conftest.*; do
2948 test -f "$ac_file" || continue;
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960 See \`config.log
' for more details." >&5
2961 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details.
" >&2;}
2963 { (exit 1); exit 1; }; }
2966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2968 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2969 echo "${ECHO_T}$ac_cv_objext" >&6; }
2970 OBJEXT=$ac_cv_objext
2972 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2973 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975 echo $ECHO_N "(cached
) $ECHO_C" >&6
2977 cat >conftest.$ac_ext <<_ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3004 grep -v '^ *+' conftest.er1 >conftest.err
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010 { (case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_try") 2>&5
3017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest.$ac_objext'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3028 (exit $ac_status); }; }; then
3031 echo "$as_me: failed program was
:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3041 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3042 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3043 GCC=`test $ac_compiler_gnu = yes && echo yes`
3044 ac_test_CFLAGS=${CFLAGS+set}
3045 ac_save_CFLAGS=$CFLAGS
3046 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3047 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3048 if test "${ac_cv_prog_cc_g+set}" = set; then
3049 echo $ECHO_N "(cached
) $ECHO_C" >&6
3051 ac_save_c_werror_flag=$ac_c_werror_flag
3052 ac_c_werror_flag=yes
3055 cat >conftest.$ac_ext <<_ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3079 grep -v '^ *+' conftest.er1 >conftest.err
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3103 (exit $ac_status); }; }; then
3106 echo "$as_me: failed program was
:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3134 grep -v '^ *+' conftest.er1 >conftest.err
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3158 (exit $ac_status); }; }; then
3161 echo "$as_me: failed program was
:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3164 ac_c_werror_flag=$ac_save_c_werror_flag
3166 cat >conftest.$ac_ext <<_ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3181 rm -f conftest.$ac_objext
3182 if { (ac_try="$ac_compile"
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3190 grep -v '^ *+' conftest.er1 >conftest.err
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_try") 2>&5
3203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3204 (exit $ac_status); }; } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3210 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3213 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3214 (exit $ac_status); }; }; then
3217 echo "$as_me: failed program was
:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3232 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3234 if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236 elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3243 if test "$GCC" = yes; then
3249 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3250 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cc_c89+set}" = set; then
3252 echo $ECHO_N "(cached
) $ECHO_C" >&6
3254 ac_cv_prog_cc_c89=no
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3264 #include <sys/types.h>
3265 #include <sys/stat.h>
3266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267 struct buf { int x; };
3268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269 static char *e (p, i)
3275 static char *f (char * (*g) (char **, int), char **p, ...)
3280 s = g (p, va_arg (v,int));
3285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
3288 as 'x'. The following induces an error, until -std is added to get
3289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
3291 that's true only with -std. */
3292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299 int test (int i, double x);
3300 struct s1 {int (*f) (int a);};
3301 struct s2 {int (*f) (double a);};
3302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 CC="$ac_save_CC $ac_arg"
3317 rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3326 grep -v '^ *+' conftest.er1 >conftest.err
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
3339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 ac_cv_prog_cc_c89=$ac_arg
3353 echo "$as_me: failed program was
:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3359 rm -f core conftest.err conftest.$ac_objext
3360 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3362 rm -f conftest.$ac_ext
3367 case "x
$ac_cv_prog_cc_c89" in
3369 { echo "$as_me:$LINENO: result
: none needed
" >&5
3370 echo "${ECHO_T}none needed
" >&6; } ;;
3372 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3373 echo "${ECHO_T}unsupported
" >&6; } ;;
3375 CC="$CC $ac_cv_prog_cc_c89"
3376 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389 ac_cpp='$CPP $CPPFLAGS'
3390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3394 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3395 # On Suns, sometimes $CPP names a directory.
3396 if test -n "$CPP" && test -d "$CPP"; then
3399 if test -z "$CPP"; then
3400 if test "${ac_cv_prog_CPP+set}" = set; then
3401 echo $ECHO_N "(cached
) $ECHO_C" >&6
3403 # Double quotes because CPP needs to be expanded
3404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3407 for ac_c_preproc_warn_flag in '' yes
3409 # Use a header file that comes with gcc, so configuring glibc
3410 # with a fresh cross-compiler works.
3411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412 # <limits.h> exists even on freestanding compilers.
3413 # On the NeXT, cc -E runs the code through the compiler's parser,
3414 # not just through cpp. "Syntax error
" is here to catch this case.
3415 cat >conftest.$ac_ext <<_ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3422 # include <limits.h>
3424 # include <assert.h>
3428 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3436 grep -v '^ *+' conftest.er1 >conftest.err
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_c_preproc_warn_flag
3443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3450 if test -z "$ac_cpp_err"; then
3453 echo "$as_me: failed program was
:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 # Broken: fails on valid input.
3460 rm -f conftest.err conftest.$ac_ext
3462 # OK, works on sane cases. Now check whether nonexistent headers
3463 # can be detected and how.
3464 cat >conftest.$ac_ext <<_ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3470 #include <ac_nonexistent.h>
3472 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3480 grep -v '^ *+' conftest.er1 >conftest.err
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_c_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3494 if test -z "$ac_cpp_err"; then
3495 # Broken: success on invalid input.
3498 echo "$as_me: failed program was
:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 # Passes both tests.
3506 rm -f conftest.err conftest.$ac_ext
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.err conftest.$ac_ext
3511 if $ac_preproc_ok; then
3523 { echo "$as_me:$LINENO: result
: $CPP" >&5
3524 echo "${ECHO_T}$CPP" >&6; }
3526 for ac_c_preproc_warn_flag in '' yes
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error
" is here to catch this case.
3534 cat >conftest.$ac_ext <<_ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3541 # include <limits.h>
3543 # include <assert.h>
3547 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3555 grep -v '^ *+' conftest.er1 >conftest.err
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3559 (exit $ac_status); } >/dev/null; then
3560 if test -s conftest.err; then
3561 ac_cpp_err=$ac_c_preproc_warn_flag
3562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3569 if test -z "$ac_cpp_err"; then
3572 echo "$as_me: failed program was
:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 # Broken: fails on valid input.
3579 rm -f conftest.err conftest.$ac_ext
3581 # OK, works on sane cases. Now check whether nonexistent headers
3582 # can be detected and how.
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 #include <ac_nonexistent.h>
3591 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3596 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3599 grep -v '^ *+' conftest.er1 >conftest.err
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3603 (exit $ac_status); } >/dev/null; then
3604 if test -s conftest.err; then
3605 ac_cpp_err=$ac_c_preproc_warn_flag
3606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3613 if test -z "$ac_cpp_err"; then
3614 # Broken: success on invalid input.
3617 echo "$as_me: failed program was
:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 # Passes both tests.
3625 rm -f conftest.err conftest.$ac_ext
3628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629 rm -f conftest.err conftest.$ac_ext
3630 if $ac_preproc_ok; then
3633 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3634 See \
`config.log' for more details." >&5
3635 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3636 See \`config.log
' for more details." >&2;}
3637 { (exit 1); exit 1; }; }
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3643 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3648 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3649 if test "${ac_cv_path_GREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 # Extract the first word of "grep ggrep" to use in msg output
3653 if test -z "$GREP"; then
3654 set dummy grep ggrep; ac_prog_name=$2
3655 if test "${ac_cv_path_GREP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 ac_path_GREP_found=false
3659 # Loop through the user's path and
test for each of PROGNAME-LIST
3660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3661 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3664 test -z "$as_dir" && as_dir
=.
3665 for ac_prog
in grep ggrep
; do
3666 for ac_exec_ext
in '' $ac_executable_extensions; do
3667 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3668 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3669 # Check for GNU ac_path_GREP and select it if it is found.
3670 # Check for GNU $ac_path_GREP
3671 case `"$ac_path_GREP" --version 2>&1` in
3673 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3676 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
3682 echo 'GREP' >> "conftest.nl"
3683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3684 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3685 ac_count
=`expr $ac_count + 1`
3686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_GREP
="$ac_path_GREP"
3689 ac_path_GREP_max
=$ac_count
3691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3694 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3698 $ac_path_GREP_found && break 3
3708 GREP
="$ac_cv_path_GREP"
3709 if test -z "$GREP"; then
3710 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3711 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3712 { (exit 1); exit 1; }; }
3716 ac_cv_path_GREP
=$GREP
3721 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3722 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3723 GREP
="$ac_cv_path_GREP"
3726 { echo "$as_me:$LINENO: checking for egrep" >&5
3727 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3728 if test "${ac_cv_path_EGREP+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3732 then ac_cv_path_EGREP
="$GREP -E"
3734 # Extract the first word of "egrep" to use in msg output
3735 if test -z "$EGREP"; then
3736 set dummy
egrep; ac_prog_name
=$2
3737 if test "${ac_cv_path_EGREP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 ac_path_EGREP_found
=false
3741 # Loop through the user's path and test for each of PROGNAME-LIST
3742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3743 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3746 test -z "$as_dir" && as_dir
=.
3747 for ac_prog
in egrep; do
3748 for ac_exec_ext
in '' $ac_executable_extensions; do
3749 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3750 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3751 # Check for GNU ac_path_EGREP and select it if it is found.
3752 # Check for GNU $ac_path_EGREP
3753 case `"$ac_path_EGREP" --version 2>&1` in
3755 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3758 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3761 cat "conftest.in" "conftest.in" >"conftest.tmp"
3762 mv "conftest.tmp" "conftest.in"
3763 cp "conftest.in" "conftest.nl"
3764 echo 'EGREP' >> "conftest.nl"
3765 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3766 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3767 ac_count
=`expr $ac_count + 1`
3768 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3769 # Best one so far, save it but keep looking for a better one
3770 ac_cv_path_EGREP
="$ac_path_EGREP"
3771 ac_path_EGREP_max
=$ac_count
3773 # 10*(2^10) chars as input seems more than enough
3774 test $ac_count -gt 10 && break
3776 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3780 $ac_path_EGREP_found && break 3
3790 EGREP
="$ac_cv_path_EGREP"
3791 if test -z "$EGREP"; then
3792 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3793 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3794 { (exit 1); exit 1; }; }
3798 ac_cv_path_EGREP
=$EGREP
3804 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3805 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3806 EGREP
="$ac_cv_path_EGREP"
3809 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3811 if test "${ac_cv_header_stdc+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 cat >conftest.
$ac_ext <<_ACEOF
3817 cat confdefs.h
>>conftest.
$ac_ext
3818 cat >>conftest.
$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3833 rm -f conftest.
$ac_objext
3834 if { (ac_try
="$ac_compile"
3836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compile") 2>conftest.er1
3842 grep -v '^ *+' conftest.er1 >conftest.err
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3848 { (case "(($ac_try" in
3849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3850 *) ac_try_echo
=$ac_try;;
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_try") 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try
='test -s conftest.$ac_objext'
3858 { (case "(($ac_try" in
3859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_try") 2>&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_header_stdc=yes
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_cv_header_stdc=no
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 if test $ac_cv_header_stdc = yes; then
3878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3879 cat >conftest.$ac_ext <<_ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3889 $EGREP "memchr" >/dev/null 2>&1; then
3892 ac_cv_header_stdc=no
3898 if test $ac_cv_header_stdc = yes; then
3899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910 $EGREP "free" >/dev/null 2>&1; then
3913 ac_cv_header_stdc=no
3919 if test $ac_cv_header_stdc = yes; then
3920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3921 if test "$cross_compiling" = yes; then
3924 cat >conftest.$ac_ext <<_ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3932 #if ((' ' & 0x0FF) == 0x020)
3933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3936 # define ISLOWER(c) \
3937 (('a' <= (c) && (c) <= 'i') \
3938 || ('j' <= (c) && (c) <= 'r') \
3939 || ('s' <= (c) && (c) <= 'z'))
3940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3948 for (i = 0; i < 256; i++)
3949 if (XOR (islower (i), ISLOWER (i))
3950 || toupper (i) != TOUPPER (i))
3955 rm -f conftest$ac_exeext
3956 if { (ac_try="$ac_link"
3958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3959 *) ac_try_echo
=$ac_try;;
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_link") 2>&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3966 { (case "(($ac_try" in
3967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_try") 2>&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3977 echo "$as_me: program exited with status $ac_status" >&5
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3982 ac_cv_header_stdc=no
3984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3990 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3991 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3992 if test $ac_cv_header_stdc = yes; then
3994 cat >>confdefs.h <<\_ACEOF
3995 #define STDC_HEADERS 1
4000 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4010 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4011 inttypes.h stdint.h unistd.h
4013 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 cat >conftest.$ac_ext <<_ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 $ac_includes_default
4027 #include <$ac_header>
4029 rm -f conftest.$ac_objext
4030 if { (ac_try="$ac_compile"
4032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4033 *) ac_try_echo
=$ac_try;;
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4038 grep -v '^ *+' conftest.er1
>conftest.err
4040 cat conftest.err
>&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044 { (case "(($ac_try" in
4045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_try") 2>&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (case "(($ac_try" in
4055 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4056 *) ac_try_echo
=$ac_try;;
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_try") 2>&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 eval "$as_ac_Header=yes"
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.
$ac_ext >&5
4068 eval "$as_ac_Header=no"
4071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4073 ac_res
=`eval echo '${'$as_ac_Header'}'`
4074 { echo "$as_me:$LINENO: result: $ac_res" >&5
4075 echo "${ECHO_T}$ac_res" >&6; }
4076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4077 cat >>confdefs.h
<<_ACEOF
4078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4086 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4087 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4088 if test "${ac_cv_c_bigendian+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 # See if sys/param.h defines the BYTE_ORDER macro.
4092 cat >conftest.
$ac_ext <<_ACEOF
4095 cat confdefs.h
>>conftest.
$ac_ext
4096 cat >>conftest.
$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 #include <sys/types.h>
4099 #include <sys/param.h>
4104 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4112 rm -f conftest.
$ac_objext
4113 if { (ac_try
="$ac_compile"
4115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_compile") 2>conftest.er1
4121 grep -v '^ *+' conftest.er1 >conftest.err
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4127 { (case "(($ac_try" in
4128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4129 *) ac_try_echo
=$ac_try;;
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_try") 2>&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try
='test -s conftest.$ac_objext'
4137 { (case "(($ac_try" in
4138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 # It does; now see whether it defined to BIG_ENDIAN or not.
4147 cat >conftest.$ac_ext <<_ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 #include <sys/types.h>
4154 #include <sys/param.h>
4159 #if BYTE_ORDER != BIG_ENDIAN
4167 rm -f conftest.$ac_objext
4168 if { (ac_try="$ac_compile"
4170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4171 *) ac_try_echo
=$ac_try;;
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4176 grep -v '^ *+' conftest.er1
>conftest.err
4178 cat conftest.err
>&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4182 { (case "(($ac_try" in
4183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4194 *) ac_try_echo
=$ac_try;;
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_c_bigendian
=yes
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.
$ac_ext >&5
4206 ac_cv_c_bigendian
=no
4209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.
$ac_ext >&5
4214 # It does not; compile a test program.
4215 if test "$cross_compiling" = yes; then
4216 # try to guess the endianness by grepping values into an object file
4217 ac_cv_c_bigendian
=unknown
4218 cat >conftest.
$ac_ext <<_ACEOF
4221 cat confdefs.h
>>conftest.
$ac_ext
4222 cat >>conftest.
$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4225 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4226 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4227 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4228 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4229 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4233 _ascii (); _ebcdic ();
4238 rm -f conftest.
$ac_objext
4239 if { (ac_try
="$ac_compile"
4241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_compile") 2>conftest.er1
4247 grep -v '^ *+' conftest.er1 >conftest.err
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253 { (case "(($ac_try" in
4254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4255 *) ac_try_echo
=$ac_try;;
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_try") 2>&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try
='test -s conftest.$ac_objext'
4263 { (case "(($ac_try" in
4264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4273 ac_cv_c_bigendian=yes
4275 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4276 if test "$ac_cv_c_bigendian" = unknown; then
4277 ac_cv_c_bigendian=no
4279 # finding both strings is unlikely to happen, but who knows?
4280 ac_cv_c_bigendian=unknown
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 cat >conftest.$ac_ext <<_ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 $ac_includes_default
4303 /* Are we little or big endian? From Harbison&Steele. */
4307 char c[sizeof (long int)];
4310 return u.c[sizeof (long int) - 1] == 1;
4316 rm -f conftest$ac_exeext
4317 if { (ac_try="$ac_link"
4319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4320 *) ac_try_echo
=$ac_try;;
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_link") 2>&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4327 { (case "(($ac_try" in
4328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_try") 2>&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_cv_c_bigendian=no
4338 echo "$as_me: program exited with status $ac_status" >&5
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4343 ac_cv_c_bigendian=yes
4345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4354 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4355 case $ac_cv_c_bigendian in
4363 { { echo "$as_me:$LINENO: error: unknown endianness
4364 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4365 echo "$as_me: error: unknown endianness
4366 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4367 { (exit 1); exit 1; }; } ;;
4371 if test "$cross_compiling" = yes; then
4372 LLVM_CROSS_COMPILING=1
4375 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4376 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4377 if test "${ac_cv_build_exeext+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4381 ac_cv_build_exeext=.exe
4383 ac_build_prefix=${build_alias}-
4385 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4386 set dummy ${ac_build_prefix}gcc; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 if test -n "$BUILD_CC"; then
4393 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 BUILD_CC=$ac_cv_prog_BUILD_CC
4413 if test -n "$BUILD_CC"; then
4414 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4415 echo "${ECHO_T}$BUILD_CC" >&6; }
4417 { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4422 if test -z "$BUILD_CC"; then
4423 # Extract the first word of "gcc", so it can be a program name with args.
4424 set dummy gcc; ac_word=$2
4425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 if test -n "$BUILD_CC"; then
4431 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_BUILD_CC="gcc"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 BUILD_CC=$ac_cv_prog_BUILD_CC
4451 if test -n "$BUILD_CC"; then
4452 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453 echo "${ECHO_T}$BUILD_CC" >&6; }
4455 { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4460 if test -z "$BUILD_CC"; then
4461 # Extract the first word of "cc", so it can be a program name with args.
4462 set dummy cc; ac_word=$2
4463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 if test -n "$BUILD_CC"; then
4469 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4480 ac_prog_rejected=yes
4483 ac_cv_prog_BUILD_CC="cc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 if test $ac_prog_rejected = yes; then
4492 # We found a bogon in the path, so make sure we never use it.
4493 set dummy $ac_cv_prog_BUILD_CC
4495 if test $# != 0; then
4496 # We chose a different compiler from the bogus one.
4497 # However, it has the same basename, so the bogon will be chosen
4498 # first if we set BUILD_CC to just the basename; use the full file name.
4500 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4505 BUILD_CC=$ac_cv_prog_BUILD_CC
4506 if test -n "$BUILD_CC"; then
4507 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4508 echo "${ECHO_T}$BUILD_CC" >&6; }
4510 { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4517 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4518 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4519 { (exit 1); exit 1; }; }
4520 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4522 echo 'int main () { return 0; }' > conftest.$ac_ext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4525 (eval $ac_build_link) 2>&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; then
4529 for file in conftest.*; do
4531 *.c | *.o | *.obj | *.dSYM) ;;
4532 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4536 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4537 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4538 { (exit 1); exit 1; }; }
4541 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4546 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4547 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4548 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4549 ac_build_exeext=$BUILD_EXEEXT
4551 ac_build_prefix=${build_alias}-
4552 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4553 set dummy ${ac_build_prefix}g++; ac_word=$2
4554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 if test -n "$BUILD_CXX"; then
4560 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4580 if test -n "$BUILD_CXX"; then
4581 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4582 echo "${ECHO_T}$BUILD_CXX" >&6; }
4584 { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4589 if test -z "$BUILD_CXX"; then
4590 # Extract the first word of "g++", so it can be a program name with args.
4591 set dummy g++; ac_word=$2
4592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 if test -n "$BUILD_CXX"; then
4598 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_BUILD_CXX="g++"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4618 if test -n "$BUILD_CXX"; then
4619 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4620 echo "${ECHO_T}$BUILD_CXX" >&6; }
4622 { echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; }
4627 if test -z "$BUILD_CXX"; then
4628 # Extract the first word of "c++", so it can be a program name with args.
4629 set dummy c++; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 if test -n "$BUILD_CXX"; then
4636 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4647 ac_prog_rejected=yes
4650 ac_cv_prog_BUILD_CXX="c++"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 if test $ac_prog_rejected = yes; then
4659 # We found a bogon in the path, so make sure we never use it.
4660 set dummy $ac_cv_prog_BUILD_CXX
4662 if test $# != 0; then
4663 # We chose a different compiler from the bogus one.
4664 # However, it has the same basename, so the bogon will be chosen
4665 # first if we set BUILD_CXX to just the basename; use the full file name.
4667 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4672 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4673 if test -n "$BUILD_CXX"; then
4674 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4675 echo "${ECHO_T}$BUILD_CXX" >&6; }
4677 { echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6; }
4685 LLVM_CROSS_COMPILING=0
4689 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4700 # Check whether --enable-optimized was given.
4701 if test "${enable_optimized+set}" = set; then
4702 enableval=$enable_optimized;
4707 if test ${enableval} = "no" ; then
4711 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4715 # Check whether --enable-profiling was given.
4716 if test "${enable_profiling+set}" = set; then
4717 enableval=$enable_profiling;
4722 if test ${enableval} = "no" ; then
4726 ENABLE_PROFILING=ENABLE_PROFILING=1
4730 # Check whether --enable-assertions was given.
4731 if test "${enable_assertions+set}" = set; then
4732 enableval=$enable_assertions;
4737 if test ${enableval} = "yes" ; then
4741 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4745 # Check whether --enable-expensive-checks was given.
4746 if test "${enable_expensive_checks+set}" = set; then
4747 enableval=$enable_expensive_checks;
4752 if test ${enableval} = "yes" ; then
4753 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4755 EXPENSIVE_CHECKS=yes
4758 ENABLE_EXPENSIVE_CHECKS=
4764 # Check whether --enable-debug-runtime was given.
4765 if test "${enable_debug_runtime+set}" = set; then
4766 enableval=$enable_debug_runtime;
4771 if test ${enableval} = "no" ; then
4775 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4779 # Check whether --enable-debug-symbols was given.
4780 if test "${enable_debug_symbols+set}" = set; then
4781 enableval=$enable_debug_symbols;
4786 if test ${enableval} = "no" ; then
4790 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4794 # Check whether --enable-jit was given.
4795 if test "${enable_jit+set}" = set; then
4796 enableval=$enable_jit;
4801 if test ${enableval} = "no"
4806 case "$llvm_cv_target_arch" in
4807 x86) TARGET_HAS_JIT=1
4809 Sparc) TARGET_HAS_JIT=0
4811 PowerPC) TARGET_HAS_JIT=1
4813 x86_64) TARGET_HAS_JIT=1
4815 Alpha) TARGET_HAS_JIT=1
4817 ARM) TARGET_HAS_JIT=1
4819 Mips) TARGET_HAS_JIT=0
4821 PIC16) TARGET_HAS_JIT=0
4823 XCore) TARGET_HAS_JIT=0
4825 MSP430) TARGET_HAS_JIT=0
4827 SystemZ) TARGET_HAS_JIT=0
4829 Blackfin) TARGET_HAS_JIT=0
4831 MBlaze) TARGET_HAS_JIT=0
4838 # Check whether --enable-doxygen was given.
4839 if test "${enable_doxygen+set}" = set; then
4840 enableval=$enable_doxygen;
4845 case "$enableval" in
4846 yes) ENABLE_DOXYGEN=1
4848 no) ENABLE_DOXYGEN=0
4850 default) ENABLE_DOXYGEN=0
4852 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4853 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4854 { (exit 1); exit 1; }; } ;;
4857 # Check whether --enable-threads was given.
4858 if test "${enable_threads+set}" = set; then
4859 enableval=$enable_threads;
4864 case "$enableval" in
4865 yes) ENABLE_THREADS=1
4867 no) ENABLE_THREADS=0
4869 default) ENABLE_THREADS=1
4871 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4872 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4873 { (exit 1); exit 1; }; } ;;
4876 cat >>confdefs.h <<_ACEOF
4877 #define ENABLE_THREADS $ENABLE_THREADS
4881 # Check whether --enable-pic was given.
4882 if test "${enable_pic+set}" = set; then
4883 enableval=$enable_pic;
4888 case "$enableval" in
4893 default) ENABLE_PIC=1
4895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4896 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4900 cat >>confdefs.h <<_ACEOF
4901 #define ENABLE_PIC $ENABLE_PIC
4905 # Check whether --enable-shared was given.
4906 if test "${enable_shared+set}" = set; then
4907 enableval=$enable_shared;
4912 case "$enableval" in
4913 yes) ENABLE_SHARED=1
4917 default) ENABLE_SHARED=0
4919 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4920 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4921 { (exit 1); exit 1; }; } ;;
4925 # Check whether --enable-targets was given.
4926 if test "${enable_targets+set}" = set; then
4927 enableval=$enable_targets;
4932 if test "$enableval" = host-only ; then
4935 case "$enableval" in
4936 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4937 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
4939 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4940 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4941 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4942 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4943 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4944 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4945 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4946 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4947 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4948 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4949 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4950 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4951 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4952 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4953 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4954 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4955 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4956 host) case "$llvm_cv_target_arch" in
4957 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4958 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4959 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4960 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4961 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4962 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4963 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4964 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4965 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4966 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4967 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4968 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4969 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4970 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4971 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4972 echo "$as_me: error: Can not set target to build" >&2;}
4973 { (exit 1); exit 1; }; } ;;
4975 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4976 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4977 { (exit 1); exit 1; }; } ;;
4982 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4985 # Determine whether we are building LLVM support for the native architecture.
4986 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4987 for a_target in $TARGETS_TO_BUILD; do
4988 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4989 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4991 cat >>confdefs.h <<_ACEOF
4992 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4998 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4999 # target feature def files.
5000 LLVM_ENUM_TARGETS=""
5001 LLVM_ENUM_ASM_PRINTERS=""
5002 LLVM_ENUM_ASM_PARSERS=""
5003 LLVM_ENUM_DISASSEMBLERS=""
5004 for target_to_build in $TARGETS_TO_BUILD; do
5005 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5006 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5007 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5009 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5010 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5012 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5013 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5021 # Check whether --enable-cbe-printf-a was given.
5022 if test "${enable_cbe_printf_a+set}" = set; then
5023 enableval=$enable_cbe_printf_a;
5028 case "$enableval" in
5029 yes) ENABLE_CBE_PRINTF_A=1
5031 no) ENABLE_CBE_PRINTF_A=0
5033 default) ENABLE_CBE_PRINTF_A=1
5035 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5036 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5037 { (exit 1); exit 1; }; } ;;
5040 cat >>confdefs.h <<_ACEOF
5041 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5046 # Check whether --with-llvmgccdir was given.
5047 if test "${with_llvmgccdir+set}" = set; then
5048 withval=$with_llvmgccdir;
5054 default) WITH_LLVMGCCDIR=default ;;
5055 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5056 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5057 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5058 { (exit 1); exit 1; }; } ;;
5062 # Check whether --with-llvmgcc was given.
5063 if test "${with_llvmgcc+set}" = set; then
5064 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5070 # Check whether --with-llvmgxx was given.
5071 if test "${with_llvmgxx+set}" = set; then
5072 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5077 if test -n "$LLVMGCC"; then
5078 LLVMGCCCOMMAND="$LLVMGCC"
5081 if test -n "$LLVMGXX"; then
5082 LLVMGXXCOMMAND="$LLVMGXX"
5085 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5086 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5087 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5088 { (exit 1); exit 1; }; };
5091 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5092 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5093 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5094 { (exit 1); exit 1; }; };
5098 # Check whether --with-clang was given.
5099 if test "${with_clang+set}" = set; then
5100 withval=$with_clang;
5107 # Check whether --with-built-clang was given.
5108 if test "${with_built_clang+set}" = set; then
5109 withval=$with_built_clang;
5111 with_built_clang=check
5115 { echo "$as_me:$LINENO: checking clang compiler" >&5
5116 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5119 if test "$with_clang" != "default"; then
5120 WITH_CLANGPATH="$with_clang"
5121 if ! test -x "$WITH_CLANGPATH"; then
5122 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5123 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5124 { (exit 1); exit 1; }; }
5126 elif test "$with_built_clang" = "yes"; then
5128 elif test "$with_built_clang" = "no"; then
5131 if test "$with_built_clang" != "check"; then
5132 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5133 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5134 { (exit 1); exit 1; }; }
5137 if test -f ${srcdir}/tools/clang/README.txt; then
5142 if ! test -z "$WITH_CLANGPATH"; then
5143 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5144 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5145 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang
++`
5146 elif test "$WITH_BUILT_CLANG" = "1"; then
5147 { echo "$as_me:$LINENO: result: built" >&5
5148 echo "${ECHO_T}built" >&6; }
5150 { echo "$as_me:$LINENO: result: none" >&5
5151 echo "${ECHO_T}none" >&6; }
5153 CLANGPATH=$WITH_CLANGPATH
5155 CLANGXXPATH=$WITH_CLANGXXPATH
5157 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5161 # Check whether --with-optimize-option was given.
5162 if test "${with_optimize_option+set}" = set; then
5163 withval=$with_optimize_option;
5168 { echo "$as_me:$LINENO: checking optimization flags" >&5
5169 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5172 case "$llvm_cv_os_type" in
5173 MingW) optimize_option=-O2 ;;
5174 *) optimize_option=-O3 ;;
5176 *) optimize_option="$withval" ;;
5178 OPTIMIZE_OPTION=$optimize_option
5180 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5181 echo "${ECHO_T}$optimize_option" >&6; }
5184 # Check whether --with-extra-options was given.
5185 if test "${with_extra_options+set}" = set; then
5186 withval=$with_extra_options;
5192 default) EXTRA_OPTIONS= ;;
5193 *) EXTRA_OPTIONS=$withval ;;
5195 EXTRA_OPTIONS=$EXTRA_OPTIONS
5198 # Check whether --enable-bindings was given.
5199 if test "${enable_bindings+set}" = set; then
5200 enableval=$enable_bindings;
5205 BINDINGS_TO_BUILD=""
5206 case "$enableval" in
5207 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5208 all ) BINDINGS_TO_BUILD="ocaml" ;;
5209 none | no) BINDINGS_TO_BUILD="" ;;
5210 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5211 case "$a_binding" in
5212 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5213 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5214 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5215 { (exit 1); exit 1; }; } ;;
5222 # Check whether --with-ocaml-libdir was given.
5223 if test "${with_ocaml_libdir+set}" = set; then
5224 withval=$with_ocaml_libdir;
5230 auto) with_ocaml_libdir="$withval" ;;
5231 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5232 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5233 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5234 { (exit 1); exit 1; }; } ;;
5238 # Check whether --with-c-include-dirs was given.
5239 if test "${with_c_include_dirs+set}" = set; then
5240 withval=$with_c_include_dirs;
5246 cat >>confdefs.h <<_ACEOF
5247 #define C_INCLUDE_DIRS "$withval"
5252 # Check whether --with-cxx-include-root was given.
5253 if test "${with_cxx_include_root+set}" = set; then
5254 withval=$with_cxx_include_root;
5260 cat >>confdefs.h <<_ACEOF
5261 #define CXX_INCLUDE_ROOT "$withval"
5266 # Check whether --with-cxx-include-arch was given.
5267 if test "${with_cxx_include_arch+set}" = set; then
5268 withval=$with_cxx_include_arch;
5274 cat >>confdefs.h <<_ACEOF
5275 #define CXX_INCLUDE_ARCH "$withval"
5280 # Check whether --with-cxx-include-32bit-dir was given.
5281 if test "${with_cxx_include_32bit_dir+set}" = set; then
5282 withval=$with_cxx_include_32bit_dir;
5288 cat >>confdefs.h <<_ACEOF
5289 #define CXX_INCLUDE_32BIT_DIR "$withval"
5294 # Check whether --with-cxx-include-64bit-dir was given.
5295 if test "${with_cxx_include_64bit_dir+set}" = set; then
5296 withval=$with_cxx_include_64bit_dir;
5302 cat >>confdefs.h <<_ACEOF
5303 #define CXX_INCLUDE_64BIT_DIR "$withval"
5308 # Check whether --with-binutils-include was given.
5309 if test "${with_binutils_include+set}" = set; then
5310 withval=$with_binutils_include;
5316 default) WITH_BINUTILS_INCDIR=default ;;
5317 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5318 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5319 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5320 { (exit 1); exit 1; }; } ;;
5322 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5323 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5325 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5326 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5327 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5328 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5329 { (exit 1); exit 1; }; };
5333 # Check whether --enable-libffi was given.
5334 if test "${enable_libffi+set}" = set; then
5335 enableval=$enable_libffi; case "$enableval" in
5336 yes) llvm_cv_enable_libffi="yes" ;;
5337 no) llvm_cv_enable_libffi="no" ;;
5338 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5339 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5340 { (exit 1); exit 1; }; } ;;
5343 llvm_cv_enable_libffi=no
5347 if test "$llvm_cv_os_type" = "Win32" ; then
5353 # Check whether --enable-llvmc-dynamic was given.
5354 if test "${enable_llvmc_dynamic+set}" = set; then
5355 enableval=$enable_llvmc_dynamic;
5357 enableval=$llvmc_dynamic
5360 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5361 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5364 ENABLE_LLVMC_DYNAMIC=
5368 # Check whether --enable-llvmc-dynamic-plugins was given.
5369 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5370 enableval=$enable_llvmc_dynamic_plugins;
5375 if test ${enableval} = "yes" ; then
5376 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5379 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5385 ac_cpp='$CPP $CPPFLAGS'
5386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5389 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5390 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5391 # On Suns, sometimes $CPP names a directory.
5392 if test -n "$CPP" && test -d "$CPP"; then
5395 if test -z "$CPP"; then
5396 if test "${ac_cv_prog_CPP+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 # Double quotes because CPP needs to be expanded
5400 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5403 for ac_c_preproc_warn_flag in '' yes
5405 # Use a header file that comes with gcc, so configuring glibc
5406 # with a fresh cross-compiler works.
5407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5408 # <limits.h> exists even on freestanding compilers.
5409 # On the NeXT, cc -E runs the code through the compiler's parser,
5410 # not just through cpp. "Syntax error" is here to catch this case.
5411 cat >conftest.$ac_ext <<_ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5418 # include <limits.h>
5420 # include <assert.h>
5424 if { (ac_try="$ac_cpp conftest.$ac_ext"
5426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5427 *) ac_try_echo
=$ac_try;;
5429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5432 grep -v '^ *+' conftest.er1
>conftest.err
5434 cat conftest.err
>&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } >/dev
/null
; then
5437 if test -s conftest.err
; then
5438 ac_cpp_err
=$ac_c_preproc_warn_flag
5439 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5446 if test -z "$ac_cpp_err"; then
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.
$ac_ext >&5
5452 # Broken: fails on valid input.
5456 rm -f conftest.err conftest.
$ac_ext
5458 # OK, works on sane cases. Now check whether nonexistent headers
5459 # can be detected and how.
5460 cat >conftest.
$ac_ext <<_ACEOF
5463 cat confdefs.h
>>conftest.
$ac_ext
5464 cat >>conftest.
$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5466 #include <ac_nonexistent.h>
5468 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5476 grep -v '^ *+' conftest.er1 >conftest.err
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } >/dev/null; then
5481 if test -s conftest.err; then
5482 ac_cpp_err=$ac_c_preproc_warn_flag
5483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5490 if test -z "$ac_cpp_err"; then
5491 # Broken: success on invalid input.
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5497 # Passes both tests.
5502 rm -f conftest.err conftest.$ac_ext
5505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5506 rm -f conftest.err conftest.
$ac_ext
5507 if $ac_preproc_ok; then
5519 { echo "$as_me:$LINENO: result: $CPP" >&5
5520 echo "${ECHO_T}$CPP" >&6; }
5522 for ac_c_preproc_warn_flag
in '' yes
5524 # Use a header file that comes with gcc, so configuring glibc
5525 # with a fresh cross-compiler works.
5526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527 # <limits.h> exists even on freestanding compilers.
5528 # On the NeXT, cc -E runs the code through the compiler's parser,
5529 # not just through cpp. "Syntax error" is here to catch this case.
5530 cat >conftest.
$ac_ext <<_ACEOF
5533 cat confdefs.h
>>conftest.
$ac_ext
5534 cat >>conftest.
$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5537 # include <limits.h>
5539 # include <assert.h>
5543 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5551 grep -v '^ *+' conftest.er1 >conftest.err
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } >/dev/null; then
5556 if test -s conftest.err; then
5557 ac_cpp_err=$ac_c_preproc_warn_flag
5558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5565 if test -z "$ac_cpp_err"; then
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5571 # Broken: fails on valid input.
5575 rm -f conftest.err conftest.$ac_ext
5577 # OK, works on sane cases. Now check whether nonexistent headers
5578 # can be detected and how.
5579 cat >conftest.$ac_ext <<_ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 #include <ac_nonexistent.h>
5587 if { (ac_try="$ac_cpp conftest.$ac_ext"
5589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5590 *) ac_try_echo
=$ac_try;;
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5595 grep -v '^ *+' conftest.er1
>conftest.err
5597 cat conftest.err
>&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } >/dev
/null
; then
5600 if test -s conftest.err
; then
5601 ac_cpp_err
=$ac_c_preproc_warn_flag
5602 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5609 if test -z "$ac_cpp_err"; then
5610 # Broken: success on invalid input.
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.
$ac_ext >&5
5616 # Passes both tests.
5621 rm -f conftest.err conftest.
$ac_ext
5624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5625 rm -f conftest.err conftest.
$ac_ext
5626 if $ac_preproc_ok; then
5629 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5630 See \`config.log' for more details." >&5
5631 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5632 See \`config.log' for more details." >&2;}
5633 { (exit 1); exit 1; }; }
5637 ac_cpp
='$CPP $CPPFLAGS'
5638 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5643 ac_cpp
='$CPP $CPPFLAGS'
5644 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5647 if test -n "$ac_tool_prefix"; then
5650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5651 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5654 if test "${ac_cv_prog_CC+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 if test -n "$CC"; then
5658 ac_cv_prog_CC
="$CC" # Let the user override the test.
5660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5664 test -z "$as_dir" && as_dir
=.
5665 for ac_exec_ext
in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5667 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 if test -n "$CC"; then
5679 { echo "$as_me:$LINENO: result: $CC" >&5
5680 echo "${ECHO_T}$CC" >&6; }
5682 { echo "$as_me:$LINENO: result: no" >&5
5683 echo "${ECHO_T}no" >&6; }
5687 test -n "$CC" && break
5690 if test -z "$CC"; then
5694 # Extract the first word of "$ac_prog", so it can be a program name with args.
5695 set dummy
$ac_prog; ac_word
=$2
5696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 if test -n "$ac_ct_CC"; then
5702 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5708 test -z "$as_dir" && as_dir
=.
5709 for ac_exec_ext
in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 ac_cv_prog_ac_ct_CC
="$ac_prog"
5712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5722 if test -n "$ac_ct_CC"; then
5723 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5724 echo "${ECHO_T}$ac_ct_CC" >&6; }
5726 { echo "$as_me:$LINENO: result: no" >&5
5727 echo "${ECHO_T}no" >&6; }
5731 test -n "$ac_ct_CC" && break
5734 if test "x$ac_ct_CC" = x
; then
5737 case $cross_compiling:$ac_tool_warned in
5739 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5740 whose name does not start with the host triplet. If you think this
5741 configuration is useful to you, please write to autoconf@gnu.org." >&5
5742 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5743 whose name does not start with the host triplet. If you think this
5744 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5745 ac_tool_warned
=yes ;;
5752 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5753 See \`config.log' for more details." >&5
5754 echo "$as_me: error: no acceptable C compiler found in \$PATH
5755 See \`config.log' for more details." >&2;}
5756 { (exit 1); exit 1; }; }
5758 # Provide some information about the compiler.
5759 echo "$as_me:$LINENO: checking for C compiler version" >&5
5760 ac_compiler
=`set X $ac_compile; echo $2`
5761 { (ac_try
="$ac_compiler --version >&5"
5763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_compiler --version >&5") 2>&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }
5771 { (ac_try="$ac_compiler -v >&5"
5773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5774 *) ac_try_echo
=$ac_try;;
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_compiler -v >&5") 2>&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }
5781 { (ac_try
="$ac_compiler -V >&5"
5783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787 (eval "$ac_compiler -V >&5") 2>&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }
5792 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5793 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5794 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 cat >conftest.$ac_ext <<_ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5819 *) ac_try_echo
=$ac_try;;
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_compile") 2>conftest.er1
5824 grep -v '^ *+' conftest.er1
>conftest.err
5826 cat conftest.err
>&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5830 { (case "(($ac_try" in
5831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_try") 2>&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; } &&
5839 { ac_try='test -s conftest.$ac_objext'
5840 { (case "(($ac_try" in
5841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5842 *) ac_try_echo
=$ac_try;;
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_try") 2>&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.
$ac_ext >&5
5857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5858 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5861 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5862 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5863 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5864 ac_test_CFLAGS
=${CFLAGS+set}
5865 ac_save_CFLAGS
=$CFLAGS
5866 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5867 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5868 if test "${ac_cv_prog_cc_g+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 ac_save_c_werror_flag
=$ac_c_werror_flag
5872 ac_c_werror_flag
=yes
5875 cat >conftest.
$ac_ext <<_ACEOF
5878 cat confdefs.h
>>conftest.
$ac_ext
5879 cat >>conftest.
$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5890 rm -f conftest.
$ac_objext
5891 if { (ac_try
="$ac_compile"
5893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_compile") 2>conftest.er1
5899 grep -v '^ *+' conftest.er1 >conftest.err
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } &&
5904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5905 { (case "(($ac_try" in
5906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5907 *) ac_try_echo
=$ac_try;;
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_try") 2>&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; } &&
5914 { ac_try
='test -s conftest.$ac_objext'
5915 { (case "(($ac_try" in
5916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_try") 2>&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5930 cat >conftest.$ac_ext <<_ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5945 rm -f conftest.$ac_objext
5946 if { (ac_try="$ac_compile"
5948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5949 *) ac_try_echo
=$ac_try;;
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_compile") 2>conftest.er1
5954 grep -v '^ *+' conftest.er1
>conftest.err
5956 cat conftest.err
>&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5960 { (case "(($ac_try" in
5961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5962 *) ac_try_echo=$ac_try;;
5964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965 (eval "$ac_try") 2>&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; } &&
5969 { ac_try='test -s conftest.$ac_objext'
5970 { (case "(($ac_try" in
5971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5972 *) ac_try_echo
=$ac_try;;
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_try") 2>&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; }; then
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.
$ac_ext >&5
5984 ac_c_werror_flag
=$ac_save_c_werror_flag
5986 cat >conftest.
$ac_ext <<_ACEOF
5989 cat confdefs.h
>>conftest.
$ac_ext
5990 cat >>conftest.
$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
6001 rm -f conftest.
$ac_objext
6002 if { (ac_try
="$ac_compile"
6004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compile") 2>conftest.er1
6010 grep -v '^ *+' conftest.er1 >conftest.err
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } &&
6015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6016 { (case "(($ac_try" in
6017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6018 *) ac_try_echo
=$ac_try;;
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_try") 2>&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; } &&
6025 { ac_try
='test -s conftest.$ac_objext'
6026 { (case "(($ac_try" in
6027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031 (eval "$ac_try") 2>&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 ac_c_werror_flag=$ac_save_c_werror_flag
6052 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6053 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6054 if test "$ac_test_CFLAGS" = set; then
6055 CFLAGS=$ac_save_CFLAGS
6056 elif test $ac_cv_prog_cc_g = yes; then
6057 if test "$GCC" = yes; then
6063 if test "$GCC" = yes; then
6069 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6070 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6071 if test "${ac_cv_prog_cc_c89+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 ac_cv_prog_cc_c89=no
6076 cat >conftest.$ac_ext <<_ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6084 #include <sys/types.h>
6085 #include <sys/stat.h>
6086 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6087 struct buf { int x; };
6088 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6089 static char *e (p, i)
6095 static char *f (char * (*g) (char **, int), char **p, ...)
6100 s = g (p, va_arg (v,int));
6105 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6106 function prototypes and stuff, but not '\xHH' hex character constants.
6107 These don't provoke an error unfortunately, instead are silently treated
6108 as 'x'. The following induces an error, until -std is added to get
6109 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6110 array size at least. It's necessary to write '\x00'==0 to get something
6111 that's true only with -std. */
6112 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6114 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6115 inside strings and character constants. */
6117 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6119 int test (int i, double x);
6120 struct s1 {int (*f) (int a);};
6121 struct s2 {int (*f) (double a);};
6122 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6128 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6133 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6134 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6136 CC="$ac_save_CC $ac_arg"
6137 rm -f conftest.$ac_objext
6138 if { (ac_try="$ac_compile"
6140 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6141 *) ac_try_echo
=$ac_try;;
6143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_compile") 2>conftest.er1
6146 grep -v '^ *+' conftest.er1
>conftest.err
6148 cat conftest.err
>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6152 { (case "(($ac_try" in
6153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_try") 2>&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; } &&
6161 { ac_try='test -s conftest.$ac_objext'
6162 { (case "(($ac_try" in
6163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6164 *) ac_try_echo
=$ac_try;;
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_try") 2>&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; }; then
6171 ac_cv_prog_cc_c89
=$ac_arg
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.
$ac_ext >&5
6179 rm -f core conftest.err conftest.
$ac_objext
6180 test "x$ac_cv_prog_cc_c89" != "xno" && break
6182 rm -f conftest.
$ac_ext
6187 case "x$ac_cv_prog_cc_c89" in
6189 { echo "$as_me:$LINENO: result: none needed" >&5
6190 echo "${ECHO_T}none needed" >&6; } ;;
6192 { echo "$as_me:$LINENO: result: unsupported" >&5
6193 echo "${ECHO_T}unsupported" >&6; } ;;
6195 CC
="$CC $ac_cv_prog_cc_c89"
6196 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6197 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6202 ac_cpp
='$CPP $CPPFLAGS'
6203 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6208 ac_cpp
='$CXXCPP $CPPFLAGS'
6209 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6212 if test -z "$CXX"; then
6213 if test -n "$CCC"; then
6216 if test -n "$ac_tool_prefix"; then
6219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6220 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223 if test "${ac_cv_prog_CXX+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 if test -n "$CXX"; then
6227 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6233 test -z "$as_dir" && as_dir
=.
6234 for ac_exec_ext
in '' $ac_executable_extensions; do
6235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6236 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 if test -n "$CXX"; then
6248 { echo "$as_me:$LINENO: result: $CXX" >&5
6249 echo "${ECHO_T}$CXX" >&6; }
6251 { echo "$as_me:$LINENO: result: no" >&5
6252 echo "${ECHO_T}no" >&6; }
6256 test -n "$CXX" && break
6259 if test -z "$CXX"; then
6263 # Extract the first word of "$ac_prog", so it can be a program name with args.
6264 set dummy
$ac_prog; ac_word
=$2
6265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6267 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 if test -n "$ac_ct_CXX"; then
6271 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6277 test -z "$as_dir" && as_dir
=.
6278 for ac_exec_ext
in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6280 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6291 if test -n "$ac_ct_CXX"; then
6292 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6293 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6295 { echo "$as_me:$LINENO: result: no" >&5
6296 echo "${ECHO_T}no" >&6; }
6300 test -n "$ac_ct_CXX" && break
6303 if test "x$ac_ct_CXX" = x
; then
6306 case $cross_compiling:$ac_tool_warned in
6308 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6309 whose name does not start with the host triplet. If you think this
6310 configuration is useful to you, please write to autoconf@gnu.org." >&5
6311 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6312 whose name does not start with the host triplet. If you think this
6313 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6314 ac_tool_warned
=yes ;;
6322 # Provide some information about the compiler.
6323 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6324 ac_compiler
=`set X $ac_compile; echo $2`
6325 { (ac_try
="$ac_compiler --version >&5"
6327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_compiler --version >&5") 2>&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }
6335 { (ac_try="$ac_compiler -v >&5"
6337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6338 *) ac_try_echo
=$ac_try;;
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_compiler -v >&5") 2>&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }
6345 { (ac_try
="$ac_compiler -V >&5"
6347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_compiler -V >&5") 2>&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }
6356 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6357 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6358 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 cat >conftest.$ac_ext <<_ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6379 rm -f conftest.$ac_objext
6380 if { (ac_try="$ac_compile"
6382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6383 *) ac_try_echo
=$ac_try;;
6385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6388 grep -v '^ *+' conftest.er1
>conftest.err
6390 cat conftest.err
>&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } &&
6393 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6394 { (case "(($ac_try" in
6395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399 (eval "$ac_try") 2>&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (case "(($ac_try" in
6405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6406 *) ac_try_echo
=$ac_try;;
6408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_try") 2>&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
6415 echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.
$ac_ext >&5
6421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6422 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6425 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6426 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6427 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6428 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6429 ac_save_CXXFLAGS
=$CXXFLAGS
6430 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6431 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6432 if test "${ac_cv_prog_cxx_g+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6436 ac_cxx_werror_flag
=yes
6439 cat >conftest.
$ac_ext <<_ACEOF
6442 cat confdefs.h
>>conftest.
$ac_ext
6443 cat >>conftest.
$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6454 rm -f conftest.
$ac_objext
6455 if { (ac_try
="$ac_compile"
6457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_compile") 2>conftest.er1
6463 grep -v '^ *+' conftest.er1 >conftest.err
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } &&
6468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6469 { (case "(($ac_try" in
6470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6471 *) ac_try_echo
=$ac_try;;
6473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474 (eval "$ac_try") 2>&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; } &&
6478 { ac_try
='test -s conftest.$ac_objext'
6479 { (case "(($ac_try" in
6480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484 (eval "$ac_try") 2>&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; }; then
6488 ac_cv_prog_cxx_g=yes
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6494 cat >conftest.$ac_ext <<_ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6509 rm -f conftest.$ac_objext
6510 if { (ac_try="$ac_compile"
6512 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6513 *) ac_try_echo
=$ac_try;;
6515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_compile") 2>conftest.er1
6518 grep -v '^ *+' conftest.er1
>conftest.err
6520 cat conftest.err
>&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6524 { (case "(($ac_try" in
6525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6526 *) ac_try_echo=$ac_try;;
6528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6529 (eval "$ac_try") 2>&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; } &&
6533 { ac_try='test -s conftest.$ac_objext'
6534 { (case "(($ac_try" in
6535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6536 *) ac_try_echo
=$ac_try;;
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_try") 2>&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.
$ac_ext >&5
6548 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6550 cat >conftest.
$ac_ext <<_ACEOF
6553 cat confdefs.h
>>conftest.
$ac_ext
6554 cat >>conftest.
$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6565 rm -f conftest.
$ac_objext
6566 if { (ac_try
="$ac_compile"
6568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6569 *) ac_try_echo=$ac_try;;
6571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6572 (eval "$ac_compile") 2>conftest.er1
6574 grep -v '^ *+' conftest.er1 >conftest.err
6576 cat conftest.err >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6580 { (case "(($ac_try" in
6581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6582 *) ac_try_echo
=$ac_try;;
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_try") 2>&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; } &&
6589 { ac_try
='test -s conftest.$ac_objext'
6590 { (case "(($ac_try" in
6591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595 (eval "$ac_try") 2>&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
6599 ac_cv_prog_cxx_g=yes
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6616 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6617 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6618 if test "$ac_test_CXXFLAGS" = set; then
6619 CXXFLAGS=$ac_save_CXXFLAGS
6620 elif test $ac_cv_prog_cxx_g = yes; then
6621 if test "$GXX" = yes; then
6627 if test "$GXX" = yes; then
6634 ac_cpp='$CPP $CPPFLAGS'
6635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6641 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6642 if test "${lt_cv_path_NM+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 if test -n "$NM"; then
6646 # Let the user override the test.
6649 lt_nm_to_check="${ac_tool_prefix}nm"
6650 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6651 lt_nm_to_check="$lt_nm_to_check nm"
6653 for lt_tmp_nm in $lt_nm_to_check; do
6654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6655 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6657 test -z "$ac_dir" && ac_dir=.
6658 tmp_nm="$ac_dir/$lt_tmp_nm"
6659 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6660 # Check to see if the nm accepts a BSD-compat flag.
6661 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6662 # nm: unknown option "B" ignored
6663 # Tru64's nm complains that
/dev
/null is an invalid object
file
6664 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6665 */dev
/null
* |
*'Invalid file or object type'*)
6666 lt_cv_path_NM
="$tmp_nm -B"
6670 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6672 lt_cv_path_NM
="$tmp_nm -p"
6676 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6677 continue # so that we can try to find one that supports BSD flags
6686 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6689 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6690 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6695 { echo "$as_me:$LINENO: checking for GNU make" >&5
6696 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6697 if test "${llvm_cv_gnu_make_command+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 llvm_cv_gnu_make_command
=''
6701 for a
in "$MAKE" make gmake gnumake
; do
6702 if test -z "$a" ; then continue ; fi ;
6703 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6705 llvm_cv_gnu_make_command
=$a ;
6710 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6711 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6712 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6716 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6717 echo "${ECHO_T}\"Not found\"" >&6; };
6721 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6722 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6724 if test "$LN_S" = "ln -s"; then
6725 { echo "$as_me:$LINENO: result: yes" >&5
6726 echo "${ECHO_T}yes" >&6; }
6728 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6729 echo "${ECHO_T}no, using $LN_S" >&6; }
6732 # Extract the first word of "cmp", so it can be a program name with args.
6733 set dummy
cmp; ac_word
=$2
6734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736 if test "${ac_cv_path_CMP+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6748 test -z "$as_dir" && as_dir
=.
6749 for ac_exec_ext
in '' $ac_executable_extensions; do
6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6751 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6764 if test -n "$CMP"; then
6765 { echo "$as_me:$LINENO: result: $CMP" >&5
6766 echo "${ECHO_T}$CMP" >&6; }
6768 { echo "$as_me:$LINENO: result: no" >&5
6769 echo "${ECHO_T}no" >&6; }
6773 # Extract the first word of "cp", so it can be a program name with args.
6774 set dummy
cp; ac_word
=$2
6775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6777 if test "${ac_cv_path_CP+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6789 test -z "$as_dir" && as_dir
=.
6790 for ac_exec_ext
in '' $ac_executable_extensions; do
6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6792 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6805 if test -n "$CP"; then
6806 { echo "$as_me:$LINENO: result: $CP" >&5
6807 echo "${ECHO_T}$CP" >&6; }
6809 { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6814 # Extract the first word of "date", so it can be a program name with args.
6815 set dummy
date; ac_word
=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_path_DATE+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6830 test -z "$as_dir" && as_dir
=.
6831 for ac_exec_ext
in '' $ac_executable_extensions; do
6832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6833 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6845 DATE
=$ac_cv_path_DATE
6846 if test -n "$DATE"; then
6847 { echo "$as_me:$LINENO: result: $DATE" >&5
6848 echo "${ECHO_T}$DATE" >&6; }
6850 { echo "$as_me:$LINENO: result: no" >&5
6851 echo "${ECHO_T}no" >&6; }
6855 # Extract the first word of "find", so it can be a program name with args.
6856 set dummy
find; ac_word
=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_path_FIND+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6871 test -z "$as_dir" && as_dir
=.
6872 for ac_exec_ext
in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6886 FIND
=$ac_cv_path_FIND
6887 if test -n "$FIND"; then
6888 { echo "$as_me:$LINENO: result: $FIND" >&5
6889 echo "${ECHO_T}$FIND" >&6; }
6891 { echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6; }
6896 # Extract the first word of "grep", so it can be a program name with args.
6897 set dummy
grep; ac_word
=$2
6898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6900 if test "${ac_cv_path_GREP+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6905 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6912 test -z "$as_dir" && as_dir
=.
6913 for ac_exec_ext
in '' $ac_executable_extensions; do
6914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6915 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
6927 GREP
=$ac_cv_path_GREP
6928 if test -n "$GREP"; then
6929 { echo "$as_me:$LINENO: result: $GREP" >&5
6930 echo "${ECHO_T}$GREP" >&6; }
6932 { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6937 # Extract the first word of "mkdir", so it can be a program name with args.
6938 set dummy mkdir
; ac_word
=$2
6939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941 if test "${ac_cv_path_MKDIR+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
6949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6953 test -z "$as_dir" && as_dir
=.
6954 for ac_exec_ext
in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
6968 MKDIR
=$ac_cv_path_MKDIR
6969 if test -n "$MKDIR"; then
6970 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6971 echo "${ECHO_T}$MKDIR" >&6; }
6973 { echo "$as_me:$LINENO: result: no" >&5
6974 echo "${ECHO_T}no" >&6; }
6978 # Extract the first word of "mv", so it can be a program name with args.
6979 set dummy
mv; ac_word
=$2
6980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982 if test "${ac_cv_path_MV+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
6990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6994 test -z "$as_dir" && as_dir
=.
6995 for ac_exec_ext
in '' $ac_executable_extensions; do
6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6997 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
6998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
7010 if test -n "$MV"; then
7011 { echo "$as_me:$LINENO: result: $MV" >&5
7012 echo "${ECHO_T}$MV" >&6; }
7014 { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7019 if test -n "$ac_tool_prefix"; then
7020 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7021 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7024 if test "${ac_cv_prog_RANLIB+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 if test -n "$RANLIB"; then
7028 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7034 test -z "$as_dir" && as_dir
=.
7035 for ac_exec_ext
in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 RANLIB
=$ac_cv_prog_RANLIB
7048 if test -n "$RANLIB"; then
7049 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7050 echo "${ECHO_T}$RANLIB" >&6; }
7052 { echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6; }
7058 if test -z "$ac_cv_prog_RANLIB"; then
7059 ac_ct_RANLIB
=$RANLIB
7060 # Extract the first word of "ranlib", so it can be a program name with args.
7061 set dummy ranlib
; ac_word
=$2
7062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 if test -n "$ac_ct_RANLIB"; then
7068 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7074 test -z "$as_dir" && as_dir
=.
7075 for ac_exec_ext
in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7088 if test -n "$ac_ct_RANLIB"; then
7089 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7090 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7092 { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7096 if test "x$ac_ct_RANLIB" = x
; then
7099 case $cross_compiling:$ac_tool_warned in
7101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7102 whose name does not start with the host triplet. If you think this
7103 configuration is useful to you, please write to autoconf@gnu.org." >&5
7104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7105 whose name does not start with the host triplet. If you think this
7106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7107 ac_tool_warned
=yes ;;
7109 RANLIB
=$ac_ct_RANLIB
7112 RANLIB
="$ac_cv_prog_RANLIB"
7115 if test -n "$ac_tool_prefix"; then
7116 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7117 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120 if test "${ac_cv_prog_AR+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 if test -n "$AR"; then
7124 ac_cv_prog_AR
="$AR" # Let the user override the test.
7126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7130 test -z "$as_dir" && as_dir
=.
7131 for ac_exec_ext
in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 if test -n "$AR"; then
7145 { echo "$as_me:$LINENO: result: $AR" >&5
7146 echo "${ECHO_T}$AR" >&6; }
7148 { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7154 if test -z "$ac_cv_prog_AR"; then
7156 # Extract the first word of "ar", so it can be a program name with args.
7157 set dummy
ar; ac_word
=$2
7158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7160 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 if test -n "$ac_ct_AR"; then
7164 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7170 test -z "$as_dir" && as_dir
=.
7171 for ac_exec_ext
in '' $ac_executable_extensions; do
7172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7173 ac_cv_prog_ac_ct_AR
="ar"
7174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7184 if test -n "$ac_ct_AR"; then
7185 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7186 echo "${ECHO_T}$ac_ct_AR" >&6; }
7188 { echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6; }
7192 if test "x$ac_ct_AR" = x
; then
7195 case $cross_compiling:$ac_tool_warned in
7197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7198 whose name does not start with the host triplet. If you think this
7199 configuration is useful to you, please write to autoconf@gnu.org." >&5
7200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7201 whose name does not start with the host triplet. If you think this
7202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7203 ac_tool_warned
=yes ;;
7211 # Extract the first word of "rm", so it can be a program name with args.
7212 set dummy
rm; ac_word
=$2
7213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215 if test "${ac_cv_path_RM+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
7223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7227 test -z "$as_dir" && as_dir
=.
7228 for ac_exec_ext
in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7230 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
7231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
7243 if test -n "$RM"; then
7244 { echo "$as_me:$LINENO: result: $RM" >&5
7245 echo "${ECHO_T}$RM" >&6; }
7247 { echo "$as_me:$LINENO: result: no" >&5
7248 echo "${ECHO_T}no" >&6; }
7252 # Extract the first word of "sed", so it can be a program name with args.
7253 set dummy
sed; ac_word
=$2
7254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7256 if test "${ac_cv_path_SED+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7268 test -z "$as_dir" && as_dir
=.
7269 for ac_exec_ext
in '' $ac_executable_extensions; do
7270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7271 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7284 if test -n "$SED"; then
7285 { echo "$as_me:$LINENO: result: $SED" >&5
7286 echo "${ECHO_T}$SED" >&6; }
7288 { echo "$as_me:$LINENO: result: no" >&5
7289 echo "${ECHO_T}no" >&6; }
7293 # Extract the first word of "tar", so it can be a program name with args.
7294 set dummy
tar; ac_word
=$2
7295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7297 if test "${ac_cv_path_TAR+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7309 test -z "$as_dir" && as_dir
=.
7310 for ac_exec_ext
in '' $ac_executable_extensions; do
7311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7312 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7325 if test -n "$TAR"; then
7326 { echo "$as_me:$LINENO: result: $TAR" >&5
7327 echo "${ECHO_T}$TAR" >&6; }
7329 { echo "$as_me:$LINENO: result: no" >&5
7330 echo "${ECHO_T}no" >&6; }
7334 # Extract the first word of "pwd", so it can be a program name with args.
7335 set dummy
pwd; ac_word
=$2
7336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7338 if test "${ac_cv_path_BINPWD+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7350 test -z "$as_dir" && as_dir
=.
7351 for ac_exec_ext
in '' $ac_executable_extensions; do
7352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7353 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7365 BINPWD
=$ac_cv_path_BINPWD
7366 if test -n "$BINPWD"; then
7367 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7368 echo "${ECHO_T}$BINPWD" >&6; }
7370 { echo "$as_me:$LINENO: result: no" >&5
7371 echo "${ECHO_T}no" >&6; }
7376 # Extract the first word of "Graphviz", so it can be a program name with args.
7377 set dummy Graphviz
; ac_word
=$2
7378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7392 test -z "$as_dir" && as_dir
=.
7393 for ac_exec_ext
in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7407 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7408 if test -n "$GRAPHVIZ"; then
7409 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7410 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7412 { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7417 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7419 cat >>confdefs.h
<<\_ACEOF
7420 #define HAVE_GRAPHVIZ 1
7423 if test "$llvm_cv_os_type" = "MingW" ; then
7424 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7427 cat >>confdefs.h
<<_ACEOF
7428 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7432 # Extract the first word of "dot", so it can be a program name with args.
7433 set dummy dot
; ac_word
=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_path_DOT+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7448 test -z "$as_dir" && as_dir
=.
7449 for ac_exec_ext
in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7464 if test -n "$DOT"; then
7465 { echo "$as_me:$LINENO: result: $DOT" >&5
7466 echo "${ECHO_T}$DOT" >&6; }
7468 { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7473 if test "$DOT" != "echo dot" ; then
7475 cat >>confdefs.h
<<\_ACEOF
7479 if test "$llvm_cv_os_type" = "MingW" ; then
7480 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7483 cat >>confdefs.h
<<_ACEOF
7484 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7488 # Extract the first word of "fdp", so it can be a program name with args.
7489 set dummy fdp
; ac_word
=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_path_FDP+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 ac_cv_path_FDP
="$FDP" # Let the user override the test with a path.
7500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7504 test -z "$as_dir" && as_dir
=.
7505 for ac_exec_ext
in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_path_FDP
="$as_dir/$ac_word$ac_exec_ext"
7508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP
="echo fdp"
7520 if test -n "$FDP"; then
7521 { echo "$as_me:$LINENO: result: $FDP" >&5
7522 echo "${ECHO_T}$FDP" >&6; }
7524 { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7529 if test "$FDP" != "echo fdp" ; then
7531 cat >>confdefs.h
<<\_ACEOF
7535 if test "$llvm_cv_os_type" = "MingW" ; then
7536 FDP
=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7539 cat >>confdefs.h
<<_ACEOF
7540 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7544 # Extract the first word of "neato", so it can be a program name with args.
7545 set dummy neato
; ac_word
=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_NEATO+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 ac_cv_path_NEATO
="$NEATO" # Let the user override the test with a path.
7556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7560 test -z "$as_dir" && as_dir
=.
7561 for ac_exec_ext
in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_path_NEATO
="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO
="echo neato"
7575 NEATO
=$ac_cv_path_NEATO
7576 if test -n "$NEATO"; then
7577 { echo "$as_me:$LINENO: result: $NEATO" >&5
7578 echo "${ECHO_T}$NEATO" >&6; }
7580 { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7585 if test "$NEATO" != "echo neato" ; then
7587 cat >>confdefs.h
<<\_ACEOF
7588 #define HAVE_NEATO 1
7591 if test "$llvm_cv_os_type" = "MingW" ; then
7592 NEATO
=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7595 cat >>confdefs.h
<<_ACEOF
7596 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7600 # Extract the first word of "twopi", so it can be a program name with args.
7601 set dummy twopi
; ac_word
=$2
7602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7604 if test "${ac_cv_path_TWOPI+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 ac_cv_path_TWOPI
="$TWOPI" # Let the user override the test with a path.
7612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7616 test -z "$as_dir" && as_dir
=.
7617 for ac_exec_ext
in '' $ac_executable_extensions; do
7618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7619 ac_cv_path_TWOPI
="$as_dir/$ac_word$ac_exec_ext"
7620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI
="echo twopi"
7631 TWOPI
=$ac_cv_path_TWOPI
7632 if test -n "$TWOPI"; then
7633 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7634 echo "${ECHO_T}$TWOPI" >&6; }
7636 { echo "$as_me:$LINENO: result: no" >&5
7637 echo "${ECHO_T}no" >&6; }
7641 if test "$TWOPI" != "echo twopi" ; then
7643 cat >>confdefs.h
<<\_ACEOF
7644 #define HAVE_TWOPI 1
7647 if test "$llvm_cv_os_type" = "MingW" ; then
7648 TWOPI
=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7651 cat >>confdefs.h
<<_ACEOF
7652 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7656 # Extract the first word of "circo", so it can be a program name with args.
7657 set dummy circo
; ac_word
=$2
7658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7660 if test "${ac_cv_path_CIRCO+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 ac_cv_path_CIRCO
="$CIRCO" # Let the user override the test with a path.
7668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7672 test -z "$as_dir" && as_dir
=.
7673 for ac_exec_ext
in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_path_CIRCO
="$as_dir/$ac_word$ac_exec_ext"
7676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO
="echo circo"
7687 CIRCO
=$ac_cv_path_CIRCO
7688 if test -n "$CIRCO"; then
7689 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7690 echo "${ECHO_T}$CIRCO" >&6; }
7692 { echo "$as_me:$LINENO: result: no" >&5
7693 echo "${ECHO_T}no" >&6; }
7697 if test "$CIRCO" != "echo circo" ; then
7699 cat >>confdefs.h
<<\_ACEOF
7700 #define HAVE_CIRCO 1
7703 if test "$llvm_cv_os_type" = "MingW" ; then
7704 CIRCO
=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7707 cat >>confdefs.h
<<_ACEOF
7708 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7712 for ac_prog
in gv gsview32
7714 # Extract the first word of "$ac_prog", so it can be a program name with args.
7715 set dummy
$ac_prog; ac_word
=$2
7716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7718 if test "${ac_cv_path_GV+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7730 test -z "$as_dir" && as_dir
=.
7731 for ac_exec_ext
in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7733 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 if test -n "$GV"; then
7746 { echo "$as_me:$LINENO: result: $GV" >&5
7747 echo "${ECHO_T}$GV" >&6; }
7749 { echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6; }
7754 test -n "$GV" && break
7756 test -n "$GV" || GV
="echo gv"
7758 if test "$GV" != "echo gv" ; then
7760 cat >>confdefs.h
<<\_ACEOF
7764 if test "$llvm_cv_os_type" = "MingW" ; then
7765 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7768 cat >>confdefs.h
<<_ACEOF
7769 #define LLVM_PATH_GV "$GV${EXEEXT}"
7773 # Extract the first word of "dotty", so it can be a program name with args.
7774 set dummy dotty
; ac_word
=$2
7775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7777 if test "${ac_cv_path_DOTTY+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7789 test -z "$as_dir" && as_dir
=.
7790 for ac_exec_ext
in '' $ac_executable_extensions; do
7791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7792 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7804 DOTTY
=$ac_cv_path_DOTTY
7805 if test -n "$DOTTY"; then
7806 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7807 echo "${ECHO_T}$DOTTY" >&6; }
7809 { echo "$as_me:$LINENO: result: no" >&5
7810 echo "${ECHO_T}no" >&6; }
7814 if test "$DOTTY" != "echo dotty" ; then
7816 cat >>confdefs.h
<<\_ACEOF
7817 #define HAVE_DOTTY 1
7820 if test "$llvm_cv_os_type" = "MingW" ; then
7821 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7824 cat >>confdefs.h
<<_ACEOF
7825 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7831 # Extract the first word of "perl", so it can be a program name with args.
7832 set dummy perl
; ac_word
=$2
7833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7835 if test "${ac_cv_path_PERL+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7847 test -z "$as_dir" && as_dir
=.
7848 for ac_exec_ext
in '' $ac_executable_extensions; do
7849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7850 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7862 PERL
=$ac_cv_path_PERL
7863 if test -n "$PERL"; then
7864 { echo "$as_me:$LINENO: result: $PERL" >&5
7865 echo "${ECHO_T}$PERL" >&6; }
7867 { echo "$as_me:$LINENO: result: no" >&5
7868 echo "${ECHO_T}no" >&6; }
7872 if test "$PERL" != "none"; then
7873 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7874 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7875 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7876 { echo "$as_me:$LINENO: result: yes" >&5
7877 echo "${ECHO_T}yes" >&6; }
7880 { echo "$as_me:$LINENO: result: not found" >&5
7881 echo "${ECHO_T}not found" >&6; }
7886 if test x
"$PERL" = xnone
; then
7889 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7890 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7891 { (exit 1); exit 1; }; }
7897 # Find a good install program. We prefer a C program (faster),
7898 # so one script is as good as another. But avoid the broken or
7899 # incompatible versions:
7900 # SysV /etc/install, /usr/sbin/install
7901 # SunOS /usr/etc/install
7902 # IRIX /sbin/install
7904 # AmigaOS /C/install, which installs bootblocks on floppy discs
7905 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7906 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7907 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7908 # OS/2's system install, which has a completely different semantic
7909 # ./install, which can be erroneously created by make from ./install.sh.
7910 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7911 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7912 if test -z "$INSTALL"; then
7913 if test "${ac_cv_path_install+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7920 test -z "$as_dir" && as_dir
=.
7921 # Account for people who put trailing slashes in PATH elements.
7923 .
/ | .
// |
/cC
/* | \
7924 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7925 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7928 # OSF1 and SCO ODT 3.0 have their own names for install.
7929 # Don't use installbsd from OSF since it installs stuff as root
7931 for ac_prog
in ginstall scoinst
install; do
7932 for ac_exec_ext
in '' $ac_executable_extensions; do
7933 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7934 if test $ac_prog = install &&
7935 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7936 # AIX install. It has an incompatible calling convention.
7938 elif test $ac_prog = install &&
7939 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7940 # program-specific install script used by HP pwplus--don't use.
7943 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7956 if test "${ac_cv_path_install+set}" = set; then
7957 INSTALL
=$ac_cv_path_install
7959 # As a last resort, use the slow shell script. Don't cache a
7960 # value for INSTALL within a source directory, because that will
7961 # break other packages using the cache if that directory is
7962 # removed, or if the value is a relative name.
7963 INSTALL
=$ac_install_sh
7966 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7967 echo "${ECHO_T}$INSTALL" >&6; }
7969 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7970 # It thinks the first close brace ends the variable substitution.
7971 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7973 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7975 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7978 # Extract the first word of "bzip2", so it can be a program name with args.
7979 set dummy
bzip2; ac_word
=$2
7980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7982 if test "${ac_cv_path_BZIP2+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7994 test -z "$as_dir" && as_dir
=.
7995 for ac_exec_ext
in '' $ac_executable_extensions; do
7996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7997 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 BZIP2
=$ac_cv_path_BZIP2
8009 if test -n "$BZIP2"; then
8010 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8011 echo "${ECHO_T}$BZIP2" >&6; }
8013 { echo "$as_me:$LINENO: result: no" >&5
8014 echo "${ECHO_T}no" >&6; }
8018 # Extract the first word of "doxygen", so it can be a program name with args.
8019 set dummy doxygen
; ac_word
=$2
8020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8022 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
8030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8034 test -z "$as_dir" && as_dir
=.
8035 for ac_exec_ext
in '' $ac_executable_extensions; do
8036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8037 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
8038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 DOXYGEN
=$ac_cv_path_DOXYGEN
8049 if test -n "$DOXYGEN"; then
8050 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8051 echo "${ECHO_T}$DOXYGEN" >&6; }
8053 { echo "$as_me:$LINENO: result: no" >&5
8054 echo "${ECHO_T}no" >&6; }
8058 # Extract the first word of "groff", so it can be a program name with args.
8059 set dummy
groff; ac_word
=$2
8060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8062 if test "${ac_cv_path_GROFF+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8067 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
8070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8074 test -z "$as_dir" && as_dir
=.
8075 for ac_exec_ext
in '' $ac_executable_extensions; do
8076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8077 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
8078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 GROFF
=$ac_cv_path_GROFF
8089 if test -n "$GROFF"; then
8090 { echo "$as_me:$LINENO: result: $GROFF" >&5
8091 echo "${ECHO_T}$GROFF" >&6; }
8093 { echo "$as_me:$LINENO: result: no" >&5
8094 echo "${ECHO_T}no" >&6; }
8098 # Extract the first word of "gzip", so it can be a program name with args.
8099 set dummy
gzip; ac_word
=$2
8100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8102 if test "${ac_cv_path_GZIP+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
8110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8114 test -z "$as_dir" && as_dir
=.
8115 for ac_exec_ext
in '' $ac_executable_extensions; do
8116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8117 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
8118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 GZIP
=$ac_cv_path_GZIP
8129 if test -n "$GZIP"; then
8130 { echo "$as_me:$LINENO: result: $GZIP" >&5
8131 echo "${ECHO_T}$GZIP" >&6; }
8133 { echo "$as_me:$LINENO: result: no" >&5
8134 echo "${ECHO_T}no" >&6; }
8138 # Extract the first word of "pod2html", so it can be a program name with args.
8139 set dummy pod2html
; ac_word
=$2
8140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8142 if test "${ac_cv_path_POD2HTML+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
8150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8154 test -z "$as_dir" && as_dir
=.
8155 for ac_exec_ext
in '' $ac_executable_extensions; do
8156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8157 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
8158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8168 POD2HTML
=$ac_cv_path_POD2HTML
8169 if test -n "$POD2HTML"; then
8170 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8171 echo "${ECHO_T}$POD2HTML" >&6; }
8173 { echo "$as_me:$LINENO: result: no" >&5
8174 echo "${ECHO_T}no" >&6; }
8178 # Extract the first word of "pod2man", so it can be a program name with args.
8179 set dummy pod2man
; ac_word
=$2
8180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8182 if test "${ac_cv_path_POD2MAN+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
8190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8194 test -z "$as_dir" && as_dir
=.
8195 for ac_exec_ext
in '' $ac_executable_extensions; do
8196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8197 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
8198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8208 POD2MAN
=$ac_cv_path_POD2MAN
8209 if test -n "$POD2MAN"; then
8210 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8211 echo "${ECHO_T}$POD2MAN" >&6; }
8213 { echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6; }
8218 # Extract the first word of "runtest", so it can be a program name with args.
8219 set dummy runtest
; ac_word
=$2
8220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8222 if test "${ac_cv_path_RUNTEST+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
8230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8234 test -z "$as_dir" && as_dir
=.
8235 for ac_exec_ext
in '' $ac_executable_extensions; do
8236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8237 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
8238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 RUNTEST
=$ac_cv_path_RUNTEST
8249 if test -n "$RUNTEST"; then
8250 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8251 echo "${ECHO_T}$RUNTEST" >&6; }
8253 { echo "$as_me:$LINENO: result: no" >&5
8254 echo "${ECHO_T}no" >&6; }
8260 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8261 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8263 # Check whether --with-tclinclude was given.
8264 if test "${with_tclinclude+set}" = set; then
8265 withval
=$with_tclinclude; with_tclinclude
=${withval}
8270 if test "${ac_cv_path_tclsh+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 if test x
"${with_tclinclude}" != x
; then
8275 if test -f ${with_tclinclude}/tclsh
; then
8276 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
8277 elif test -f ${with_tclinclude}/src
/tclsh
; then
8278 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
8280 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8281 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8282 { (exit 1); exit 1; }; }
8288 if test x
"${ac_cv_path_tclsh}" = x
; then
8289 { echo "$as_me:$LINENO: result: none" >&5
8290 echo "${ECHO_T}none" >&6; }
8291 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
8293 # Extract the first word of "$ac_prog", so it can be a program name with args.
8294 set dummy
$ac_prog; 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_TCLSH+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8302 ac_cv_path_TCLSH
="$TCLSH" # 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_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
8313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 TCLSH
=$ac_cv_path_TCLSH
8324 if test -n "$TCLSH"; then
8325 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8326 echo "${ECHO_T}$TCLSH" >&6; }
8328 { echo "$as_me:$LINENO: result: no" >&5
8329 echo "${ECHO_T}no" >&6; }
8333 test -n "$TCLSH" && break
8336 if test x
"${TCLSH}" = x
; then
8337 ac_cv_path_tclsh
='';
8339 ac_cv_path_tclsh
="${TCLSH}";
8342 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8343 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8344 TCLSH="${ac_cv_path_tclsh}"
8348 # Extract the first word of "zip", so it can be a program name with args.
8349 set dummy zip; ac_word=$2
8350 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8351 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8352 if test "${ac_cv_path_ZIP+set}" = set; then
8353 echo $ECHO_N "(cached
) $ECHO_C" >&6
8357 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8367 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8368 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8379 if test -n "$ZIP"; then
8380 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8381 echo "${ECHO_T}$ZIP" >&6; }
8383 { echo "$as_me:$LINENO: result
: no
" >&5
8384 echo "${ECHO_T}no
" >&6; }
8388 for ac_prog in ocamlc
8390 # Extract the first word of "$ac_prog", so it can be a program name with args.
8391 set dummy $ac_prog; ac_word=$2
8392 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8393 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8394 if test "${ac_cv_path_OCAMLC+set}" = set; then
8395 echo $ECHO_N "(cached
) $ECHO_C" >&6
8399 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8409 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8410 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8420 OCAMLC=$ac_cv_path_OCAMLC
8421 if test -n "$OCAMLC"; then
8422 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8423 echo "${ECHO_T}$OCAMLC" >&6; }
8425 { echo "$as_me:$LINENO: result
: no
" >&5
8426 echo "${ECHO_T}no
" >&6; }
8430 test -n "$OCAMLC" && break
8433 for ac_prog in ocamlopt
8435 # Extract the first word of "$ac_prog", so it can be a program name with args.
8436 set dummy $ac_prog; ac_word=$2
8437 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8438 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8439 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8440 echo $ECHO_N "(cached
) $ECHO_C" >&6
8444 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8454 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8455 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8465 OCAMLOPT=$ac_cv_path_OCAMLOPT
8466 if test -n "$OCAMLOPT"; then
8467 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8468 echo "${ECHO_T}$OCAMLOPT" >&6; }
8470 { echo "$as_me:$LINENO: result
: no
" >&5
8471 echo "${ECHO_T}no
" >&6; }
8475 test -n "$OCAMLOPT" && break
8478 for ac_prog in ocamldep
8480 # Extract the first word of "$ac_prog", so it can be a program name with args.
8481 set dummy $ac_prog; ac_word=$2
8482 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8483 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8484 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8485 echo $ECHO_N "(cached
) $ECHO_C" >&6
8489 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 test -z "$as_dir" && as_dir=.
8497 for ac_exec_ext in '' $ac_executable_extensions; do
8498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8499 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8500 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8510 OCAMLDEP=$ac_cv_path_OCAMLDEP
8511 if test -n "$OCAMLDEP"; then
8512 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8513 echo "${ECHO_T}$OCAMLDEP" >&6; }
8515 { echo "$as_me:$LINENO: result
: no
" >&5
8516 echo "${ECHO_T}no
" >&6; }
8520 test -n "$OCAMLDEP" && break
8523 for ac_prog in ocamldoc
8525 # Extract the first word of "$ac_prog", so it can be a program name with args.
8526 set dummy $ac_prog; ac_word=$2
8527 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8528 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8529 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8530 echo $ECHO_N "(cached
) $ECHO_C" >&6
8534 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8544 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8545 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8555 OCAMLDOC=$ac_cv_path_OCAMLDOC
8556 if test -n "$OCAMLDOC"; then
8557 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8558 echo "${ECHO_T}$OCAMLDOC" >&6; }
8560 { echo "$as_me:$LINENO: result
: no
" >&5
8561 echo "${ECHO_T}no
" >&6; }
8565 test -n "$OCAMLDOC" && break
8568 for ac_prog in gas as
8570 # Extract the first word of "$ac_prog", so it can be a program name with args.
8571 set dummy $ac_prog; ac_word=$2
8572 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8573 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8574 if test "${ac_cv_path_GAS+set}" = set; then
8575 echo $ECHO_N "(cached
) $ECHO_C" >&6
8579 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 test -z "$as_dir" && as_dir=.
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8589 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8590 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8601 if test -n "$GAS"; then
8602 { echo "$as_me:$LINENO: result
: $GAS" >&5
8603 echo "${ECHO_T}$GAS" >&6; }
8605 { echo "$as_me:$LINENO: result
: no
" >&5
8606 echo "${ECHO_T}no
" >&6; }
8610 test -n "$GAS" && break
8614 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-R<path
> option
" >&5
8615 echo $ECHO_N "checking
for compiler
-Wl,-R<path
> option...
$ECHO_C" >&6; }
8616 if test "${llvm_cv_link_use_r+set}" = set; then
8617 echo $ECHO_N "(cached
) $ECHO_C" >&6
8620 ac_cpp='$CPP $CPPFLAGS'
8621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8626 CFLAGS="$CFLAGS -Wl,-R.
"
8627 cat >conftest.$ac_ext <<_ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8637 int main() { return 0; }
8642 rm -f conftest.$ac_objext conftest$ac_exeext
8643 if { (ac_try="$ac_link"
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8648 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8649 (eval "$ac_link") 2>conftest.er1
8651 grep -v '^ *+' conftest.er1 >conftest.err
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8657 { (case "(($ac_try" in
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8662 (eval "$ac_try") 2>&5
8664 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8665 (exit $ac_status); }; } &&
8666 { ac_try='test -s conftest$ac_exeext'
8667 { (case "(($ac_try" in
8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 *) ac_try_echo=$ac_try;;
8671 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8672 (eval "$ac_try") 2>&5
8674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8675 (exit $ac_status); }; }; then
8676 llvm_cv_link_use_r=yes
8678 echo "$as_me: failed program was
:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8681 llvm_cv_link_use_r=no
8684 rm -f core conftest.err conftest.$ac_objext \
8685 conftest$ac_exeext conftest.$ac_ext
8688 ac_cpp='$CPP $CPPFLAGS'
8689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8695 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_r" >&5
8696 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8697 if test "$llvm_cv_link_use_r" = yes ; then
8699 cat >>confdefs.h <<\_ACEOF
8700 #define HAVE_LINK_R 1
8706 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-export-dynamic option
" >&5
8707 echo $ECHO_N "checking
for compiler
-Wl,-export-dynamic option...
$ECHO_C" >&6; }
8708 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8709 echo $ECHO_N "(cached
) $ECHO_C" >&6
8712 ac_cpp='$CPP $CPPFLAGS'
8713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8718 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8719 cat >conftest.$ac_ext <<_ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h. */
8729 int main() { return 0; }
8734 rm -f conftest.$ac_objext conftest$ac_exeext
8735 if { (ac_try="$ac_link"
8737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738 *) ac_try_echo=$ac_try;;
8740 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8741 (eval "$ac_link") 2>conftest.er1
8743 grep -v '^ *+' conftest.er1 >conftest.err
8745 cat conftest.err >&5
8746 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8747 (exit $ac_status); } &&
8748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8749 { (case "(($ac_try" in
8750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751 *) ac_try_echo=$ac_try;;
8753 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8754 (eval "$ac_try") 2>&5
8756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try='test -s conftest$ac_exeext'
8759 { (case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8763 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_try") 2>&5
8766 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8767 (exit $ac_status); }; }; then
8768 llvm_cv_link_use_export_dynamic=yes
8770 echo "$as_me: failed program was
:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8773 llvm_cv_link_use_export_dynamic=no
8776 rm -f core conftest.err conftest.$ac_objext \
8777 conftest$ac_exeext conftest.$ac_ext
8780 ac_cpp='$CPP $CPPFLAGS'
8781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8787 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_export_dynamic" >&5
8788 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8789 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8791 cat >>confdefs.h <<\_ACEOF
8792 #define HAVE_LINK_EXPORT_DYNAMIC 1
8798 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-retain-symbols-file option
" >&5
8799 echo $ECHO_N "checking
for compiler
-Wl,-retain-symbols-file option...
$ECHO_C" >&6; }
8800 if test "${llvm_cv_link_use_retain_symbols_file+set}" = set; then
8801 echo $ECHO_N "(cached
) $ECHO_C" >&6
8804 ac_cpp='$CPP $CPPFLAGS'
8805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8811 # The following code is from the autoconf manual,
8812 # "11.13: Limitations of Usual Tools
".
8813 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8814 # Use mktemp if possible; otherwise fall back on mkdir,
8815 # with $RANDOM to make collisions less likely.
8819 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX
") 2>/dev/null
8821 test -n "$tmp" && test -d "$tmp"
8823 tmp=$TMPDIR/foo$$-$RANDOM
8824 (umask 077 && mkdir "$tmp")
8827 echo "main
" > "$tmp/exports
"
8829 CFLAGS="$CFLAGS -Wl,-retain-symbols-file=$tmp/exports
"
8830 cat >conftest.$ac_ext <<_ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8840 int main() { return 0; }
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (ac_try="$ac_link"
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8851 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_link") 2>conftest.er1
8854 grep -v '^ *+' conftest.er1 >conftest.err
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8860 { (case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8864 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_try") 2>&5
8867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8868 (exit $ac_status); }; } &&
8869 { ac_try='test -s conftest$ac_exeext'
8870 { (case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8874 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_try") 2>&5
8877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8878 (exit $ac_status); }; }; then
8879 llvm_cv_link_use_retain_symbols_file=yes
8881 echo "$as_me: failed program was
:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8884 llvm_cv_link_use_retain_symbols_file=no
8887 rm -f core conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8893 ac_cpp='$CPP $CPPFLAGS'
8894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8900 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_retain_symbols_file" >&5
8901 echo "${ECHO_T}$llvm_cv_link_use_retain_symbols_file" >&6; }
8902 if test "$llvm_cv_link_use_retain_symbols_file" = yes ; then
8903 HAVE_LINK_RETAIN_SYMBOLS_FILE=1
8910 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
8911 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
8912 if test "${ac_cv_c_const+set}" = set; then
8913 echo $ECHO_N "(cached
) $ECHO_C" >&6
8915 cat >conftest.$ac_ext <<_ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h. */
8925 /* FIXME: Include the comments suggested by Paul. */
8927 /* Ultrix mips cc rejects this. */
8928 typedef int charset[2];
8930 /* SunOS 4.1.1 cc rejects this. */
8931 char const *const *ccp;
8933 /* NEC SVR4.0.2 mips cc rejects this. */
8934 struct point {int x, y;};
8935 static struct point const zero = {0,0};
8936 /* AIX XL C 1.02.0.0 rejects this.
8937 It does not let you subtract one const X* pointer from another in
8938 an arm of an if-expression whose if-part is not a constant
8940 const char *g = "string
";
8941 ccp = &g + (g ? g-g : 0);
8942 /* HPUX 7.0 cc rejects these. */
8945 ccp = (char const *const *) p;
8946 { /* SCO 3.2v4 cc rejects this. */
8948 char const *s = 0 ? (char *) 0 : (char const *) 0;
8953 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8955 const int *foo = &x[0];
8958 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8959 typedef const int *iptr;
8963 { /* AIX XL C 1.02.0.0 rejects this saying
8964 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8965 struct s { int j; const int *ap[3]; };
8966 struct s *b; b->j = 5;
8968 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8972 return !x[0] && !zero.x;
8979 rm -f conftest.$ac_objext
8980 if { (ac_try="$ac_compile"
8982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983 *) ac_try_echo=$ac_try;;
8985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8986 (eval "$ac_compile") 2>conftest.er1
8988 grep -v '^ *+' conftest.er1 >conftest.err
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8994 { (case "(($ac_try" in
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8998 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8999 (eval "$ac_try") 2>&5
9001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9002 (exit $ac_status); }; } &&
9003 { ac_try='test -s conftest.$ac_objext'
9004 { (case "(($ac_try" in
9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9008 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9009 (eval "$ac_try") 2>&5
9011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9012 (exit $ac_status); }; }; then
9015 echo "$as_me: failed program was
:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
9024 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9025 if test $ac_cv_c_const = no; then
9027 cat >>confdefs.h <<\_ACEOF
9039 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9040 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
9041 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
9042 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
9043 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9044 echo $ECHO_N "(cached
) $ECHO_C" >&6
9046 cat >conftest.$ac_ext <<_ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9052 #include <sys/types.h>
9064 rm -f conftest.$ac_objext
9065 if { (ac_try="$ac_compile"
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_compile") 2>conftest.er1
9073 grep -v '^ *+' conftest.er1 >conftest.err
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9079 { (case "(($ac_try" in
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9083 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9084 (eval "$ac_try") 2>&5
9086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9087 (exit $ac_status); }; } &&
9088 { ac_try='test -s conftest.$ac_objext'
9089 { (case "(($ac_try" in
9090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091 *) ac_try_echo=$ac_try;;
9093 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9094 (eval "$ac_try") 2>&5
9096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9097 (exit $ac_status); }; }; then
9098 eval "$as_ac_Header=yes"
9100 echo "$as_me: failed program was
:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9103 eval "$as_ac_Header=no
"
9106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9108 ac_res=`eval echo '${'$as_ac_Header'}'`
9109 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9110 echo "${ECHO_T}$ac_res" >&6; }
9111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9112 cat >>confdefs.h <<_ACEOF
9113 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
9116 ac_header_dirent=$ac_hdr; break
9120 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9121 if test $ac_header_dirent = dirent.h; then
9122 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9123 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9124 if test "${ac_cv_search_opendir+set}" = set; then
9125 echo $ECHO_N "(cached
) $ECHO_C" >&6
9127 ac_func_search_save_LIBS=$LIBS
9128 cat >conftest.$ac_ext <<_ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9135 /* Override any GCC internal prototype to avoid an error.
9136 Use char because int might match the return type of a GCC
9137 builtin and then its argument prototype would still apply. */
9150 for ac_lib in '' dir; do
9151 if test -z "$ac_lib"; then
9152 ac_res="none required
"
9155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9157 rm -f conftest.$ac_objext conftest$ac_exeext
9158 if { (ac_try="$ac_link"
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9164 (eval "$ac_link") 2>conftest.er1
9166 grep -v '^ *+' conftest.er1 >conftest.err
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9170 (exit $ac_status); } &&
9171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9172 { (case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9176 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9177 (eval "$ac_try") 2>&5
9179 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9180 (exit $ac_status); }; } &&
9181 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9191 ac_cv_search_opendir=$ac_res
9193 echo "$as_me: failed program was
:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9199 rm -f core conftest.err conftest.$ac_objext \
9201 if test "${ac_cv_search_opendir+set}" = set; then
9205 if test "${ac_cv_search_opendir+set}" = set; then
9208 ac_cv_search_opendir=no
9211 LIBS=$ac_func_search_save_LIBS
9213 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9214 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9215 ac_res=$ac_cv_search_opendir
9216 if test "$ac_res" != no; then
9217 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9222 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9223 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9224 if test "${ac_cv_search_opendir+set}" = set; then
9225 echo $ECHO_N "(cached
) $ECHO_C" >&6
9227 ac_func_search_save_LIBS=$LIBS
9228 cat >conftest.$ac_ext <<_ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9235 /* Override any GCC internal prototype to avoid an error.
9236 Use char because int might match the return type of a GCC
9237 builtin and then its argument prototype would still apply. */
9250 for ac_lib in '' x; do
9251 if test -z "$ac_lib"; then
9252 ac_res="none required
"
9255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9257 rm -f conftest.$ac_objext conftest$ac_exeext
9258 if { (ac_try="$ac_link"
9260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9264 (eval "$ac_link") 2>conftest.er1
9266 grep -v '^ *+' conftest.er1 >conftest.err
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9272 { (case "(($ac_try" in
9273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274 *) ac_try_echo=$ac_try;;
9276 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9277 (eval "$ac_try") 2>&5
9279 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9280 (exit $ac_status); }; } &&
9281 { ac_try='test -s conftest$ac_exeext'
9282 { (case "(($ac_try" in
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9286 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9287 (eval "$ac_try") 2>&5
9289 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9290 (exit $ac_status); }; }; then
9291 ac_cv_search_opendir=$ac_res
9293 echo "$as_me: failed program was
:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9299 rm -f core conftest.err conftest.$ac_objext \
9301 if test "${ac_cv_search_opendir+set}" = set; then
9305 if test "${ac_cv_search_opendir+set}" = set; then
9308 ac_cv_search_opendir=no
9311 LIBS=$ac_func_search_save_LIBS
9313 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9314 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9315 ac_res=$ac_cv_search_opendir
9316 if test "$ac_res" != no; then
9317 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9324 for ac_header in dlfcn.h
9326 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9327 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9328 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9329 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9330 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9331 echo $ECHO_N "(cached
) $ECHO_C" >&6
9333 ac_res=`eval echo '${'$as_ac_Header'}'`
9334 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9335 echo "${ECHO_T}$ac_res" >&6; }
9337 # Is the header compilable?
9338 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9339 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9340 cat >conftest.$ac_ext <<_ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 $ac_includes_default
9347 #include <$ac_header>
9349 rm -f conftest.$ac_objext
9350 if { (ac_try="$ac_compile"
9352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9356 (eval "$ac_compile") 2>conftest.er1
9358 grep -v '^ *+' conftest.er1 >conftest.err
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9362 (exit $ac_status); } &&
9363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9364 { (case "(($ac_try" in
9365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366 *) ac_try_echo=$ac_try;;
9368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9369 (eval "$ac_try") 2>&5
9371 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9372 (exit $ac_status); }; } &&
9373 { ac_try='test -s conftest.$ac_objext'
9374 { (case "(($ac_try" in
9375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9376 *) ac_try_echo=$ac_try;;
9378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9379 (eval "$ac_try") 2>&5
9381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9382 (exit $ac_status); }; }; then
9383 ac_header_compiler=yes
9385 echo "$as_me: failed program was
:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9388 ac_header_compiler=no
9391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9393 echo "${ECHO_T}$ac_header_compiler" >&6; }
9395 # Is the header present?
9396 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9397 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9398 cat >conftest.$ac_ext <<_ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9404 #include <$ac_header>
9406 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9411 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9414 grep -v '^ *+' conftest.er1 >conftest.err
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9418 (exit $ac_status); } >/dev/null; then
9419 if test -s conftest.err; then
9420 ac_cpp_err=$ac_c_preproc_warn_flag
9421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9428 if test -z "$ac_cpp_err"; then
9429 ac_header_preproc=yes
9431 echo "$as_me: failed program was
:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9434 ac_header_preproc=no
9437 rm -f conftest.err conftest.$ac_ext
9438 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9439 echo "${ECHO_T}$ac_header_preproc" >&6; }
9441 # So? What about this header?
9442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9444 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9445 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9446 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9448 ac_header_preproc=yes
9451 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9452 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9453 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9454 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9455 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9456 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9457 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9458 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9459 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9461 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9462 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9464 ## ----------------------------------- ##
9465 ## Report this to llvmbugs@cs.uiuc.edu ##
9466 ## ----------------------------------- ##
9468 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9471 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9472 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9473 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9474 echo $ECHO_N "(cached
) $ECHO_C" >&6
9476 eval "$as_ac_Header=\
$ac_header_preproc"
9478 ac_res=`eval echo '${'$as_ac_Header'}'`
9479 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9480 echo "${ECHO_T}$ac_res" >&6; }
9483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9484 cat >>confdefs.h <<_ACEOF
9485 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9492 # Check whether --enable-ltdl-install was given.
9493 if test "${enable_ltdl_install+set}" = set; then
9494 enableval=$enable_ltdl_install;
9500 if test x"${enable_ltdl_install-no}" != xno; then
9502 INSTALL_LTDL_FALSE='#'
9504 INSTALL_LTDL_TRUE='#'
9510 if test x"${enable_ltdl_convenience-no}" != xno; then
9511 CONVENIENCE_LTDL_TRUE=
9512 CONVENIENCE_LTDL_FALSE='#'
9514 CONVENIENCE_LTDL_TRUE='#'
9515 CONVENIENCE_LTDL_FALSE=
9519 { echo "$as_me:$LINENO: checking dynamic linker characteristics
" >&5
9520 echo $ECHO_N "checking dynamic linker characteristics...
$ECHO_C" >&6; }
9522 libname_spec='lib$name'
9530 shlibpath_overrides_runpath=unknown
9532 dynamic_linker="$host_os ld.so
"
9533 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
"
9534 if test "$GCC" = yes; then
9535 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9536 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9537 # if the path contains ";" then we assume it to be the separator
9538 # otherwise default to the standard path separator (i.e. ":") - it is
9539 # assumed that no part of a normal pathname contains ";" but that should
9540 # okay in the real world where ";" in dirpaths is itself problematic.
9541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9546 sys_lib_search_path_spec="/lib
/usr
/lib
/usr
/local
/lib
"
9548 need_lib_prefix=unknown
9549 hardcode_into_libs=no
9551 # when you set need_version to no, make sure it does not cause -set_version
9552 # flags to be left without arguments
9553 need_version=unknown
9558 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9559 shlibpath_var=LIBPATH
9561 # AIX 3 has no versioning support, so we append a major version to the name.
9562 soname_spec='${libname}${release}${shared_ext}$major'
9569 hardcode_into_libs=yes
9570 if test "$host_cpu" = ia64; then
9571 # AIX 5 supports IA64
9572 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9573 shlibpath_var=LD_LIBRARY_PATH
9575 # With GCC up to 2.95.x, collect2 would create an import file
9576 # for dependence libraries. The import file would start with
9577 # the line `#! .'. This would cause the generated library to
9578 # depend on `.', always an invalid library. This was fixed in
9579 # development snapshots of GCC prior to 3.0.
9581 aix4 | aix4.[01] | aix4.[01].*)
9582 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9584 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9591 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9592 # soname into executable. Probably we can add versioning support to
9593 # collect2, so additional links can be useful in future.
9594 if test "$aix_use_runtimelinking" = yes; then
9595 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9596 # instead of lib<name>.a to let people know that these are not
9597 # typical AIX shared libraries.
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9600 # We preserve .a as extension for shared libraries through AIX4.2
9601 # and later when we are not doing run time linking.
9602 library_names_spec='${libname}${release}.a $libname.a'
9603 soname_spec='${libname}${release}${shared_ext}$major'
9605 shlibpath_var=LIBPATH
9610 library_names_spec='$libname.ixlibrary $libname.a'
9611 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9612 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'
9616 library_names_spec='${libname}${shared_ext}'
9617 dynamic_linker="$host_os ld.so
"
9618 shlibpath_var=LIBRARY_PATH
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9625 soname_spec='${libname}${release}${shared_ext}$major'
9626 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig $libdir'
9627 shlibpath_var=LD_LIBRARY_PATH
9628 sys_lib_search_path_spec="/shlib
/usr
/lib
/usr
/X11
/lib
/usr
/contrib
/lib
/lib
/usr
/local
/lib
"
9629 sys_lib_dlsearch_path_spec="/shlib
/usr
/lib
/usr
/local
/lib
"
9630 # the default ld.so.conf also contains /usr/contrib/lib and
9631 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9632 # libtool to hard-code these into programs
9635 cygwin* | mingw* | pw32*)
9636 version_type=windows
9641 case $GCC,$host_os in
9642 yes,cygwin* | yes,mingw* | yes,pw32*)
9643 library_names_spec='$libname.dll.a'
9644 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9645 postinstall_cmds='base_file=`basename \${file}`~
9646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9647 dldir=$destdir/`dirname \$dlpath`~
9648 test -d \$dldir || mkdir -p \$dldir~
9649 $install_prog $dir/$dlname \$dldir/$dlname~
9650 chmod a+x \$dldir/$dlname'
9651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9652 dlpath=$dir/\$dldll~
9654 shlibpath_overrides_runpath=yes
9658 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9659 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9660 sys_lib_search_path_spec="/usr
/lib
/lib
/w32api
/lib
/usr
/local
/lib
"
9663 # MinGW DLLs use traditional 'lib' prefix
9664 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9665 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9666 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9667 # It is most probably a Windows format PATH printed by
9668 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9669 # path with ; separators, and with drive letters. We can handle the
9670 # drive letters (cygwin fileutils understands them), so leave them,
9671 # especially as we might pass files found there to a mingw objdump,
9672 # which wouldn't understand a cygwinified path. Ahh.
9673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9679 # pw32 DLLs use 'pw' prefix rather than 'lib'
9680 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9686 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9689 dynamic_linker='Win32 ld.exe'
9690 # FIXME: first we should search . and the directory the executable is in
9694 darwin* | rhapsody*)
9695 dynamic_linker="$host_os dyld
"
9699 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9700 soname_spec='${libname}${release}${major}$shared_ext'
9701 shlibpath_overrides_runpath=yes
9702 shlibpath_var=DYLD_LIBRARY_PATH
9703 shrext_cmds='.dylib'
9704 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9705 if test "$GCC" = yes; then
9706 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
"`
9708 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9710 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9718 soname_spec='${libname}${release}${shared_ext}$major'
9719 shlibpath_var=LD_LIBRARY_PATH
9730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9731 soname_spec='${libname}${release}${shared_ext}$major'
9732 shlibpath_var=LD_LIBRARY_PATH
9733 shlibpath_overrides_runpath=no
9734 hardcode_into_libs=yes
9735 dynamic_linker='GNU ld.so'
9738 freebsd* | dragonfly*)
9739 # DragonFly does not have aout. When/if they implement a new
9740 # versioning mechanism, adjust this.
9741 if test -x /usr/bin/objformat; then
9742 objformat=`/usr/bin/objformat`
9745 freebsd[123]*) objformat=aout ;;
9749 version_type=freebsd-$objformat
9750 case $version_type in
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9761 shlibpath_var=LD_LIBRARY_PATH
9764 shlibpath_overrides_runpath=yes
9766 freebsd3.[01]* | freebsdelf3.[01]*)
9767 shlibpath_overrides_runpath=yes
9768 hardcode_into_libs=yes
9770 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9771 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9772 shlibpath_overrides_runpath=no
9773 hardcode_into_libs=yes
9775 freebsd*) # from 4.6 on
9776 shlibpath_overrides_runpath=yes
9777 hardcode_into_libs=yes
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9787 soname_spec='${libname}${release}${shared_ext}$major'
9788 shlibpath_var=LD_LIBRARY_PATH
9789 hardcode_into_libs=yes
9792 hpux9* | hpux10* | hpux11*)
9793 # Give a soname corresponding to the major version so that dld.sl refuses to
9794 # link against other versions.
9801 hardcode_into_libs=yes
9802 dynamic_linker="$host_os dld.so
"
9803 shlibpath_var=LD_LIBRARY_PATH
9804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 if test "X
$HPUX_IA64_MODE" = X32; then
9808 sys_lib_search_path_spec="/usr
/lib
/hpux32
/usr
/local
/lib
/hpux32
/usr
/local
/lib
"
9810 sys_lib_search_path_spec="/usr
/lib
/hpux64
/usr
/local
/lib
/hpux64
"
9812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9816 hardcode_into_libs=yes
9817 dynamic_linker="$host_os dld.sl
"
9818 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr
/lib
/pa20_64
/usr
/ccs
/lib
/pa20_64
"
9823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9827 dynamic_linker="$host_os dld.sl
"
9828 shlibpath_var=SHLIB_PATH
9829 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9831 soname_spec='${libname}${release}${shared_ext}$major'
9834 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9835 postinstall_cmds='chmod 555 $lib'
9842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9843 soname_spec='${libname}${release}${shared_ext}$major'
9844 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9845 shlibpath_var=LD_LIBRARY_PATH
9846 shlibpath_overrides_runpath=no
9847 hardcode_into_libs=yes
9850 irix5* | irix6* | nonstopux*)
9852 nonstopux*) version_type=nonstopux ;;
9854 if test "$lt_cv_prog_gnu_ld" = yes; then
9862 soname_spec='${libname}${release}${shared_ext}$major'
9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9865 irix5* | nonstopux*)
9869 case $LD in # libtool.m4 will add one of these switches to LD
9870 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9871 libsuff= shlibsuff= libmagic=32-bit;;
9872 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9873 libsuff=32 shlibsuff=N32 libmagic=N32;;
9874 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9875 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9876 *) libsuff= shlibsuff= libmagic=never-match;;
9880 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9881 shlibpath_overrides_runpath=no
9882 sys_lib_search_path_spec="/usr
/lib
${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9883 sys_lib_dlsearch_path_spec="/usr
/lib
${libsuff} /lib
${libsuff}"
9884 hardcode_into_libs=yes
9887 # No shared lib support for Linux oldld, aout, or coff.
9888 linux*oldld* | linux*aout* | linux*coff*)
9892 # This must be Linux ELF.
9897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898 soname_spec='${libname}${release}${shared_ext}$major'
9899 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -n $libdir'
9900 shlibpath_var=LD_LIBRARY_PATH
9901 shlibpath_overrides_runpath=no
9902 # This implies no fast_install, which is unacceptable.
9903 # Some rework will be needed to allow for fast_install
9904 # before this can be enabled.
9905 hardcode_into_libs=yes
9907 # Append ld.so.conf contents to the search path
9908 if test -f /etc/ld.so.conf; then
9909 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' ' '`
9910 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
$lt_ld_extra"
9913 # We used to test for /lib/ld.so.1 and disable shared libraries on
9914 # powerpc, because MkLinux only supported shared libraries with the
9915 # GNU dynamic linker. Since this was broken with cross compilers,
9916 # most powerpc-linux boxes support dynamic linking these days and
9917 # people can always --disable-shared, the test was removed, and we
9918 # assume the GNU/Linux dynamic linker is in use.
9919 dynamic_linker='GNU/Linux ld.so'
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 shlibpath_overrides_runpath=no
9930 hardcode_into_libs=yes
9931 dynamic_linker='GNU ld.so'
9938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9940 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9941 dynamic_linker='NetBSD (a.out) ld.so'
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9944 soname_spec='${libname}${release}${shared_ext}$major'
9945 dynamic_linker='NetBSD ld.elf_so'
9947 shlibpath_var=LD_LIBRARY_PATH
9948 shlibpath_overrides_runpath=yes
9949 hardcode_into_libs=yes
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 shlibpath_overrides_runpath=yes
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9964 soname_spec='${libname}${release}${shared_ext}$major'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 shlibpath_overrides_runpath=yes
9971 sys_lib_dlsearch_path_spec="/usr
/lib
"
9973 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9975 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9976 *) need_version=no ;;
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9979 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9980 shlibpath_var=LD_LIBRARY_PATH
9981 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
9983 openbsd2.[89] | openbsd2.[89].*)
9984 shlibpath_overrides_runpath=no
9987 shlibpath_overrides_runpath=yes
9991 shlibpath_overrides_runpath=yes
9996 libname_spec='$name'
9999 library_names_spec='$libname${shared_ext} $libname.a'
10000 dynamic_linker='OS/2 ld.exe'
10001 shlibpath_var=LIBPATH
10004 osf3* | osf4* | osf5*)
10008 soname_spec='${libname}${release}${shared_ext}$major'
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010 shlibpath_var=LD_LIBRARY_PATH
10011 sys_lib_search_path_spec="/usr
/shlib
/usr
/ccs
/lib
/usr
/lib
/cmplrs
/cc
/usr
/lib
/usr
/local
/lib
/var
/shlib
"
10012 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 shlibpath_var=LD_LIBRARY_PATH
10022 shlibpath_overrides_runpath=yes
10023 hardcode_into_libs=yes
10024 # ldd complains unless libraries are executable
10025 postinstall_cmds='chmod +x $lib'
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10031 finish_cmds='PATH="\
$PATH:/usr
/etc
" ldconfig $libdir'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 shlibpath_overrides_runpath=yes
10034 if test "$with_gnu_ld" = yes; then
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10043 soname_spec='${libname}${release}${shared_ext}$major'
10044 shlibpath_var=LD_LIBRARY_PATH
10045 case $host_vendor in
10047 shlibpath_overrides_runpath=no
10049 export_dynamic_flag_spec='${wl}-Blargedynsym'
10050 runpath_var=LD_RUN_PATH
10058 shlibpath_overrides_runpath=no
10059 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10065 if test -d /usr/nec ;then
10067 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10068 soname_spec='$libname${shared_ext}.$major'
10069 shlibpath_var=LD_LIBRARY_PATH
10073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10074 version_type=freebsd-elf
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10078 soname_spec='${libname}${release}${shared_ext}$major'
10079 shlibpath_var=LD_LIBRARY_PATH
10080 hardcode_into_libs=yes
10081 if test "$with_gnu_ld" = yes; then
10082 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10083 shlibpath_overrides_runpath=no
10085 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10086 shlibpath_overrides_runpath=yes
10089 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib
"
10093 sys_lib_dlsearch_path_spec='/usr/lib'
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 shlibpath_var=LD_LIBRARY_PATH
10107 { echo "$as_me:$LINENO: result
: $dynamic_linker" >&5
10108 echo "${ECHO_T}$dynamic_linker" >&6; }
10109 test "$dynamic_linker" = no && can_build_shared=no
10111 variables_saved_for_relink="PATH
$shlibpath_var $runpath_var"
10112 if test "$GCC" = yes; then
10113 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH
"
10117 { echo "$as_me:$LINENO: checking
which extension is used
for loadable modules
" >&5
10118 echo $ECHO_N "checking
which extension is used
for loadable modules...
$ECHO_C" >&6; }
10119 if test "${libltdl_cv_shlibext+set}" = set; then
10120 echo $ECHO_N "(cached
) $ECHO_C" >&6
10124 eval libltdl_cv_shlibext=$shrext_cmds
10127 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibext" >&5
10128 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10129 if test -n "$libltdl_cv_shlibext"; then
10131 cat >>confdefs.h <<_ACEOF
10132 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10138 { echo "$as_me:$LINENO: checking
which variable specifies run-time library path
" >&5
10139 echo $ECHO_N "checking
which variable specifies run-time library path...
$ECHO_C" >&6; }
10140 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10141 echo $ECHO_N "(cached
) $ECHO_C" >&6
10143 libltdl_cv_shlibpath_var="$shlibpath_var"
10145 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibpath_var" >&5
10146 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10147 if test -n "$libltdl_cv_shlibpath_var"; then
10149 cat >>confdefs.h <<_ACEOF
10150 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10156 { echo "$as_me:$LINENO: checking
for the default library search path
" >&5
10157 echo $ECHO_N "checking
for the default library search path...
$ECHO_C" >&6; }
10158 if test "${libltdl_cv_sys_search_path+set}" = set; then
10159 echo $ECHO_N "(cached
) $ECHO_C" >&6
10161 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10163 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_search_path" >&5
10164 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10165 if test -n "$libltdl_cv_sys_search_path"; then
10167 for dir in $libltdl_cv_sys_search_path; do
10168 if test -z "$sys_search_path"; then
10169 sys_search_path="$dir"
10171 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10175 cat >>confdefs.h <<_ACEOF
10176 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10181 { echo "$as_me:$LINENO: checking
for objdir
" >&5
10182 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6; }
10183 if test "${libltdl_cv_objdir+set}" = set; then
10184 echo $ECHO_N "(cached
) $ECHO_C" >&6
10186 libltdl_cv_objdir="$objdir"
10187 if test -n "$objdir"; then
10190 rm -f .libs 2>/dev/null
10191 mkdir .libs 2>/dev/null
10192 if test -d .libs; then
10193 libltdl_cv_objdir=.libs
10195 # MS-DOS does not allow filenames that begin with a dot.
10196 libltdl_cv_objdir=_libs
10198 rmdir .libs 2>/dev/null
10202 { echo "$as_me:$LINENO: result
: $libltdl_cv_objdir" >&5
10203 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10205 cat >>confdefs.h <<_ACEOF
10206 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10214 # Check for command to grab the raw symbol name followed by C symbol from nm.
10215 { echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
10216 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6; }
10217 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10218 echo $ECHO_N "(cached
) $ECHO_C" >&6
10221 # These are sane defaults that work on at least a few old systems.
10222 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10224 # Character class describing NM global symbol codes.
10225 symcode='[BCDEGRST]'
10227 # Regexp to match symbols that can be accessed directly from C.
10228 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10230 # Transform an extracted symbol line into a proper C declaration
10231 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10233 # Transform an extracted symbol line into symbol name and symbol address
10234 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'"
10236 # Define system-specific variables.
10241 cygwin* | mingw* | pw32*)
10242 symcode='[ABCDGISTW]'
10244 hpux*) # Its linker distinguishes data from code symbols
10245 if test "$host_cpu" = ia64; then
10246 symcode='[ABCDEGRST]'
10248 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10249 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'"
10252 if test "$host_cpu" = ia64; then
10253 symcode='[ABCDGIRSTW]'
10254 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10255 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'"
10258 irix* | nonstopux*)
10259 symcode='[BCDEGRST]'
10262 symcode='[BCDEGQRST]'
10273 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10281 # Handle CRLF in mingw tool chain
10285 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10289 # If we're using GNU nm, then use its standard symbol codes.
10290 case `$NM -V 2>&1` in
10291 *GNU* | *'with BFD'*)
10292 symcode='[ABCDGIRSTW]' ;;
10295 # Try without a prefix undercore, then with it.
10296 for ac_symprfx in "" "_
"; do
10298 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10299 symxfrm="\\1 $ac_symprfx\\2 \\2"
10301 # Write the raw and C identifiers.
10302 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10304 # Check to see that the pipe works correctly.
10308 cat > conftest.$ac_ext <<EOF
10313 void nm_test_func(){}
10317 int main(){nm_test_var='a';nm_test_func();return(0);}
10320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321 (eval $ac_compile) 2>&5
10323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10324 (exit $ac_status); }; then
10325 # Now try to grab the symbols.
10327 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
10328 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10331 (exit $ac_status); } && test -s "$nlist"; then
10332 # Try sorting and uniquifying the output.
10333 if sort "$nlist" | uniq > "$nlist"T; then
10334 mv -f "$nlist"T "$nlist"
10339 # Make sure that we snagged all the symbols we need.
10340 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10341 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10342 cat <<EOF > conftest.$ac_ext
10348 # Now generate the symbol file.
10349 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10351 cat <<EOF >> conftest.$ac_ext
10352 #if defined (__STDC__) && __STDC__
10353 # define lt_ptr_t void *
10355 # define lt_ptr_t char *
10359 /* The mapping between symbol names and symbols. */
10364 lt_preloaded_symbols[] =
10367 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (lt_ptr_t
) \
&\
2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10368 cat <<\EOF >> conftest.$ac_ext
10376 # Now try linking the two files.
10377 mv conftest.$ac_objext conftstm.$ac_objext
10378 lt_save_LIBS="$LIBS"
10379 lt_save_CFLAGS="$CFLAGS"
10380 LIBS="conftstm.
$ac_objext"
10381 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383 (eval $ac_link) 2>&5
10385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10386 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10389 LIBS="$lt_save_LIBS"
10390 CFLAGS="$lt_save_CFLAGS"
10392 echo "cannot
find nm_test_func
in $nlist" >&5
10395 echo "cannot
find nm_test_var
in $nlist" >&5
10398 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10401 echo "$progname: failed program was
:" >&5
10402 cat conftest.$ac_ext >&5
10404 rm -f conftest* conftst*
10406 # Do not use the global_symbol_pipe unless it works.
10407 if test "$pipe_works" = yes; then
10410 lt_cv_sys_global_symbol_pipe=
10416 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10417 lt_cv_sys_global_symbol_to_cdecl=
10419 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10420 { echo "$as_me:$LINENO: result
: failed
" >&5
10421 echo "${ECHO_T}failed
" >&6; }
10423 { echo "$as_me:$LINENO: result
: ok
" >&5
10424 echo "${ECHO_T}ok
" >&6; }
10428 { echo "$as_me:$LINENO: checking whether libtool supports
-dlopen/-dlpreopen" >&5
10429 echo $ECHO_N "checking whether libtool supports
-dlopen/-dlpreopen...
$ECHO_C" >&6; }
10430 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10431 echo $ECHO_N "(cached
) $ECHO_C" >&6
10433 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10434 libltdl_cv_preloaded_symbols=yes
10436 libltdl_cv_preloaded_symbols=no
10440 { echo "$as_me:$LINENO: result
: $libltdl_cv_preloaded_symbols" >&5
10441 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10442 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10444 cat >>confdefs.h <<\_ACEOF
10445 #define HAVE_PRELOADED_SYMBOLS 1
10453 ac_cpp='$CPP $CPPFLAGS'
10454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10459 { echo "$as_me:$LINENO: checking
for shl_load
" >&5
10460 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6; }
10461 if test "${ac_cv_func_shl_load+set}" = set; then
10462 echo $ECHO_N "(cached
) $ECHO_C" >&6
10464 cat >conftest.$ac_ext <<_ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h. */
10470 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10472 #define shl_load innocuous_shl_load
10474 /* System header to define __stub macros and hopefully few prototypes,
10475 which can conflict with char shl_load (); below.
10476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10477 <limits.h> exists even on freestanding compilers. */
10480 # include <limits.h>
10482 # include <assert.h>
10487 /* Override any GCC internal prototype to avoid an error.
10488 Use char because int might match the return type of a GCC
10489 builtin and then its argument prototype would still apply. */
10494 /* The GNU C library defines this for functions which it implements
10495 to always fail with ENOSYS. Some functions are actually named
10496 something starting with __ and the normal name is an alias. */
10497 #if defined __stub_shl_load || defined __stub___shl_load
10504 return shl_load ();
10509 rm -f conftest.$ac_objext conftest$ac_exeext
10510 if { (ac_try="$ac_link"
10511 case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10515 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_link") 2>conftest.er1
10518 grep -v '^ *+' conftest.er1 >conftest.err
10520 cat conftest.err >&5
10521 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10522 (exit $ac_status); } &&
10523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10524 { (case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10528 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_try") 2>&5
10531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10532 (exit $ac_status); }; } &&
10533 { ac_try='test -s conftest$ac_exeext'
10534 { (case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10538 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_try") 2>&5
10541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10542 (exit $ac_status); }; }; then
10543 ac_cv_func_shl_load=yes
10545 echo "$as_me: failed program was
:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10548 ac_cv_func_shl_load=no
10551 rm -f core conftest.err conftest.$ac_objext \
10552 conftest$ac_exeext conftest.$ac_ext
10554 { echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
10555 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10556 if test $ac_cv_func_shl_load = yes; then
10558 cat >>confdefs.h <<\_ACEOF
10559 #define HAVE_SHL_LOAD 1
10563 { echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
10564 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6; }
10565 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10566 echo $ECHO_N "(cached
) $ECHO_C" >&6
10568 ac_check_lib_save_LIBS=$LIBS
10570 cat >conftest.$ac_ext <<_ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10577 /* Override any GCC internal prototype to avoid an error.
10578 Use char because int might match the return type of a GCC
10579 builtin and then its argument prototype would still apply. */
10587 return shl_load ();
10592 rm -f conftest.$ac_objext conftest$ac_exeext
10593 if { (ac_try="$ac_link"
10594 case "(($ac_try" in
10595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10599 (eval "$ac_link") 2>conftest.er1
10601 grep -v '^ *+' conftest.er1 >conftest.err
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10605 (exit $ac_status); } &&
10606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10607 { (case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10611 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_try") 2>&5
10614 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10615 (exit $ac_status); }; } &&
10616 { ac_try='test -s conftest$ac_exeext'
10617 { (case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10621 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_try") 2>&5
10624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10625 (exit $ac_status); }; }; then
10626 ac_cv_lib_dld_shl_load=yes
10628 echo "$as_me: failed program was
:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10631 ac_cv_lib_dld_shl_load=no
10634 rm -f core conftest.err conftest.$ac_objext \
10635 conftest$ac_exeext conftest.$ac_ext
10636 LIBS=$ac_check_lib_save_LIBS
10638 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
10639 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10640 if test $ac_cv_lib_dld_shl_load = yes; then
10642 cat >>confdefs.h <<\_ACEOF
10643 #define HAVE_SHL_LOAD 1
10646 LIBADD_DL="$LIBADD_DL -ldld"
10648 { echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
10649 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6; }
10650 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10651 echo $ECHO_N "(cached
) $ECHO_C" >&6
10653 ac_check_lib_save_LIBS=$LIBS
10655 cat >conftest.$ac_ext <<_ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10662 /* Override any GCC internal prototype to avoid an error.
10663 Use char because int might match the return type of a GCC
10664 builtin and then its argument prototype would still apply. */
10677 rm -f conftest.$ac_objext conftest$ac_exeext
10678 if { (ac_try="$ac_link"
10679 case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10683 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_link") 2>conftest.er1
10686 grep -v '^ *+' conftest.er1 >conftest.err
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10692 { (case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_try") 2>&5
10699 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10700 (exit $ac_status); }; } &&
10701 { ac_try='test -s conftest$ac_exeext'
10702 { (case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10706 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_try") 2>&5
10709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 ac_cv_lib_dl_dlopen=yes
10713 echo "$as_me: failed program was
:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10716 ac_cv_lib_dl_dlopen=no
10719 rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721 LIBS=$ac_check_lib_save_LIBS
10723 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
10724 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10725 if test $ac_cv_lib_dl_dlopen = yes; then
10727 cat >>confdefs.h <<\_ACEOF
10728 #define HAVE_LIBDL 1
10731 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10733 cat >conftest.$ac_ext <<_ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h. */
10740 # include <dlfcn.h>
10751 rm -f conftest.$ac_objext conftest$ac_exeext
10752 if { (ac_try="$ac_link"
10753 case "(($ac_try" in
10754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10757 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10758 (eval "$ac_link") 2>conftest.er1
10760 grep -v '^ *+' conftest.er1 >conftest.err
10762 cat conftest.err >&5
10763 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10764 (exit $ac_status); } &&
10765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10766 { (case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10770 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_try") 2>&5
10773 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10774 (exit $ac_status); }; } &&
10775 { ac_try='test -s conftest$ac_exeext'
10776 { (case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_try") 2>&5
10783 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10784 (exit $ac_status); }; }; then
10786 cat >>confdefs.h <<\_ACEOF
10787 #define HAVE_LIBDL 1
10789 libltdl_cv_func_dlopen="yes"
10791 echo "$as_me: failed program was
:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10794 { echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
10795 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6; }
10796 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10797 echo $ECHO_N "(cached
) $ECHO_C" >&6
10799 ac_check_lib_save_LIBS=$LIBS
10800 LIBS="-lsvld $LIBS"
10801 cat >conftest.$ac_ext <<_ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h. */
10808 /* Override any GCC internal prototype to avoid an error.
10809 Use char because int might match the return type of a GCC
10810 builtin and then its argument prototype would still apply. */
10823 rm -f conftest.$ac_objext conftest$ac_exeext
10824 if { (ac_try="$ac_link"
10825 case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10829 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_link") 2>conftest.er1
10832 grep -v '^ *+' conftest.er1 >conftest.err
10834 cat conftest.err >&5
10835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10836 (exit $ac_status); } &&
10837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838 { (case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10842 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_try") 2>&5
10845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try='test -s conftest$ac_exeext'
10848 { (case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_try") 2>&5
10855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 ac_cv_lib_svld_dlopen=yes
10859 echo "$as_me: failed program was
:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 ac_cv_lib_svld_dlopen=no
10865 rm -f core conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10867 LIBS=$ac_check_lib_save_LIBS
10869 { echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
10870 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10871 if test $ac_cv_lib_svld_dlopen = yes; then
10873 cat >>confdefs.h <<\_ACEOF
10874 #define HAVE_LIBDL 1
10877 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10879 { echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
10880 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6; }
10881 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10882 echo $ECHO_N "(cached
) $ECHO_C" >&6
10884 ac_check_lib_save_LIBS=$LIBS
10886 cat >conftest.$ac_ext <<_ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10893 /* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10903 return dld_link ();
10908 rm -f conftest.$ac_objext conftest$ac_exeext
10909 if { (ac_try="$ac_link"
10910 case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_link") 2>conftest.er1
10917 grep -v '^ *+' conftest.er1 >conftest.err
10919 cat conftest.err >&5
10920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10921 (exit $ac_status); } &&
10922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10923 { (case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10927 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_try") 2>&5
10930 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10931 (exit $ac_status); }; } &&
10932 { ac_try='test -s conftest$ac_exeext'
10933 { (case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10937 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_try") 2>&5
10940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 ac_cv_lib_dld_dld_link=yes
10944 echo "$as_me: failed program was
:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10947 ac_cv_lib_dld_dld_link=no
10950 rm -f core conftest.err conftest.$ac_objext \
10951 conftest$ac_exeext conftest.$ac_ext
10952 LIBS=$ac_check_lib_save_LIBS
10954 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
10955 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10956 if test $ac_cv_lib_dld_dld_link = yes; then
10958 cat >>confdefs.h <<\_ACEOF
10962 LIBADD_DL="$LIBADD_DL -ldld"
10964 { echo "$as_me:$LINENO: checking
for _dyld_func_lookup
" >&5
10965 echo $ECHO_N "checking
for _dyld_func_lookup...
$ECHO_C" >&6; }
10966 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10967 echo $ECHO_N "(cached
) $ECHO_C" >&6
10969 cat >conftest.$ac_ext <<_ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10975 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10977 #define _dyld_func_lookup innocuous__dyld_func_lookup
10979 /* System header to define __stub macros and hopefully few prototypes,
10980 which can conflict with char _dyld_func_lookup (); below.
10981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10982 <limits.h> exists even on freestanding compilers. */
10985 # include <limits.h>
10987 # include <assert.h>
10990 #undef _dyld_func_lookup
10992 /* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
10998 char _dyld_func_lookup ();
10999 /* The GNU C library defines this for functions which it implements
11000 to always fail with ENOSYS. Some functions are actually named
11001 something starting with __ and the normal name is an alias. */
11002 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11009 return _dyld_func_lookup ();
11014 rm -f conftest.$ac_objext conftest$ac_exeext
11015 if { (ac_try="$ac_link"
11016 case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_link") 2>conftest.er1
11023 grep -v '^ *+' conftest.er1 >conftest.err
11025 cat conftest.err >&5
11026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11027 (exit $ac_status); } &&
11028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11029 { (case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11034 (eval "$ac_try") 2>&5
11036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11037 (exit $ac_status); }; } &&
11038 { ac_try='test -s conftest$ac_exeext'
11039 { (case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_try") 2>&5
11046 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_cv_func__dyld_func_lookup=yes
11050 echo "$as_me: failed program was
:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 ac_cv_func__dyld_func_lookup=no
11056 rm -f core conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11059 { echo "$as_me:$LINENO: result
: $ac_cv_func__dyld_func_lookup" >&5
11060 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11061 if test $ac_cv_func__dyld_func_lookup = yes; then
11063 cat >>confdefs.h <<\_ACEOF
11064 #define HAVE_DYLD 1
11078 rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11090 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11092 lt_save_LIBS="$LIBS"
11093 LIBS="$LIBS $LIBADD_DL"
11095 for ac_func in dlerror
11097 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11098 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11099 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11100 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11101 echo $ECHO_N "(cached
) $ECHO_C" >&6
11103 cat >conftest.$ac_ext <<_ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11111 #define $ac_func innocuous_$ac_func
11113 /* System header to define __stub macros and hopefully few prototypes,
11114 which can conflict with char $ac_func (); below.
11115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11116 <limits.h> exists even on freestanding compilers. */
11119 # include <limits.h>
11121 # include <assert.h>
11126 /* Override any GCC internal prototype to avoid an error.
11127 Use char because int might match the return type of a GCC
11128 builtin and then its argument prototype would still apply. */
11133 /* The GNU C library defines this for functions which it implements
11134 to always fail with ENOSYS. Some functions are actually named
11135 something starting with __ and the normal name is an alias. */
11136 #if defined __stub_$ac_func || defined __stub___$ac_func
11143 return $ac_func ();
11148 rm -f conftest.$ac_objext conftest$ac_exeext
11149 if { (ac_try="$ac_link"
11150 case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11154 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_link") 2>conftest.er1
11157 grep -v '^ *+' conftest.er1 >conftest.err
11159 cat conftest.err >&5
11160 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11161 (exit $ac_status); } &&
11162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11163 { (case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_try") 2>&5
11170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11171 (exit $ac_status); }; } &&
11172 { ac_try='test -s conftest$ac_exeext'
11173 { (case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_try") 2>&5
11180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 eval "$as_ac_var=yes"
11184 echo "$as_me: failed program was
:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 eval "$as_ac_var=no
"
11190 rm -f core conftest.err conftest.$ac_objext \
11191 conftest$ac_exeext conftest.$ac_ext
11193 ac_res=`eval echo '${'$as_ac_var'}'`
11194 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11195 echo "${ECHO_T}$ac_res" >&6; }
11196 if test `eval echo '${'$as_ac_var'}'` = yes; then
11197 cat >>confdefs.h <<_ACEOF
11198 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11204 LIBS="$lt_save_LIBS"
11207 ac_cpp='$CPP $CPPFLAGS'
11208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11214 { echo "$as_me:$LINENO: checking
for _ prefix
in compiled symbols
" >&5
11215 echo $ECHO_N "checking
for _ prefix
in compiled symbols...
$ECHO_C" >&6; }
11216 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11217 echo $ECHO_N "(cached
) $ECHO_C" >&6
11219 ac_cv_sys_symbol_underscore=no
11220 cat > conftest.$ac_ext <<EOF
11221 void nm_test_func(){}
11222 int main(){nm_test_func;return 0;}
11224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11225 (eval $ac_compile) 2>&5
11227 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11228 (exit $ac_status); }; then
11229 # Now try to grab the symbols.
11230 ac_nlist=conftest.nm
11231 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist\"") >&5
11232 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11234 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11235 (exit $ac_status); } && test -s "$ac_nlist"; then
11236 # See whether the symbols have a leading underscore.
11237 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11238 ac_cv_sys_symbol_underscore=yes
11240 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11243 echo "configure
: cannot
find nm_test_func
in $ac_nlist" >&5
11247 echo "configure
: cannot run
$lt_cv_sys_global_symbol_pipe" >&5
11250 echo "configure
: failed program was
:" >&5
11256 { echo "$as_me:$LINENO: result
: $ac_cv_sys_symbol_underscore" >&5
11257 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11260 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11261 if test x"$libltdl_cv_func_dlopen" = xyes ||
11262 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11263 { echo "$as_me:$LINENO: checking whether we have to add an underscore
for dlsym
" >&5
11264 echo $ECHO_N "checking whether we have to add an underscore
for dlsym...
$ECHO_C" >&6; }
11265 if test "${libltdl_cv_need_uscore+set}" = set; then
11266 echo $ECHO_N "(cached
) $ECHO_C" >&6
11268 libltdl_cv_need_uscore=unknown
11270 LIBS="$LIBS $LIBADD_DL"
11271 if test "$cross_compiling" = yes; then :
11272 libltdl_cv_need_uscore=cross
11274 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11275 lt_status=$lt_dlunknown
11276 cat > conftest.$ac_ext <<EOF
11277 #line 11277 "configure
"
11278 #include "confdefs.h
"
11287 # define LT_DLGLOBAL RTLD_GLOBAL
11290 # define LT_DLGLOBAL DL_GLOBAL
11292 # define LT_DLGLOBAL 0
11296 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11297 find out it does not work in some platform. */
11298 #ifndef LT_DLLAZY_OR_NOW
11300 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11303 # define LT_DLLAZY_OR_NOW DL_LAZY
11306 # define LT_DLLAZY_OR_NOW RTLD_NOW
11309 # define LT_DLLAZY_OR_NOW DL_NOW
11311 # define LT_DLLAZY_OR_NOW 0
11319 extern "C
" void exit (int);
11322 void fnord() { int i=42;}
11325 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11326 int status = $lt_dlunknown;
11330 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
11331 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
11332 /* dlclose (self); */
11340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11341 (eval $ac_link) 2>&5
11343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11344 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11345 (./conftest; exit; ) >&5 2>/dev/null
11347 case x$lt_status in
11348 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11349 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11350 x$lt_dlunknown|x*) ;;
11353 # compilation failed
11362 { echo "$as_me:$LINENO: result
: $libltdl_cv_need_uscore" >&5
11363 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11367 if test x"$libltdl_cv_need_uscore" = xyes; then
11369 cat >>confdefs.h <<\_ACEOF
11370 #define NEED_USCORE 1
11376 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen
" >&5
11377 echo $ECHO_N "checking whether deplibs are loaded by dlopen...
$ECHO_C" >&6; }
11378 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11379 echo $ECHO_N "(cached
) $ECHO_C" >&6
11381 # PORTME does your system automatically load deplibs for dlopen?
11382 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11383 # For now, we just catch OSes we know something about -- in the
11384 # future, we'll try test this programmatically.
11385 libltdl_cv_sys_dlopen_deplibs=unknown
11387 aix3*|aix4.1.*|aix4.2.*)
11388 # Unknown whether this is true for these versions of AIX, but
11389 # we want this `case' here to explicitly catch those versions.
11390 libltdl_cv_sys_dlopen_deplibs=unknown
11393 libltdl_cv_sys_dlopen_deplibs=yes
11396 # Assuming the user has installed a libdl from somewhere, this is true
11397 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11398 libltdl_cv_sys_dlopen_deplibs=yes
11400 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11401 # GNU and its variants, using gnu ld.so (Glibc)
11402 libltdl_cv_sys_dlopen_deplibs=yes
11405 libltdl_cv_sys_dlopen_deplibs=yes
11408 libltdl_cv_sys_dlopen_deplibs=yes
11410 irix[12345]*|irix6.[01]*)
11411 # Catch all versions of IRIX before 6.2, and indicate that we don't
11412 # know how it worked for any of those versions.
11413 libltdl_cv_sys_dlopen_deplibs=unknown
11416 # The case above catches anything before 6.2, and it's known that
11417 # at 6.2 and later dlopen does load deplibs.
11418 libltdl_cv_sys_dlopen_deplibs=yes
11421 libltdl_cv_sys_dlopen_deplibs=yes
11424 libltdl_cv_sys_dlopen_deplibs=yes
11427 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11428 # it did *not* use an RPATH in a shared library to find objects the
11429 # library depends on, so we explictly say `no'.
11430 libltdl_cv_sys_dlopen_deplibs=no
11432 osf5.0|osf5.0a|osf5.1)
11433 # dlopen *does* load deplibs and with the right loader patch applied
11434 # it even uses RPATH in a shared library to search for shared objects
11435 # that the library depends on, but there's no easy way to know if that
11436 # patch is installed. Since this is the case, all we can really
11437 # say is unknown -- it depends on the patch being installed. If
11438 # it is, this changes to `yes'. Without it, it would be `no'.
11439 libltdl_cv_sys_dlopen_deplibs=unknown
11442 # the two cases above should catch all versions of osf <= 5.1. Read
11443 # the comments above for what we know about them.
11444 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11445 # is used to find them so we can finally say `yes'.
11446 libltdl_cv_sys_dlopen_deplibs=yes
11449 libltdl_cv_sys_dlopen_deplibs=yes
11451 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11452 libltdl_cv_sys_dlopen_deplibs=yes
11457 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_dlopen_deplibs" >&5
11458 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11459 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11461 cat >>confdefs.h <<\_ACEOF
11462 #define LTDL_DLOPEN_DEPLIBS 1
11468 for ac_header in argz.h
11470 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11471 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11472 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11473 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11474 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11475 echo $ECHO_N "(cached
) $ECHO_C" >&6
11477 ac_res=`eval echo '${'$as_ac_Header'}'`
11478 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11479 echo "${ECHO_T}$ac_res" >&6; }
11481 # Is the header compilable?
11482 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11483 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11484 cat >conftest.$ac_ext <<_ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 $ac_includes_default
11491 #include <$ac_header>
11493 rm -f conftest.$ac_objext
11494 if { (ac_try="$ac_compile"
11495 case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_compile") 2>conftest.er1
11502 grep -v '^ *+' conftest.er1 >conftest.err
11504 cat conftest.err >&5
11505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11506 (exit $ac_status); } &&
11507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11508 { (case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_try") 2>&5
11515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11516 (exit $ac_status); }; } &&
11517 { ac_try='test -s conftest.$ac_objext'
11518 { (case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_try") 2>&5
11525 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11526 (exit $ac_status); }; }; then
11527 ac_header_compiler=yes
11529 echo "$as_me: failed program was
:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11532 ac_header_compiler=no
11535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11537 echo "${ECHO_T}$ac_header_compiler" >&6; }
11539 # Is the header present?
11540 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11541 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11542 cat >conftest.$ac_ext <<_ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11548 #include <$ac_header>
11550 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11562 (exit $ac_status); } >/dev/null; then
11563 if test -s conftest.err; then
11564 ac_cpp_err=$ac_c_preproc_warn_flag
11565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11572 if test -z "$ac_cpp_err"; then
11573 ac_header_preproc=yes
11575 echo "$as_me: failed program was
:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11578 ac_header_preproc=no
11581 rm -f conftest.err conftest.$ac_ext
11582 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11583 echo "${ECHO_T}$ac_header_preproc" >&6; }
11585 # So? What about this header?
11586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11588 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11589 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11590 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11592 ac_header_preproc=yes
11595 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11596 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11597 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11598 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11599 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11600 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11601 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11602 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11603 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11605 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11606 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11608 ## ----------------------------------- ##
11609 ## Report this to llvmbugs@cs.uiuc.edu ##
11610 ## ----------------------------------- ##
11612 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11615 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11616 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11617 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11618 echo $ECHO_N "(cached
) $ECHO_C" >&6
11620 eval "$as_ac_Header=\
$ac_header_preproc"
11622 ac_res=`eval echo '${'$as_ac_Header'}'`
11623 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11624 echo "${ECHO_T}$ac_res" >&6; }
11627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11628 cat >>confdefs.h <<_ACEOF
11629 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11637 { echo "$as_me:$LINENO: checking
for error_t
" >&5
11638 echo $ECHO_N "checking
for error_t...
$ECHO_C" >&6; }
11639 if test "${ac_cv_type_error_t+set}" = set; then
11640 echo $ECHO_N "(cached
) $ECHO_C" >&6
11642 cat >conftest.$ac_ext <<_ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11652 typedef error_t ac__type_new_;
11656 if ((ac__type_new_ *) 0)
11658 if (sizeof (ac__type_new_))
11664 rm -f conftest.$ac_objext
11665 if { (ac_try="$ac_compile"
11666 case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11670 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_compile") 2>conftest.er1
11673 grep -v '^ *+' conftest.er1 >conftest.err
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11677 (exit $ac_status); } &&
11678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11679 { (case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11683 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_try") 2>&5
11686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11687 (exit $ac_status); }; } &&
11688 { ac_try='test -s conftest.$ac_objext'
11689 { (case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11693 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11694 (eval "$ac_try") 2>&5
11696 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11697 (exit $ac_status); }; }; then
11698 ac_cv_type_error_t=yes
11700 echo "$as_me: failed program was
:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11703 ac_cv_type_error_t=no
11706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11708 { echo "$as_me:$LINENO: result
: $ac_cv_type_error_t" >&5
11709 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11710 if test $ac_cv_type_error_t = yes; then
11712 cat >>confdefs.h <<_ACEOF
11713 #define HAVE_ERROR_T 1
11719 cat >>confdefs.h <<\_ACEOF
11720 #define error_t int
11731 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11733 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11734 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11735 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11736 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11737 echo $ECHO_N "(cached
) $ECHO_C" >&6
11739 cat >conftest.$ac_ext <<_ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11747 #define $ac_func innocuous_$ac_func
11749 /* System header to define __stub macros and hopefully few prototypes,
11750 which can conflict with char $ac_func (); below.
11751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11752 <limits.h> exists even on freestanding compilers. */
11755 # include <limits.h>
11757 # include <assert.h>
11762 /* Override any GCC internal prototype to avoid an error.
11763 Use char because int might match the return type of a GCC
11764 builtin and then its argument prototype would still apply. */
11769 /* The GNU C library defines this for functions which it implements
11770 to always fail with ENOSYS. Some functions are actually named
11771 something starting with __ and the normal name is an alias. */
11772 #if defined __stub_$ac_func || defined __stub___$ac_func
11779 return $ac_func ();
11784 rm -f conftest.$ac_objext conftest$ac_exeext
11785 if { (ac_try="$ac_link"
11786 case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11790 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_link") 2>conftest.er1
11793 grep -v '^ *+' conftest.er1 >conftest.err
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11799 { (case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11803 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_try") 2>&5
11806 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11807 (exit $ac_status); }; } &&
11808 { ac_try='test -s conftest$ac_exeext'
11809 { (case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11813 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_try") 2>&5
11816 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 eval "$as_ac_var=yes"
11820 echo "$as_me: failed program was
:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11823 eval "$as_ac_var=no
"
11826 rm -f core conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11829 ac_res=`eval echo '${'$as_ac_var'}'`
11830 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11831 echo "${ECHO_T}$ac_res" >&6; }
11832 if test `eval echo '${'$as_ac_var'}'` = yes; then
11833 cat >>confdefs.h <<_ACEOF
11834 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11867 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11870 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11871 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11872 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11873 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11874 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11875 echo $ECHO_N "(cached
) $ECHO_C" >&6
11877 ac_res=`eval echo '${'$as_ac_Header'}'`
11878 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11879 echo "${ECHO_T}$ac_res" >&6; }
11881 # Is the header compilable?
11882 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11883 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11884 cat >conftest.$ac_ext <<_ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11890 $ac_includes_default
11891 #include <$ac_header>
11893 rm -f conftest.$ac_objext
11894 if { (ac_try="$ac_compile"
11895 case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11900 (eval "$ac_compile") 2>conftest.er1
11902 grep -v '^ *+' conftest.er1 >conftest.err
11904 cat conftest.err >&5
11905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11906 (exit $ac_status); } &&
11907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11908 { (case "(($ac_try" in
11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11912 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11913 (eval "$ac_try") 2>&5
11915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11916 (exit $ac_status); }; } &&
11917 { ac_try='test -s conftest.$ac_objext'
11918 { (case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_try") 2>&5
11925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11926 (exit $ac_status); }; }; then
11927 ac_header_compiler=yes
11929 echo "$as_me: failed program was
:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 ac_header_compiler=no
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11937 echo "${ECHO_T}$ac_header_compiler" >&6; }
11939 # Is the header present?
11940 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11941 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11942 cat >conftest.$ac_ext <<_ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 #include <$ac_header>
11950 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11951 case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11955 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11958 grep -v '^ *+' conftest.er1 >conftest.err
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11962 (exit $ac_status); } >/dev/null; then
11963 if test -s conftest.err; then
11964 ac_cpp_err=$ac_c_preproc_warn_flag
11965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11972 if test -z "$ac_cpp_err"; then
11973 ac_header_preproc=yes
11975 echo "$as_me: failed program was
:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11978 ac_header_preproc=no
11981 rm -f conftest.err conftest.$ac_ext
11982 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11983 echo "${ECHO_T}$ac_header_preproc" >&6; }
11985 # So? What about this header?
11986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11988 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11989 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11990 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11992 ac_header_preproc=yes
11995 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11996 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11997 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11998 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11999 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12000 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12001 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12002 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12003 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12005 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12006 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12008 ## ----------------------------------- ##
12009 ## Report this to llvmbugs@cs.uiuc.edu ##
12010 ## ----------------------------------- ##
12012 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12015 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12016 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12017 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12018 echo $ECHO_N "(cached
) $ECHO_C" >&6
12020 eval "$as_ac_Header=\
$ac_header_preproc"
12022 ac_res=`eval echo '${'$as_ac_Header'}'`
12023 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12024 echo "${ECHO_T}$ac_res" >&6; }
12027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12028 cat >>confdefs.h <<_ACEOF
12029 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12040 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12042 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12043 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12044 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12045 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12046 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12047 echo $ECHO_N "(cached
) $ECHO_C" >&6
12049 ac_res=`eval echo '${'$as_ac_Header'}'`
12050 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12051 echo "${ECHO_T}$ac_res" >&6; }
12053 # Is the header compilable?
12054 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12055 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12056 cat >conftest.$ac_ext <<_ACEOF
12059 cat confdefs.h >>conftest.$ac_ext
12060 cat >>conftest.$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12062 $ac_includes_default
12063 #include <$ac_header>
12065 rm -f conftest.$ac_objext
12066 if { (ac_try="$ac_compile"
12067 case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_compile") 2>conftest.er1
12074 grep -v '^ *+' conftest.er1 >conftest.err
12076 cat conftest.err >&5
12077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12078 (exit $ac_status); } &&
12079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12080 { (case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12084 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_try") 2>&5
12087 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest.$ac_objext'
12090 { (case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12094 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_try") 2>&5
12097 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12098 (exit $ac_status); }; }; then
12099 ac_header_compiler=yes
12101 echo "$as_me: failed program was
:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 ac_header_compiler=no
12107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12109 echo "${ECHO_T}$ac_header_compiler" >&6; }
12111 # Is the header present?
12112 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12113 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12114 cat >conftest.$ac_ext <<_ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12120 #include <$ac_header>
12122 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12123 case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12130 grep -v '^ *+' conftest.er1 >conftest.err
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12134 (exit $ac_status); } >/dev/null; then
12135 if test -s conftest.err; then
12136 ac_cpp_err=$ac_c_preproc_warn_flag
12137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12144 if test -z "$ac_cpp_err"; then
12145 ac_header_preproc=yes
12147 echo "$as_me: failed program was
:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12150 ac_header_preproc=no
12153 rm -f conftest.err conftest.$ac_ext
12154 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12155 echo "${ECHO_T}$ac_header_preproc" >&6; }
12157 # So? What about this header?
12158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12160 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12161 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12162 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12163 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12164 ac_header_preproc=yes
12167 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12168 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12169 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12170 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12171 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12172 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12173 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12174 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12175 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12177 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12178 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12180 ## ----------------------------------- ##
12181 ## Report this to llvmbugs@cs.uiuc.edu ##
12182 ## ----------------------------------- ##
12184 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12187 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12188 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12189 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12190 echo $ECHO_N "(cached
) $ECHO_C" >&6
12192 eval "$as_ac_Header=\
$ac_header_preproc"
12194 ac_res=`eval echo '${'$as_ac_Header'}'`
12195 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12196 echo "${ECHO_T}$ac_res" >&6; }
12199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12200 cat >>confdefs.h <<_ACEOF
12201 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12210 for ac_header in string.h strings.h
12212 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12213 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12214 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12215 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12216 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12217 echo $ECHO_N "(cached
) $ECHO_C" >&6
12219 ac_res=`eval echo '${'$as_ac_Header'}'`
12220 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12221 echo "${ECHO_T}$ac_res" >&6; }
12223 # Is the header compilable?
12224 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12225 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12226 cat >conftest.$ac_ext <<_ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232 $ac_includes_default
12233 #include <$ac_header>
12235 rm -f conftest.$ac_objext
12236 if { (ac_try="$ac_compile"
12237 case "(($ac_try" in
12238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239 *) ac_try_echo=$ac_try;;
12241 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12242 (eval "$ac_compile") 2>conftest.er1
12244 grep -v '^ *+' conftest.er1 >conftest.err
12246 cat conftest.err >&5
12247 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12248 (exit $ac_status); } &&
12249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12250 { (case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_try") 2>&5
12257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12258 (exit $ac_status); }; } &&
12259 { ac_try='test -s conftest.$ac_objext'
12260 { (case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_try") 2>&5
12267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 ac_header_compiler=yes
12271 echo "$as_me: failed program was
:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12274 ac_header_compiler=no
12277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12278 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12279 echo "${ECHO_T}$ac_header_compiler" >&6; }
12281 # Is the header present?
12282 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12283 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12284 cat >conftest.$ac_ext <<_ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 #include <$ac_header>
12292 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12293 case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12300 grep -v '^ *+' conftest.er1 >conftest.err
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12304 (exit $ac_status); } >/dev/null; then
12305 if test -s conftest.err; then
12306 ac_cpp_err=$ac_c_preproc_warn_flag
12307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12314 if test -z "$ac_cpp_err"; then
12315 ac_header_preproc=yes
12317 echo "$as_me: failed program was
:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12320 ac_header_preproc=no
12323 rm -f conftest.err conftest.$ac_ext
12324 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12325 echo "${ECHO_T}$ac_header_preproc" >&6; }
12327 # So? What about this header?
12328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12330 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12331 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12332 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12334 ac_header_preproc=yes
12337 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12338 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12339 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12340 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12341 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12342 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12343 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12344 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12345 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12347 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12348 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12350 ## ----------------------------------- ##
12351 ## Report this to llvmbugs@cs.uiuc.edu ##
12352 ## ----------------------------------- ##
12354 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12357 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12358 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12359 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12360 echo $ECHO_N "(cached
) $ECHO_C" >&6
12362 eval "$as_ac_Header=\
$ac_header_preproc"
12364 ac_res=`eval echo '${'$as_ac_Header'}'`
12365 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12366 echo "${ECHO_T}$ac_res" >&6; }
12369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12370 cat >>confdefs.h <<_ACEOF
12371 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12381 for ac_func in strchr index
12383 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12384 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12385 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12386 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12387 echo $ECHO_N "(cached
) $ECHO_C" >&6
12389 cat >conftest.$ac_ext <<_ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12397 #define $ac_func innocuous_$ac_func
12399 /* System header to define __stub macros and hopefully few prototypes,
12400 which can conflict with char $ac_func (); below.
12401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12402 <limits.h> exists even on freestanding compilers. */
12405 # include <limits.h>
12407 # include <assert.h>
12412 /* Override any GCC internal prototype to avoid an error.
12413 Use char because int might match the return type of a GCC
12414 builtin and then its argument prototype would still apply. */
12419 /* The GNU C library defines this for functions which it implements
12420 to always fail with ENOSYS. Some functions are actually named
12421 something starting with __ and the normal name is an alias. */
12422 #if defined __stub_$ac_func || defined __stub___$ac_func
12429 return $ac_func ();
12434 rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (ac_try="$ac_link"
12436 case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12440 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_link") 2>conftest.er1
12443 grep -v '^ *+' conftest.er1 >conftest.err
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449 { (case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_try") 2>&5
12456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest$ac_exeext'
12459 { (case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_try") 2>&5
12466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 eval "$as_ac_var=yes"
12470 echo "$as_me: failed program was
:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 eval "$as_ac_var=no
"
12476 rm -f core conftest.err conftest.$ac_objext \
12477 conftest$ac_exeext conftest.$ac_ext
12479 ac_res=`eval echo '${'$as_ac_var'}'`
12480 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12481 echo "${ECHO_T}$ac_res" >&6; }
12482 if test `eval echo '${'$as_ac_var'}'` = yes; then
12483 cat >>confdefs.h <<_ACEOF
12484 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12492 for ac_func in strrchr rindex
12494 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12495 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12496 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12497 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12498 echo $ECHO_N "(cached
) $ECHO_C" >&6
12500 cat >conftest.$ac_ext <<_ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12508 #define $ac_func innocuous_$ac_func
12510 /* System header to define __stub macros and hopefully few prototypes,
12511 which can conflict with char $ac_func (); below.
12512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12513 <limits.h> exists even on freestanding compilers. */
12516 # include <limits.h>
12518 # include <assert.h>
12523 /* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12530 /* The GNU C library defines this for functions which it implements
12531 to always fail with ENOSYS. Some functions are actually named
12532 something starting with __ and the normal name is an alias. */
12533 #if defined __stub_$ac_func || defined __stub___$ac_func
12540 return $ac_func ();
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (ac_try="$ac_link"
12547 case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12551 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_link") 2>conftest.er1
12554 grep -v '^ *+' conftest.er1 >conftest.err
12556 cat conftest.err >&5
12557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12558 (exit $ac_status); } &&
12559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12560 { (case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12564 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_try") 2>&5
12567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12568 (exit $ac_status); }; } &&
12569 { ac_try='test -s conftest$ac_exeext'
12570 { (case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_try") 2>&5
12577 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12578 (exit $ac_status); }; }; then
12579 eval "$as_ac_var=yes"
12581 echo "$as_me: failed program was
:" >&5
12582 sed 's/^/| /' conftest.$ac_ext >&5
12584 eval "$as_ac_var=no
"
12587 rm -f core conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12590 ac_res=`eval echo '${'$as_ac_var'}'`
12591 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12592 echo "${ECHO_T}$ac_res" >&6; }
12593 if test `eval echo '${'$as_ac_var'}'` = yes; then
12594 cat >>confdefs.h <<_ACEOF
12595 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12603 for ac_func in memcpy bcopy
12605 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12606 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12607 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12608 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12609 echo $ECHO_N "(cached
) $ECHO_C" >&6
12611 cat >conftest.$ac_ext <<_ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12619 #define $ac_func innocuous_$ac_func
12621 /* System header to define __stub macros and hopefully few prototypes,
12622 which can conflict with char $ac_func (); below.
12623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12624 <limits.h> exists even on freestanding compilers. */
12627 # include <limits.h>
12629 # include <assert.h>
12634 /* Override any GCC internal prototype to avoid an error.
12635 Use char because int might match the return type of a GCC
12636 builtin and then its argument prototype would still apply. */
12641 /* The GNU C library defines this for functions which it implements
12642 to always fail with ENOSYS. Some functions are actually named
12643 something starting with __ and the normal name is an alias. */
12644 #if defined __stub_$ac_func || defined __stub___$ac_func
12651 return $ac_func ();
12656 rm -f conftest.$ac_objext conftest$ac_exeext
12657 if { (ac_try="$ac_link"
12658 case "(($ac_try" in
12659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12663 (eval "$ac_link") 2>conftest.er1
12665 grep -v '^ *+' conftest.er1 >conftest.err
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12671 { (case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12675 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_try") 2>&5
12678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12679 (exit $ac_status); }; } &&
12680 { ac_try='test -s conftest$ac_exeext'
12681 { (case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_try") 2>&5
12688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 eval "$as_ac_var=yes"
12692 echo "$as_me: failed program was
:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12695 eval "$as_ac_var=no
"
12698 rm -f core conftest.err conftest.$ac_objext \
12699 conftest$ac_exeext conftest.$ac_ext
12701 ac_res=`eval echo '${'$as_ac_var'}'`
12702 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12703 echo "${ECHO_T}$ac_res" >&6; }
12704 if test `eval echo '${'$as_ac_var'}'` = yes; then
12705 cat >>confdefs.h <<_ACEOF
12706 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12714 for ac_func in memmove strcmp
12716 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12717 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12718 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12719 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12720 echo $ECHO_N "(cached
) $ECHO_C" >&6
12722 cat >conftest.$ac_ext <<_ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h. */
12728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12730 #define $ac_func innocuous_$ac_func
12732 /* System header to define __stub macros and hopefully few prototypes,
12733 which can conflict with char $ac_func (); below.
12734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12735 <limits.h> exists even on freestanding compilers. */
12738 # include <limits.h>
12740 # include <assert.h>
12745 /* Override any GCC internal prototype to avoid an error.
12746 Use char because int might match the return type of a GCC
12747 builtin and then its argument prototype would still apply. */
12752 /* The GNU C library defines this for functions which it implements
12753 to always fail with ENOSYS. Some functions are actually named
12754 something starting with __ and the normal name is an alias. */
12755 #if defined __stub_$ac_func || defined __stub___$ac_func
12762 return $ac_func ();
12767 rm -f conftest.$ac_objext conftest$ac_exeext
12768 if { (ac_try="$ac_link"
12769 case "(($ac_try" in
12770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771 *) ac_try_echo=$ac_try;;
12773 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12774 (eval "$ac_link") 2>conftest.er1
12776 grep -v '^ *+' conftest.er1 >conftest.err
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12780 (exit $ac_status); } &&
12781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12782 { (case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12786 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_try") 2>&5
12789 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12790 (exit $ac_status); }; } &&
12791 { ac_try='test -s conftest$ac_exeext'
12792 { (case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12796 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12797 (eval "$ac_try") 2>&5
12799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 eval "$as_ac_var=yes"
12803 echo "$as_me: failed program was
:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12806 eval "$as_ac_var=no
"
12809 rm -f core conftest.err conftest.$ac_objext \
12810 conftest$ac_exeext conftest.$ac_ext
12812 ac_res=`eval echo '${'$as_ac_var'}'`
12813 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12814 echo "${ECHO_T}$ac_res" >&6; }
12815 if test `eval echo '${'$as_ac_var'}'` = yes; then
12816 cat >>confdefs.h <<_ACEOF
12817 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12826 for ac_func in closedir opendir readdir
12828 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12829 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12830 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12831 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12832 echo $ECHO_N "(cached
) $ECHO_C" >&6
12834 cat >conftest.$ac_ext <<_ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12842 #define $ac_func innocuous_$ac_func
12844 /* System header to define __stub macros and hopefully few prototypes,
12845 which can conflict with char $ac_func (); below.
12846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12847 <limits.h> exists even on freestanding compilers. */
12850 # include <limits.h>
12852 # include <assert.h>
12857 /* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12864 /* The GNU C library defines this for functions which it implements
12865 to always fail with ENOSYS. Some functions are actually named
12866 something starting with __ and the normal name is an alias. */
12867 #if defined __stub_$ac_func || defined __stub___$ac_func
12874 return $ac_func ();
12879 rm -f conftest.$ac_objext conftest$ac_exeext
12880 if { (ac_try="$ac_link"
12881 case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_link") 2>conftest.er1
12888 grep -v '^ *+' conftest.er1 >conftest.err
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12892 (exit $ac_status); } &&
12893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12894 { (case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_try") 2>&5
12901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12902 (exit $ac_status); }; } &&
12903 { ac_try='test -s conftest$ac_exeext'
12904 { (case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_try") 2>&5
12911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12912 (exit $ac_status); }; }; then
12913 eval "$as_ac_var=yes"
12915 echo "$as_me: failed program was
:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12918 eval "$as_ac_var=no
"
12921 rm -f core conftest.err conftest.$ac_objext \
12922 conftest$ac_exeext conftest.$ac_ext
12924 ac_res=`eval echo '${'$as_ac_var'}'`
12925 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12926 echo "${ECHO_T}$ac_res" >&6; }
12927 if test `eval echo '${'$as_ac_var'}'` = yes; then
12928 cat >>confdefs.h <<_ACEOF
12929 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12937 if test "$WITH_LLVMGCCDIR" = "default
" ; then
12938 LLVMGCC="llvm-gcc
${EXEEXT}"
12939 LLVMGXX="llvm-g
++${EXEEXT}"
12940 LLVMGCCCOMMAND="$LLVMGCC"
12941 LLVMGXXCOMMAND="$LLVMGXX"
12942 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12944 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12946 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12947 set dummy $LLVMGCC; ac_word=$2
12948 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
12949 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
12950 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12951 echo $ECHO_N "(cached
) $ECHO_C" >&6
12955 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12959 for as_dir in $PATH
12962 test -z "$as_dir" && as_dir=.
12963 for ac_exec_ext in '' $ac_executable_extensions; do
12964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12965 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12966 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12976 LLVMGCC=$ac_cv_path_LLVMGCC
12977 if test -n "$LLVMGCC"; then
12978 { echo "$as_me:$LINENO: result
: $LLVMGCC" >&5
12979 echo "${ECHO_T}$LLVMGCC" >&6; }
12981 { echo "$as_me:$LINENO: result
: no
" >&5
12982 echo "${ECHO_T}no
" >&6; }
12986 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12987 set dummy $LLVMGXX; ac_word=$2
12988 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
12989 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
12990 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12991 echo $ECHO_N "(cached
) $ECHO_C" >&6
12995 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12999 for as_dir in $PATH
13002 test -z "$as_dir" && as_dir=.
13003 for ac_exec_ext in '' $ac_executable_extensions; do
13004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13005 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13006 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13016 LLVMGXX=$ac_cv_path_LLVMGXX
13017 if test -n "$LLVMGXX"; then
13018 { echo "$as_me:$LINENO: result
: $LLVMGXX" >&5
13019 echo "${ECHO_T}$LLVMGXX" >&6; }
13021 { echo "$as_me:$LINENO: result
: no
" >&5
13022 echo "${ECHO_T}no
" >&6; }
13027 if test -z "$LLVMGCC"; then
13028 LLVMGCC="$WITH_LLVMGCCDIR/bin
/llvm-gcc
${EXEEXT}"
13029 LLVMGCCCOMMAND="$LLVMGCC"
13031 if test -z "$LLVMGXX"; then
13032 LLVMGXX="$WITH_LLVMGCCDIR/bin
/llvm-g
++${EXEEXT}"
13033 LLVMGXXCOMMAND="$LLVMGXX"
13040 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13042 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13047 # Check whether --with-llvmcc was given.
13048 if test "${with_llvmcc+set}" = set; then
13049 withval=$with_llvmcc;
13054 { echo "$as_me:$LINENO: checking LLVM capable compiler
" >&5
13055 echo $ECHO_N "checking LLVM capable compiler...
$ECHO_C" >&6; }
13056 if test "$with_llvmcc" != "check
"; then
13057 if (test "$with_llvmcc" != "llvm-gcc
" &&
13058 test "$with_llvmcc" != "clang
" &&
13059 test "$with_llvmcc" != "none
"); then
13060 { { echo "$as_me:$LINENO: error
: invalid value
for --with-llvmcc, expected
'llvm-gcc', 'clang', or
'none'.
" >&5
13061 echo "$as_me: error
: invalid value
for --with-llvmcc, expected
'llvm-gcc', 'clang', or
'none'.
" >&2;}
13062 { (exit 1); exit 1; }; }
13064 WITH_LLVMCC="$with_llvmcc"
13065 elif test -n "$LLVMGCC"; then
13066 WITH_LLVMCC=llvm-gcc
13067 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13072 { echo "$as_me:$LINENO: result
: $WITH_LLVMCC" >&5
13073 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13074 LLVMCC_OPTION=$WITH_LLVMCC
13077 { echo "$as_me:$LINENO: checking tool compatibility
" >&5
13078 echo $ECHO_N "checking tool compatibility...
$ECHO_C" >&6; }
13091 if test "$GCC" != "yes" && test "$ICC" != "yes"
13093 { { echo "$as_me:$LINENO: error
: gcc|icc required but not found
" >&5
13094 echo "$as_me: error
: gcc|icc required but not found
" >&2;}
13095 { (exit 1); exit 1; }; }
13098 if test "$GXX" != "yes" && test "$IXX" != "yes"
13100 { { echo "$as_me:$LINENO: error
: g
++|icc required but not found
" >&5
13101 echo "$as_me: error
: g
++|icc required but not found
" >&2;}
13102 { (exit 1); exit 1; }; }
13105 if test "$GCC" = "yes"
13107 cat >conftest.$ac_ext <<_ACEOF
13108 #if !defined(__GNUC__) || __GNUC__ < 3
13109 #error Unsupported GCC version
13113 rm -f conftest.$ac_objext
13114 if { (ac_try="$ac_compile"
13115 case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13120 (eval "$ac_compile") 2>conftest.er1
13122 grep -v '^ *+' conftest.er1 >conftest.err
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13126 (exit $ac_status); } &&
13127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13128 { (case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_try") 2>&5
13135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13136 (exit $ac_status); }; } &&
13137 { ac_try='test -s conftest.$ac_objext'
13138 { (case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_try") 2>&5
13145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13146 (exit $ac_status); }; }; then
13149 echo "$as_me: failed program was
:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 { { echo "$as_me:$LINENO: error
: gcc
3.x required
, but you have a lower version
" >&5
13153 echo "$as_me: error
: gcc
3.x required
, but you have a lower version
" >&2;}
13154 { (exit 1); exit 1; }; }
13157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13160 if test -z "$llvm_cv_gnu_make_command"
13162 { { echo "$as_me:$LINENO: error
: GNU Make required but not found
" >&5
13163 echo "$as_me: error
: GNU Make required but not found
" >&2;}
13164 { (exit 1); exit 1; }; }
13167 { echo "$as_me:$LINENO: result
: ok
" >&5
13168 echo "${ECHO_T}ok
" >&6; }
13170 { echo "$as_me:$LINENO: checking optional compiler flags
" >&5
13171 echo $ECHO_N "checking optional compiler flags...
$ECHO_C" >&6; }
13172 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13174 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13176 { echo "$as_me:$LINENO: result
: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13177 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13181 { echo "$as_me:$LINENO: checking
for sin
in -lm" >&5
13182 echo $ECHO_N "checking
for sin
in -lm...
$ECHO_C" >&6; }
13183 if test "${ac_cv_lib_m_sin+set}" = set; then
13184 echo $ECHO_N "(cached
) $ECHO_C" >&6
13186 ac_check_lib_save_LIBS=$LIBS
13188 cat >conftest.$ac_ext <<_ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13195 /* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
13210 rm -f conftest.$ac_objext conftest$ac_exeext
13211 if { (ac_try="$ac_link"
13212 case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13216 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_link") 2>conftest.er1
13219 grep -v '^ *+' conftest.er1 >conftest.err
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13225 { (case "(($ac_try" in
13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_try") 2>&5
13232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13233 (exit $ac_status); }; } &&
13234 { ac_try='test -s conftest$ac_exeext'
13235 { (case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_try") 2>&5
13242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13243 (exit $ac_status); }; }; then
13244 ac_cv_lib_m_sin=yes
13246 echo "$as_me: failed program was
:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13252 rm -f core conftest.err conftest.$ac_objext \
13253 conftest$ac_exeext conftest.$ac_ext
13254 LIBS=$ac_check_lib_save_LIBS
13256 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sin" >&5
13257 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13258 if test $ac_cv_lib_m_sin = yes; then
13259 cat >>confdefs.h <<_ACEOF
13260 #define HAVE_LIBM 1
13267 if test "$llvm_cv_os_type" = "MingW
" ; then
13269 { echo "$as_me:$LINENO: checking
for main
in -limagehlp" >&5
13270 echo $ECHO_N "checking
for main
in -limagehlp...
$ECHO_C" >&6; }
13271 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13272 echo $ECHO_N "(cached
) $ECHO_C" >&6
13274 ac_check_lib_save_LIBS=$LIBS
13275 LIBS="-limagehlp $LIBS"
13276 cat >conftest.$ac_ext <<_ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13292 rm -f conftest.$ac_objext conftest$ac_exeext
13293 if { (ac_try="$ac_link"
13294 case "(($ac_try" in
13295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296 *) ac_try_echo=$ac_try;;
13298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_link") 2>conftest.er1
13301 grep -v '^ *+' conftest.er1 >conftest.err
13303 cat conftest.err >&5
13304 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13305 (exit $ac_status); } &&
13306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13307 { (case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13312 (eval "$ac_try") 2>&5
13314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13315 (exit $ac_status); }; } &&
13316 { ac_try='test -s conftest$ac_exeext'
13317 { (case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13322 (eval "$ac_try") 2>&5
13324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326 ac_cv_lib_imagehlp_main=yes
13328 echo "$as_me: failed program was
:" >&5
13329 sed 's/^/| /' conftest.$ac_ext >&5
13331 ac_cv_lib_imagehlp_main=no
13334 rm -f core conftest.err conftest.$ac_objext \
13335 conftest$ac_exeext conftest.$ac_ext
13336 LIBS=$ac_check_lib_save_LIBS
13338 { echo "$as_me:$LINENO: result
: $ac_cv_lib_imagehlp_main" >&5
13339 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13340 if test $ac_cv_lib_imagehlp_main = yes; then
13341 cat >>confdefs.h <<_ACEOF
13342 #define HAVE_LIBIMAGEHLP 1
13345 LIBS="-limagehlp $LIBS"
13350 { echo "$as_me:$LINENO: checking
for main
in -lpsapi" >&5
13351 echo $ECHO_N "checking
for main
in -lpsapi...
$ECHO_C" >&6; }
13352 if test "${ac_cv_lib_psapi_main+set}" = set; then
13353 echo $ECHO_N "(cached
) $ECHO_C" >&6
13355 ac_check_lib_save_LIBS=$LIBS
13356 LIBS="-lpsapi $LIBS"
13357 cat >conftest.$ac_ext <<_ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13373 rm -f conftest.$ac_objext conftest$ac_exeext
13374 if { (ac_try="$ac_link"
13375 case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_link") 2>conftest.er1
13382 grep -v '^ *+' conftest.er1 >conftest.err
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13386 (exit $ac_status); } &&
13387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
13395 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest$ac_exeext'
13398 { (case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_try") 2>&5
13405 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_lib_psapi_main=yes
13409 echo "$as_me: failed program was
:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13412 ac_cv_lib_psapi_main=no
13415 rm -f core conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13417 LIBS=$ac_check_lib_save_LIBS
13419 { echo "$as_me:$LINENO: result
: $ac_cv_lib_psapi_main" >&5
13420 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13421 if test $ac_cv_lib_psapi_main = yes; then
13422 cat >>confdefs.h <<_ACEOF
13423 #define HAVE_LIBPSAPI 1
13426 LIBS="-lpsapi $LIBS"
13432 { echo "$as_me:$LINENO: checking
for library containing dlopen
" >&5
13433 echo $ECHO_N "checking
for library containing dlopen...
$ECHO_C" >&6; }
13434 if test "${ac_cv_search_dlopen+set}" = set; then
13435 echo $ECHO_N "(cached
) $ECHO_C" >&6
13437 ac_func_search_save_LIBS=$LIBS
13438 cat >conftest.$ac_ext <<_ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h. */
13445 /* Override any GCC internal prototype to avoid an error.
13446 Use char because int might match the return type of a GCC
13447 builtin and then its argument prototype would still apply. */
13460 for ac_lib in '' dl; do
13461 if test -z "$ac_lib"; then
13462 ac_res="none required
"
13465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13467 rm -f conftest.$ac_objext conftest$ac_exeext
13468 if { (ac_try="$ac_link"
13469 case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13473 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13474 (eval "$ac_link") 2>conftest.er1
13476 grep -v '^ *+' conftest.er1 >conftest.err
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13480 (exit $ac_status); } &&
13481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13486 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13489 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13490 (exit $ac_status); }; } &&
13491 { ac_try='test -s conftest$ac_exeext'
13492 { (case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13496 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_try") 2>&5
13499 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13500 (exit $ac_status); }; }; then
13501 ac_cv_search_dlopen=$ac_res
13503 echo "$as_me: failed program was
:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13509 rm -f core conftest.err conftest.$ac_objext \
13511 if test "${ac_cv_search_dlopen+set}" = set; then
13515 if test "${ac_cv_search_dlopen+set}" = set; then
13518 ac_cv_search_dlopen=no
13520 rm conftest.$ac_ext
13521 LIBS=$ac_func_search_save_LIBS
13523 { echo "$as_me:$LINENO: result
: $ac_cv_search_dlopen" >&5
13524 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13525 ac_res=$ac_cv_search_dlopen
13526 if test "$ac_res" != no; then
13527 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
13529 cat >>confdefs.h <<\_ACEOF
13530 #define HAVE_DLOPEN 1
13534 { echo "$as_me:$LINENO: WARNING
: dlopen
() not found
- disabling plugin support
" >&5
13535 echo "$as_me: WARNING
: dlopen
() not found
- disabling plugin support
" >&2;}
13539 if test "$llvm_cv_enable_libffi" = "yes" ; then
13540 { echo "$as_me:$LINENO: checking
for library containing ffi_call
" >&5
13541 echo $ECHO_N "checking
for library containing ffi_call...
$ECHO_C" >&6; }
13542 if test "${ac_cv_search_ffi_call+set}" = set; then
13543 echo $ECHO_N "(cached
) $ECHO_C" >&6
13545 ac_func_search_save_LIBS=$LIBS
13546 cat >conftest.$ac_ext <<_ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13553 /* Override any GCC internal prototype to avoid an error.
13554 Use char because int might match the return type of a GCC
13555 builtin and then its argument prototype would still apply. */
13563 return ffi_call ();
13568 for ac_lib in '' ffi; do
13569 if test -z "$ac_lib"; then
13570 ac_res="none required
"
13573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13575 rm -f conftest.$ac_objext conftest$ac_exeext
13576 if { (ac_try="$ac_link"
13577 case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13581 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13582 (eval "$ac_link") 2>conftest.er1
13584 grep -v '^ *+' conftest.er1 >conftest.err
13586 cat conftest.err >&5
13587 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13588 (exit $ac_status); } &&
13589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13590 { (case "(($ac_try" in
13591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13592 *) ac_try_echo=$ac_try;;
13594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13595 (eval "$ac_try") 2>&5
13597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13598 (exit $ac_status); }; } &&
13599 { ac_try='test -s conftest$ac_exeext'
13600 { (case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_try") 2>&5
13607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13608 (exit $ac_status); }; }; then
13609 ac_cv_search_ffi_call=$ac_res
13611 echo "$as_me: failed program was
:" >&5
13612 sed 's/^/| /' conftest.$ac_ext >&5
13617 rm -f core conftest.err conftest.$ac_objext \
13619 if test "${ac_cv_search_ffi_call+set}" = set; then
13623 if test "${ac_cv_search_ffi_call+set}" = set; then
13626 ac_cv_search_ffi_call=no
13628 rm conftest.$ac_ext
13629 LIBS=$ac_func_search_save_LIBS
13631 { echo "$as_me:$LINENO: result
: $ac_cv_search_ffi_call" >&5
13632 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13633 ac_res=$ac_cv_search_ffi_call
13634 if test "$ac_res" != no; then
13635 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
13637 cat >>confdefs.h <<\_ACEOF
13638 #define HAVE_FFI_CALL 1
13642 { { echo "$as_me:$LINENO: error
: libffi not found
- configure without
--enable-libffi to compile without it
" >&5
13643 echo "$as_me: error
: libffi not found
- configure without
--enable-libffi to compile without it
" >&2;}
13644 { (exit 1); exit 1; }; }
13649 { echo "$as_me:$LINENO: checking
for library containing mallinfo
" >&5
13650 echo $ECHO_N "checking
for library containing mallinfo...
$ECHO_C" >&6; }
13651 if test "${ac_cv_search_mallinfo+set}" = set; then
13652 echo $ECHO_N "(cached
) $ECHO_C" >&6
13654 ac_func_search_save_LIBS=$LIBS
13655 cat >conftest.$ac_ext <<_ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h. */
13662 /* Override any GCC internal prototype to avoid an error.
13663 Use char because int might match the return type of a GCC
13664 builtin and then its argument prototype would still apply. */
13672 return mallinfo ();
13677 for ac_lib in '' malloc; do
13678 if test -z "$ac_lib"; then
13679 ac_res="none required
"
13682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13684 rm -f conftest.$ac_objext conftest$ac_exeext
13685 if { (ac_try="$ac_link"
13686 case "(($ac_try" in
13687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688 *) ac_try_echo=$ac_try;;
13690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13691 (eval "$ac_link") 2>conftest.er1
13693 grep -v '^ *+' conftest.er1 >conftest.err
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13697 (exit $ac_status); } &&
13698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13699 { (case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_try") 2>&5
13706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13707 (exit $ac_status); }; } &&
13708 { ac_try='test -s conftest$ac_exeext'
13709 { (case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13713 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_try") 2>&5
13716 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13717 (exit $ac_status); }; }; then
13718 ac_cv_search_mallinfo=$ac_res
13720 echo "$as_me: failed program was
:" >&5
13721 sed 's/^/| /' conftest.$ac_ext >&5
13726 rm -f core conftest.err conftest.$ac_objext \
13728 if test "${ac_cv_search_mallinfo+set}" = set; then
13732 if test "${ac_cv_search_mallinfo+set}" = set; then
13735 ac_cv_search_mallinfo=no
13737 rm conftest.$ac_ext
13738 LIBS=$ac_func_search_save_LIBS
13740 { echo "$as_me:$LINENO: result
: $ac_cv_search_mallinfo" >&5
13741 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13742 ac_res=$ac_cv_search_mallinfo
13743 if test "$ac_res" != no; then
13744 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
13746 cat >>confdefs.h <<\_ACEOF
13747 #define HAVE_MALLINFO 1
13753 if test "$ENABLE_THREADS" -eq 1 ; then
13755 { echo "$as_me:$LINENO: checking
for pthread_mutex_init
in -lpthread" >&5
13756 echo $ECHO_N "checking
for pthread_mutex_init
in -lpthread...
$ECHO_C" >&6; }
13757 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13758 echo $ECHO_N "(cached
) $ECHO_C" >&6
13760 ac_check_lib_save_LIBS=$LIBS
13761 LIBS="-lpthread $LIBS"
13762 cat >conftest.$ac_ext <<_ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13769 /* Override any GCC internal prototype to avoid an error.
13770 Use char because int might match the return type of a GCC
13771 builtin and then its argument prototype would still apply. */
13775 char pthread_mutex_init ();
13779 return pthread_mutex_init ();
13784 rm -f conftest.$ac_objext conftest$ac_exeext
13785 if { (ac_try="$ac_link"
13786 case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13790 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13791 (eval "$ac_link") 2>conftest.er1
13793 grep -v '^ *+' conftest.er1 >conftest.err
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13799 { (case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13803 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_try") 2>&5
13806 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest$ac_exeext'
13809 { (case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13813 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_try") 2>&5
13816 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13817 (exit $ac_status); }; }; then
13818 ac_cv_lib_pthread_pthread_mutex_init=yes
13820 echo "$as_me: failed program was
:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13823 ac_cv_lib_pthread_pthread_mutex_init=no
13826 rm -f core conftest.err conftest.$ac_objext \
13827 conftest$ac_exeext conftest.$ac_ext
13828 LIBS=$ac_check_lib_save_LIBS
13830 { echo "$as_me:$LINENO: result
: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13831 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13832 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13833 cat >>confdefs.h <<_ACEOF
13834 #define HAVE_LIBPTHREAD 1
13837 LIBS="-lpthread $LIBS"
13841 { echo "$as_me:$LINENO: checking
for library containing pthread_mutex_lock
" >&5
13842 echo $ECHO_N "checking
for library containing pthread_mutex_lock...
$ECHO_C" >&6; }
13843 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13844 echo $ECHO_N "(cached
) $ECHO_C" >&6
13846 ac_func_search_save_LIBS=$LIBS
13847 cat >conftest.$ac_ext <<_ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h. */
13854 /* Override any GCC internal prototype to avoid an error.
13855 Use char because int might match the return type of a GCC
13856 builtin and then its argument prototype would still apply. */
13860 char pthread_mutex_lock ();
13864 return pthread_mutex_lock ();
13869 for ac_lib in '' pthread; do
13870 if test -z "$ac_lib"; then
13871 ac_res="none required
"
13874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13876 rm -f conftest.$ac_objext conftest$ac_exeext
13877 if { (ac_try="$ac_link"
13878 case "(($ac_try" in
13879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13880 *) ac_try_echo=$ac_try;;
13882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13883 (eval "$ac_link") 2>conftest.er1
13885 grep -v '^ *+' conftest.er1 >conftest.err
13887 cat conftest.err >&5
13888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13889 (exit $ac_status); } &&
13890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13891 { (case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_try") 2>&5
13898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13899 (exit $ac_status); }; } &&
13900 { ac_try='test -s conftest$ac_exeext'
13901 { (case "(($ac_try" in
13902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13903 *) ac_try_echo=$ac_try;;
13905 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13906 (eval "$ac_try") 2>&5
13908 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13909 (exit $ac_status); }; }; then
13910 ac_cv_search_pthread_mutex_lock=$ac_res
13912 echo "$as_me: failed program was
:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13918 rm -f core conftest.err conftest.$ac_objext \
13920 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13924 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13927 ac_cv_search_pthread_mutex_lock=no
13929 rm conftest.$ac_ext
13930 LIBS=$ac_func_search_save_LIBS
13932 { echo "$as_me:$LINENO: result
: $ac_cv_search_pthread_mutex_lock" >&5
13933 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13934 ac_res=$ac_cv_search_pthread_mutex_lock
13935 if test "$ac_res" != no; then
13936 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
13938 cat >>confdefs.h <<\_ACEOF
13939 #define HAVE_PTHREAD_MUTEX_LOCK 1
13944 { echo "$as_me:$LINENO: checking
for library containing pthread_rwlock_init
" >&5
13945 echo $ECHO_N "checking
for library containing pthread_rwlock_init...
$ECHO_C" >&6; }
13946 if test "${ac_cv_search_pthread_rwlock_init+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_rwlock_init ();
13967 return pthread_rwlock_init ();
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_rwlock_init=$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_rwlock_init+set}" = set; then
14027 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14030 ac_cv_search_pthread_rwlock_init=no
14032 rm conftest.$ac_ext
14033 LIBS=$ac_func_search_save_LIBS
14035 { echo "$as_me:$LINENO: result
: $ac_cv_search_pthread_rwlock_init" >&5
14036 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14037 ac_res=$ac_cv_search_pthread_rwlock_init
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_RWLOCK_INIT 1
14047 { echo "$as_me:$LINENO: checking
for library containing pthread_getspecific
" >&5
14048 echo $ECHO_N "checking
for library containing pthread_getspecific...
$ECHO_C" >&6; }
14049 if test "${ac_cv_search_pthread_getspecific+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_getspecific ();
14070 return pthread_getspecific ();
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_getspecific=$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_getspecific+set}" = set; then
14130 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14133 ac_cv_search_pthread_getspecific=no
14135 rm conftest.$ac_ext
14136 LIBS=$ac_func_search_save_LIBS
14138 { echo "$as_me:$LINENO: result
: $ac_cv_search_pthread_getspecific" >&5
14139 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14140 ac_res=$ac_cv_search_pthread_getspecific
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_GETSPECIFIC 1
14153 # Check whether --with-udis86 was given.
14154 if test "${with_udis86+set}" = set; then
14155 withval=$with_udis86;
14160 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14163 { echo "$as_me:$LINENO: checking
for ud_init
in -ludis86" >&5
14164 echo $ECHO_N "checking
for ud_init
in -ludis86...
$ECHO_C" >&6; }
14165 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14166 echo $ECHO_N "(cached
) $ECHO_C" >&6
14168 ac_check_lib_save_LIBS=$LIBS
14169 LIBS="-ludis86 $LIBS"
14170 cat >conftest.$ac_ext <<_ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14192 rm -f conftest.$ac_objext conftest$ac_exeext
14193 if { (ac_try="$ac_link"
14194 case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_link") 2>conftest.er1
14201 grep -v '^ *+' conftest.er1 >conftest.err
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14205 (exit $ac_status); } &&
14206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14207 { (case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_try") 2>&5
14214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14215 (exit $ac_status); }; } &&
14216 { ac_try='test -s conftest$ac_exeext'
14217 { (case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14221 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_try") 2>&5
14224 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14225 (exit $ac_status); }; }; then
14226 ac_cv_lib_udis86_ud_init=yes
14228 echo "$as_me: failed program was
:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14231 ac_cv_lib_udis86_ud_init=no
14234 rm -f core conftest.err conftest.$ac_objext \
14235 conftest$ac_exeext conftest.$ac_ext
14236 LIBS=$ac_check_lib_save_LIBS
14238 { echo "$as_me:$LINENO: result
: $ac_cv_lib_udis86_ud_init" >&5
14239 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14240 if test $ac_cv_lib_udis86_ud_init = yes; then
14241 cat >>confdefs.h <<_ACEOF
14242 #define HAVE_LIBUDIS86 1
14245 LIBS="-ludis86 $LIBS"
14249 echo "Error
! You need to have libudis86 around.
"
14261 cat >>confdefs.h <<_ACEOF
14262 #define USE_UDIS86 $USE_UDIS86
14267 # Check whether --with-oprofile was given.
14268 if test "${with_oprofile+set}" = set; then
14269 withval=$with_oprofile;
14273 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14274 no) llvm_cv_oppath=
14277 *) llvm_cv_oppath="${withval}/lib
/oprofile
"
14278 CPPFLAGS="-I${withval}/include
";;
14280 if test -n "$llvm_cv_oppath" ; then
14281 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14282 { echo "$as_me:$LINENO: checking
for library containing bfd_init
" >&5
14283 echo $ECHO_N "checking
for library containing bfd_init...
$ECHO_C" >&6; }
14284 if test "${ac_cv_search_bfd_init+set}" = set; then
14285 echo $ECHO_N "(cached
) $ECHO_C" >&6
14287 ac_func_search_save_LIBS=$LIBS
14288 cat >conftest.$ac_ext <<_ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14295 /* Override any GCC internal prototype to avoid an error.
14296 Use char because int might match the return type of a GCC
14297 builtin and then its argument prototype would still apply. */
14305 return bfd_init ();
14310 for ac_lib in '' bfd; do
14311 if test -z "$ac_lib"; then
14312 ac_res="none required
"
14315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14317 rm -f conftest.$ac_objext conftest$ac_exeext
14318 if { (ac_try="$ac_link"
14319 case "(($ac_try" in
14320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 *) ac_try_echo=$ac_try;;
14323 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_link") 2>conftest.er1
14326 grep -v '^ *+' conftest.er1 >conftest.err
14328 cat conftest.err >&5
14329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14330 (exit $ac_status); } &&
14331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14332 { (case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14336 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_try") 2>&5
14339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14340 (exit $ac_status); }; } &&
14341 { ac_try='test -s conftest$ac_exeext'
14342 { (case "(($ac_try" in
14343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_try") 2>&5
14349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14350 (exit $ac_status); }; }; then
14351 ac_cv_search_bfd_init=$ac_res
14353 echo "$as_me: failed program was
:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14359 rm -f core conftest.err conftest.$ac_objext \
14361 if test "${ac_cv_search_bfd_init+set}" = set; then
14365 if test "${ac_cv_search_bfd_init+set}" = set; then
14368 ac_cv_search_bfd_init=no
14370 rm conftest.$ac_ext
14371 LIBS=$ac_func_search_save_LIBS
14373 { echo "$as_me:$LINENO: result
: $ac_cv_search_bfd_init" >&5
14374 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14375 ac_res=$ac_cv_search_bfd_init
14376 if test "$ac_res" != no; then
14377 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
14381 { echo "$as_me:$LINENO: checking
for library containing op_open_agent
" >&5
14382 echo $ECHO_N "checking
for library containing op_open_agent...
$ECHO_C" >&6; }
14383 if test "${ac_cv_search_op_open_agent+set}" = set; then
14384 echo $ECHO_N "(cached
) $ECHO_C" >&6
14386 ac_func_search_save_LIBS=$LIBS
14387 cat >conftest.$ac_ext <<_ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h. */
14394 /* Override any GCC internal prototype to avoid an error.
14395 Use char because int might match the return type of a GCC
14396 builtin and then its argument prototype would still apply. */
14400 char op_open_agent ();
14404 return op_open_agent ();
14409 for ac_lib in '' opagent; do
14410 if test -z "$ac_lib"; then
14411 ac_res="none required
"
14414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14416 rm -f conftest.$ac_objext conftest$ac_exeext
14417 if { (ac_try="$ac_link"
14418 case "(($ac_try" in
14419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420 *) ac_try_echo=$ac_try;;
14422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14423 (eval "$ac_link") 2>conftest.er1
14425 grep -v '^ *+' conftest.er1 >conftest.err
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14429 (exit $ac_status); } &&
14430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14431 { (case "(($ac_try" in
14432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 *) ac_try_echo=$ac_try;;
14435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14436 (eval "$ac_try") 2>&5
14438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14439 (exit $ac_status); }; } &&
14440 { ac_try='test -s conftest$ac_exeext'
14441 { (case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_try") 2>&5
14448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14449 (exit $ac_status); }; }; then
14450 ac_cv_search_op_open_agent=$ac_res
14452 echo "$as_me: failed program was
:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14458 rm -f core conftest.err conftest.$ac_objext \
14460 if test "${ac_cv_search_op_open_agent+set}" = set; then
14464 if test "${ac_cv_search_op_open_agent+set}" = set; then
14467 ac_cv_search_op_open_agent=no
14469 rm conftest.$ac_ext
14470 LIBS=$ac_func_search_save_LIBS
14472 { echo "$as_me:$LINENO: result
: $ac_cv_search_op_open_agent" >&5
14473 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14474 ac_res=$ac_cv_search_op_open_agent
14475 if test "$ac_res" != no; then
14476 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
14480 echo "Error
! You need to have libopagent around.
"
14485 if test "${ac_cv_header_opagent_h+set}" = set; then
14486 { echo "$as_me:$LINENO: checking
for opagent.h
" >&5
14487 echo $ECHO_N "checking
for opagent.h...
$ECHO_C" >&6; }
14488 if test "${ac_cv_header_opagent_h+set}" = set; then
14489 echo $ECHO_N "(cached
) $ECHO_C" >&6
14491 { echo "$as_me:$LINENO: result
: $ac_cv_header_opagent_h" >&5
14492 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14494 # Is the header compilable?
14495 { echo "$as_me:$LINENO: checking opagent.h usability
" >&5
14496 echo $ECHO_N "checking opagent.h usability...
$ECHO_C" >&6; }
14497 cat >conftest.$ac_ext <<_ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14503 $ac_includes_default
14504 #include <opagent.h>
14506 rm -f conftest.$ac_objext
14507 if { (ac_try="$ac_compile"
14508 case "(($ac_try" in
14509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14510 *) ac_try_echo=$ac_try;;
14512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14513 (eval "$ac_compile") 2>conftest.er1
14515 grep -v '^ *+' conftest.er1 >conftest.err
14517 cat conftest.err >&5
14518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14521 { (case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14525 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_try") 2>&5
14528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14529 (exit $ac_status); }; } &&
14530 { ac_try='test -s conftest.$ac_objext'
14531 { (case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_try") 2>&5
14538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14539 (exit $ac_status); }; }; then
14540 ac_header_compiler=yes
14542 echo "$as_me: failed program was
:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 ac_header_compiler=no
14548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14550 echo "${ECHO_T}$ac_header_compiler" >&6; }
14552 # Is the header present?
14553 { echo "$as_me:$LINENO: checking opagent.h presence
" >&5
14554 echo $ECHO_N "checking opagent.h presence...
$ECHO_C" >&6; }
14555 cat >conftest.$ac_ext <<_ACEOF
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14561 #include <opagent.h>
14563 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14564 case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14568 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14571 grep -v '^ *+' conftest.er1 >conftest.err
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14575 (exit $ac_status); } >/dev/null; then
14576 if test -s conftest.err; then
14577 ac_cpp_err=$ac_c_preproc_warn_flag
14578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14585 if test -z "$ac_cpp_err"; then
14586 ac_header_preproc=yes
14588 echo "$as_me: failed program was
:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14591 ac_header_preproc=no
14594 rm -f conftest.err conftest.$ac_ext
14595 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14596 echo "${ECHO_T}$ac_header_preproc" >&6; }
14598 # So? What about this header?
14599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14601 { echo "$as_me:$LINENO: WARNING
: opagent.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14602 echo "$as_me: WARNING
: opagent.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14603 { echo "$as_me:$LINENO: WARNING
: opagent.h
: proceeding with the compiler
's result" >&5
14604 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result
" >&2;}
14605 ac_header_preproc=yes
14608 { echo "$as_me:$LINENO: WARNING
: opagent.h
: present but cannot be compiled
" >&5
14609 echo "$as_me: WARNING
: opagent.h
: present but cannot be compiled
" >&2;}
14610 { echo "$as_me:$LINENO: WARNING
: opagent.h
: check
for missing prerequisite headers?
" >&5
14611 echo "$as_me: WARNING
: opagent.h
: check
for missing prerequisite headers?
" >&2;}
14612 { echo "$as_me:$LINENO: WARNING
: opagent.h
: see the Autoconf documentation
" >&5
14613 echo "$as_me: WARNING
: opagent.h
: see the Autoconf documentation
" >&2;}
14614 { echo "$as_me:$LINENO: WARNING
: opagent.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14615 echo "$as_me: WARNING
: opagent.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14616 { echo "$as_me:$LINENO: WARNING
: opagent.h
: proceeding with the preprocessor
's result" >&5
14617 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result
" >&2;}
14618 { echo "$as_me:$LINENO: WARNING
: opagent.h
: in the future
, the compiler will take precedence
" >&5
14619 echo "$as_me: WARNING
: opagent.h
: in the future
, the compiler will take precedence
" >&2;}
14621 ## ----------------------------------- ##
14622 ## Report this to llvmbugs@cs.uiuc.edu ##
14623 ## ----------------------------------- ##
14625 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
14628 { echo "$as_me:$LINENO: checking
for opagent.h
" >&5
14629 echo $ECHO_N "checking
for opagent.h...
$ECHO_C" >&6; }
14630 if test "${ac_cv_header_opagent_h+set}" = set; then
14631 echo $ECHO_N "(cached
) $ECHO_C" >&6
14633 ac_cv_header_opagent_h=$ac_header_preproc
14635 { echo "$as_me:$LINENO: result
: $ac_cv_header_opagent_h" >&5
14636 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14639 if test $ac_cv_header_opagent_h = yes; then
14643 echo "Error
! You need to have opagent.h around.
"
14659 cat >>confdefs.h <<_ACEOF
14660 #define USE_OPROFILE $USE_OPROFILE
14670 ac_header_dirent=no
14671 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14672 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
14673 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
14674 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
14675 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14676 echo $ECHO_N "(cached
) $ECHO_C" >&6
14678 cat >conftest.$ac_ext <<_ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 #include <sys/types.h>
14696 rm -f conftest.$ac_objext
14697 if { (ac_try="$ac_compile"
14698 case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14702 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_compile") 2>conftest.er1
14705 grep -v '^ *+' conftest.er1 >conftest.err
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14709 (exit $ac_status); } &&
14710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14711 { (case "(($ac_try" in
14712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713 *) ac_try_echo=$ac_try;;
14715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14716 (eval "$ac_try") 2>&5
14718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14719 (exit $ac_status); }; } &&
14720 { ac_try='test -s conftest.$ac_objext'
14721 { (case "(($ac_try" in
14722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14723 *) ac_try_echo=$ac_try;;
14725 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14726 (eval "$ac_try") 2>&5
14728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14729 (exit $ac_status); }; }; then
14730 eval "$as_ac_Header=yes"
14732 echo "$as_me: failed program was
:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14735 eval "$as_ac_Header=no
"
14738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14740 ac_res=`eval echo '${'$as_ac_Header'}'`
14741 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14742 echo "${ECHO_T}$ac_res" >&6; }
14743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14744 cat >>confdefs.h <<_ACEOF
14745 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
14748 ac_header_dirent=$ac_hdr; break
14752 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14753 if test $ac_header_dirent = dirent.h; then
14754 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
14755 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
14756 if test "${ac_cv_search_opendir+set}" = set; then
14757 echo $ECHO_N "(cached
) $ECHO_C" >&6
14759 ac_func_search_save_LIBS=$LIBS
14760 cat >conftest.$ac_ext <<_ACEOF
14763 cat confdefs.h >>conftest.$ac_ext
14764 cat >>conftest.$ac_ext <<_ACEOF
14765 /* end confdefs.h. */
14767 /* Override any GCC internal prototype to avoid an error.
14768 Use char because int might match the return type of a GCC
14769 builtin and then its argument prototype would still apply. */
14782 for ac_lib in '' dir; do
14783 if test -z "$ac_lib"; then
14784 ac_res="none required
"
14787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14789 rm -f conftest.$ac_objext conftest$ac_exeext
14790 if { (ac_try="$ac_link"
14791 case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14795 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_link") 2>conftest.er1
14798 grep -v '^ *+' conftest.er1 >conftest.err
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14802 (exit $ac_status); } &&
14803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14804 { (case "(($ac_try" in
14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_try") 2>&5
14811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14812 (exit $ac_status); }; } &&
14813 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14823 ac_cv_search_opendir=$ac_res
14825 echo "$as_me: failed program was
:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14831 rm -f core conftest.err conftest.$ac_objext \
14833 if test "${ac_cv_search_opendir+set}" = set; then
14837 if test "${ac_cv_search_opendir+set}" = set; then
14840 ac_cv_search_opendir=no
14842 rm conftest.$ac_ext
14843 LIBS=$ac_func_search_save_LIBS
14845 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
14846 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14847 ac_res=$ac_cv_search_opendir
14848 if test "$ac_res" != no; then
14849 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
14854 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
14855 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
14856 if test "${ac_cv_search_opendir+set}" = set; then
14857 echo $ECHO_N "(cached
) $ECHO_C" >&6
14859 ac_func_search_save_LIBS=$LIBS
14860 cat >conftest.$ac_ext <<_ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14867 /* Override any GCC internal prototype to avoid an error.
14868 Use char because int might match the return type of a GCC
14869 builtin and then its argument prototype would still apply. */
14882 for ac_lib in '' x; do
14883 if test -z "$ac_lib"; then
14884 ac_res="none required
"
14887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14889 rm -f conftest.$ac_objext conftest$ac_exeext
14890 if { (ac_try="$ac_link"
14891 case "(($ac_try" in
14892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_link") 2>conftest.er1
14898 grep -v '^ *+' conftest.er1 >conftest.err
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14902 (exit $ac_status); } &&
14903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14904 { (case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_try") 2>&5
14911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14912 (exit $ac_status); }; } &&
14913 { ac_try='test -s conftest$ac_exeext'
14914 { (case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_try") 2>&5
14921 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 ac_cv_search_opendir=$ac_res
14925 echo "$as_me: failed program was
:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14931 rm -f core conftest.err conftest.$ac_objext \
14933 if test "${ac_cv_search_opendir+set}" = set; then
14937 if test "${ac_cv_search_opendir+set}" = set; then
14940 ac_cv_search_opendir=no
14942 rm conftest.$ac_ext
14943 LIBS=$ac_func_search_save_LIBS
14945 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
14946 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14947 ac_res=$ac_cv_search_opendir
14948 if test "$ac_res" != no; then
14949 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
14955 { echo "$as_me:$LINENO: checking
for MAP_ANONYMOUS vs. MAP_ANON
" >&5
14956 echo $ECHO_N "checking
for MAP_ANONYMOUS vs. MAP_ANON...
$ECHO_C" >&6; }
14957 if test "${ac_cv_header_mmap_anon+set}" = set; then
14958 echo $ECHO_N "(cached
) $ECHO_C" >&6
14961 ac_cpp='$CPP $CPPFLAGS'
14962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14966 cat >conftest.$ac_ext <<_ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h. */
14972 #include <sys/mman.h>
14973 #include <unistd.h>
14978 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14983 rm -f conftest.$ac_objext
14984 if { (ac_try="$ac_compile"
14985 case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14989 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_compile") 2>conftest.er1
14992 grep -v '^ *+' conftest.er1 >conftest.err
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14998 { (case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15002 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_try") 2>&5
15005 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15006 (exit $ac_status); }; } &&
15007 { ac_try='test -s conftest.$ac_objext'
15008 { (case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_try") 2>&5
15015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 ac_cv_header_mmap_anon=yes
15019 echo "$as_me: failed program was
:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15022 ac_cv_header_mmap_anon=no
15025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15027 ac_cpp='$CPP $CPPFLAGS'
15028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15034 { echo "$as_me:$LINENO: result
: $ac_cv_header_mmap_anon" >&5
15035 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15036 if test "$ac_cv_header_mmap_anon" = yes; then
15038 cat >>confdefs.h <<\_ACEOF
15039 #define HAVE_MMAP_ANONYMOUS 1
15044 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken
" >&5
15045 echo $ECHO_N "checking whether stat file-mode macros are broken...
$ECHO_C" >&6; }
15046 if test "${ac_cv_header_stat_broken+set}" = set; then
15047 echo $ECHO_N "(cached
) $ECHO_C" >&6
15049 cat >conftest.$ac_ext <<_ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15055 #include <sys/types.h>
15056 #include <sys/stat.h>
15058 #if defined S_ISBLK && defined S_IFDIR
15059 # if S_ISBLK (S_IFDIR)
15064 #if defined S_ISBLK && defined S_IFCHR
15065 # if S_ISBLK (S_IFCHR)
15070 #if defined S_ISLNK && defined S_IFREG
15071 # if S_ISLNK (S_IFREG)
15076 #if defined S_ISSOCK && defined S_IFREG
15077 # if S_ISSOCK (S_IFREG)
15083 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15084 $EGREP "You lose
" >/dev/null 2>&1; then
15085 ac_cv_header_stat_broken=yes
15087 ac_cv_header_stat_broken=no
15092 { echo "$as_me:$LINENO: result
: $ac_cv_header_stat_broken" >&5
15093 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15094 if test $ac_cv_header_stat_broken = yes; then
15096 cat >>confdefs.h <<\_ACEOF
15097 #define STAT_MACROS_BROKEN 1
15102 { echo "$as_me:$LINENO: checking
for ANSI C header files
" >&5
15103 echo $ECHO_N "checking
for ANSI C header files...
$ECHO_C" >&6; }
15104 if test "${ac_cv_header_stdc+set}" = set; then
15105 echo $ECHO_N "(cached
) $ECHO_C" >&6
15107 cat >conftest.$ac_ext <<_ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 #include <stdlib.h>
15114 #include <stdarg.h>
15115 #include <string.h>
15126 rm -f conftest.$ac_objext
15127 if { (ac_try="$ac_compile"
15128 case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_compile") 2>conftest.er1
15135 grep -v '^ *+' conftest.er1 >conftest.err
15137 cat conftest.err >&5
15138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15139 (exit $ac_status); } &&
15140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15141 { (case "(($ac_try" in
15142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143 *) ac_try_echo=$ac_try;;
15145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_try") 2>&5
15148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15149 (exit $ac_status); }; } &&
15150 { ac_try='test -s conftest.$ac_objext'
15151 { (case "(($ac_try" in
15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15156 (eval "$ac_try") 2>&5
15158 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_cv_header_stdc=yes
15162 echo "$as_me: failed program was
:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 ac_cv_header_stdc=no
15168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170 if test $ac_cv_header_stdc = yes; then
15171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15172 cat >conftest.$ac_ext <<_ACEOF
15175 cat confdefs.h >>conftest.$ac_ext
15176 cat >>conftest.$ac_ext <<_ACEOF
15177 /* end confdefs.h. */
15178 #include <string.h>
15181 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15182 $EGREP "memchr
" >/dev/null 2>&1; then
15185 ac_cv_header_stdc=no
15191 if test $ac_cv_header_stdc = yes; then
15192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15193 cat >conftest.$ac_ext <<_ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15199 #include <stdlib.h>
15202 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15203 $EGREP "free
" >/dev/null 2>&1; then
15206 ac_cv_header_stdc=no
15212 if test $ac_cv_header_stdc = yes; then
15213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15214 if test "$cross_compiling" = yes; then
15217 cat >conftest.$ac_ext <<_ACEOF
15220 cat confdefs.h >>conftest.$ac_ext
15221 cat >>conftest.$ac_ext <<_ACEOF
15222 /* end confdefs.h. */
15224 #include <stdlib.h>
15225 #if ((' ' & 0x0FF) == 0x020)
15226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15229 # define ISLOWER(c) \
15230 (('a' <= (c) && (c) <= 'i') \
15231 || ('j' <= (c) && (c) <= 'r') \
15232 || ('s' <= (c) && (c) <= 'z'))
15233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15241 for (i = 0; i < 256; i++)
15242 if (XOR (islower (i), ISLOWER (i))
15243 || toupper (i) != TOUPPER (i))
15248 rm -f conftest$ac_exeext
15249 if { (ac_try="$ac_link"
15250 case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_link") 2>&5
15257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15259 { (case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15264 (eval "$ac_try") 2>&5
15266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15267 (exit $ac_status); }; }; then
15270 echo "$as_me: program exited with status
$ac_status" >&5
15271 echo "$as_me: failed program was
:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15274 ( exit $ac_status )
15275 ac_cv_header_stdc=no
15277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15283 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdc" >&5
15284 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15285 if test $ac_cv_header_stdc = yes; then
15287 cat >>confdefs.h <<\_ACEOF
15288 #define STDC_HEADERS 1
15293 { echo "$as_me:$LINENO: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
15294 echo $ECHO_N "checking
for sys
/wait.h that is POSIX
.1 compatible...
$ECHO_C" >&6; }
15295 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15296 echo $ECHO_N "(cached
) $ECHO_C" >&6
15298 cat >conftest.$ac_ext <<_ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h. */
15304 #include <sys/types.h>
15305 #include <sys/wait.h>
15306 #ifndef WEXITSTATUS
15307 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15310 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15318 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15323 rm -f conftest.$ac_objext
15324 if { (ac_try="$ac_compile"
15325 case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_compile") 2>conftest.er1
15332 grep -v '^ *+' conftest.er1 >conftest.err
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15338 { (case "(($ac_try" in
15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340 *) ac_try_echo=$ac_try;;
15342 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15343 (eval "$ac_try") 2>&5
15345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15346 (exit $ac_status); }; } &&
15347 { ac_try='test -s conftest.$ac_objext'
15348 { (case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_try") 2>&5
15355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 ac_cv_header_sys_wait_h=yes
15359 echo "$as_me: failed program was
:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15362 ac_cv_header_sys_wait_h=no
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15367 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_wait_h" >&5
15368 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15369 if test $ac_cv_header_sys_wait_h = yes; then
15371 cat >>confdefs.h <<\_ACEOF
15372 #define HAVE_SYS_WAIT_H 1
15377 { echo "$as_me:$LINENO: checking whether
time.h and sys
/time.h may both be included
" >&5
15378 echo $ECHO_N "checking whether
time.h and sys
/time.h may both be included...
$ECHO_C" >&6; }
15379 if test "${ac_cv_header_time+set}" = set; then
15380 echo $ECHO_N "(cached
) $ECHO_C" >&6
15382 cat >conftest.$ac_ext <<_ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h. */
15388 #include <sys/types.h>
15389 #include <sys/time.h>
15395 if ((struct tm *) 0)
15401 rm -f conftest.$ac_objext
15402 if { (ac_try="$ac_compile"
15403 case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_compile") 2>conftest.er1
15410 grep -v '^ *+' conftest.er1 >conftest.err
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15414 (exit $ac_status); } &&
15415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15416 { (case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_try") 2>&5
15423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15424 (exit $ac_status); }; } &&
15425 { ac_try='test -s conftest.$ac_objext'
15426 { (case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15430 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_try") 2>&5
15433 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15434 (exit $ac_status); }; }; then
15435 ac_cv_header_time=yes
15437 echo "$as_me: failed program was
:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15440 ac_cv_header_time=no
15443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15445 { echo "$as_me:$LINENO: result
: $ac_cv_header_time" >&5
15446 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15447 if test $ac_cv_header_time = yes; then
15449 cat >>confdefs.h <<\_ACEOF
15450 #define TIME_WITH_SYS_TIME 1
15462 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15464 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15465 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15466 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15467 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15468 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15469 echo $ECHO_N "(cached
) $ECHO_C" >&6
15471 ac_res=`eval echo '${'$as_ac_Header'}'`
15472 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15473 echo "${ECHO_T}$ac_res" >&6; }
15475 # Is the header compilable?
15476 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15477 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15478 cat >conftest.$ac_ext <<_ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15484 $ac_includes_default
15485 #include <$ac_header>
15487 rm -f conftest.$ac_objext
15488 if { (ac_try="$ac_compile"
15489 case "(($ac_try" in
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491 *) ac_try_echo=$ac_try;;
15493 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15494 (eval "$ac_compile") 2>conftest.er1
15496 grep -v '^ *+' conftest.er1 >conftest.err
15498 cat conftest.err >&5
15499 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15500 (exit $ac_status); } &&
15501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15502 { (case "(($ac_try" in
15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15507 (eval "$ac_try") 2>&5
15509 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15510 (exit $ac_status); }; } &&
15511 { ac_try='test -s conftest.$ac_objext'
15512 { (case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_try") 2>&5
15519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15520 (exit $ac_status); }; }; then
15521 ac_header_compiler=yes
15523 echo "$as_me: failed program was
:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 ac_header_compiler=no
15529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15531 echo "${ECHO_T}$ac_header_compiler" >&6; }
15533 # Is the header present?
15534 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15535 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 #include <$ac_header>
15544 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15545 case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15549 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15552 grep -v '^ *+' conftest.er1 >conftest.err
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15556 (exit $ac_status); } >/dev/null; then
15557 if test -s conftest.err; then
15558 ac_cpp_err=$ac_c_preproc_warn_flag
15559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15566 if test -z "$ac_cpp_err"; then
15567 ac_header_preproc=yes
15569 echo "$as_me: failed program was
:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15572 ac_header_preproc=no
15575 rm -f conftest.err conftest.$ac_ext
15576 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15577 echo "${ECHO_T}$ac_header_preproc" >&6; }
15579 # So? What about this header?
15580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15582 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15583 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15584 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15586 ac_header_preproc=yes
15589 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15590 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15591 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15592 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15593 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15594 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15595 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15596 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15597 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15599 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15600 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15602 ## ----------------------------------- ##
15603 ## Report this to llvmbugs@cs.uiuc.edu ##
15604 ## ----------------------------------- ##
15606 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
15609 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15610 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15611 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15612 echo $ECHO_N "(cached
) $ECHO_C" >&6
15614 eval "$as_ac_Header=\
$ac_header_preproc"
15616 ac_res=`eval echo '${'$as_ac_Header'}'`
15617 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15618 echo "${ECHO_T}$ac_res" >&6; }
15621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15622 cat >>confdefs.h <<_ACEOF
15623 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15636 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15638 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15639 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15640 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15641 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15642 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15643 echo $ECHO_N "(cached
) $ECHO_C" >&6
15645 ac_res=`eval echo '${'$as_ac_Header'}'`
15646 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15647 echo "${ECHO_T}$ac_res" >&6; }
15649 # Is the header compilable?
15650 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15651 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15652 cat >conftest.$ac_ext <<_ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15658 $ac_includes_default
15659 #include <$ac_header>
15661 rm -f conftest.$ac_objext
15662 if { (ac_try="$ac_compile"
15663 case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_compile") 2>conftest.er1
15670 grep -v '^ *+' conftest.er1 >conftest.err
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15674 (exit $ac_status); } &&
15675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15676 { (case "(($ac_try" in
15677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678 *) ac_try_echo=$ac_try;;
15680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15681 (eval "$ac_try") 2>&5
15683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15684 (exit $ac_status); }; } &&
15685 { ac_try='test -s conftest.$ac_objext'
15686 { (case "(($ac_try" in
15687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688 *) ac_try_echo=$ac_try;;
15690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15691 (eval "$ac_try") 2>&5
15693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 ac_header_compiler=yes
15697 echo "$as_me: failed program was
:" >&5
15698 sed 's/^/| /' conftest.$ac_ext >&5
15700 ac_header_compiler=no
15703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15704 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15705 echo "${ECHO_T}$ac_header_compiler" >&6; }
15707 # Is the header present?
15708 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15709 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15710 cat >conftest.$ac_ext <<_ACEOF
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h. */
15716 #include <$ac_header>
15718 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15719 case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15726 grep -v '^ *+' conftest.er1 >conftest.err
15728 cat conftest.err >&5
15729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15730 (exit $ac_status); } >/dev/null; then
15731 if test -s conftest.err; then
15732 ac_cpp_err=$ac_c_preproc_warn_flag
15733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15740 if test -z "$ac_cpp_err"; then
15741 ac_header_preproc=yes
15743 echo "$as_me: failed program was
:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15746 ac_header_preproc=no
15749 rm -f conftest.err conftest.$ac_ext
15750 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15751 echo "${ECHO_T}$ac_header_preproc" >&6; }
15753 # So? What about this header?
15754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15756 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15757 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15758 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15760 ac_header_preproc=yes
15763 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15764 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15765 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15766 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15767 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15768 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15769 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15770 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15771 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15773 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15774 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15776 ## ----------------------------------- ##
15777 ## Report this to llvmbugs@cs.uiuc.edu ##
15778 ## ----------------------------------- ##
15780 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
15783 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15784 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15785 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15786 echo $ECHO_N "(cached
) $ECHO_C" >&6
15788 eval "$as_ac_Header=\
$ac_header_preproc"
15790 ac_res=`eval echo '${'$as_ac_Header'}'`
15791 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15792 echo "${ECHO_T}$ac_res" >&6; }
15795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15796 cat >>confdefs.h <<_ACEOF
15797 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15806 for ac_header in utime.h windows.h
15808 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15809 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15810 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15811 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15812 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15813 echo $ECHO_N "(cached
) $ECHO_C" >&6
15815 ac_res=`eval echo '${'$as_ac_Header'}'`
15816 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15817 echo "${ECHO_T}$ac_res" >&6; }
15819 # Is the header compilable?
15820 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15821 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15822 cat >conftest.$ac_ext <<_ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15828 $ac_includes_default
15829 #include <$ac_header>
15831 rm -f conftest.$ac_objext
15832 if { (ac_try="$ac_compile"
15833 case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_compile") 2>conftest.er1
15840 grep -v '^ *+' conftest.er1 >conftest.err
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15846 { (case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15850 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_try") 2>&5
15853 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15854 (exit $ac_status); }; } &&
15855 { ac_try='test -s conftest.$ac_objext'
15856 { (case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15860 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_try") 2>&5
15863 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15864 (exit $ac_status); }; }; then
15865 ac_header_compiler=yes
15867 echo "$as_me: failed program was
:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15870 ac_header_compiler=no
15873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15874 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15875 echo "${ECHO_T}$ac_header_compiler" >&6; }
15877 # Is the header present?
15878 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15879 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15880 cat >conftest.$ac_ext <<_ACEOF
15883 cat confdefs.h >>conftest.$ac_ext
15884 cat >>conftest.$ac_ext <<_ACEOF
15885 /* end confdefs.h. */
15886 #include <$ac_header>
15888 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15889 case "(($ac_try" in
15890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15891 *) ac_try_echo=$ac_try;;
15893 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15894 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15896 grep -v '^ *+' conftest.er1 >conftest.err
15898 cat conftest.err >&5
15899 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15900 (exit $ac_status); } >/dev/null; then
15901 if test -s conftest.err; then
15902 ac_cpp_err=$ac_c_preproc_warn_flag
15903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15910 if test -z "$ac_cpp_err"; then
15911 ac_header_preproc=yes
15913 echo "$as_me: failed program was
:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15916 ac_header_preproc=no
15919 rm -f conftest.err conftest.$ac_ext
15920 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15921 echo "${ECHO_T}$ac_header_preproc" >&6; }
15923 # So? What about this header?
15924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15926 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15927 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15928 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15930 ac_header_preproc=yes
15933 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15934 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15935 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15936 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15937 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15938 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15939 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15940 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15941 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15943 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15944 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15946 ## ----------------------------------- ##
15947 ## Report this to llvmbugs@cs.uiuc.edu ##
15948 ## ----------------------------------- ##
15950 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
15953 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15954 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15955 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15956 echo $ECHO_N "(cached
) $ECHO_C" >&6
15958 eval "$as_ac_Header=\
$ac_header_preproc"
15960 ac_res=`eval echo '${'$as_ac_Header'}'`
15961 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15962 echo "${ECHO_T}$ac_res" >&6; }
15965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15966 cat >>confdefs.h <<_ACEOF
15967 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15978 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15980 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15981 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15982 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15983 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15984 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15985 echo $ECHO_N "(cached
) $ECHO_C" >&6
15987 ac_res=`eval echo '${'$as_ac_Header'}'`
15988 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15989 echo "${ECHO_T}$ac_res" >&6; }
15991 # Is the header compilable?
15992 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15993 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15994 cat >conftest.$ac_ext <<_ACEOF
15997 cat confdefs.h >>conftest.$ac_ext
15998 cat >>conftest.$ac_ext <<_ACEOF
15999 /* end confdefs.h. */
16000 $ac_includes_default
16001 #include <$ac_header>
16003 rm -f conftest.$ac_objext
16004 if { (ac_try="$ac_compile"
16005 case "(($ac_try" in
16006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007 *) ac_try_echo=$ac_try;;
16009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16010 (eval "$ac_compile") 2>conftest.er1
16012 grep -v '^ *+' conftest.er1 >conftest.err
16014 cat conftest.err >&5
16015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16016 (exit $ac_status); } &&
16017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16018 { (case "(($ac_try" in
16019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16020 *) ac_try_echo=$ac_try;;
16022 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16023 (eval "$ac_try") 2>&5
16025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16026 (exit $ac_status); }; } &&
16027 { ac_try='test -s conftest.$ac_objext'
16028 { (case "(($ac_try" in
16029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16030 *) ac_try_echo=$ac_try;;
16032 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16033 (eval "$ac_try") 2>&5
16035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16036 (exit $ac_status); }; }; then
16037 ac_header_compiler=yes
16039 echo "$as_me: failed program was
:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16042 ac_header_compiler=no
16045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16046 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16047 echo "${ECHO_T}$ac_header_compiler" >&6; }
16049 # Is the header present?
16050 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16051 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16052 cat >conftest.$ac_ext <<_ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h. */
16058 #include <$ac_header>
16060 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16061 case "(($ac_try" in
16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063 *) ac_try_echo=$ac_try;;
16065 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16066 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16068 grep -v '^ *+' conftest.er1 >conftest.err
16070 cat conftest.err >&5
16071 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16072 (exit $ac_status); } >/dev/null; then
16073 if test -s conftest.err; then
16074 ac_cpp_err=$ac_c_preproc_warn_flag
16075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16082 if test -z "$ac_cpp_err"; then
16083 ac_header_preproc=yes
16085 echo "$as_me: failed program was
:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16088 ac_header_preproc=no
16091 rm -f conftest.err conftest.$ac_ext
16092 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16093 echo "${ECHO_T}$ac_header_preproc" >&6; }
16095 # So? What about this header?
16096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16098 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16099 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16100 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16102 ac_header_preproc=yes
16105 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16106 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16107 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16108 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16109 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16110 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16111 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16112 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16113 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16115 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16116 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16118 ## ----------------------------------- ##
16119 ## Report this to llvmbugs@cs.uiuc.edu ##
16120 ## ----------------------------------- ##
16122 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
16125 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16126 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16127 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16128 echo $ECHO_N "(cached
) $ECHO_C" >&6
16130 eval "$as_ac_Header=\
$ac_header_preproc"
16132 ac_res=`eval echo '${'$as_ac_Header'}'`
16133 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16134 echo "${ECHO_T}$ac_res" >&6; }
16137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16138 cat >>confdefs.h <<_ACEOF
16139 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16150 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16152 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16153 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16154 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16155 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16156 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16157 echo $ECHO_N "(cached
) $ECHO_C" >&6
16159 ac_res=`eval echo '${'$as_ac_Header'}'`
16160 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16161 echo "${ECHO_T}$ac_res" >&6; }
16163 # Is the header compilable?
16164 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16165 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16166 cat >conftest.$ac_ext <<_ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h. */
16172 $ac_includes_default
16173 #include <$ac_header>
16175 rm -f conftest.$ac_objext
16176 if { (ac_try="$ac_compile"
16177 case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16181 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_compile") 2>conftest.er1
16184 grep -v '^ *+' conftest.er1 >conftest.err
16186 cat conftest.err >&5
16187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16188 (exit $ac_status); } &&
16189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16190 { (case "(($ac_try" in
16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16195 (eval "$ac_try") 2>&5
16197 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16198 (exit $ac_status); }; } &&
16199 { ac_try='test -s conftest.$ac_objext'
16200 { (case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_try") 2>&5
16207 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 ac_header_compiler=yes
16211 echo "$as_me: failed program was
:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16214 ac_header_compiler=no
16217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16218 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16219 echo "${ECHO_T}$ac_header_compiler" >&6; }
16221 # Is the header present?
16222 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16223 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16224 cat >conftest.$ac_ext <<_ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230 #include <$ac_header>
16232 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16233 case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16237 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16238 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16240 grep -v '^ *+' conftest.er1 >conftest.err
16242 cat conftest.err >&5
16243 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16244 (exit $ac_status); } >/dev/null; then
16245 if test -s conftest.err; then
16246 ac_cpp_err=$ac_c_preproc_warn_flag
16247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16254 if test -z "$ac_cpp_err"; then
16255 ac_header_preproc=yes
16257 echo "$as_me: failed program was
:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16260 ac_header_preproc=no
16263 rm -f conftest.err conftest.$ac_ext
16264 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16265 echo "${ECHO_T}$ac_header_preproc" >&6; }
16267 # So? What about this header?
16268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16270 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16271 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16272 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16274 ac_header_preproc=yes
16277 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16278 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16279 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16280 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16281 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16282 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16283 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16284 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16285 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16287 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16288 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16290 ## ----------------------------------- ##
16291 ## Report this to llvmbugs@cs.uiuc.edu ##
16292 ## ----------------------------------- ##
16294 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
16297 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16298 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16299 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16300 echo $ECHO_N "(cached
) $ECHO_C" >&6
16302 eval "$as_ac_Header=\
$ac_header_preproc"
16304 ac_res=`eval echo '${'$as_ac_Header'}'`
16305 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16306 echo "${ECHO_T}$ac_res" >&6; }
16309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16310 cat >>confdefs.h <<_ACEOF
16311 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16319 for ac_header in valgrind/valgrind.h
16321 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16322 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16323 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16324 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16325 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16326 echo $ECHO_N "(cached
) $ECHO_C" >&6
16328 ac_res=`eval echo '${'$as_ac_Header'}'`
16329 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16330 echo "${ECHO_T}$ac_res" >&6; }
16332 # Is the header compilable?
16333 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16334 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16335 cat >conftest.$ac_ext <<_ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 $ac_includes_default
16342 #include <$ac_header>
16344 rm -f conftest.$ac_objext
16345 if { (ac_try="$ac_compile"
16346 case "(($ac_try" in
16347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348 *) ac_try_echo=$ac_try;;
16350 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16351 (eval "$ac_compile") 2>conftest.er1
16353 grep -v '^ *+' conftest.er1 >conftest.err
16355 cat conftest.err >&5
16356 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16357 (exit $ac_status); } &&
16358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16359 { (case "(($ac_try" in
16360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16363 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16364 (eval "$ac_try") 2>&5
16366 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16367 (exit $ac_status); }; } &&
16368 { ac_try='test -s conftest.$ac_objext'
16369 { (case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16373 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_try") 2>&5
16376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16377 (exit $ac_status); }; }; then
16378 ac_header_compiler=yes
16380 echo "$as_me: failed program was
:" >&5
16381 sed 's/^/| /' conftest.$ac_ext >&5
16383 ac_header_compiler=no
16386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16388 echo "${ECHO_T}$ac_header_compiler" >&6; }
16390 # Is the header present?
16391 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16392 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16393 cat >conftest.$ac_ext <<_ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 #include <$ac_header>
16401 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16402 case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16409 grep -v '^ *+' conftest.er1 >conftest.err
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16413 (exit $ac_status); } >/dev/null; then
16414 if test -s conftest.err; then
16415 ac_cpp_err=$ac_c_preproc_warn_flag
16416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16423 if test -z "$ac_cpp_err"; then
16424 ac_header_preproc=yes
16426 echo "$as_me: failed program was
:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16429 ac_header_preproc=no
16432 rm -f conftest.err conftest.$ac_ext
16433 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16434 echo "${ECHO_T}$ac_header_preproc" >&6; }
16436 # So? What about this header?
16437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16439 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16440 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16441 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16443 ac_header_preproc=yes
16446 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16447 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16448 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16449 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16450 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16451 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16452 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16453 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16454 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16456 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16457 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16459 ## ----------------------------------- ##
16460 ## Report this to llvmbugs@cs.uiuc.edu ##
16461 ## ----------------------------------- ##
16463 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
16466 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16467 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16468 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16469 echo $ECHO_N "(cached
) $ECHO_C" >&6
16471 eval "$as_ac_Header=\
$ac_header_preproc"
16473 ac_res=`eval echo '${'$as_ac_Header'}'`
16474 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16475 echo "${ECHO_T}$ac_res" >&6; }
16478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16479 cat >>confdefs.h <<_ACEOF
16480 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16487 if test "$ENABLE_THREADS" -eq 1 ; then
16489 for ac_header in pthread.h
16491 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16492 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16493 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16494 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16495 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16496 echo $ECHO_N "(cached
) $ECHO_C" >&6
16498 ac_res=`eval echo '${'$as_ac_Header'}'`
16499 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16500 echo "${ECHO_T}$ac_res" >&6; }
16502 # Is the header compilable?
16503 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16504 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16505 cat >conftest.$ac_ext <<_ACEOF
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h. */
16511 $ac_includes_default
16512 #include <$ac_header>
16514 rm -f conftest.$ac_objext
16515 if { (ac_try="$ac_compile"
16516 case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_compile") 2>conftest.er1
16523 grep -v '^ *+' conftest.er1 >conftest.err
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16529 { (case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_try") 2>&5
16536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16537 (exit $ac_status); }; } &&
16538 { ac_try='test -s conftest.$ac_objext'
16539 { (case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_try") 2>&5
16546 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_header_compiler=yes
16550 echo "$as_me: failed program was
:" >&5
16551 sed 's/^/| /' conftest.$ac_ext >&5
16553 ac_header_compiler=no
16556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16558 echo "${ECHO_T}$ac_header_compiler" >&6; }
16560 # Is the header present?
16561 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16562 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16563 cat >conftest.$ac_ext <<_ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 #include <$ac_header>
16571 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16572 case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16576 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16577 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16579 grep -v '^ *+' conftest.er1 >conftest.err
16581 cat conftest.err >&5
16582 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16583 (exit $ac_status); } >/dev/null; then
16584 if test -s conftest.err; then
16585 ac_cpp_err=$ac_c_preproc_warn_flag
16586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16593 if test -z "$ac_cpp_err"; then
16594 ac_header_preproc=yes
16596 echo "$as_me: failed program was
:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16599 ac_header_preproc=no
16602 rm -f conftest.err conftest.$ac_ext
16603 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16604 echo "${ECHO_T}$ac_header_preproc" >&6; }
16606 # So? What about this header?
16607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16609 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16610 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16611 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16613 ac_header_preproc=yes
16616 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16617 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16618 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16619 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16620 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16621 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16622 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16623 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16624 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16626 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16627 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16629 ## ----------------------------------- ##
16630 ## Report this to llvmbugs@cs.uiuc.edu ##
16631 ## ----------------------------------- ##
16633 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
16636 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16637 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16638 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16639 echo $ECHO_N "(cached
) $ECHO_C" >&6
16641 eval "$as_ac_Header=\
$ac_header_preproc"
16643 ac_res=`eval echo '${'$as_ac_Header'}'`
16644 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16645 echo "${ECHO_T}$ac_res" >&6; }
16648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16649 cat >>confdefs.h <<_ACEOF
16650 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16666 if test "$llvm_cv_enable_libffi" = "yes" ; then
16669 for ac_header in ffi.h ffi/ffi.h
16671 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16672 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16673 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16674 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16675 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16676 echo $ECHO_N "(cached
) $ECHO_C" >&6
16678 ac_res=`eval echo '${'$as_ac_Header'}'`
16679 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16680 echo "${ECHO_T}$ac_res" >&6; }
16682 # Is the header compilable?
16683 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16684 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16685 cat >conftest.$ac_ext <<_ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16691 $ac_includes_default
16692 #include <$ac_header>
16694 rm -f conftest.$ac_objext
16695 if { (ac_try="$ac_compile"
16696 case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16700 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_compile") 2>conftest.er1
16703 grep -v '^ *+' conftest.er1 >conftest.err
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16707 (exit $ac_status); } &&
16708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16709 { (case "(($ac_try" in
16710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711 *) ac_try_echo=$ac_try;;
16713 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16714 (eval "$ac_try") 2>&5
16716 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest.$ac_objext'
16719 { (case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16724 (eval "$ac_try") 2>&5
16726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16727 (exit $ac_status); }; }; then
16728 ac_header_compiler=yes
16730 echo "$as_me: failed program was
:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16733 ac_header_compiler=no
16736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16737 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16738 echo "${ECHO_T}$ac_header_compiler" >&6; }
16740 # Is the header present?
16741 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16742 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16743 cat >conftest.$ac_ext <<_ACEOF
16746 cat confdefs.h >>conftest.$ac_ext
16747 cat >>conftest.$ac_ext <<_ACEOF
16748 /* end confdefs.h. */
16749 #include <$ac_header>
16751 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16752 case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16756 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16759 grep -v '^ *+' conftest.er1 >conftest.err
16761 cat conftest.err >&5
16762 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16763 (exit $ac_status); } >/dev/null; then
16764 if test -s conftest.err; then
16765 ac_cpp_err=$ac_c_preproc_warn_flag
16766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16773 if test -z "$ac_cpp_err"; then
16774 ac_header_preproc=yes
16776 echo "$as_me: failed program was
:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16779 ac_header_preproc=no
16782 rm -f conftest.err conftest.$ac_ext
16783 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16784 echo "${ECHO_T}$ac_header_preproc" >&6; }
16786 # So? What about this header?
16787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16789 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16790 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16791 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16793 ac_header_preproc=yes
16796 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16797 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16798 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16799 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16800 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16801 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16802 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16803 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16804 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16806 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16807 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16809 ## ----------------------------------- ##
16810 ## Report this to llvmbugs@cs.uiuc.edu ##
16811 ## ----------------------------------- ##
16813 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
16816 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16817 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16818 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16819 echo $ECHO_N "(cached
) $ECHO_C" >&6
16821 eval "$as_ac_Header=\
$ac_header_preproc"
16823 ac_res=`eval echo '${'$as_ac_Header'}'`
16824 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16825 echo "${ECHO_T}$ac_res" >&6; }
16828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16829 cat >>confdefs.h <<_ACEOF
16830 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16842 { echo "$as_me:$LINENO: checking
for HUGE_VAL sanity
" >&5
16843 echo $ECHO_N "checking
for HUGE_VAL sanity...
$ECHO_C" >&6; }
16844 if test "${ac_cv_huge_val_sanity+set}" = set; then
16845 echo $ECHO_N "(cached
) $ECHO_C" >&6
16849 ac_cpp='$CXXCPP $CPPFLAGS'
16850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16854 ac_save_CXXFLAGS=$CXXFLAGS
16856 if test "$cross_compiling" = yes; then
16857 ac_cv_huge_val_sanity=yes
16859 cat >conftest.$ac_ext <<_ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16869 double x = HUGE_VAL; return x != x;
16874 rm -f conftest$ac_exeext
16875 if { (ac_try="$ac_link"
16876 case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16880 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_link") 2>&5
16883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16885 { (case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16889 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16890 (eval "$ac_try") 2>&5
16892 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16893 (exit $ac_status); }; }; then
16894 ac_cv_huge_val_sanity=yes
16896 echo "$as_me: program exited with status
$ac_status" >&5
16897 echo "$as_me: failed program was
:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16900 ( exit $ac_status )
16901 ac_cv_huge_val_sanity=no
16903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16907 CXXFLAGS=$ac_save_CXXFLAGS
16909 ac_cpp='$CPP $CPPFLAGS'
16910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16916 { echo "$as_me:$LINENO: result
: $ac_cv_huge_val_sanity" >&5
16917 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16918 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16921 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
16922 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
16923 if test "${ac_cv_type_pid_t+set}" = set; then
16924 echo $ECHO_N "(cached
) $ECHO_C" >&6
16926 cat >conftest.$ac_ext <<_ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16932 $ac_includes_default
16933 typedef pid_t ac__type_new_;
16937 if ((ac__type_new_ *) 0)
16939 if (sizeof (ac__type_new_))
16945 rm -f conftest.$ac_objext
16946 if { (ac_try="$ac_compile"
16947 case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_compile") 2>conftest.er1
16954 grep -v '^ *+' conftest.er1 >conftest.err
16956 cat conftest.err >&5
16957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16958 (exit $ac_status); } &&
16959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16960 { (case "(($ac_try" in
16961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16962 *) ac_try_echo=$ac_try;;
16964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16965 (eval "$ac_try") 2>&5
16967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16968 (exit $ac_status); }; } &&
16969 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16978 (exit $ac_status); }; }; then
16979 ac_cv_type_pid_t=yes
16981 echo "$as_me: failed program was
:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16984 ac_cv_type_pid_t=no
16987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16989 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
16990 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16991 if test $ac_cv_type_pid_t = yes; then
16995 cat >>confdefs.h <<_ACEOF
17001 { echo "$as_me:$LINENO: checking
for size_t
" >&5
17002 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
17003 if test "${ac_cv_type_size_t+set}" = set; then
17004 echo $ECHO_N "(cached
) $ECHO_C" >&6
17006 cat >conftest.$ac_ext <<_ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17012 $ac_includes_default
17013 typedef size_t ac__type_new_;
17017 if ((ac__type_new_ *) 0)
17019 if (sizeof (ac__type_new_))
17025 rm -f conftest.$ac_objext
17026 if { (ac_try="$ac_compile"
17027 case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_compile") 2>conftest.er1
17034 grep -v '^ *+' conftest.er1 >conftest.err
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17038 (exit $ac_status); } &&
17039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17040 { (case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_try") 2>&5
17047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest.$ac_objext'
17050 { (case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17055 (eval "$ac_try") 2>&5
17057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17058 (exit $ac_status); }; }; then
17059 ac_cv_type_size_t=yes
17061 echo "$as_me: failed program was
:" >&5
17062 sed 's/^/| /' conftest.$ac_ext >&5
17064 ac_cv_type_size_t=no
17067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17069 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
17070 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17071 if test $ac_cv_type_size_t = yes; then
17075 cat >>confdefs.h <<_ACEOF
17076 #define size_t unsigned int
17082 cat >>confdefs.h <<_ACEOF
17083 #define RETSIGTYPE void
17086 { echo "$as_me:$LINENO: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
17087 echo $ECHO_N "checking whether struct tm is
in sys
/time.h or
time.h...
$ECHO_C" >&6; }
17088 if test "${ac_cv_struct_tm+set}" = set; then
17089 echo $ECHO_N "(cached
) $ECHO_C" >&6
17091 cat >conftest.$ac_ext <<_ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h. */
17097 #include <sys/types.h>
17103 struct tm *tp; tp->tm_sec;
17108 rm -f conftest.$ac_objext
17109 if { (ac_try="$ac_compile"
17110 case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17114 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_compile") 2>conftest.er1
17117 grep -v '^ *+' conftest.er1 >conftest.err
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17121 (exit $ac_status); } &&
17122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17123 { (case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_try") 2>&5
17130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17131 (exit $ac_status); }; } &&
17132 { ac_try='test -s conftest.$ac_objext'
17133 { (case "(($ac_try" in
17134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135 *) ac_try_echo=$ac_try;;
17137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17138 (eval "$ac_try") 2>&5
17140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ac_cv_struct_tm=time.h
17144 echo "$as_me: failed program was
:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17147 ac_cv_struct_tm=sys/time.h
17150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17152 { echo "$as_me:$LINENO: result
: $ac_cv_struct_tm" >&5
17153 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17154 if test $ac_cv_struct_tm = sys/time.h; then
17156 cat >>confdefs.h <<\_ACEOF
17157 #define TM_IN_SYS_TIME 1
17162 { echo "$as_me:$LINENO: checking
for int64_t
" >&5
17163 echo $ECHO_N "checking
for int64_t...
$ECHO_C" >&6; }
17164 if test "${ac_cv_type_int64_t+set}" = set; then
17165 echo $ECHO_N "(cached
) $ECHO_C" >&6
17167 cat >conftest.$ac_ext <<_ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h. */
17173 $ac_includes_default
17174 typedef int64_t ac__type_new_;
17178 if ((ac__type_new_ *) 0)
17180 if (sizeof (ac__type_new_))
17186 rm -f conftest.$ac_objext
17187 if { (ac_try="$ac_compile"
17188 case "(($ac_try" in
17189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190 *) ac_try_echo=$ac_try;;
17192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17193 (eval "$ac_compile") 2>conftest.er1
17195 grep -v '^ *+' conftest.er1 >conftest.err
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17199 (exit $ac_status); } &&
17200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17201 { (case "(($ac_try" in
17202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203 *) ac_try_echo=$ac_try;;
17205 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17206 (eval "$ac_try") 2>&5
17208 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17209 (exit $ac_status); }; } &&
17210 { ac_try='test -s conftest.$ac_objext'
17211 { (case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_try") 2>&5
17218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17219 (exit $ac_status); }; }; then
17220 ac_cv_type_int64_t=yes
17222 echo "$as_me: failed program was
:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17225 ac_cv_type_int64_t=no
17228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17230 { echo "$as_me:$LINENO: result
: $ac_cv_type_int64_t" >&5
17231 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17232 if test $ac_cv_type_int64_t = yes; then
17234 cat >>confdefs.h <<_ACEOF
17235 #define HAVE_INT64_T 1
17240 { { echo "$as_me:$LINENO: error
: Type int64_t required but not found
" >&5
17241 echo "$as_me: error
: Type int64_t required but not found
" >&2;}
17242 { (exit 1); exit 1; }; }
17245 { echo "$as_me:$LINENO: checking
for uint64_t
" >&5
17246 echo $ECHO_N "checking
for uint64_t...
$ECHO_C" >&6; }
17247 if test "${ac_cv_type_uint64_t+set}" = set; then
17248 echo $ECHO_N "(cached
) $ECHO_C" >&6
17250 cat >conftest.$ac_ext <<_ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 $ac_includes_default
17257 typedef uint64_t ac__type_new_;
17261 if ((ac__type_new_ *) 0)
17263 if (sizeof (ac__type_new_))
17269 rm -f conftest.$ac_objext
17270 if { (ac_try="$ac_compile"
17271 case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17275 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17276 (eval "$ac_compile") 2>conftest.er1
17278 grep -v '^ *+' conftest.er1 >conftest.err
17280 cat conftest.err >&5
17281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17282 (exit $ac_status); } &&
17283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17284 { (case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17288 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_try") 2>&5
17291 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17292 (exit $ac_status); }; } &&
17293 { ac_try='test -s conftest.$ac_objext'
17294 { (case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_try") 2>&5
17301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17302 (exit $ac_status); }; }; then
17303 ac_cv_type_uint64_t=yes
17305 echo "$as_me: failed program was
:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17308 ac_cv_type_uint64_t=no
17311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17313 { echo "$as_me:$LINENO: result
: $ac_cv_type_uint64_t" >&5
17314 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17315 if test $ac_cv_type_uint64_t = yes; then
17317 cat >>confdefs.h <<_ACEOF
17318 #define HAVE_UINT64_T 1
17323 { echo "$as_me:$LINENO: checking
for u_int64_t
" >&5
17324 echo $ECHO_N "checking
for u_int64_t...
$ECHO_C" >&6; }
17325 if test "${ac_cv_type_u_int64_t+set}" = set; then
17326 echo $ECHO_N "(cached
) $ECHO_C" >&6
17328 cat >conftest.$ac_ext <<_ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h. */
17334 $ac_includes_default
17335 typedef u_int64_t ac__type_new_;
17339 if ((ac__type_new_ *) 0)
17341 if (sizeof (ac__type_new_))
17347 rm -f conftest.$ac_objext
17348 if { (ac_try="$ac_compile"
17349 case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_compile") 2>conftest.er1
17356 grep -v '^ *+' conftest.er1 >conftest.err
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17362 { (case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17366 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_try") 2>&5
17369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17370 (exit $ac_status); }; } &&
17371 { ac_try='test -s conftest.$ac_objext'
17372 { (case "(($ac_try" in
17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374 *) ac_try_echo=$ac_try;;
17376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_try") 2>&5
17379 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 ac_cv_type_u_int64_t=yes
17383 echo "$as_me: failed program was
:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17386 ac_cv_type_u_int64_t=no
17389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17391 { echo "$as_me:$LINENO: result
: $ac_cv_type_u_int64_t" >&5
17392 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17393 if test $ac_cv_type_u_int64_t = yes; then
17395 cat >>confdefs.h <<_ACEOF
17396 #define HAVE_U_INT64_T 1
17401 { { echo "$as_me:$LINENO: error
: Type uint64_t or u_int64_t required but not found
" >&5
17402 echo "$as_me: error
: Type uint64_t or u_int64_t required but not found
" >&2;}
17403 { (exit 1); exit 1; }; }
17417 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17419 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17420 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17421 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17422 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17423 echo $ECHO_N "(cached
) $ECHO_C" >&6
17425 cat >conftest.$ac_ext <<_ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h. */
17431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17433 #define $ac_func innocuous_$ac_func
17435 /* System header to define __stub macros and hopefully few prototypes,
17436 which can conflict with char $ac_func (); below.
17437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17438 <limits.h> exists even on freestanding compilers. */
17441 # include <limits.h>
17443 # include <assert.h>
17448 /* Override any GCC internal prototype to avoid an error.
17449 Use char because int might match the return type of a GCC
17450 builtin and then its argument prototype would still apply. */
17455 /* The GNU C library defines this for functions which it implements
17456 to always fail with ENOSYS. Some functions are actually named
17457 something starting with __ and the normal name is an alias. */
17458 #if defined __stub_$ac_func || defined __stub___$ac_func
17465 return $ac_func ();
17470 rm -f conftest.$ac_objext conftest$ac_exeext
17471 if { (ac_try="$ac_link"
17472 case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17476 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_link") 2>conftest.er1
17479 grep -v '^ *+' conftest.er1 >conftest.err
17481 cat conftest.err >&5
17482 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17483 (exit $ac_status); } &&
17484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17485 { (case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17489 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_try") 2>&5
17492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17493 (exit $ac_status); }; } &&
17494 { ac_try='test -s conftest$ac_exeext'
17495 { (case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_try") 2>&5
17502 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17503 (exit $ac_status); }; }; then
17504 eval "$as_ac_var=yes"
17506 echo "$as_me: failed program was
:" >&5
17507 sed 's/^/| /' conftest.$ac_ext >&5
17509 eval "$as_ac_var=no
"
17512 rm -f core conftest.err conftest.$ac_objext \
17513 conftest$ac_exeext conftest.$ac_ext
17515 ac_res=`eval echo '${'$as_ac_var'}'`
17516 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17517 echo "${ECHO_T}$ac_res" >&6; }
17518 if test `eval echo '${'$as_ac_var'}'` = yes; then
17519 cat >>confdefs.h <<_ACEOF
17520 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17530 for ac_func in powf fmodf strtof round
17532 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17533 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17534 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17535 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17536 echo $ECHO_N "(cached
) $ECHO_C" >&6
17538 cat >conftest.$ac_ext <<_ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17546 #define $ac_func innocuous_$ac_func
17548 /* System header to define __stub macros and hopefully few prototypes,
17549 which can conflict with char $ac_func (); below.
17550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17551 <limits.h> exists even on freestanding compilers. */
17554 # include <limits.h>
17556 # include <assert.h>
17561 /* Override any GCC internal prototype to avoid an error.
17562 Use char because int might match the return type of a GCC
17563 builtin and then its argument prototype would still apply. */
17568 /* The GNU C library defines this for functions which it implements
17569 to always fail with ENOSYS. Some functions are actually named
17570 something starting with __ and the normal name is an alias. */
17571 #if defined __stub_$ac_func || defined __stub___$ac_func
17578 return $ac_func ();
17583 rm -f conftest.$ac_objext conftest$ac_exeext
17584 if { (ac_try="$ac_link"
17585 case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_link") 2>conftest.er1
17592 grep -v '^ *+' conftest.er1 >conftest.err
17594 cat conftest.err >&5
17595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17596 (exit $ac_status); } &&
17597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17598 { (case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17602 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_try") 2>&5
17605 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17606 (exit $ac_status); }; } &&
17607 { ac_try='test -s conftest$ac_exeext'
17608 { (case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_try") 2>&5
17615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17616 (exit $ac_status); }; }; then
17617 eval "$as_ac_var=yes"
17619 echo "$as_me: failed program was
:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17622 eval "$as_ac_var=no
"
17625 rm -f core conftest.err conftest.$ac_objext \
17626 conftest$ac_exeext conftest.$ac_ext
17628 ac_res=`eval echo '${'$as_ac_var'}'`
17629 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17630 echo "${ECHO_T}$ac_res" >&6; }
17631 if test `eval echo '${'$as_ac_var'}'` = yes; then
17632 cat >>confdefs.h <<_ACEOF
17633 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17644 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17646 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17647 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17648 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17649 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17650 echo $ECHO_N "(cached
) $ECHO_C" >&6
17652 cat >conftest.$ac_ext <<_ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17660 #define $ac_func innocuous_$ac_func
17662 /* System header to define __stub macros and hopefully few prototypes,
17663 which can conflict with char $ac_func (); below.
17664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17665 <limits.h> exists even on freestanding compilers. */
17668 # include <limits.h>
17670 # include <assert.h>
17675 /* Override any GCC internal prototype to avoid an error.
17676 Use char because int might match the return type of a GCC
17677 builtin and then its argument prototype would still apply. */
17682 /* The GNU C library defines this for functions which it implements
17683 to always fail with ENOSYS. Some functions are actually named
17684 something starting with __ and the normal name is an alias. */
17685 #if defined __stub_$ac_func || defined __stub___$ac_func
17692 return $ac_func ();
17697 rm -f conftest.$ac_objext conftest$ac_exeext
17698 if { (ac_try="$ac_link"
17699 case "(($ac_try" in
17700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701 *) ac_try_echo=$ac_try;;
17703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17704 (eval "$ac_link") 2>conftest.er1
17706 grep -v '^ *+' conftest.er1 >conftest.err
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17710 (exit $ac_status); } &&
17711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712 { (case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_try") 2>&5
17719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17720 (exit $ac_status); }; } &&
17721 { ac_try='test -s conftest$ac_exeext'
17722 { (case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_try") 2>&5
17729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17730 (exit $ac_status); }; }; then
17731 eval "$as_ac_var=yes"
17733 echo "$as_me: failed program was
:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17736 eval "$as_ac_var=no
"
17739 rm -f core conftest.err conftest.$ac_objext \
17740 conftest$ac_exeext conftest.$ac_ext
17742 ac_res=`eval echo '${'$as_ac_var'}'`
17743 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17744 echo "${ECHO_T}$ac_res" >&6; }
17745 if test `eval echo '${'$as_ac_var'}'` = yes; then
17746 cat >>confdefs.h <<_ACEOF
17747 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17756 for ac_func in isatty mkdtemp mkstemp
17758 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17759 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17760 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17761 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17762 echo $ECHO_N "(cached
) $ECHO_C" >&6
17764 cat >conftest.$ac_ext <<_ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17772 #define $ac_func innocuous_$ac_func
17774 /* System header to define __stub macros and hopefully few prototypes,
17775 which can conflict with char $ac_func (); below.
17776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17777 <limits.h> exists even on freestanding compilers. */
17780 # include <limits.h>
17782 # include <assert.h>
17787 /* Override any GCC internal prototype to avoid an error.
17788 Use char because int might match the return type of a GCC
17789 builtin and then its argument prototype would still apply. */
17794 /* The GNU C library defines this for functions which it implements
17795 to always fail with ENOSYS. Some functions are actually named
17796 something starting with __ and the normal name is an alias. */
17797 #if defined __stub_$ac_func || defined __stub___$ac_func
17804 return $ac_func ();
17809 rm -f conftest.$ac_objext conftest$ac_exeext
17810 if { (ac_try="$ac_link"
17811 case "(($ac_try" in
17812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813 *) ac_try_echo=$ac_try;;
17815 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17816 (eval "$ac_link") 2>conftest.er1
17818 grep -v '^ *+' conftest.er1 >conftest.err
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17824 { (case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17828 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_try") 2>&5
17831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17832 (exit $ac_status); }; } &&
17833 { ac_try='test -s conftest$ac_exeext'
17834 { (case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17838 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_try") 2>&5
17841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 eval "$as_ac_var=yes"
17845 echo "$as_me: failed program was
:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17848 eval "$as_ac_var=no
"
17851 rm -f core conftest.err conftest.$ac_objext \
17852 conftest$ac_exeext conftest.$ac_ext
17854 ac_res=`eval echo '${'$as_ac_var'}'`
17855 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17856 echo "${ECHO_T}$ac_res" >&6; }
17857 if test `eval echo '${'$as_ac_var'}'` = yes; then
17858 cat >>confdefs.h <<_ACEOF
17859 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17871 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17873 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17874 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17875 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17876 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17877 echo $ECHO_N "(cached
) $ECHO_C" >&6
17879 cat >conftest.$ac_ext <<_ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h. */
17885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17887 #define $ac_func innocuous_$ac_func
17889 /* System header to define __stub macros and hopefully few prototypes,
17890 which can conflict with char $ac_func (); below.
17891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17892 <limits.h> exists even on freestanding compilers. */
17895 # include <limits.h>
17897 # include <assert.h>
17902 /* Override any GCC internal prototype to avoid an error.
17903 Use char because int might match the return type of a GCC
17904 builtin and then its argument prototype would still apply. */
17909 /* The GNU C library defines this for functions which it implements
17910 to always fail with ENOSYS. Some functions are actually named
17911 something starting with __ and the normal name is an alias. */
17912 #if defined __stub_$ac_func || defined __stub___$ac_func
17919 return $ac_func ();
17924 rm -f conftest.$ac_objext conftest$ac_exeext
17925 if { (ac_try="$ac_link"
17926 case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17930 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_link") 2>conftest.er1
17933 grep -v '^ *+' conftest.er1 >conftest.err
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17937 (exit $ac_status); } &&
17938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17939 { (case "(($ac_try" in
17940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17943 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17944 (eval "$ac_try") 2>&5
17946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17947 (exit $ac_status); }; } &&
17948 { ac_try='test -s conftest$ac_exeext'
17949 { (case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17953 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17954 (eval "$ac_try") 2>&5
17956 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 eval "$as_ac_var=yes"
17960 echo "$as_me: failed program was
:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17963 eval "$as_ac_var=no
"
17966 rm -f core conftest.err conftest.$ac_objext \
17967 conftest$ac_exeext conftest.$ac_ext
17969 ac_res=`eval echo '${'$as_ac_var'}'`
17970 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17971 echo "${ECHO_T}$ac_res" >&6; }
17972 if test `eval echo '${'$as_ac_var'}'` = yes; then
17973 cat >>confdefs.h <<_ACEOF
17974 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17984 for ac_func in strerror strerror_r strerror_s setenv
17986 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17987 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17988 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17989 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17990 echo $ECHO_N "(cached
) $ECHO_C" >&6
17992 cat >conftest.$ac_ext <<_ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18000 #define $ac_func innocuous_$ac_func
18002 /* System header to define __stub macros and hopefully few prototypes,
18003 which can conflict with char $ac_func (); below.
18004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18005 <limits.h> exists even on freestanding compilers. */
18008 # include <limits.h>
18010 # include <assert.h>
18015 /* Override any GCC internal prototype to avoid an error.
18016 Use char because int might match the return type of a GCC
18017 builtin and then its argument prototype would still apply. */
18022 /* The GNU C library defines this for functions which it implements
18023 to always fail with ENOSYS. Some functions are actually named
18024 something starting with __ and the normal name is an alias. */
18025 #if defined __stub_$ac_func || defined __stub___$ac_func
18032 return $ac_func ();
18037 rm -f conftest.$ac_objext conftest$ac_exeext
18038 if { (ac_try="$ac_link"
18039 case "(($ac_try" in
18040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041 *) ac_try_echo=$ac_try;;
18043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18044 (eval "$ac_link") 2>conftest.er1
18046 grep -v '^ *+' conftest.er1 >conftest.err
18048 cat conftest.err >&5
18049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18050 (exit $ac_status); } &&
18051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18052 { (case "(($ac_try" in
18053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054 *) ac_try_echo=$ac_try;;
18056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18057 (eval "$ac_try") 2>&5
18059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18060 (exit $ac_status); }; } &&
18061 { ac_try='test -s conftest$ac_exeext'
18062 { (case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18066 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18067 (eval "$ac_try") 2>&5
18069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18070 (exit $ac_status); }; }; then
18071 eval "$as_ac_var=yes"
18073 echo "$as_me: failed program was
:" >&5
18074 sed 's/^/| /' conftest.$ac_ext >&5
18076 eval "$as_ac_var=no
"
18079 rm -f core conftest.err conftest.$ac_objext \
18080 conftest$ac_exeext conftest.$ac_ext
18082 ac_res=`eval echo '${'$as_ac_var'}'`
18083 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18084 echo "${ECHO_T}$ac_res" >&6; }
18085 if test `eval echo '${'$as_ac_var'}'` = yes; then
18086 cat >>confdefs.h <<_ACEOF
18087 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18097 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18099 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18100 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18101 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18102 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18103 echo $ECHO_N "(cached
) $ECHO_C" >&6
18105 cat >conftest.$ac_ext <<_ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18113 #define $ac_func innocuous_$ac_func
18115 /* System header to define __stub macros and hopefully few prototypes,
18116 which can conflict with char $ac_func (); below.
18117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18118 <limits.h> exists even on freestanding compilers. */
18121 # include <limits.h>
18123 # include <assert.h>
18128 /* Override any GCC internal prototype to avoid an error.
18129 Use char because int might match the return type of a GCC
18130 builtin and then its argument prototype would still apply. */
18135 /* The GNU C library defines this for functions which it implements
18136 to always fail with ENOSYS. Some functions are actually named
18137 something starting with __ and the normal name is an alias. */
18138 #if defined __stub_$ac_func || defined __stub___$ac_func
18145 return $ac_func ();
18150 rm -f conftest.$ac_objext conftest$ac_exeext
18151 if { (ac_try="$ac_link"
18152 case "(($ac_try" in
18153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154 *) ac_try_echo=$ac_try;;
18156 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18157 (eval "$ac_link") 2>conftest.er1
18159 grep -v '^ *+' conftest.er1 >conftest.err
18161 cat conftest.err >&5
18162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18163 (exit $ac_status); } &&
18164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18165 { (case "(($ac_try" in
18166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167 *) ac_try_echo=$ac_try;;
18169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18170 (eval "$ac_try") 2>&5
18172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18173 (exit $ac_status); }; } &&
18174 { ac_try='test -s conftest$ac_exeext'
18175 { (case "(($ac_try" in
18176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177 *) ac_try_echo=$ac_try;;
18179 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18180 (eval "$ac_try") 2>&5
18182 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18183 (exit $ac_status); }; }; then
18184 eval "$as_ac_var=yes"
18186 echo "$as_me: failed program was
:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18189 eval "$as_ac_var=no
"
18192 rm -f core conftest.err conftest.$ac_objext \
18193 conftest$ac_exeext conftest.$ac_ext
18195 ac_res=`eval echo '${'$as_ac_var'}'`
18196 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18197 echo "${ECHO_T}$ac_res" >&6; }
18198 if test `eval echo '${'$as_ac_var'}'` = yes; then
18199 cat >>confdefs.h <<_ACEOF
18200 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18210 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18212 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18213 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18214 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18215 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18216 echo $ECHO_N "(cached
) $ECHO_C" >&6
18218 cat >conftest.$ac_ext <<_ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h. */
18224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18226 #define $ac_func innocuous_$ac_func
18228 /* System header to define __stub macros and hopefully few prototypes,
18229 which can conflict with char $ac_func (); below.
18230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18231 <limits.h> exists even on freestanding compilers. */
18234 # include <limits.h>
18236 # include <assert.h>
18241 /* Override any GCC internal prototype to avoid an error.
18242 Use char because int might match the return type of a GCC
18243 builtin and then its argument prototype would still apply. */
18248 /* The GNU C library defines this for functions which it implements
18249 to always fail with ENOSYS. Some functions are actually named
18250 something starting with __ and the normal name is an alias. */
18251 #if defined __stub_$ac_func || defined __stub___$ac_func
18258 return $ac_func ();
18263 rm -f conftest.$ac_objext conftest$ac_exeext
18264 if { (ac_try="$ac_link"
18265 case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18269 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_link") 2>conftest.er1
18272 grep -v '^ *+' conftest.er1 >conftest.err
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18278 { (case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18282 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_try") 2>&5
18285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest$ac_exeext'
18288 { (case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18292 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_try") 2>&5
18295 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 eval "$as_ac_var=yes"
18299 echo "$as_me: failed program was
:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 eval "$as_ac_var=no
"
18305 rm -f core conftest.err conftest.$ac_objext \
18306 conftest$ac_exeext conftest.$ac_ext
18308 ac_res=`eval echo '${'$as_ac_var'}'`
18309 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18310 echo "${ECHO_T}$ac_res" >&6; }
18311 if test `eval echo '${'$as_ac_var'}'` = yes; then
18312 cat >>confdefs.h <<_ACEOF
18313 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18319 { echo "$as_me:$LINENO: checking
if printf has the
%a format character
" >&5
18320 echo $ECHO_N "checking
if printf has the
%a format character...
$ECHO_C" >&6; }
18321 if test "${llvm_cv_c_printf_a+set}" = set; then
18322 echo $ECHO_N "(cached
) $ECHO_C" >&6
18325 ac_cpp='$CPP $CPPFLAGS'
18326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18330 if test "$cross_compiling" = yes; then
18331 llvmac_cv_c_printf_a=no
18333 cat >conftest.$ac_ext <<_ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h. */
18342 #include <stdlib.h>
18348 volatile double A, B;
18352 sprintf(Buffer, "%a
", A);
18356 if (A != 0x1.999999999999ap-4)
18363 rm -f conftest$ac_exeext
18364 if { (ac_try="$ac_link"
18365 case "(($ac_try" in
18366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18369 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_link") 2>&5
18372 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18374 { (case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_try") 2>&5
18381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18382 (exit $ac_status); }; }; then
18383 llvm_cv_c_printf_a=yes
18385 echo "$as_me: program exited with status
$ac_status" >&5
18386 echo "$as_me: failed program was
:" >&5
18387 sed 's/^/| /' conftest.$ac_ext >&5
18389 ( exit $ac_status )
18390 llvmac_cv_c_printf_a=no
18392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18397 ac_cpp='$CPP $CPPFLAGS'
18398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18403 { echo "$as_me:$LINENO: result
: $llvm_cv_c_printf_a" >&5
18404 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18405 if test "$llvm_cv_c_printf_a" = "yes"; then
18407 cat >>confdefs.h <<\_ACEOF
18408 #define HAVE_PRINTF_A 1
18414 { echo "$as_me:$LINENO: checking
for srand48
/lrand48
/drand48
in <stdlib.h
>" >&5
18415 echo $ECHO_N "checking
for srand48
/lrand48
/drand48
in <stdlib.h
>...
$ECHO_C" >&6; }
18416 if test "${ac_cv_func_rand48+set}" = set; then
18417 echo $ECHO_N "(cached
) $ECHO_C" >&6
18420 ac_cpp='$CXXCPP $CPPFLAGS'
18421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18425 cat >conftest.$ac_ext <<_ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18431 #include <stdlib.h>
18435 srand48(0);lrand48();drand48();
18440 rm -f conftest.$ac_objext
18441 if { (ac_try="$ac_compile"
18442 case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_compile") 2>conftest.er1
18449 grep -v '^ *+' conftest.er1 >conftest.err
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18455 { (case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18459 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_try") 2>&5
18462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest.$ac_objext'
18465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18469 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_try") 2>&5
18472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474 ac_cv_func_rand48=yes
18476 echo "$as_me: failed program was
:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18479 ac_cv_func_rand48=no
18482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18484 ac_cpp='$CPP $CPPFLAGS'
18485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18490 { echo "$as_me:$LINENO: result
: $ac_cv_func_rand48" >&5
18491 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18493 if test "$ac_cv_func_rand48" = "yes" ; then
18495 cat >>confdefs.h <<\_ACEOF
18496 #define HAVE_RAND48 1
18503 { echo "$as_me:$LINENO: checking
for isnan
in <math.h
>" >&5
18504 echo $ECHO_N "checking
for isnan
in <math.h
>...
$ECHO_C" >&6; }
18505 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18506 echo $ECHO_N "(cached
) $ECHO_C" >&6
18509 ac_cpp='$CXXCPP $CPPFLAGS'
18510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18514 cat >conftest.$ac_ext <<_ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18529 rm -f conftest.$ac_objext
18530 if { (ac_try="$ac_compile"
18531 case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_compile") 2>conftest.er1
18538 grep -v '^ *+' conftest.er1 >conftest.err
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18544 { (case "(($ac_try" in
18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546 *) ac_try_echo=$ac_try;;
18548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18549 (eval "$ac_try") 2>&5
18551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18552 (exit $ac_status); }; } &&
18553 { ac_try='test -s conftest.$ac_objext'
18554 { (case "(($ac_try" in
18555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556 *) ac_try_echo=$ac_try;;
18558 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18559 (eval "$ac_try") 2>&5
18561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18562 (exit $ac_status); }; }; then
18563 ac_cv_func_isnan_in_math_h=yes
18565 echo "$as_me: failed program was
:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18568 ac_cv_func_isnan_in_math_h=no
18571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18573 ac_cpp='$CPP $CPPFLAGS'
18574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18579 { echo "$as_me:$LINENO: result
: $ac_cv_func_isnan_in_math_h" >&5
18580 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18583 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18585 cat >>confdefs.h <<\_ACEOF
18586 #define HAVE_ISNAN_IN_MATH_H 1
18591 { echo "$as_me:$LINENO: checking
for isnan
in <cmath
>" >&5
18592 echo $ECHO_N "checking
for isnan
in <cmath
>...
$ECHO_C" >&6; }
18593 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18594 echo $ECHO_N "(cached
) $ECHO_C" >&6
18597 ac_cpp='$CXXCPP $CPPFLAGS'
18598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18602 cat >conftest.$ac_ext <<_ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h. */
18617 rm -f conftest.$ac_objext
18618 if { (ac_try="$ac_compile"
18619 case "(($ac_try" in
18620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621 *) ac_try_echo=$ac_try;;
18623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18624 (eval "$ac_compile") 2>conftest.er1
18626 grep -v '^ *+' conftest.er1 >conftest.err
18628 cat conftest.err >&5
18629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18630 (exit $ac_status); } &&
18631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18632 { (case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18636 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_try") 2>&5
18639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18640 (exit $ac_status); }; } &&
18641 { ac_try='test -s conftest.$ac_objext'
18642 { (case "(($ac_try" in
18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644 *) ac_try_echo=$ac_try;;
18646 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_try") 2>&5
18649 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18650 (exit $ac_status); }; }; then
18651 ac_cv_func_isnan_in_cmath=yes
18653 echo "$as_me: failed program was
:" >&5
18654 sed 's/^/| /' conftest.$ac_ext >&5
18656 ac_cv_func_isnan_in_cmath=no
18659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18661 ac_cpp='$CPP $CPPFLAGS'
18662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18667 { echo "$as_me:$LINENO: result
: $ac_cv_func_isnan_in_cmath" >&5
18668 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18670 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18672 cat >>confdefs.h <<\_ACEOF
18673 #define HAVE_ISNAN_IN_CMATH 1
18678 { echo "$as_me:$LINENO: checking
for std
::isnan
in <cmath
>" >&5
18679 echo $ECHO_N "checking
for std
::isnan
in <cmath
>...
$ECHO_C" >&6; }
18680 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18681 echo $ECHO_N "(cached
) $ECHO_C" >&6
18684 ac_cpp='$CXXCPP $CPPFLAGS'
18685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18689 cat >conftest.$ac_ext <<_ACEOF
18692 cat confdefs.h >>conftest.$ac_ext
18693 cat >>conftest.$ac_ext <<_ACEOF
18694 /* end confdefs.h. */
18699 float f; std::isnan(f);
18704 rm -f conftest.$ac_objext
18705 if { (ac_try="$ac_compile"
18706 case "(($ac_try" in
18707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708 *) ac_try_echo=$ac_try;;
18710 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18711 (eval "$ac_compile") 2>conftest.er1
18713 grep -v '^ *+' conftest.er1 >conftest.err
18715 cat conftest.err >&5
18716 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18717 (exit $ac_status); } &&
18718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18719 { (case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_try") 2>&5
18726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18727 (exit $ac_status); }; } &&
18728 { ac_try='test -s conftest.$ac_objext'
18729 { (case "(($ac_try" in
18730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731 *) ac_try_echo=$ac_try;;
18733 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18734 (eval "$ac_try") 2>&5
18736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18737 (exit $ac_status); }; }; then
18738 ac_cv_func_std_isnan_in_cmath=yes
18740 echo "$as_me: failed program was
:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18743 ac_cv_func_std_isnan_in_cmath=no
18746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18748 ac_cpp='$CPP $CPPFLAGS'
18749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18754 { echo "$as_me:$LINENO: result
: $ac_cv_func_std_isnan_in_cmath" >&5
18755 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18757 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18759 cat >>confdefs.h <<\_ACEOF
18760 #define HAVE_STD_ISNAN_IN_CMATH 1
18766 { echo "$as_me:$LINENO: checking
for isinf
in <math.h
>" >&5
18767 echo $ECHO_N "checking
for isinf
in <math.h
>...
$ECHO_C" >&6; }
18768 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18769 echo $ECHO_N "(cached
) $ECHO_C" >&6
18772 ac_cpp='$CXXCPP $CPPFLAGS'
18773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18777 cat >conftest.$ac_ext <<_ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18792 rm -f conftest.$ac_objext
18793 if { (ac_try="$ac_compile"
18794 case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18798 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_compile") 2>conftest.er1
18801 grep -v '^ *+' conftest.er1 >conftest.err
18803 cat conftest.err >&5
18804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18805 (exit $ac_status); } &&
18806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18807 { (case "(($ac_try" in
18808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809 *) ac_try_echo=$ac_try;;
18811 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18812 (eval "$ac_try") 2>&5
18814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18815 (exit $ac_status); }; } &&
18816 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18826 ac_cv_func_isinf_in_math_h=yes
18828 echo "$as_me: failed program was
:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18831 ac_cv_func_isinf_in_math_h=no
18834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18836 ac_cpp='$CPP $CPPFLAGS'
18837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18842 { echo "$as_me:$LINENO: result
: $ac_cv_func_isinf_in_math_h" >&5
18843 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18845 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18847 cat >>confdefs.h <<\_ACEOF
18848 #define HAVE_ISINF_IN_MATH_H 1
18853 { echo "$as_me:$LINENO: checking
for isinf
in <cmath
>" >&5
18854 echo $ECHO_N "checking
for isinf
in <cmath
>...
$ECHO_C" >&6; }
18855 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18856 echo $ECHO_N "(cached
) $ECHO_C" >&6
18859 ac_cpp='$CXXCPP $CPPFLAGS'
18860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18864 cat >conftest.$ac_ext <<_ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h. */
18879 rm -f conftest.$ac_objext
18880 if { (ac_try="$ac_compile"
18881 case "(($ac_try" in
18882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18886 (eval "$ac_compile") 2>conftest.er1
18888 grep -v '^ *+' conftest.er1 >conftest.err
18890 cat conftest.err >&5
18891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18892 (exit $ac_status); } &&
18893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18894 { (case "(($ac_try" in
18895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896 *) ac_try_echo=$ac_try;;
18898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18899 (eval "$ac_try") 2>&5
18901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18902 (exit $ac_status); }; } &&
18903 { ac_try='test -s conftest.$ac_objext'
18904 { (case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_try") 2>&5
18911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18912 (exit $ac_status); }; }; then
18913 ac_cv_func_isinf_in_cmath=yes
18915 echo "$as_me: failed program was
:" >&5
18916 sed 's/^/| /' conftest.$ac_ext >&5
18918 ac_cv_func_isinf_in_cmath=no
18921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18923 ac_cpp='$CPP $CPPFLAGS'
18924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18929 { echo "$as_me:$LINENO: result
: $ac_cv_func_isinf_in_cmath" >&5
18930 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18932 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18934 cat >>confdefs.h <<\_ACEOF
18935 #define HAVE_ISINF_IN_CMATH 1
18940 { echo "$as_me:$LINENO: checking
for std
::isinf
in <cmath
>" >&5
18941 echo $ECHO_N "checking
for std
::isinf
in <cmath
>...
$ECHO_C" >&6; }
18942 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18943 echo $ECHO_N "(cached
) $ECHO_C" >&6
18946 ac_cpp='$CXXCPP $CPPFLAGS'
18947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18951 cat >conftest.$ac_ext <<_ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h. */
18961 float f; std::isinf(f)}
18966 rm -f conftest.$ac_objext
18967 if { (ac_try="$ac_compile"
18968 case "(($ac_try" in
18969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970 *) ac_try_echo=$ac_try;;
18972 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18973 (eval "$ac_compile") 2>conftest.er1
18975 grep -v '^ *+' conftest.er1 >conftest.err
18977 cat conftest.err >&5
18978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18979 (exit $ac_status); } &&
18980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18981 { (case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_try") 2>&5
18988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18989 (exit $ac_status); }; } &&
18990 { ac_try='test -s conftest.$ac_objext'
18991 { (case "(($ac_try" in
18992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_try") 2>&5
18998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18999 (exit $ac_status); }; }; then
19000 ac_cv_func_std_isinf_in_cmath=yes
19002 echo "$as_me: failed program was
:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19005 ac_cv_func_std_isinf_in_cmath=no
19008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19010 ac_cpp='$CPP $CPPFLAGS'
19011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19016 { echo "$as_me:$LINENO: result
: $ac_cv_func_std_isinf_in_cmath" >&5
19017 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19019 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19021 cat >>confdefs.h <<\_ACEOF
19022 #define HAVE_STD_ISINF_IN_CMATH 1
19027 { echo "$as_me:$LINENO: checking
for finite
in <ieeefp.h
>" >&5
19028 echo $ECHO_N "checking
for finite
in <ieeefp.h
>...
$ECHO_C" >&6; }
19029 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19030 echo $ECHO_N "(cached
) $ECHO_C" >&6
19033 ac_cpp='$CXXCPP $CPPFLAGS'
19034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19038 cat >conftest.$ac_ext <<_ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19044 #include <ieeefp.h>
19048 float f; finite(f);
19053 rm -f conftest.$ac_objext
19054 if { (ac_try="$ac_compile"
19055 case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_compile") 2>conftest.er1
19062 grep -v '^ *+' conftest.er1 >conftest.err
19064 cat conftest.err >&5
19065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19066 (exit $ac_status); } &&
19067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19068 { (case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19072 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_try") 2>&5
19075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest.$ac_objext'
19078 { (case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19082 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19083 (eval "$ac_try") 2>&5
19085 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19086 (exit $ac_status); }; }; then
19087 ac_cv_func_finite_in_ieeefp_h=yes
19089 echo "$as_me: failed program was
:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19092 ac_cv_func_finite_in_ieeefp_h=no
19095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19097 ac_cpp='$CPP $CPPFLAGS'
19098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19103 { echo "$as_me:$LINENO: result
: $ac_cv_func_finite_in_ieeefp_h" >&5
19104 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19106 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19108 cat >>confdefs.h <<\_ACEOF
19109 #define HAVE_FINITE_IN_IEEEFP_H 1
19116 if test "$llvm_cv_platform_type" = "Unix
" ; then
19119 for ac_header in stdlib.h unistd.h
19121 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19122 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19123 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19124 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19125 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19126 echo $ECHO_N "(cached
) $ECHO_C" >&6
19128 ac_res=`eval echo '${'$as_ac_Header'}'`
19129 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19130 echo "${ECHO_T}$ac_res" >&6; }
19132 # Is the header compilable?
19133 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19134 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19135 cat >conftest.$ac_ext <<_ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 $ac_includes_default
19142 #include <$ac_header>
19144 rm -f conftest.$ac_objext
19145 if { (ac_try="$ac_compile"
19146 case "(($ac_try" in
19147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148 *) ac_try_echo=$ac_try;;
19150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19151 (eval "$ac_compile") 2>conftest.er1
19153 grep -v '^ *+' conftest.er1 >conftest.err
19155 cat conftest.err >&5
19156 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19157 (exit $ac_status); } &&
19158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19159 { (case "(($ac_try" in
19160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19161 *) ac_try_echo=$ac_try;;
19163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19164 (eval "$ac_try") 2>&5
19166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19167 (exit $ac_status); }; } &&
19168 { ac_try='test -s conftest.$ac_objext'
19169 { (case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19173 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_try") 2>&5
19176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19177 (exit $ac_status); }; }; then
19178 ac_header_compiler=yes
19180 echo "$as_me: failed program was
:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19183 ac_header_compiler=no
19186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19187 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19188 echo "${ECHO_T}$ac_header_compiler" >&6; }
19190 # Is the header present?
19191 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19192 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19193 cat >conftest.$ac_ext <<_ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19199 #include <$ac_header>
19201 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19202 case "(($ac_try" in
19203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204 *) ac_try_echo=$ac_try;;
19206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19207 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19209 grep -v '^ *+' conftest.er1 >conftest.err
19211 cat conftest.err >&5
19212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19213 (exit $ac_status); } >/dev/null; then
19214 if test -s conftest.err; then
19215 ac_cpp_err=$ac_c_preproc_warn_flag
19216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19223 if test -z "$ac_cpp_err"; then
19224 ac_header_preproc=yes
19226 echo "$as_me: failed program was
:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19229 ac_header_preproc=no
19232 rm -f conftest.err conftest.$ac_ext
19233 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19234 echo "${ECHO_T}$ac_header_preproc" >&6; }
19236 # So? What about this header?
19237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19239 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19240 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19241 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19243 ac_header_preproc=yes
19246 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19247 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19248 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19249 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19250 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19251 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19252 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19253 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19254 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19256 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19257 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19259 ## ----------------------------------- ##
19260 ## Report this to llvmbugs@cs.uiuc.edu ##
19261 ## ----------------------------------- ##
19263 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
19266 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19267 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19268 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19269 echo $ECHO_N "(cached
) $ECHO_C" >&6
19271 eval "$as_ac_Header=\
$ac_header_preproc"
19273 ac_res=`eval echo '${'$as_ac_Header'}'`
19274 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19275 echo "${ECHO_T}$ac_res" >&6; }
19278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19279 cat >>confdefs.h <<_ACEOF
19280 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19288 for ac_func in getpagesize
19290 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19291 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19292 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19293 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19294 echo $ECHO_N "(cached
) $ECHO_C" >&6
19296 cat >conftest.$ac_ext <<_ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h. */
19302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19304 #define $ac_func innocuous_$ac_func
19306 /* System header to define __stub macros and hopefully few prototypes,
19307 which can conflict with char $ac_func (); below.
19308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19309 <limits.h> exists even on freestanding compilers. */
19312 # include <limits.h>
19314 # include <assert.h>
19319 /* Override any GCC internal prototype to avoid an error.
19320 Use char because int might match the return type of a GCC
19321 builtin and then its argument prototype would still apply. */
19326 /* The GNU C library defines this for functions which it implements
19327 to always fail with ENOSYS. Some functions are actually named
19328 something starting with __ and the normal name is an alias. */
19329 #if defined __stub_$ac_func || defined __stub___$ac_func
19336 return $ac_func ();
19341 rm -f conftest.$ac_objext conftest$ac_exeext
19342 if { (ac_try="$ac_link"
19343 case "(($ac_try" in
19344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345 *) ac_try_echo=$ac_try;;
19347 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19348 (eval "$ac_link") 2>conftest.er1
19350 grep -v '^ *+' conftest.er1 >conftest.err
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19354 (exit $ac_status); } &&
19355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19356 { (case "(($ac_try" in
19357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358 *) ac_try_echo=$ac_try;;
19360 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19361 (eval "$ac_try") 2>&5
19363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19364 (exit $ac_status); }; } &&
19365 { ac_try='test -s conftest$ac_exeext'
19366 { (case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19371 (eval "$ac_try") 2>&5
19373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19374 (exit $ac_status); }; }; then
19375 eval "$as_ac_var=yes"
19377 echo "$as_me: failed program was
:" >&5
19378 sed 's/^/| /' conftest.$ac_ext >&5
19380 eval "$as_ac_var=no
"
19383 rm -f core conftest.err conftest.$ac_objext \
19384 conftest$ac_exeext conftest.$ac_ext
19386 ac_res=`eval echo '${'$as_ac_var'}'`
19387 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19388 echo "${ECHO_T}$ac_res" >&6; }
19389 if test `eval echo '${'$as_ac_var'}'` = yes; then
19390 cat >>confdefs.h <<_ACEOF
19391 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19397 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
19398 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
19399 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19400 echo $ECHO_N "(cached
) $ECHO_C" >&6
19402 if test "$cross_compiling" = yes; then
19403 ac_cv_func_mmap_fixed_mapped=no
19405 cat >conftest.$ac_ext <<_ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h. */
19411 $ac_includes_default
19412 /* malloc might have been renamed as rpl_malloc. */
19415 /* Thanks to Mike Haertel and Jim Avera for this test.
19416 Here is a matrix of mmap possibilities:
19417 mmap private not fixed
19418 mmap private fixed at somewhere currently unmapped
19419 mmap private fixed at somewhere already mapped
19420 mmap shared not fixed
19421 mmap shared fixed at somewhere currently unmapped
19422 mmap shared fixed at somewhere already mapped
19423 For private mappings, we should verify that changes cannot be read()
19424 back from the file, nor mmap's back from the file at a different
19425 address. (There have been systems where private was not correctly
19426 implemented like the infamous i386 svr4.0, and systems where the
19427 VM page cache was not coherent with the file system buffer cache
19428 like early versions of FreeBSD and possibly contemporary NetBSD.)
19429 For shared mappings, we should conversely verify that changes get
19430 propagated back to all the places they're supposed to be.
19432 Grep wants private fixed already mapped.
19433 The main things grep needs to know about mmap are:
19434 * does it exist and is it safe to write into the mmap'd area
19435 * how to use it (BSD variants) */
19438 #include <sys/mman.h>
19440 #if !STDC_HEADERS && !HAVE_STDLIB_H
19444 /* This mess was copied from the GNU getpagesize.h. */
19445 #if !HAVE_GETPAGESIZE
19446 /* Assume that all systems that can run configure have sys/param.h. */
19447 # if !HAVE_SYS_PARAM_H
19448 # define HAVE_SYS_PARAM_H 1
19451 # ifdef _SC_PAGESIZE
19452 # define getpagesize() sysconf(_SC_PAGESIZE)
19453 # else /* no _SC_PAGESIZE */
19454 # if HAVE_SYS_PARAM_H
19455 # include <sys/param.h>
19456 # ifdef EXEC_PAGESIZE
19457 # define getpagesize() EXEC_PAGESIZE
19458 # else /* no EXEC_PAGESIZE */
19460 # define getpagesize() NBPG * CLSIZE
19463 # endif /* no CLSIZE */
19464 # else /* no NBPG */
19466 # define getpagesize() NBPC
19467 # else /* no NBPC */
19469 # define getpagesize() PAGESIZE
19470 # endif /* PAGESIZE */
19471 # endif /* no NBPC */
19472 # endif /* no NBPG */
19473 # endif /* no EXEC_PAGESIZE */
19474 # else /* no HAVE_SYS_PARAM_H */
19475 # define getpagesize() 8192 /* punt totally */
19476 # endif /* no HAVE_SYS_PARAM_H */
19477 # endif /* no _SC_PAGESIZE */
19479 #endif /* no HAVE_GETPAGESIZE */
19484 char *data, *data2, *data3;
19488 pagesize = getpagesize ();
19490 /* First, make a file with some known garbage in it. */
19491 data = (char *) malloc (pagesize);
19494 for (i = 0; i < pagesize; ++i)
19495 *(data + i) = rand ();
19497 fd = creat ("conftest.mmap
", 0600);
19500 if (write (fd, data, pagesize) != pagesize)
19504 /* Next, try to mmap the file at a fixed address which already has
19505 something else allocated at it. If we can, also make sure that
19506 we see the same garbage. */
19507 fd = open ("conftest.mmap
", O_RDWR);
19510 data2 = (char *) malloc (2 * pagesize);
19513 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19514 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19515 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19517 for (i = 0; i < pagesize; ++i)
19518 if (*(data + i) != *(data2 + i))
19521 /* Finally, make sure that changes to the mapped area do not
19522 percolate back to the file as seen by read(). (This is a bug on
19523 some variants of i386 svr4.0.) */
19524 for (i = 0; i < pagesize; ++i)
19525 *(data2 + i) = *(data2 + i) + 1;
19526 data3 = (char *) malloc (pagesize);
19529 if (read (fd, data3, pagesize) != pagesize)
19531 for (i = 0; i < pagesize; ++i)
19532 if (*(data + i) != *(data3 + i))
19538 rm -f conftest$ac_exeext
19539 if { (ac_try="$ac_link"
19540 case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19544 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_link") 2>&5
19547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19549 { (case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19553 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_try") 2>&5
19556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19557 (exit $ac_status); }; }; then
19558 ac_cv_func_mmap_fixed_mapped=yes
19560 echo "$as_me: program exited with status
$ac_status" >&5
19561 echo "$as_me: failed program was
:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19564 ( exit $ac_status )
19565 ac_cv_func_mmap_fixed_mapped=no
19567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19572 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
19573 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19574 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19576 cat >>confdefs.h <<\_ACEOF
19577 #define HAVE_MMAP 1
19581 rm -f conftest.mmap
19583 { echo "$as_me:$LINENO: checking
for mmap of files
" >&5
19584 echo $ECHO_N "checking
for mmap of files...
$ECHO_C" >&6; }
19585 if test "${ac_cv_func_mmap_file+set}" = set; then
19586 echo $ECHO_N "(cached
) $ECHO_C" >&6
19589 ac_cpp='$CPP $CPPFLAGS'
19590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19594 if test "$cross_compiling" = yes; then
19595 ac_cv_func_mmap_file=no
19597 cat >conftest.$ac_ext <<_ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19605 #include <sys/types.h>
19606 #include <sys/mman.h>
19614 fd = creat ("foo
",0777);
19615 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19617 return (fd != (int) MAP_FAILED);
19622 rm -f conftest$ac_exeext
19623 if { (ac_try="$ac_link"
19624 case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_link") 2>&5
19631 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19633 { (case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_try") 2>&5
19640 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19641 (exit $ac_status); }; }; then
19642 ac_cv_func_mmap_file=yes
19644 echo "$as_me: program exited with status
$ac_status" >&5
19645 echo "$as_me: failed program was
:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19648 ( exit $ac_status )
19649 ac_cv_func_mmap_file=no
19651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19656 ac_cpp='$CPP $CPPFLAGS'
19657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19663 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_file" >&5
19664 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19665 if test "$ac_cv_func_mmap_file" = yes; then
19667 cat >>confdefs.h <<\_ACEOF
19668 #define HAVE_MMAP_FILE
19675 { echo "$as_me:$LINENO: checking
if /dev
/zero is needed
for mmap
" >&5
19676 echo $ECHO_N "checking
if /dev
/zero is needed
for mmap...
$ECHO_C" >&6; }
19677 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19678 echo $ECHO_N "(cached
) $ECHO_C" >&6
19680 if test "$llvm_cv_os_type" = "Interix
" ; then
19681 ac_cv_need_dev_zero_for_mmap=yes
19683 ac_cv_need_dev_zero_for_mmap=no
19687 { echo "$as_me:$LINENO: result
: $ac_cv_need_dev_zero_for_mmap" >&5
19688 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19689 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19691 cat >>confdefs.h <<\_ACEOF
19692 #define NEED_DEV_ZERO_FOR_MMAP 1
19697 if test "$ac_cv_func_mmap_fixed_mapped" = "no
"
19699 { echo "$as_me:$LINENO: WARNING
: mmap
() of a fixed address required but not supported
" >&5
19700 echo "$as_me: WARNING
: mmap
() of a fixed address required but not supported
" >&2;}
19702 if test "$ac_cv_func_mmap_file" = "no
"
19704 { echo "$as_me:$LINENO: WARNING
: mmap
() of files required but not found
" >&5
19705 echo "$as_me: WARNING
: mmap
() of files required but not found
" >&2;}
19709 { echo "$as_me:$LINENO: checking
for GCC atomic builtins
" >&5
19710 echo $ECHO_N "checking
for GCC atomic builtins...
$ECHO_C" >&6; }
19711 cat >conftest.$ac_ext <<_ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19718 volatile unsigned long val = 1;
19719 __sync_synchronize();
19720 __sync_val_compare_and_swap(&val, 1, 0);
19721 __sync_add_and_fetch(&val, 1);
19722 __sync_sub_and_fetch(&val, 1);
19727 rm -f conftest.$ac_objext conftest$ac_exeext
19728 if { (ac_try="$ac_link"
19729 case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19733 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_link") 2>conftest.er1
19736 grep -v '^ *+' conftest.er1 >conftest.err
19738 cat conftest.err >&5
19739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19740 (exit $ac_status); } &&
19741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19742 { (case "(($ac_try" in
19743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19744 *) ac_try_echo=$ac_try;;
19746 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19747 (eval "$ac_try") 2>&5
19749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19750 (exit $ac_status); }; } &&
19751 { ac_try='test -s conftest$ac_exeext'
19752 { (case "(($ac_try" in
19753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754 *) ac_try_echo=$ac_try;;
19756 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19757 (eval "$ac_try") 2>&5
19759 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19760 (exit $ac_status); }; }; then
19761 { echo "$as_me:$LINENO: result
: yes" >&5
19762 echo "${ECHO_T}yes" >&6; }
19764 cat >>confdefs.h <<\_ACEOF
19765 #define LLVM_MULTITHREADED 1
19769 echo "$as_me: failed program was
:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19772 { echo "$as_me:$LINENO: result
: no
" >&5
19773 echo "${ECHO_T}no
" >&6; }
19775 cat >>confdefs.h <<\_ACEOF
19776 #define LLVM_MULTITHREADED 0
19779 { echo "$as_me:$LINENO: WARNING
: LLVM will be built thread-unsafe because atomic builtins are missing
" >&5
19780 echo "$as_me: WARNING
: LLVM will be built thread-unsafe because atomic builtins are missing
" >&2;}
19783 rm -f core conftest.err conftest.$ac_objext \
19784 conftest$ac_exeext conftest.$ac_ext
19788 if test "$llvm_cv_os_type" = "Linux
" -a "$llvm_cv_target_arch" = "x86_64
" ; then
19789 { echo "$as_me:$LINENO: checking
for 32-bit userspace on
64-bit system
" >&5
19790 echo $ECHO_N "checking
for 32-bit userspace on
64-bit system...
$ECHO_C" >&6; }
19791 if test "${llvm_cv_linux_mixed+set}" = set; then
19792 echo $ECHO_N "(cached
) $ECHO_C" >&6
19795 ac_cpp='$CPP $CPPFLAGS'
19796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19800 cat >conftest.$ac_ext <<_ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h. */
19807 error: Not x86-64 even if uname says so!
19818 rm -f conftest.$ac_objext
19819 if { (ac_try="$ac_compile"
19820 case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19824 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_compile") 2>conftest.er1
19827 grep -v '^ *+' conftest.er1 >conftest.err
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19833 { (case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_try") 2>&5
19840 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19841 (exit $ac_status); }; } &&
19842 { ac_try='test -s conftest.$ac_objext'
19843 { (case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19847 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_try") 2>&5
19850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19851 (exit $ac_status); }; }; then
19852 llvm_cv_linux_mixed=no
19854 echo "$as_me: failed program was
:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19857 llvm_cv_linux_mixed=yes
19860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
19869 { echo "$as_me:$LINENO: result
: $llvm_cv_linux_mixed" >&5
19870 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19872 if test "$llvm_cv_linux_mixed" = "yes"; then
19873 llvm_cv_target_arch="x86
"
19879 for ac_func in __dso_handle
19881 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19882 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19883 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19884 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19885 echo $ECHO_N "(cached
) $ECHO_C" >&6
19887 cat >conftest.$ac_ext <<_ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19895 #define $ac_func innocuous_$ac_func
19897 /* System header to define __stub macros and hopefully few prototypes,
19898 which can conflict with char $ac_func (); below.
19899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19900 <limits.h> exists even on freestanding compilers. */
19903 # include <limits.h>
19905 # include <assert.h>
19910 /* Override any GCC internal prototype to avoid an error.
19911 Use char because int might match the return type of a GCC
19912 builtin and then its argument prototype would still apply. */
19917 /* The GNU C library defines this for functions which it implements
19918 to always fail with ENOSYS. Some functions are actually named
19919 something starting with __ and the normal name is an alias. */
19920 #if defined __stub_$ac_func || defined __stub___$ac_func
19927 return $ac_func ();
19932 rm -f conftest.$ac_objext conftest$ac_exeext
19933 if { (ac_try="$ac_link"
19934 case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19938 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19939 (eval "$ac_link") 2>conftest.er1
19941 grep -v '^ *+' conftest.er1 >conftest.err
19943 cat conftest.err >&5
19944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19945 (exit $ac_status); } &&
19946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19947 { (case "(($ac_try" in
19948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949 *) ac_try_echo=$ac_try;;
19951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19952 (eval "$ac_try") 2>&5
19954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19955 (exit $ac_status); }; } &&
19956 { ac_try='test -s conftest$ac_exeext'
19957 { (case "(($ac_try" in
19958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959 *) ac_try_echo=$ac_try;;
19961 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19962 (eval "$ac_try") 2>&5
19964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19965 (exit $ac_status); }; }; then
19966 eval "$as_ac_var=yes"
19968 echo "$as_me: failed program was
:" >&5
19969 sed 's/^/| /' conftest.$ac_ext >&5
19971 eval "$as_ac_var=no
"
19974 rm -f core conftest.err conftest.$ac_objext \
19975 conftest$ac_exeext conftest.$ac_ext
19977 ac_res=`eval echo '${'$as_ac_var'}'`
19978 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19979 echo "${ECHO_T}$ac_res" >&6; }
19980 if test `eval echo '${'$as_ac_var'}'` = yes; then
19981 cat >>confdefs.h <<_ACEOF
19982 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19989 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane
" >&5
19990 echo $ECHO_N "checking whether llvm-gcc is sane...
$ECHO_C" >&6; }
19991 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19992 echo $ECHO_N "(cached
) $ECHO_C" >&6
19994 llvm_cv_llvmgcc_sanity="no
"
19995 if test -x "$LLVMGCC" ; then
19996 cp /dev/null conftest.c
19997 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19998 grep 'target datalayout =' > /dev/null 2>&1
19999 if test $? -eq 0 ; then
20000 llvm_cv_llvmgcc_sanity="yes"
20005 { echo "$as_me:$LINENO: result
: $llvm_cv_llvmgcc_sanity" >&5
20006 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20008 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20009 { echo "$as_me:$LINENO: checking llvm-gcc component support
" >&5
20010 echo $ECHO_N "checking llvm-gcc component support...
$ECHO_C" >&6; }
20011 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20012 LLVMCC1=$llvmcc1path
20014 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20015 LLVMCC1PLUS=$llvmcc1pluspath
20017 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20018 LLVMGCCDIR=$llvmgccdir
20020 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20021 LLVMGCC_LANGS=$llvmgcclangs
20023 { echo "$as_me:$LINENO: result
: ok
" >&5
20024 echo "${ECHO_T}ok
" >&6; }
20027 SHLIBEXT=$libltdl_cv_shlibext
20030 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20033 # Translate the various configuration directories and other basic
20034 # information into substitutions that will end up in Makefile.config.in
20035 # that these configured values can be used by the makefiles
20036 if test "${prefix}" = "NONE
" ; then
20037 prefix="/usr
/local"
20039 eval LLVM_PREFIX="${prefix}";
20040 eval LLVM_BINDIR="${prefix}/bin
";
20041 eval LLVM_LIBDIR="${prefix}/lib
";
20042 eval LLVM_DATADIR="${prefix}/share
/llvm
";
20043 eval LLVM_DOCSDIR="${prefix}/share
/doc
/llvm
";
20044 eval LLVM_ETCDIR="${prefix}/etc
/llvm
";
20045 eval LLVM_INCLUDEDIR="${prefix}/include
";
20046 eval LLVM_INFODIR="${prefix}/info
";
20047 eval LLVM_MANDIR="${prefix}/man
";
20048 LLVM_CONFIGTIME=`date`
20060 # Place the various directores into the config.h file as #defines so that we
20061 # can know about the installation paths within LLVM.
20063 cat >>confdefs.h <<_ACEOF
20064 #define LLVM_PREFIX "$LLVM_PREFIX"
20068 cat >>confdefs.h <<_ACEOF
20069 #define LLVM_BINDIR "$LLVM_BINDIR"
20073 cat >>confdefs.h <<_ACEOF
20074 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20078 cat >>confdefs.h <<_ACEOF
20079 #define LLVM_DATADIR "$LLVM_DATADIR"
20083 cat >>confdefs.h <<_ACEOF
20084 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20088 cat >>confdefs.h <<_ACEOF
20089 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20093 cat >>confdefs.h <<_ACEOF
20094 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20098 cat >>confdefs.h <<_ACEOF
20099 #define LLVM_INFODIR "$LLVM_INFODIR"
20103 cat >>confdefs.h <<_ACEOF
20104 #define LLVM_MANDIR "$LLVM_MANDIR"
20108 cat >>confdefs.h <<_ACEOF
20109 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20113 cat >>confdefs.h <<_ACEOF
20114 #define LLVM_HOSTTRIPLE "$host"
20118 # Determine which bindings to build.
20119 if test "$BINDINGS_TO_BUILD" = auto ; then
20120 BINDINGS_TO_BUILD=""
20121 if test "x
$OCAMLC" != x -a "x
$OCAMLDEP" != x ; then
20122 BINDINGS_TO_BUILD="ocaml
$BINDINGS_TO_BUILD"
20125 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20128 # This isn't really configurey, but it avoids having to repeat the list in
20133 # Do any work necessary to ensure that bindings have what they need.
20134 binding_prereqs_failed=0
20135 for a_binding in $BINDINGS_TO_BUILD ; do
20136 case "$a_binding" in
20138 if test "x
$OCAMLC" = x ; then
20139 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamlc not found. Try configure OCAMLC
=/path
/to
/ocamlc
" >&5
20140 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamlc not found. Try configure OCAMLC
=/path
/to
/ocamlc
" >&2;}
20141 binding_prereqs_failed=1
20143 if test "x
$OCAMLDEP" = x ; then
20144 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamldep not found. Try configure OCAMLDEP
=/path
/to
/ocamldep
" >&5
20145 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamldep not found. Try configure OCAMLDEP
=/path
/to
/ocamldep
" >&2;}
20146 binding_prereqs_failed=1
20148 if test "x
$OCAMLOPT" = x ; then
20149 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamlopt not found. Try configure OCAMLOPT
=/path
/to
/ocamlopt
" >&5
20150 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamlopt not found. Try configure OCAMLOPT
=/path
/to
/ocamlopt
" >&2;}
20152 if test "x
$with_ocaml_libdir" != xauto ; then
20153 OCAML_LIBDIR=$with_ocaml_libdir
20156 ocaml_stdlib="`"$OCAMLC" -where`"
20157 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~
"
20159 # ocaml stdlib is beneath our prefix; use stdlib
20160 OCAML_LIBDIR=$ocaml_stdlib
20163 # ocaml stdlib is outside our prefix; use libdir/ocaml
20164 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20171 if test "$binding_prereqs_failed" = 1 ; then
20172 { { echo "$as_me:$LINENO: error
: Prequisites
for bindings not satisfied. Fix them or use configure
--disable-bindings.
" >&5
20173 echo "$as_me: error
: Prequisites
for bindings not satisfied. Fix them or use configure
--disable-bindings.
" >&2;}
20174 { (exit 1); exit 1; }; }
20177 { echo "$as_me:$LINENO: checking
for compiler
-fvisibility-inlines-hidden option
" >&5
20178 echo $ECHO_N "checking
for compiler
-fvisibility-inlines-hidden option...
$ECHO_C" >&6; }
20179 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20180 echo $ECHO_N "(cached
) $ECHO_C" >&6
20183 ac_cpp='$CXXCPP $CPPFLAGS'
20184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20188 oldcxxflags="$CXXFLAGS"
20189 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20190 cat >conftest.$ac_ext <<_ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h. */
20205 rm -f conftest.$ac_objext
20206 if { (ac_try="$ac_compile"
20207 case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_compile") 2>conftest.er1
20214 grep -v '^ *+' conftest.er1 >conftest.err
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20218 (exit $ac_status); } &&
20219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20220 { (case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20224 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_try") 2>&5
20227 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20228 (exit $ac_status); }; } &&
20229 { ac_try='test -s conftest.$ac_objext'
20230 { (case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20234 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_try") 2>&5
20237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20238 (exit $ac_status); }; }; then
20239 llvm_cv_cxx_visibility_inlines_hidden=yes
20241 echo "$as_me: failed program was
:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20244 llvm_cv_cxx_visibility_inlines_hidden=no
20247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20248 CXXFLAGS="$oldcxxflags"
20250 ac_cpp='$CPP $CPPFLAGS'
20251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20257 { echo "$as_me:$LINENO: result
: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20258 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20259 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20260 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20263 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20268 if test "$llvm_cv_link_use_r" = "yes" ; then
20275 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20276 RDYNAMIC="-Wl,-export-dynamic"
20283 ac_config_headers="$ac_config_headers include
/llvm
/Config
/config.h
"
20285 ac_config_files="$ac_config_files include
/llvm
/Config
/Targets.def
"
20287 ac_config_files="$ac_config_files include
/llvm
/Config
/AsmPrinters.def
"
20289 ac_config_files="$ac_config_files include
/llvm
/Config
/AsmParsers.def
"
20291 ac_config_files="$ac_config_files include
/llvm
/Config
/Disassemblers.def
"
20293 ac_config_headers="$ac_config_headers include
/llvm
/System
/DataTypes.h
"
20296 ac_config_files="$ac_config_files Makefile.config
"
20299 ac_config_files="$ac_config_files llvm.spec
"
20302 ac_config_files="$ac_config_files docs
/doxygen.cfg
"
20305 ac_config_files="$ac_config_files tools
/llvmc
/plugins
/Base
/Base.td
"
20308 ac_config_files="$ac_config_files tools
/llvm-config
/llvm-config.
in"
20311 ac_config_commands="$ac_config_commands setup
"
20313 ac_config_commands="$ac_config_commands Makefile
"
20316 ac_config_commands="$ac_config_commands Makefile.common
"
20319 ac_config_commands="$ac_config_commands examples
/Makefile
"
20322 ac_config_commands="$ac_config_commands lib
/Makefile
"
20325 ac_config_commands="$ac_config_commands runtime
/Makefile
"
20328 ac_config_commands="$ac_config_commands test
/Makefile
"
20331 ac_config_commands="$ac_config_commands test
/Makefile.tests
"
20334 ac_config_commands="$ac_config_commands unittests
/Makefile
"
20337 ac_config_commands="$ac_config_commands tools
/Makefile
"
20340 ac_config_commands="$ac_config_commands utils
/Makefile
"
20343 ac_config_commands="$ac_config_commands projects
/Makefile
"
20346 ac_config_commands="$ac_config_commands bindings
/Makefile
"
20349 ac_config_commands="$ac_config_commands bindings
/ocaml
/Makefile.ocaml
"
20353 cat >confcache <<\_ACEOF
20354 # This file is a shell script that caches the results of configure
20355 # tests run on this system so they can be shared between configure
20356 # scripts and configure runs, see configure's option --config-cache.
20357 # It is not useful on other systems. If it contains results you don't
20358 # want to keep, you may remove or edit it.
20360 # config.status only pays attention to the cache file if you give it
20361 # the --recheck option to rerun configure.
20363 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20364 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20365 # following values.
20369 # The following way of writing the cache mishandles newlines in values,
20370 # but we know of no workaround that is simple, portable, and efficient.
20371 # So, we kill variables containing newlines.
20372 # Ultrix sh set writes to stderr and can't be redirected directly,
20373 # and sets the high bit in the cache file unless we assign to the vars.
20375 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20376 eval ac_val=\$$ac_var
20380 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
20381 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
20384 _ | IFS | as_nl) ;; #(
20385 *) $as_unset $ac_var ;;
20391 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20392 *${as_nl}ac_space=\ *)
20393 # `set' does not quote correctly, so add quotes (double-quote
20394 # substitution turns \\\\ into \\, and sed turns \\ into \).
20397 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
20400 # `set' quotes correctly as required by POSIX, so do not add quotes.
20401 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
20410 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20412 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20414 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20415 if test -w "$cache_file"; then
20416 test "x
$cache_file" != "x
/dev
/null
" &&
20417 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
20418 echo "$as_me: updating cache
$cache_file" >&6;}
20419 cat confcache >$cache_file
20421 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
20422 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
20427 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
20428 # Let make expand exec_prefix.
20429 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
20431 DEFS=-DHAVE_CONFIG_H
20435 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
20436 # 1. Remove the extension, and $U if already installed.
20437 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20438 ac_i=`echo "$ac_i" | sed "$ac_script"`
20439 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20440 # will be set to the directory where LIBOBJS objects are built.
20441 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
20442 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
20444 LIBOBJS=$ac_libobjs
20446 LTLIBOBJS=$ac_ltlibobjs
20449 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20450 { { echo "$as_me:$LINENO: error
: conditional
\"INSTALL_LTDL
\" was never defined.
20451 Usually this means the macro was only invoked conditionally.
" >&5
20452 echo "$as_me: error
: conditional
\"INSTALL_LTDL
\" was never defined.
20453 Usually this means the macro was only invoked conditionally.
" >&2;}
20454 { (exit 1); exit 1; }; }
20456 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20457 { { echo "$as_me:$LINENO: error
: conditional
\"CONVENIENCE_LTDL
\" was never defined.
20458 Usually this means the macro was only invoked conditionally.
" >&5
20459 echo "$as_me: error
: conditional
\"CONVENIENCE_LTDL
\" was never defined.
20460 Usually this means the macro was only invoked conditionally.
" >&2;}
20461 { (exit 1); exit 1; }; }
20464 : ${CONFIG_STATUS=./config.status}
20465 ac_clean_files_save=$ac_clean_files
20466 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20467 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
20468 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
20469 cat >$CONFIG_STATUS <<_ACEOF
20471 # Generated by $as_me.
20472 # Run this file to recreate the current configuration.
20473 # Compiler output produced by configure, useful for debugging
20474 # configure, is in config.log if it exists.
20477 ac_cs_recheck=false
20479 SHELL=\${CONFIG_SHELL-$SHELL}
20482 cat >>$CONFIG_STATUS <<\_ACEOF
20483 ## --------------------- ##
20484 ## M4sh Initialization. ##
20485 ## --------------------- ##
20487 # Be Bourne compatible
20488 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20491 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20492 # is contrary to our usage. Disable this feature.
20493 alias -g '${1+"$@"}'='"$@
"'
20494 setopt NO_GLOB_SUBST
20496 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20498 BIN_SH=xpg4; export BIN_SH # for Tru64
20499 DUALCASE=1; export DUALCASE # for MKS sh
20503 # Avoid depending upon Character Ranges.
20504 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20505 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20506 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20507 as_cr_digits='0123456789'
20508 as_cr_alnum=$as_cr_Letters$as_cr_digits
20510 # The user is always right.
20511 if test "${PATH_SEPARATOR+set}" != set; then
20512 echo "#! /bin/sh" >conf$$.sh
20513 echo "exit 0" >>conf$$.sh
20515 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
20523 # Support unset when possible.
20524 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
20532 # We need space, tab and new line, in precisely that order. Quoting is
20533 # there to prevent editors from complaining about space-tab.
20534 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20535 # splitting by setting IFS to empty value.)
20540 # Find who we are. Look in the path if we contain no directory separator.
20542 *[\\/]* ) as_myself
=$0 ;;
20543 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20544 for as_dir
in $PATH
20547 test -z "$as_dir" && as_dir
=.
20548 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
20554 # We did not find ourselves, most probably we were run as `sh COMMAND'
20555 # in which case we are not to be found in the path.
20556 if test "x$as_myself" = x
; then
20559 if test ! -f "$as_myself"; then
20560 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20561 { (exit 1); exit 1; }
20564 # Work around bugs in pre-3.0 UWIN ksh.
20565 for as_var
in ENV MAIL MAILPATH
20566 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
20574 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20575 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20576 LC_TELEPHONE LC_TIME
20578 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20579 eval $as_var=C
; export $as_var
20581 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
20585 # Required to use basename.
20586 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20587 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20593 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20594 as_basename
=basename
20600 # Name of the executable.
20601 as_me
=`$as_basename -- "$0" ||
20602 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20603 X"$0" : 'X\(//\)$' \| \
20604 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20606 sed '/^.*\/\([^/][^/]*\)\/*$/{
20625 as_lineno_1
=$LINENO
20626 as_lineno_2
=$LINENO
20627 test "x$as_lineno_1" != "x$as_lineno_2" &&
20628 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
20630 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20631 # uniformly replaced by the line number. The first 'sed' inserts a
20632 # line-number line after each line using $LINENO; the second 'sed'
20633 # does the real work. The second script uses 'N' to pair each
20634 # line-number line with the line containing $LINENO, and appends
20635 # trailing '-' during substitution so that $LINENO is not a special
20636 # case at line end.
20637 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20638 # scripts with optimization help from Paolo Bonzini. Blame Lee
20639 # E. McMahon (1931-1989) for sed's syntax. :-)
20651 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20654 ' >$as_me.lineno
&&
20655 chmod +x
"$as_me.lineno" ||
20656 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20657 { (exit 1); exit 1; }; }
20659 # Don't try to exec as it changes $[0], causing all sort of problems
20660 # (the dirname of $[0] is not the place where we might find the
20661 # original and so on. Autoconf is especially sensitive to this).
20662 .
"./$as_me.lineno"
20663 # Exit status is that of the last command.
20668 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20674 ECHO_C
= ECHO_N
= ECHO_T
=
20675 case `echo -n x` in
20677 case `echo 'x\c'` in
20678 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20685 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20686 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20692 rm -f conf$$ conf$$.exe conf$$.
file
20693 if test -d conf$$.dir
; then
20694 rm -f conf$$.dir
/conf$$.
file
20700 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20702 # ... but there are two gotchas:
20703 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20704 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20705 # In both cases, we have to default to `cp -p'.
20706 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20708 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20713 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20714 rmdir conf$$.dir
2>/dev
/null
20716 if mkdir
-p .
2>/dev
/null
; then
20719 test -d .
/-p && rmdir .
/-p
20723 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20724 # systems may use methods other than mode bits to determine executability.
20725 cat >conf$$.
file <<_ASEOF
20729 chmod +x conf$$.
file
20730 if test -x conf$$.
file >/dev
/null
2>&1; then
20731 as_executable_p
="test -x"
20737 # Sed expression to map a string onto a valid CPP name.
20738 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20740 # Sed expression to map a string onto a valid variable name.
20741 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20746 # Save the log message, to keep $[0] and so on meaningful, and to
20747 # report actual input values of CONFIG_FILES etc. instead of their
20748 # values after options handling.
20750 This file was extended by llvm $as_me 2.8svn, which was
20751 generated by GNU Autoconf 2.60. Invocation command line was
20753 CONFIG_FILES = $CONFIG_FILES
20754 CONFIG_HEADERS = $CONFIG_HEADERS
20755 CONFIG_LINKS = $CONFIG_LINKS
20756 CONFIG_COMMANDS = $CONFIG_COMMANDS
20759 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20764 cat >>$CONFIG_STATUS <<_ACEOF
20765 # Files that config.status was made for.
20766 config_files="$ac_config_files"
20767 config_headers="$ac_config_headers"
20768 config_commands="$ac_config_commands"
20772 cat >>$CONFIG_STATUS <<\_ACEOF
20774 \`$as_me' instantiates files from templates according to the
20775 current configuration.
20777 Usage: $0 [OPTIONS] [FILE]...
20779 -h, --help print this help, then exit
20780 -V, --version print version number, then exit
20781 -q, --quiet do not print progress messages
20782 -d, --debug don't remove temporary files
20783 --recheck update $as_me by reconfiguring in the same conditions
20784 --file=FILE[:TEMPLATE]
20785 instantiate the configuration file FILE
20786 --header=FILE[:TEMPLATE]
20787 instantiate the configuration header FILE
20789 Configuration files:
20792 Configuration headers:
20795 Configuration commands:
20798 Report bugs to <bug-autoconf@gnu.org>."
20801 cat >>$CONFIG_STATUS <<_ACEOF
20803 llvm config.status 2.8svn
20804 configured by $0, generated by GNU Autoconf 2.60,
20805 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20807 Copyright (C) 2006 Free Software Foundation, Inc.
20808 This config.status script is free software; the Free Software Foundation
20809 gives unlimited permission to copy, distribute and modify it."
20816 cat >>$CONFIG_STATUS <<\_ACEOF
20817 # If no file are specified by the user, then we need to provide default
20818 # value. By we need to know if files were specified by the user.
20824 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20825 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20836 # Handling of the options.
20837 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20839 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20840 echo "$ac_cs_version"; exit ;;
20841 --debug |
--debu |
--deb |
--de |
--d |
-d )
20843 --file |
--fil |
--fi |
--f )
20845 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
20846 ac_need_defaults
=false
;;
20847 --header |
--heade |
--head |
--hea )
20849 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
20850 ac_need_defaults
=false
;;
20852 # Conflict between --help and --header
20853 { echo "$as_me: error: ambiguous option: $1
20854 Try \`$0 --help' for more information." >&2
20855 { (exit 1); exit 1; }; };;
20856 --help |
--hel |
-h )
20857 echo "$ac_cs_usage"; exit ;;
20858 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20859 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20862 # This is an error.
20863 -*) { echo "$as_me: error: unrecognized option: $1
20864 Try \`$0 --help' for more information." >&2
20865 { (exit 1); exit 1; }; } ;;
20867 *) ac_config_targets
="$ac_config_targets $1"
20868 ac_need_defaults
=false
;;
20874 ac_configure_extra_args
=
20876 if $ac_cs_silent; then
20878 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20882 cat >>$CONFIG_STATUS <<_ACEOF
20883 if \$ac_cs_recheck; then
20884 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20885 CONFIG_SHELL=$SHELL
20886 export CONFIG_SHELL
20887 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20891 cat >>$CONFIG_STATUS <<\_ACEOF
20895 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20896 ## Running $as_me. ##
20902 cat >>$CONFIG_STATUS <<_ACEOF
20906 llvm_src="${srcdir}"
20910 cat >>$CONFIG_STATUS <<\_ACEOF
20912 # Handling of arguments.
20913 for ac_config_target
in $ac_config_targets
20915 case $ac_config_target in
20916 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20917 "include/llvm/Config/Targets.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20918 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20919 "include/llvm/Config/AsmParsers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20920 "include/llvm/Config/Disassemblers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20921 "include/llvm/System/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20922 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
20923 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
20924 "docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES docs/doxygen.cfg" ;;
20925 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES
="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20926 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20927 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
20928 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
20929 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
20930 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
20931 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
20932 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
20933 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
20934 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
20935 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
20936 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
20937 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
20938 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
20939 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
20940 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20942 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20943 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20944 { (exit 1); exit 1; }; };;
20949 # If the user did not use the arguments to specify the items to instantiate,
20950 # then the envvar interface is used. Set only those that are not.
20951 # We use the long form for the default assignment because of an extremely
20952 # bizarre bug on SunOS 4.1.3.
20953 if $ac_need_defaults; then
20954 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20955 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20956 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20959 # Have a temporary directory for convenience. Make it in the build tree
20960 # simply because there is no reason against having it here, and in addition,
20961 # creating and moving files from /tmp can sometimes cause problems.
20962 # Hook for its removal unless debugging.
20963 # Note that there is a small window in which the directory will not be cleaned:
20964 # after its creation but before its name has been assigned to `$tmp'.
20968 trap 'exit_status=$?
20969 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20971 trap '{ (exit 1); exit 1; }' 1 2 13 15
20973 # Create a (secure) tmp directory for tmp files.
20976 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20977 test -n "$tmp" && test -d "$tmp"
20980 tmp
=.
/conf$$
-$RANDOM
20981 (umask 077 && mkdir
"$tmp")
20984 echo "$me: cannot create a temporary directory in ." >&2
20985 { (exit 1); exit 1; }
20989 # Set up the sed scripts for CONFIG_FILES section.
20992 # No need to generate the scripts if there are no CONFIG_FILES.
20993 # This happens for instance when ./config.status config.h
20994 if test -n "$CONFIG_FILES"; then
21001 for ac_last_try
in false false false false false
:; do
21002 cat >conf$
$subs.
sed <<_ACEOF
21003 SHELL!$SHELL$ac_delim
21004 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21005 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21006 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21007 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21008 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21009 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21010 exec_prefix!$exec_prefix$ac_delim
21011 prefix!$prefix$ac_delim
21012 program_transform_name!$program_transform_name$ac_delim
21013 bindir!$bindir$ac_delim
21014 sbindir!$sbindir$ac_delim
21015 libexecdir!$libexecdir$ac_delim
21016 datarootdir!$datarootdir$ac_delim
21017 datadir!$datadir$ac_delim
21018 sysconfdir!$sysconfdir$ac_delim
21019 sharedstatedir!$sharedstatedir$ac_delim
21020 localstatedir!$localstatedir$ac_delim
21021 includedir!$includedir$ac_delim
21022 oldincludedir!$oldincludedir$ac_delim
21023 docdir!$docdir$ac_delim
21024 infodir!$infodir$ac_delim
21025 htmldir!$htmldir$ac_delim
21026 dvidir!$dvidir$ac_delim
21027 pdfdir!$pdfdir$ac_delim
21028 psdir!$psdir$ac_delim
21029 libdir!$libdir$ac_delim
21030 localedir!$localedir$ac_delim
21031 mandir!$mandir$ac_delim
21032 DEFS!$DEFS$ac_delim
21033 ECHO_C!$ECHO_C$ac_delim
21034 ECHO_N!$ECHO_N$ac_delim
21035 ECHO_T!$ECHO_T$ac_delim
21036 LIBS!$LIBS$ac_delim
21037 build_alias!$build_alias$ac_delim
21038 host_alias!$host_alias$ac_delim
21039 target_alias!$target_alias$ac_delim
21040 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21041 subdirs!$subdirs$ac_delim
21042 build!$build$ac_delim
21043 build_cpu!$build_cpu$ac_delim
21044 build_vendor!$build_vendor$ac_delim
21045 build_os!$build_os$ac_delim
21046 host!$host$ac_delim
21047 host_cpu!$host_cpu$ac_delim
21048 host_vendor!$host_vendor$ac_delim
21049 host_os!$host_os$ac_delim
21050 target!$target$ac_delim
21051 target_cpu!$target_cpu$ac_delim
21052 target_vendor!$target_vendor$ac_delim
21053 target_os!$target_os$ac_delim
21055 HOST_OS!$HOST_OS$ac_delim
21056 TARGET_OS!$TARGET_OS$ac_delim
21057 LINKALL!$LINKALL$ac_delim
21058 NOLINKALL!$NOLINKALL$ac_delim
21059 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21060 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21061 ARCH!$ARCH$ac_delim
21062 ENDIAN!$ENDIAN$ac_delim
21064 CFLAGS!$CFLAGS$ac_delim
21065 LDFLAGS!$LDFLAGS$ac_delim
21066 CPPFLAGS!$CPPFLAGS$ac_delim
21067 ac_ct_CC!$ac_ct_CC$ac_delim
21068 EXEEXT!$EXEEXT$ac_delim
21069 OBJEXT!$OBJEXT$ac_delim
21071 GREP!$GREP$ac_delim
21072 EGREP!$EGREP$ac_delim
21073 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21074 BUILD_CC!$BUILD_CC$ac_delim
21075 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21076 BUILD_CXX!$BUILD_CXX$ac_delim
21077 CVSBUILD!$CVSBUILD$ac_delim
21078 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21079 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21080 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21081 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21082 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21083 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21084 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21086 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21087 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21088 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21089 ENABLE_PIC!$ENABLE_PIC$ac_delim
21090 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21091 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21092 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21093 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21094 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21095 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21096 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21097 CLANGPATH!$CLANGPATH$ac_delim
21098 CLANGXXPATH!$CLANGXXPATH$ac_delim
21099 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21102 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21104 elif $ac_last_try; then
21105 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21106 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21107 { (exit 1); exit 1; }; }
21109 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
21113 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21114 if test -n "$ac_eof"; then
21115 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
21116 ac_eof
=`expr $ac_eof + 1`
21119 cat >>$CONFIG_STATUS <<_ACEOF
21120 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21121 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21124 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21125 s/^/s,@/; s/!/@,|#_!!_#|/
21128 s/'"$ac_delim"'$/,g/; t
21130 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21131 ' >>$CONFIG_STATUS <conf$
$subs.
sed
21132 rm -f conf$
$subs.
sed
21133 cat >>$CONFIG_STATUS <<_ACEOF
21139 for ac_last_try
in false false false false false
:; do
21140 cat >conf$
$subs.
sed <<_ACEOF
21141 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21142 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21143 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21144 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21145 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21147 CXXFLAGS!$CXXFLAGS$ac_delim
21148 ac_ct_CXX!$ac_ct_CXX$ac_delim
21150 ifGNUmake!$ifGNUmake$ac_delim
21151 LN_S!$LN_S$ac_delim
21154 DATE!$DATE$ac_delim
21155 FIND!$FIND$ac_delim
21156 MKDIR!$MKDIR$ac_delim
21158 RANLIB!$RANLIB$ac_delim
21163 BINPWD!$BINPWD$ac_delim
21164 GRAPHVIZ!$GRAPHVIZ$ac_delim
21167 NEATO!$NEATO$ac_delim
21168 TWOPI!$TWOPI$ac_delim
21169 CIRCO!$CIRCO$ac_delim
21171 DOTTY!$DOTTY$ac_delim
21172 PERL!$PERL$ac_delim
21173 HAVE_PERL!$HAVE_PERL$ac_delim
21174 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21175 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21176 INSTALL_DATA!$INSTALL_DATA$ac_delim
21177 BZIP2!$BZIP2$ac_delim
21178 DOXYGEN!$DOXYGEN$ac_delim
21179 GROFF!$GROFF$ac_delim
21180 GZIP!$GZIP$ac_delim
21181 POD2HTML!$POD2HTML$ac_delim
21182 POD2MAN!$POD2MAN$ac_delim
21183 RUNTEST!$RUNTEST$ac_delim
21184 TCLSH!$TCLSH$ac_delim
21186 OCAMLC!$OCAMLC$ac_delim
21187 OCAMLOPT!$OCAMLOPT$ac_delim
21188 OCAMLDEP!$OCAMLDEP$ac_delim
21189 OCAMLDOC!$OCAMLDOC$ac_delim
21191 HAVE_LINK_RETAIN_SYMBOLS_FILE!$HAVE_LINK_RETAIN_SYMBOLS_FILE$ac_delim
21192 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21193 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21194 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21195 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21196 LIBADD_DL!$LIBADD_DL$ac_delim
21197 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21198 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21199 LLVMGCC!$LLVMGCC$ac_delim
21200 LLVMGXX!$LLVMGXX$ac_delim
21201 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21202 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21203 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21204 USE_UDIS86!$USE_UDIS86$ac_delim
21205 USE_OPROFILE!$USE_OPROFILE$ac_delim
21206 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21207 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21208 MMAP_FILE!$MMAP_FILE$ac_delim
21209 LLVMCC1!$LLVMCC1$ac_delim
21210 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21211 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21212 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21213 SHLIBEXT!$SHLIBEXT$ac_delim
21214 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21215 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21216 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21217 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21218 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21219 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21220 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21221 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21222 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21223 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21224 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21225 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21226 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21227 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21228 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21229 RPATH!$RPATH$ac_delim
21230 RDYNAMIC!$RDYNAMIC$ac_delim
21231 LIBOBJS!$LIBOBJS$ac_delim
21232 LTLIBOBJS!$LTLIBOBJS$ac_delim
21235 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
21237 elif $ac_last_try; then
21238 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21239 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21240 { (exit 1); exit 1; }; }
21242 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
21246 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21247 if test -n "$ac_eof"; then
21248 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
21249 ac_eof
=`expr $ac_eof + 1`
21252 cat >>$CONFIG_STATUS <<_ACEOF
21253 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21257 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21258 s/^/s,@/; s/!/@,|#_!!_#|/
21261 s/'"$ac_delim"'$/,g/; t
21263 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21264 ' >>$CONFIG_STATUS <conf$
$subs.
sed
21265 rm -f conf$
$subs.
sed
21266 cat >>$CONFIG_STATUS <<_ACEOF
21273 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21274 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21275 # trailing colons and then remove the whole line if VPATH becomes empty
21276 # (actually we leave an empty line to preserve line numbers).
21277 if test "x$srcdir" = x.
; then
21278 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21279 s/:*\$(srcdir):*/:/
21280 s/:*\${srcdir}:*/:/
21282 s/^\([^=]*=[ ]*\):*/\1/
21288 cat >>$CONFIG_STATUS <<\_ACEOF
21289 fi # test -n "$CONFIG_FILES"
21292 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
21295 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21297 case $ac_mode$ac_tag in
21299 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21300 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21301 { (exit 1); exit 1; }; };;
21302 :[FH
]-) ac_tag
=-:-;;
21303 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21320 -) ac_f
="$tmp/stdin";;
21321 *) # Look for the file first in the build tree, then in the source tree
21322 # (if the path is not absolute). The absolute path cannot be DOS-style,
21323 # because $ac_f cannot contain `:'.
21327 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21329 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21330 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21331 { (exit 1); exit 1; }; };;
21333 ac_file_inputs
="$ac_file_inputs $ac_f"
21336 # Let's still pretend it is `configure' which instantiates (i.e., don't
21337 # use $as_me), people would be surprised to read:
21338 # /* config.h. Generated by config.status. */
21339 configure_input
="Generated from "`IFS=:
21340 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21341 if test x
"$ac_file" != x-
; then
21342 configure_input
="$ac_file. $configure_input"
21343 { echo "$as_me:$LINENO: creating $ac_file" >&5
21344 echo "$as_me: creating $ac_file" >&6;}
21348 *:-:* |
*:-) cat >"$tmp/stdin";;
21353 ac_dir
=`$as_dirname -- "$ac_file" ||
21354 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21355 X"$ac_file" : 'X\(//\)[^/]' \| \
21356 X"$ac_file" : 'X\(//\)$' \| \
21357 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21363 /^X\(\/\/\)[^/].*/{
21378 -*) as_dir
=.
/$as_dir;;
21380 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
21384 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21385 *) as_qdir
=$as_dir;;
21387 as_dirs
="'$as_qdir' $as_dirs"
21388 as_dir
=`$as_dirname -- "$as_dir" ||
21389 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21390 X"$as_dir" : 'X\(//\)[^/]' \| \
21391 X"$as_dir" : 'X\(//\)$' \| \
21392 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21398 /^X\(\/\/\)[^/].*/{
21411 test -d "$as_dir" && break
21413 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21414 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21415 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21416 { (exit 1); exit 1; }; }; }
21420 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21422 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21423 # A ".." for each directory in $ac_dir_suffix.
21424 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21425 case $ac_top_builddir_sub in
21426 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21427 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21430 ac_abs_top_builddir
=$ac_pwd
21431 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21432 # for backward compatibility:
21433 ac_top_builddir
=$ac_top_build_prefix
21436 .
) # We are building in place.
21438 ac_top_srcdir
=$ac_top_builddir_sub
21439 ac_abs_top_srcdir
=$ac_pwd ;;
21440 [\\/]* | ?
:[\\/]* ) # Absolute name.
21441 ac_srcdir
=$srcdir$ac_dir_suffix;
21442 ac_top_srcdir
=$srcdir
21443 ac_abs_top_srcdir
=$srcdir ;;
21444 *) # Relative name.
21445 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21446 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21447 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21449 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21459 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21460 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21464 cat >>$CONFIG_STATUS <<\_ACEOF
21465 # If the template does not know about datarootdir, expand it.
21466 # FIXME: This hack should be removed a few years after 2.60.
21467 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21469 case `sed -n '/datarootdir/ {
21478 ' $ac_file_inputs` in
21479 *datarootdir
*) ac_datarootdir_seen
=yes;;
21480 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21481 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21482 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21484 cat >>$CONFIG_STATUS <<_ACEOF
21485 ac_datarootdir_hack='
21486 s&@datadir@&$datadir&g
21487 s&@docdir@&$docdir&g
21488 s&@infodir@&$infodir&g
21489 s&@localedir@&$localedir&g
21490 s&@mandir@&$mandir&g
21491 s&\\\${datarootdir}&$datarootdir&g' ;;
21495 # Neutralize VPATH when `$srcdir' = `.'.
21496 # Shell code in configure.ac might set extrasub.
21497 # FIXME: do we really want to maintain this feature?
21498 cat >>$CONFIG_STATUS <<_ACEOF
21502 cat >>$CONFIG_STATUS <<\_ACEOF
21504 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21505 s
&@configure_input@
&$configure_input&;t t
21506 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21507 s
&@srcdir@
&$ac_srcdir&;t t
21508 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21509 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21510 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21511 s
&@builddir@
&$ac_builddir&;t t
21512 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21513 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21514 s
&@INSTALL@
&$ac_INSTALL&;t t
21515 $ac_datarootdir_hack
21516 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
21518 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21519 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
21520 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
21521 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21522 which seems to be undefined. Please make sure it is defined." >&5
21523 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21524 which seems to be undefined. Please make sure it is defined." >&2;}
21528 -) cat "$tmp/out"; rm -f "$tmp/out";;
21529 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21538 # Transform confdefs.h into a sed script `conftest.defines', that
21539 # substitutes the proper values into config.h.in to produce config.h.
21540 rm -f conftest.defines conftest.
tail
21541 # First, append a space to every undef/define line, to ease matching.
21542 echo 's/$/ /' >conftest.defines
21543 # Then, protect against being on the right side of a sed subst, or in
21544 # an unquoted here document, in config.status. If some macros were
21545 # called several times there might be several #defines for the same
21546 # symbol, which is useless. But do not sort them, since the last
21547 # AC_DEFINE must be honored.
21548 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
21549 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21550 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21551 # PARAMS is the parameter list in the macro definition--in most cases, it's
21552 # just an empty string.
21553 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21554 ac_dB
='\\)[ (].*,\\1define\\2'
21562 s/^[ ]*#[ ]*define[ ][ ]*//
21567 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21568 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21569 ' >>conftest.defines
21571 # Remove the space that was appended to ease matching.
21572 # Then replace #undef with comments. This is necessary, for
21573 # example, in the case of _POSIX_SOURCE, which is predefined and required
21574 # on some systems where configure will not decide to define it.
21575 # (The regexp can be short, since the line contains either #define or #undef.)
21577 s,^[ #]*u.*,/* & */,' >>conftest.defines
21579 # Break up conftest.defines:
21580 ac_max_sed_lines
=50
21582 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21583 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21584 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21586 ac_in
='$ac_file_inputs'
21587 ac_out
='"$tmp/out1"'
21588 ac_nxt
='"$tmp/out2"'
21592 # Write a here document:
21593 cat >>$CONFIG_STATUS <<_ACEOF
21594 # First, check the format of the line:
21595 cat >"\$tmp/defines.sed" <<\\CEOF
21596 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21597 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21601 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
21603 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21604 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
21605 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
21606 grep . conftest.
tail >/dev
/null ||
break
21607 rm -f conftest.defines
21608 mv conftest.
tail conftest.defines
21610 rm -f conftest.defines conftest.
tail
21612 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21613 cat >>$CONFIG_STATUS <<\_ACEOF
21614 if test x
"$ac_file" != x-
; then
21615 echo "/* $configure_input */" >"$tmp/config.h"
21616 cat "$ac_result" >>"$tmp/config.h"
21617 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
21618 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21619 echo "$as_me: $ac_file is unchanged" >&6;}
21622 mv "$tmp/config.h" $ac_file
21625 echo "/* $configure_input */"
21631 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21632 echo "$as_me: executing $ac_file commands" >&6;}
21637 case $ac_file$ac_mode in
21638 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
21639 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile
;;
21640 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
21641 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common
;;
21642 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
21643 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
21644 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
21645 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
21646 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
21647 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
21648 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
21649 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile test
/Makefile
;;
21650 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
21651 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
21652 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
21653 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
21654 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
21655 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
21656 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
21657 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
21658 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
21659 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
21660 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
21661 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
21662 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
21663 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
21669 { (exit 0); exit 0; }
21671 chmod +x
$CONFIG_STATUS
21672 ac_clean_files
=$ac_clean_files_save
21675 # configure is writing to config.log, and then calls config.status.
21676 # config.status does its own redirection, appending to config.log.
21677 # Unfortunately, on DOS this fails, as config.log is still kept open
21678 # by configure, so config.status won't be able to write to it; its
21679 # output is simply discarded. So we exec the FD to /dev/null,
21680 # effectively closing config.log, so it can be properly (re)opened and
21681 # appended to by config.status. When coming back to configure, we
21682 # need to make the FD available again.
21683 if test "$no_create" != yes; then
21685 ac_config_status_args
=
21686 test "$silent" = yes &&
21687 ac_config_status_args
="$ac_config_status_args --quiet"
21689 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21691 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21692 # would make configure fail if this is the last instruction.
21693 $ac_cs_success ||
{ (exit 1); exit 1; }
21697 # CONFIG_SUBDIRS section.
21699 if test "$no_recursion" != yes; then
21701 # Remove --cache-file and --srcdir arguments so they do not pile up.
21702 ac_sub_configure_args
=
21704 eval "set x $ac_configure_args"
21708 if test -n "$ac_prev"; then
21713 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
21714 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
21715 ac_prev
=cache_file
;;
21716 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
21717 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
21720 --config-cache |
-C)
21722 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
21724 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
21726 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
21728 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
21732 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21734 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
21738 # Always prepend --prefix to ensure using the same prefix
21739 # in subdir configurations.
21740 ac_arg
="--prefix=$prefix"
21742 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21744 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
21747 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
21749 # Do not complain, so a configure script can configure whichever
21750 # parts of a large source tree are present.
21751 test -d "$srcdir/$ac_dir" ||
continue
21753 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21754 echo "$as_me:$LINENO: $ac_msg" >&5
21758 -*) as_dir
=.
/$as_dir;;
21760 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
21764 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21765 *) as_qdir
=$as_dir;;
21767 as_dirs
="'$as_qdir' $as_dirs"
21768 as_dir
=`$as_dirname -- "$as_dir" ||
21769 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21770 X"$as_dir" : 'X\(//\)[^/]' \| \
21771 X"$as_dir" : 'X\(//\)$' \| \
21772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21778 /^X\(\/\/\)[^/].*/{
21791 test -d "$as_dir" && break
21793 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21794 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21795 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21796 { (exit 1); exit 1; }; }; }
21800 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21802 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21803 # A ".." for each directory in $ac_dir_suffix.
21804 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21805 case $ac_top_builddir_sub in
21806 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21807 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21810 ac_abs_top_builddir
=$ac_pwd
21811 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21812 # for backward compatibility:
21813 ac_top_builddir
=$ac_top_build_prefix
21816 .
) # We are building in place.
21818 ac_top_srcdir
=$ac_top_builddir_sub
21819 ac_abs_top_srcdir
=$ac_pwd ;;
21820 [\\/]* | ?
:[\\/]* ) # Absolute name.
21821 ac_srcdir
=$srcdir$ac_dir_suffix;
21822 ac_top_srcdir
=$srcdir
21823 ac_abs_top_srcdir
=$srcdir ;;
21824 *) # Relative name.
21825 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21826 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21827 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21829 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21834 # Check for guested configure; otherwise get Cygnus style configure.
21835 if test -f "$ac_srcdir/configure.gnu"; then
21836 ac_sub_configure
=$ac_srcdir/configure.gnu
21837 elif test -f "$ac_srcdir/configure"; then
21838 ac_sub_configure
=$ac_srcdir/configure
21839 elif test -f "$ac_srcdir/configure.in"; then
21840 # This should be Cygnus configure.
21841 ac_sub_configure
=$ac_aux_dir/configure
21843 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21844 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21848 # The recursion is here.
21849 if test -n "$ac_sub_configure"; then
21850 # Make the cache file name correct relative to the subdirectory.
21851 case $cache_file in
21852 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
21853 *) # Relative name.
21854 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
21857 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21858 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21859 # The eval makes quoting arguments work.
21860 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21861 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21862 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21863 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21864 { (exit 1); exit 1; }; }