* AC_CONFIG_SUBDIRS to recursively configure a source tree.
* AC_CHECK_TYPE, which checks whether sys/types.h defines a given type.
* AC_TRY_LINK, which obsoletes AC_COMPILE_CHECK.
+* AC_MSG_CHECKING and AC_MSG_RESULT to print test results, on a single line,
+ whether or not the test succeeds. They obsolete AC_CHECKING and AC_VERBOSE.
+ configure --verbose no longer has any effect.
* AC_PREFIX_PROGRAM, which obsoletes AC_PREFIX.
* AC_HEADER_DIRENT, which obsoletes AC_DIR_HEADER.
* AC_ARG_ENABLE and AC_ARG_WITH, which obsolete AC_ENABLE and AC_WITH.
* AC_OUTPUT and AC_CONFIG_HEADER allow you to override the input-file names.
* AC_PROG_INSTALL looks for install.sh in the directory specified by
AC_CONFIG_AUXDIR, or srcdir or srcdir/.. or srcdir/../.. by default.
+* AC_DEFINE no longer prints anything, because of the new result reporting
+ mechanism (AC_MSG_CHECKING and AC_MSG_RESULT).
+* AC_VERBOSE pays attention to --quiet/--silent, not --verbose.
** New utilities:
* autoscan to generate a preliminary configure.in for a package by
------------------------------------------------------------------------------
-* Fix AC_ARG_{ENABLE,WITH}.
+* Fix AC_ARG_{ENABLE,WITH} and AC_PATH_X*.
------------------------------------------------------------------------------
\f
(CC or PATH) differs.
------------------------------------------------------------------------------
-
-* Print verbose messages in all cases, whether or not things are found.
-
-------------------------------------------------------------------------------
M4 environment variable to its path name.
)m4exit(2)])dnl
dnl
-define(AC_ACVERSION, 1.97)dnl
+define(AC_ACVERSION, 1.98)dnl
dnl This is defined by the --version option of the autoconf script.
ifdef([AC_PRINT_VERSION], [Autoconf version AC_ACVERSION
m4exit(0)])dnl
--cache-file=FILE cache test results in FILE
--help print this message
--no-create do not create output files
---quiet, --silent do not print \`checking for...' messages
---verbose print results of checks
+--quiet, --silent do not print \`checking...' messages
--version print the version of autoconf that created configure
Directories:
--exec-prefix=PREFIX install host dependent files in PREFIX [/usr/local]
# 1 file creation
# 2 errors and warnings
# 3 unused; some systems may open it to /dev/tty
-# 4 checking for... messages
-# 5 test results
-# 6 compiler messages
+# 4 checking for... messages and results
+# 5 compiler messages
if test "$silent" = yes; then
exec 4>/dev/null
else
exec 4>&1
fi
-if test "$verbose" = yes; then
- exec 5>&1
-else
- exec 5>/dev/null
-fi
-exec 6>./config.log
+exec 5>./config.log
echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-" 1>&6
+" 1>&5
# Save the original args if we used an alternate arg parser.
ac_configure_temp="${configure_args-[$]@}"
if test -n "$ac_cv_path_<<>>AC_VAR_NAME"; then
prefix=`echo $ac_cv_path_<<>>AC_VAR_NAME|sed 's%/[^/][^/]*/[^/][^/]*$%%'`
changequote([, ])dnl
-dnl test -z "$prefix" && prefix=/
- AC_MSG_RESULT(setting installation directory prefix to ${prefix})
fi
fi
undefine(AC_VAR_NAME)dnl
dnl Subroutines of AC_CANONICAL_SYSTEM.
dnl
define(AC_CANONICAL_HOST,
-[AC_MSG_CHECKING(host type)
+[AC_MSG_CHECKING(host system type)
case "${host_alias}" in
NONE)
host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
-test -n "$host" && AC_MSG_RESULT(setting host to $host)
+AC_MSG_RESULT($host)
AC_SUBST(host)dnl
AC_SUBST(host_alias)dnl
AC_SUBST(host_cpu)dnl
])dnl
dnl
define(AC_CANONICAL_TARGET,
-[AC_MSG_CHECKING(target type)
+[AC_MSG_CHECKING(target system type)
case "${target_alias}" in
NONE)
target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
-test -n "$target" && AC_MSG_RESULT(setting target to $target)
+AC_MSG_RESULT($target)
AC_SUBST(target)dnl
AC_SUBST(target_alias)dnl
AC_SUBST(target_cpu)dnl
])dnl
dnl
define(AC_CANONICAL_BUILD,
-[AC_MSG_CHECKING(build type)
+[AC_MSG_CHECKING(build system type)
case "${build_alias}" in
NONE) build= build_alias= ;;
build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
;;
esac
-test -n "$build" && AC_MSG_RESULT(setting build to $build)
+AC_MSG_RESULT($build)
AC_SUBST(build)dnl
AC_SUBST(build_alias)dnl
AC_SUBST(build_cpu)dnl
dnl AC_CACHE_VAL(CACHE-ID, COMMANDS-TO-SET-IT)
dnl The name of shell var CACHE-ID must contain `_cv_' in order to get saved.
define(AC_CACHE_VAL,
-[dnl We used to use the below line, but it fails if the 1st arg is a
+[AC_REQUIRE([AC_MSG_ECHO_N])dnl
+dnl We used to use the below line, but it fails if the 1st arg is a
dnl shell variable, so we need the eval.
dnl if test "${$1+set}" = set; then
if eval "test \"`echo '${'$1'+set}'`\" = set"; then
-dnl This verbose message is just for testing the caching code.
-dnl AC_MSG_RESULT(using cached value for $1)
- AC_MSG_RESULT(using cached value)
+ echo $ac_n "(cached) $ac_c" 1>&4
else
$2
fi
dnl Uniformly use AC_DEFINE_[SED]QUOTE, so callers of AC_DEFINE_UNQUOTED
dnl can use AC_QUOTE_* manually if they want to.
ifelse($#, 2,
-[define([AC_VAL], $2)dnl
-echo 1>&5 " defining" $1 to be ifelse(AC_VAL, , empty, "AC_QUOTE_SQUOTE(AC_VAL)")],
-[define([AC_VAL], 1)dnl
-echo 1>&5 " defining $1"])
+[define([AC_VAL], $2)dnl],
+[define([AC_VAL], 1)dnl])
dnl
echo "[#][define]" $1 "AC_QUOTE_SQUOTE(AC_VAL)" >> confdefs.h
dnl Define DEFS even if AC_LIST_HEADERS for use in user case statements.
dnl AC_SUBST_FILE(VARIABLE, FILE)
define(AC_SUBST_FILE,
[if test -f $2; then
- AC_MSG_RESULT(using $2 for $1)
+ echo using $2 for $1)
AC_INSERT_FILE($1, $2)
elif test -f ${srcdir}/$2; then
- AC_MSG_RESULT(using ${srcdir}/$2 for $1)
+ echo using ${srcdir}/$2 for $1)
AC_INSERT_FILE($1, ${srcdir}/$2)
fi
])dnl
dnl ### Printing messages
dnl
dnl
+dnl Check whether to use -n, \c, or newline-tab to separate
+dnl checking messages from result messages.
+define(AC_MSG_ECHO_N,
+[AC_PROVIDE([$0])dnl
+if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
+ if (echo -n testing; echo 1,2,3) | grep -e -n > /dev/null; then
+ ac_n= ac_c='
+' ac_t=' '
+ else
+ ac_n=-n ac_c= ac_t=
+ fi
+else
+ ac_n= ac_c='\c' ac_t=
+fi])dnl
+dnl
dnl AC_MSG_CHECKING(FEATURE-DESCRIPTION)
define(AC_MSG_CHECKING,
-[echo "checking $1" 1>&4])dnl
+[AC_REQUIRE([AC_MSG_ECHO_N])dnl
+echo $ac_n "checking $1""...$ac_c" 1>&4])dnl
+dnl
+dnl Obsolete version.
+define(AC_CHECKING,
+[AC_OBSOLETE([$0], [; instead use AC_MSG_CHECKING])dnl
+echo "checking $1" 1>&4])dnl
dnl
dnl AC_MSG_RESULT(RESULT-DESCRIPTION)
define(AC_MSG_RESULT,
-[echo " $1" 1>&5])dnl
+[AC_REQUIRE([AC_MSG_ECHO_N])dnl
+echo "$ac_t""$1" 1>&4])dnl
+dnl
+dnl Obsolete version.
+define(AC_VERBOSE,
+[AC_OBSOLETE([$0], [; instead use AC_MSG_RESULT])dnl
+echo " $1" 1>&4])dnl
dnl
dnl AC_MSG_WARN(PROBLEM-DESCRIPTION)
define(AC_MSG_WARN,
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='${CPP}'
-ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&6 2>&6'
+ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&5 2>&5'
])dnl
dnl
define(AC_LANG_CPLUSPLUS,
ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='${CXXCPP}'
-ac_compile='${CXX-gcc} $CXXFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&6 2>&6'
+ac_compile='${CXX-gcc} $CXXFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&5 2>&5'
])dnl
dnl
dnl Push the current language on a stack.
])dnl
fi])dnl
$1="$ac_cv_prog_$1"
-test -n "[$]$1" && AC_MSG_RESULT(setting $1 to [$]$1)
+test -n "[$]$1" && AC_MSG_RESULT([$]$1)
AC_SUBST($1)dnl
])dnl
dnl
;;
esac])dnl
$1="$ac_cv_path_$1"
-test -n "[$]$1" && AC_MSG_RESULT(setting $1 to [$]$1)
+test -n "[$]$1" && AC_MSG_RESULT([$]$1)
AC_SUBST($1)dnl
])dnl
dnl
AC_TRY_LINK( , [main();], AC_CV_NAME=yes, AC_CV_NAME=no)dnl
LIBS="${ac_save_LIBS}"
])dnl
+AC_MSG_RESULT($AC_CV_NAME)
if test "${AC_CV_NAME}" = yes; then
ifelse([$2], ,
[AC_DEFINE([HAVE_LIB]translit(AC_LIB_NAME, [a-z], [A-Z]))
[AC_PROVIDE([$0])dnl
dnl It's actually ok to use this, if you don't care about caching.
dnl AC_OBSOLETE([$0], [; instead use AC_TRY_LINK])dnl
-ifelse([$1], , , [AC_MSG_CHECKING([for $1])
+ifelse([$1], , , [AC_CHECKING([for $1])
])dnl
AC_TRY_LINK([$2], [$3], [$4], [$5])dnl
])dnl
dnl [, ACTION-IF-CROSS-COMPILING]])
define(AC_TRY_RUN,
[AC_PROVIDE([$0])dnl
-AC_REQUIRE([AC_TRY_CROSS])dnl
+AC_REQUIRE([AC_C_CROSS])dnl
if test "$cross_compiling" = yes; then
ifelse([$4], , AC_MSG_ERROR(can not run test program while cross compiling),
- [AC_MSG_RESULT(using default for cross-compiling)
+ [AC_MSG_WARN(using default for cross-compiling)
$4
])
else
[AC_TRY_CPP([#include <$1>], eval "ac_cv_header_$ac_var=yes",
eval "ac_cv_header_$ac_var=no")])dnl
if eval "test \"`echo '$ac_cv_header_'$ac_var`\" = yes"; then
+ AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
-ifelse([$3], , , [else
- $3
+else
+ AC_MSG_RESULT(no)
+ifelse([$3], , , [$3
])dnl
fi
])dnl
#endif
], eval "ac_cv_func_$1=yes", eval "ac_cv_func_$1=no")])dnl
if eval "test \"`echo '$ac_cv_func_'$1`\" = yes"; then
+ AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
-ifelse([$3], , , [else
- $3
+else
+ AC_MSG_RESULT(no)
+ifelse([$3], , , [$3
])dnl
fi
])dnl
define(AC_REPLACE_FUNCS,
[for ac_func in $1
do
-AC_CHECK_FUNC(${ac_func}, ,
-[LIBOBJS="$LIBOBJS ${ac_func}.o"
-AC_MSG_RESULT(using ${ac_func}.o instead)
-])dnl
+AC_CHECK_FUNC(${ac_func}, , [LIBOBJS="$LIBOBJS ${ac_func}.o"])
done
AC_SUBST(LIBOBJS)dnl
])dnl
fprintf(f, "%d\n", sizeof($1));
exit(0);
}], AC_CV_NAME=`cat conftestval`)])dnl
+AC_MSG_RESULT($AC_CV_NAME)
AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME)
undefine(AC_TYPE_NAME)dnl
undefine(AC_CV_NAME)dnl
[AC_MSG_CHECKING(for $1 in sys/types.h)
AC_CACHE_VAL(ac_cv_type_$1,
[AC_EGREP_HEADER($1, sys/types.h, ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
+AC_MSG_RESULT($ac_cv_type_$1)
if test $ac_cv_type_$1 = no; then
AC_DEFINE($1, $2)
fi
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
[#] [$]0 [$]configure_args
+#
+# Compiler output produced by configure, useful for debugging
+# configure, is in ./config.log if it exists.
changequote(, )dnl
ac_cs_usage="Usage: ${CONFIG_STATUS} [--recheck] [--version] [--help]"
# The recursion is here.
if test -n "${ac_sub_configure}"; then
- AC_MSG_RESULT([running ${CONFIG_SHELL-/bin/sh} ${ac_sub_configure} ${ac_sub_configure_args} --cache-file=$ac_sub_cache_file] --srcdir=${ac_sub_srcdir})
+ echo "[running ${CONFIG_SHELL-/bin/sh} ${ac_sub_configure} ${ac_sub_configure_args} --cache-file=$ac_sub_cache_file] --srcdir=${ac_sub_srcdir}"
if ${CONFIG_SHELL-/bin/sh} ${ac_sub_configure} ${ac_sub_configure_args} --cache-file=$ac_sub_cache_file --srcdir=${ac_sub_srcdir}
then :
else
AC_PROVIDE([$0])dnl
AC_CHECK_PROG(CC, gcc, gcc, cc)
-# Find out if we are using GNU C, under whatever name.
+AC_MSG_CHECKING(whether we are using GNU C)
AC_CACHE_VAL(ac_cv_prog_gcc,
[cat > conftest.c <<EOF
#ifdef __GNUC__
yes
#endif
EOF
-if ${CC-cc} -E conftest.c 2>&6 | egrep yes >/dev/null 2>&1; then
+if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
fi])dnl
+AC_MSG_RESULT($ac_cv_prog_gcc)
if test $ac_cv_prog_gcc = yes; then GCC=yes; else GCC= ; fi
])dnl
dnl
yes
#endif
EOF
-if ${CXX-gcc} -E conftest.C 2>&6 | egrep yes >/dev/null 2>&1; then
+if ${CXX-gcc} -E conftest.C 2>&5 | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gxx=yes
else
ac_cv_prog_gxx=no
Autoconf TCGETA'
AC_EGREP_CPP($ac_pattern, $ac_prog, ac_cv_prog_gcc_traditional=yes)
fi])dnl
+ AC_MSG_RESULT($ac_cv_prog_gcc_traditional)
if test $ac_cv_prog_gcc_traditional = yes; then
CC="$CC -traditional"
- AC_MSG_RESULT(setting CC to $CC)
fi
fi
])dnl
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
-if ${CC-cc} -c conftest.c -o conftest.o 1>&6 2>&6 &&
- test -f conftest.o && ${CC-cc} -c conftest.c -o conftest.o 1>&6 2>&6
+if ${CC-cc} -c conftest.c -o conftest.o 1>&5 2>&5 &&
+ test -f conftest.o && ${CC-cc} -c conftest.c -o conftest.o 1>&5 2>&5
then
if test "x$CC" != xcc; then
# Test first that cc exists at all.
- if cc -c conftest.c 1>&6 2>&6
+ if cc -c conftest.c 1>&5 2>&5
then
- if cc -c conftest.c -o conftest2.o 1>&6 2>&6 &&
- test -f conftest2.o && cc -c conftest.c -o conftest2.o 1>&6 2>&6
+ if cc -c conftest.c -o conftest2.o 1>&5 2>&5 &&
+ test -f conftest2.o && cc -c conftest.c -o conftest2.o 1>&5 2>&5
then
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
fi
fi
rm -f conftest*
])dnl
-if test $ac_cv_prog_cc_${ac_cc}_c_o = no; then
+if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
+ AC_MSG_RESULT(yes)
+else
+ AC_MSG_RESULT(no)
AC_DEFINE(NO_MINUS_C_MINUS_O)
fi
])dnl
[AC_MSG_CHECKING(whether ${MAKE-make} sets \$MAKE)
set dummy ${MAKE-make}; ac_make=[$]2
AC_CACHE_VAL(ac_cv_prog_make_${ac_make}_set,
-[cat > conftestmake <<'EOF'
+[cat > conftestmake <<\EOF
all:
@echo 'ac_maketemp="${MAKE}"'
EOF
eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftestmake])dnl
-if test $ac_cv_prog_make_${ac_make}_set = yes; then
+if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
+ AC_MSG_RESULT(yes)
SET_MAKE=
else
+ AC_MSG_RESULT(no)
SET_MAKE="MAKE=${MAKE-make}"
- AC_MSG_RESULT(setting MAKE to ${MAKE-make} in Makefiles)
fi
AC_SUBST([SET_MAKE])dnl
])dnl
ac_cv_prog_CPP="$CPP"])dnl
fi
CPP="$ac_cv_prog_CPP"
-AC_MSG_RESULT(setting CPP to $CPP)
+AC_MSG_RESULT($CPP)
AC_SUBST(CPP)dnl
])dnl
dnl
AC_LANG_RESTORE[]dnl
fi])dnl
CXXCPP="$ac_cv_prog_CXXCPP"
-AC_MSG_RESULT(setting CXXCPP to $CXXCPP)
+AC_MSG_RESULT($CXXCPP)
AC_SUBST(CXXCPP)dnl
])dnl
dnl
define(AC_PROG_LEX,
[AC_PROVIDE([$0])dnl
AC_CHECK_PROG(LEX, flex, flex, lex)
+AC_MSG_CHECKING(for $LEX library)
if test -z "$LEXLIB"
then
case "$LEX" in
*) LEXLIB="-ll" ;;
esac
fi
-AC_MSG_RESULT(setting LEXLIB to $LEXLIB)
+AC_MSG_RESULT($LEXLIB)
AC_SUBST(LEXLIB)])dnl
dnl
define(AC_DECL_YYTEXT,
AC_TRY_LINK(`cat $LEX_OUTPUT_ROOT.c`, ac_cv_prog_lex_yytext_pointer=yes)
LIBS="$ac_save_LIBS"
rm -f "${LEX_OUTPUT_ROOT}.c"])dnl
+AC_MSG_RESULT($ac_cv_prog_lex_yytext_pointer)
if test $ac_cv_prog_lex_yytext_pointer = yes; then
AC_DEFINE(YYTEXT_POINTER)
fi
test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"])dnl
INSTALL="$ac_cv_path_install"
fi
+AC_MSG_RESULT($INSTALL)
AC_SUBST(INSTALL)dnl
-AC_MSG_RESULT(setting INSTALL to $INSTALL)
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
AC_SUBST(INSTALL_PROGRAM)dnl
-AC_MSG_RESULT(setting INSTALL_PROGRAM to $INSTALL_PROGRAM)
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
AC_SUBST(INSTALL_DATA)dnl
-AC_MSG_RESULT(setting INSTALL_DATA to $INSTALL_DATA)
])dnl
dnl
define(AC_PROG_LN_S,
fi])dnl
LN_S="$ac_cv_prog_LN_S"
if test "$ac_cv_prog_LN_S" = "ln -s"; then
- AC_MSG_RESULT(ln -s is supported)
+ AC_MSG_RESULT(yes)
else
- AC_MSG_RESULT(ln -s is not supported)
+ AC_MSG_RESULT(no)
fi
AC_SUBST(LN_S)dnl
])dnl
define(AC_PROG_RSH,
[AC_MSG_CHECKING(for remote shell)
AC_CACHE_VAL(ac_cv_path_RSH,
-[ac_cv_path_RSH=true
+[ac_cv_path_RSH=no
for ac_file in \
/usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh /usr/bin/nsh
do
fi
done])dnl
RSH="$ac_cv_path_RSH"
+AC_MSG_RESULT($RSH)
if test $RSH != true; then
- AC_MSG_RESULT(found remote shell $RSH)
RTAPELIB=rtapelib.o
else
- AC_MSG_RESULT(found no remote shell)
AC_CHECK_HEADER(netdb.h, [RTAPELIB=rtapelib.o AC_DEFINE(HAVE_NETDB_H)],
[RTAPELIB= AC_DEFINE(NO_REMOTE)])
fi
exit (0); }
], , ac_stdc_headers=no)
fi])dnl
+AC_MSG_RESULT($ac_cv_header_stdc)
if test $ac_cv_header_stdc = yes; then
AC_DEFINE(STDC_HEADERS)
fi])dnl
[; instead use AC_CHECK_HEADERS(string.h) and HAVE_STRING_H])dnl
AC_MSG_CHECKING([for BSD string and memory functions])
AC_TRY_LINK([#include <strings.h>], [rindex(0, 0); bzero(0, 0);], ,
- AC_DEFINE(USG))])dnl
+ [AC_MSG_RESULT(yes); AC_DEFINE(USG)], [AC_MSG_RESULT(no)])])dnl
dnl
dnl
dnl If memchr and the like aren't declared in <string.h>, include <memory.h>.
dnl To avoid problems, don't check for gcc2 built-ins.
define(AC_MEMORY_H,
-[AC_OBSOLETE([$0], [; instead use AC_CHECK_HEADERS(memory.h) and HAVE_MEMORY_H])AC_MSG_CHECKING(whether string.h declares mem functions)
-AC_EGREP_HEADER(memchr, string.h, ,
- [AC_CHECK_HEADER(memory.h, AC_DEFINE(NEED_MEMORY_H))])]
-)dnl
+[AC_OBSOLETE([$0], [; instead use AC_CHECK_HEADERS(memory.h) and HAVE_MEMORY_H])dnl
+AC_MSG_CHECKING(whether string.h declares mem functions)
+AC_EGREP_HEADER(memchr, string.h, ac_found=yes, ac_found=no)
+AC_MSG_RESULT($ac_found)
+if test $ac_found = no; then
+ AC_CHECK_HEADER(memory.h, [AC_DEFINE(NEED_MEMORY_H)])
+fi])dnl
dnl
define(AC_HEADER_MAJOR,
[AC_MSG_CHECKING([for major, minor and makedev header])
if test $ac_cv_header_major = no; then
AC_CHECK_HEADER(sys/sysmacros.h, ac_cv_header_major=sys/sysmacros.h)
fi])dnl
+AC_MSG_RESULT($ac_cv_header_major)
case "$ac_cv_header_major" in
sys/mkdev.h) AC_DEFINE(MAJOR_IN_MKDEV) ;;
sys/sysmacros.h) AC_DEFINE(MAJOR_IN_SYSMACROS) ;;
#include <$ac_hdr>], [DIR *dirp = 0;], ac_cv_header_dir=$ac_hdr; break)
done])dnl
+AC_MSG_RESULT($ac_cv_header_dir)
case "$ac_cv_header_dir" in
dirent.h) AC_DEFINE(HAVE_DIRENT_H) ;;
sys/ndir.h) AC_DEFINE(HAVE_SYS_NDIR_H) ;;
ndir.h) AC_DEFINE(HAVE_NDIR_H) ;;
esac
-AC_MSG_CHECKING(for closedir return value)
+AC_MSG_CHECKING(whether closedir returns void)
AC_CACHE_VAL(ac_cv_func_closedir_void,
[AC_TRY_RUN([#include <sys/types.h>
#include <$ac_cv_header_dir>
int closedir(); main() { exit(closedir(opendir(".")) != 0); }],
ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes)])dnl
+AC_MSG_RESULT($ac_cv_func_closedir_void)
if test $ac_cv_func_closedir_void = yes; then
AC_DEFINE(CLOSEDIR_VOID)
fi
#include <$ac_hdr>], [DIR *dirp = 0;], ac_cv_header_dir=$ac_hdr; break)
done])dnl
+AC_MSG_RESULT($ac_cv_header_dir)
case "$ac_cv_header_dir" in
dirent.h) AC_DEFINE(DIRENT) ;;
sys/ndir.h) AC_DEFINE(SYSNDIR) ;;
ndir.h) AC_DEFINE(NDIR) ;;
esac
-AC_MSG_CHECKING(for closedir return value)
+AC_MSG_CHECKING(whether closedir returns void)
AC_CACHE_VAL(ac_cv_func_closedir_void,
[AC_TRY_RUN([#include <sys/types.h>
#include <$ac_cv_header_dir>
int closedir(); main() { exit(closedir(opendir(".")) != 0); }],
ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes)])dnl
+AC_MSG_RESULT($ac_cv_func_closedir_void)
if test $ac_cv_func_closedir_void = yes; then
AC_DEFINE(VOID_CLOSEDIR)
fi
#endif
#endif /* S_ISSOCK */
], ac_cv_header_stat_broken=yes, ac_cv_header_stat_broken=no)])dnl
+AC_MSG_RESULT($ac_cv_header_stat_broken)
if test $ac_cv_header_stat_broken = yes; then
AC_DEFINE(STAT_MACROS_BROKEN)
fi
#include <unistd.h>
#endif], [char *msg = *(sys_siglist + 1);],
ac_cv_decl_sys_siglist=yes, ac_cv_decl_sys_siglist=no)])dnl
+AC_MSG_RESULT($ac_cv_decl_sys_siglist)
if test $ac_cv_decl_sys_siglist = yes; then
AC_DEFINE(SYS_SIGLIST_DECLARED)
fi
dnl
define(AC_TYPE_GETGROUPS,
[AC_REQUIRE([AC_TYPE_UID_T])dnl
-AC_MSG_CHECKING(for type of array argument to getgroups)
+AC_MSG_CHECKING(type of array argument to getgroups)
AC_CACHE_VAL(ac_cv_type_getgroups,
[changequote(, )dnl
dnl Do not put single quotes in the C program text!
changequote([, ])dnl
AC_TRY_RUN([$ac_prog],
ac_cv_type_getgroups=gid_t, ac_cv_type_getgroups=int)])dnl
+AC_MSG_RESULT($ac_cv_type_getgroups)
AC_DEFINE_UNQUOTED(GETGROUPS_T, $ac_cv_type_getgroups)
])dnl
dnl
AC_CACHE_VAL(ac_cv_type_uid_t,
[AC_EGREP_HEADER(uid_t, sys/types.h,
ac_cv_type_uid_t=yes, ac_cv_type_uid_t=no)])dnl
+AC_MSG_RESULT($ac_cv_type_uid_t)
if test $ac_cv_type_uid_t = no; then
AC_DEFINE(uid_t, int)
AC_DEFINE(gid_t, int)
#endif
extern void (*signal ()) ();],
[int i;], ac_cv_type_signal=void, ac_cv_type_signal=int)])dnl
+AC_MSG_RESULT($ac_cv_type_signal)
AC_DEFINE_UNQUOTED(RETSIGTYPE, $ac_cv_type_signal)
])dnl
dnl
exit(0);
}
], ac_cv_func_mmap=yes, ac_cv_func_mmap=no)])dnl
+AC_MSG_RESULT($ac_cv_func_mmap)
if test $ac_cv_func_mmap = yes; then
AC_DEFINE(HAVE_MMAP)
fi
);
}
}], ac_cv_func_vfork=yes, ac_cv_func_vfork=no)])dnl
+AC_MSG_RESULT($ac_cv_func_vfork)
if test $ac_cv_func_vfork = no; then
AC_DEFINE(vfork, fork)
fi
&& r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
}
}], ac_cv_func_wait3=yes, ac_cv_func_wait3=no)])dnl
+AC_MSG_RESULT($ac_cv_func_wait3)
if test $ac_cv_func_wait3 = yes; then
AC_DEFINE(HAVE_WAIT3)
fi
AC_CACHE_VAL(ac_cv_header_alloca_h,
[AC_TRY_LINK([#include <alloca.h>], [char *p = alloca(2 * sizeof(int));],
ac_cv_header_alloca_h=yes, ac_cv_header_alloca_h=no)])dnl
+AC_MSG_RESULT($ac_cv_header_alloca_h)
if test $ac_cv_header_alloca_h = yes; then
AC_DEFINE(HAVE_ALLOCA_H)
fi
#endif
], [char *p = (char *) alloca(1);],
ac_cv_func_alloca=yes, ac_cv_func_alloca=no)])dnl
+AC_MSG_RESULT($ac_cv_func_alloca)
if test $ac_cv_func_alloca = yes; then
AC_DEFINE(HAVE_ALLOCA)
fi
ALLOCA=alloca.o
AC_DEFINE(C_ALLOCA)
-AC_MSG_CHECKING(whether Cray hooks are needed for C alloca)
-AC_EGREP_CPP(webecray,
+AC_MSG_CHECKING(whether alloca needs Cray hooks)
+AC_CACHE_VAL(ac_cv_os_cray,
+[AC_EGREP_CPP(webecray,
[#if defined(CRAY) && ! defined(CRAY2)
webecray
#else
wenotbecray
#endif
-],
+], ac_cv_os_cray=yes, ac_cv_os_cray=no)])dnl
+AC_MSG_RESULT($ac_cv_os_cray)
+if test $ac_cv_os_cray = yes; then
AC_CHECK_FUNC([_getb67], AC_DEFINE(CRAY_STACKSEG_END, _getb67),
AC_CHECK_FUNC([GETB67], AC_DEFINE(CRAY_STACKSEG_END, GETB67),
-AC_CHECK_FUNC([getb67], AC_DEFINE(CRAY_STACKSEG_END, getb67)))))
+AC_CHECK_FUNC([getb67], AC_DEFINE(CRAY_STACKSEG_END, getb67))))
+fi
AC_MSG_CHECKING(stack direction for C alloca)
AC_CACHE_VAL(ac_cv_c_stack_direction,
exit (find_stack_direction() < 0);
}], ac_cv_c_stack_direction=1, ac_cv_c_stack_direction=-1,
ac_cv_c_stack_direction=0)])dnl
+AC_MSG_RESULT($ac_cv_c_stack_direction)
AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction)
fi
AC_SUBST(ALLOCA)dnl
[AC_TRY_LINK([#include <nlist.h>],
[struct nlist n; n.n_un.n_name = 0;],
ac_cv_struct_nlist_n_un=yes, ac_cv_struct_nlist_n_un=no)])dnl
+AC_MSG_RESULT($ac_cv_struct_nlist_n_un)
if test $ac_cv_struct_nlist_n_un = yes; then
AC_DEFINE(NLIST_NAME_UNION)
fi
Yowza Am I SETGID yet
#endif],
ac_cv_func_getloadavg_setgid=yes, ac_cv_func_getloadavg_setgid=no)])dnl
+AC_MSG_RESULT($ac_cv_func_getloadavg_setgid)
if test $ac_cv_func_getloadavg_setgid = yes; then
NEED_SETGID=true AC_DEFINE(GETLOADAVG_PRIVILEGED)
fi
changequote([, ])dnl
])dnl
KMEM_GROUP=$ac_cv_group_kmem
- AC_MSG_RESULT(/dev/kmem is owned by $KMEM_GROUP)
+ AC_MSG_RESULT($KMEM_GROUP)
fi
AC_SUBST(KMEM_GROUP)dnl
])dnl
dnl
define(AC_FUNC_UTIME_NULL,
-[AC_MSG_CHECKING(utime with null argument)
+[AC_MSG_CHECKING(whether utime accepts a null argument)
AC_CACHE_VAL(ac_cv_func_utime_null,
[rm -f conftestdata; > conftestdata
# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
&& t.st_mtime - s.st_mtime < 120));
}], ac_cv_func_utime_null=yes, ac_cv_func_utime_null=no)
rm -f core])dnl
+AC_MSG_RESULT($ac_cv_func_utime_null)
if test $ac_cv_func_utime_null = yes; then
AC_DEFINE(HAVE_UTIME_NULL)
fi
strcoll ("ABC", "DEF") >= 0 ||
strcoll ("123", "456") >= 0);
}], ac_cv_func_strcoll=yes, ac_cv_func_strcoll=no)])dnl
+AC_MSG_RESULT($ac_cv_func_strcoll)
if test $ac_cv_func_strcoll = yes; then
AC_DEFINE(HAVE_STRCOLL)
fi
exit(0); /* Non-reversed systems segv here. */
}], ac_cv_func_setvbuf_reversed=yes, ac_cv_func_setvbuf_reversed=no)
rm -f core])dnl
+AC_MSG_RESULT($ac_cv_func_setvbuf_reversed)
if test $ac_cv_func_setvbuf_reversed = yes; then
AC_DEFINE(SETVBUF_REVERSED)
fi
dnl
define(AC_STRUCT_TM,
[AC_PROVIDE([$0])dnl
-AC_MSG_CHECKING([for struct tm in sys/time.h instead of time.h])
+AC_MSG_CHECKING([whether struct tm is in sys/time.h or time.h])
AC_CACHE_VAL(ac_cv_struct_tm,
[AC_TRY_LINK([#include <sys/types.h>
#include <time.h>],
[struct tm *tp; tp->tm_sec;],
ac_cv_struct_tm=time.h, ac_cv_struct_tm=sys/time.h)])dnl
+AC_MSG_RESULT($ac_cv_struct_tm)
if test $ac_cv_struct_tm = sys/time.h; then
AC_DEFINE(TM_IN_SYS_TIME)
fi
#include <sys/time.h>
#include <time.h>],
[struct tm *tp;], ac_cv_header_time=yes, ac_cv_header_time=no)])dnl
+AC_MSG_RESULT($ac_cv_header_time)
if test $ac_cv_header_time = yes; then
AC_DEFINE(TIME_WITH_SYS_TIME)
fi
[AC_TRY_LINK([#include <sys/types.h>
#include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_zone;],
ac_cv_struct_tm_zone=yes, ac_cv_struct_tm_zone=no)])dnl
+AC_MSG_RESULT($ac_cv_struct_tm_zone)
if test "$ac_cv_struct_tm_zone" = yes; then
AC_DEFINE(HAVE_TM_ZONE)
else
extern char *tzname[]; /* RS6000 and others reject char **tzname. */
#endif>>, changequote([, ])dnl
[atoi(*tzname);], ac_cv_var_tzname=yes, ac_cv_var_tzname=no)])dnl
+ AC_MSG_RESULT($ac_cv_var_tzname)
if test $ac_cv_var_tzname = yes; then
AC_DEFINE(HAVE_TZNAME)
fi
[AC_TRY_LINK([#include <sys/types.h>
#include <sys/stat.h>], [struct stat s; s.st_blocks;],
ac_cv_struct_st_blocks=yes, ac_cv_struct_st_blocks=no)])dnl
+AC_MSG_RESULT($ac_cv_struct_st_blocks)
if test $ac_cv_struct_st_blocks = yes; then
AC_DEFINE(HAVE_ST_BLOCKS)
else
[AC_TRY_LINK([#include <sys/types.h>
#include <sys/stat.h>], [struct stat s; s.st_blksize;],
ac_cv_struct_st_blksize=yes, ac_cv_struct_st_blksize=no)])dnl
+AC_MSG_RESULT($ac_cv_struct_st_blksize)
if test $ac_cv_struct_st_blksize = yes; then
AC_DEFINE(HAVE_ST_BLKSIZE)
fi
[AC_TRY_LINK([#include <sys/types.h>
#include <sys/stat.h>], [struct stat s; s.st_rdev;],
ac_cv_struct_st_rdev=yes, ac_cv_struct_st_rdev=no)])dnl
+AC_MSG_RESULT($ac_cv_struct_st_rdev)
if test $ac_cv_struct_st_rdev = yes; then
AC_DEFINE(HAVE_ST_RDEV)
fi
dnl ### Checks for compiler characteristics
dnl
dnl
-define(AC_TRY_CROSS,
+define(AC_C_CROSS,
[AC_PROVIDE([$0])dnl
# If we cannot run a trivial program, we must be cross compiling.
AC_MSG_CHECKING(whether cross-compiling)
AC_CACHE_VAL(ac_cv_c_cross,
[AC_TRY_RUN([main(){exit(0);}], ac_cv_c_cross=no, ac_cv_c_cross=yes)])dnl
cross_compiling=$ac_cv_c_cross
-if test $ac_cv_c_cross = yes; then
- AC_MSG_RESULT(we are cross-compiling)
-else
- AC_MSG_RESULT(we are not cross-compiling)
-fi])dnl
+AC_MSG_RESULT($ac_cv_c_cross)
+])dnl
dnl
define(AC_C_CHAR_UNSIGNED,
-[AC_MSG_CHECKING(for unsigned characters)
+[AC_MSG_CHECKING(whether char is unsigned)
AC_CACHE_VAL(ac_cv_c_char_unsigned,
[AC_TRY_RUN(
[/* volatile prevents gcc2 from optimizing the test away on sparcs. */
volatile char c = 255; exit(c < 0);
#endif
}], ac_cv_c_char_unsigned=yes, ac_cv_c_char_unsigned=no)])dnl
+AC_MSG_RESULT($ac_cv_c_char_unsigned)
if test $ac_cv_c_char_unsigned = yes; then
AC_DEFINE(__CHAR_UNSIGNED__)
fi
exit(sizeof(long double) < sizeof(double)); }],
ac_cv_c_long_double=yes, ac_cv_c_long_double=no)
fi])dnl
+AC_MSG_RESULT($ac_cv_c_long_double)
if test $ac_cv_c_long_double = yes; then
AC_DEFINE(HAVE_LONG_DOUBLE)
fi
[AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(int)])
AC_MSG_CHECKING(integer size)
AC_TRY_RUN([main() { exit(sizeof(int) != 2); }],
- AC_DEFINE(INT_16_BITS))
+ [AC_MSG_RESULT(16 bits)
+ AC_DEFINE(INT_16_BITS)], AC_MSG_RESULT(not 16 bits))
])dnl
dnl
define(AC_LONG_64_BITS,
[AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(long)])
AC_MSG_CHECKING(for 64-bit long ints)
AC_TRY_RUN([main() { exit(sizeof(long int) != 8); }],
- AC_DEFINE(LONG_64_BITS))
+ [AC_MSG_RESULT(64 bits)
+ AC_DEFINE(LONG_64_BITS)], AC_MSG_RESULT(not 64 bits))
])dnl
dnl
define(AC_C_BIGENDIAN,
-[AC_MSG_CHECKING(byte ordering)
+[AC_MSG_CHECKING(whether byte ordering is bigendian)
AC_CACHE_VAL(ac_cv_c_bigendian,
[AC_TRY_RUN([main () {
/* Are we little or big endian? From Harbison&Steele. */
u.l = 1;
exit (u.c[sizeof (long) - 1] == 1);
}], ac_cv_c_bigendian=no, ac_cv_c_bigendian=yes)])dnl
+AC_MSG_RESULT($ac_cv_c_bigendian)
if test $ac_cv_c_bigendian = yes; then
AC_DEFINE(WORDS_BIGENDIAN)
fi
return a == 1 && b[0] == 2 && b[1] == 3 && b[2] == 4;
}], ac_cv_c_arg_array=no, ac_cv_c_arg_array=yes)
rm -f core])dnl
+AC_MSG_RESULT($ac_cv_c_arg_array)
if test $ac_cv_c_arg_array = no; then
AC_DEFINE(NO_ARG_ARRAY)
fi
else
ac_cv_c_inline=no
fi])dnl
+AC_MSG_RESULT($ac_cv_c_inline)
if test $ac_cv_c_inline = no; then
AC_DEFINE(inline, __inline)
fi
])dnl
define(AC_C_CONST,
-[dnl Do not "break" this again.
-AC_MSG_CHECKING([for lack of working const])
+[dnl This message is consistent in form with the other checking messages,
+dnl and with the result message.
+AC_MSG_CHECKING([for working const])
AC_CACHE_VAL(ac_cv_c_const,
[changequote(, )dnl
dnl Do not put single quotes in the C program text!
}'
changequote([, ])dnl
AC_TRY_LINK(, [$ac_prog], ac_cv_c_const=yes, ac_cv_c_const=no)])dnl
+AC_MSG_RESULT($ac_cv_c_const)
if test $ac_cv_c_const = no; then
AC_DEFINE(const, )
fi
ac_cv_sys_interpreter=no
fi
rm -f conftest])dnl
+AC_MSG_RESULT($ac_cv_sys_interpreter)
if test $ac_cv_sys_interpreter = yes; then
ifelse([$1], , :, [$1])
ifelse([$2], , , [else
fi
])dnl
define(AC_SYS_REMOTE_TAPE,
-[AC_MSG_CHECKING(for remote tape and socket header files)
-AC_CHECK_HEADER(sys/mtio.h, AC_DEFINE(HAVE_SYS_MTIO_H))
+[AC_CHECK_HEADER(sys/mtio.h, AC_DEFINE(HAVE_SYS_MTIO_H))
if test "$ac_cv_header_mtio_h" = yes; then
+AC_MSG_CHECKING(for remote tape header files)
AC_CACHE_VAL(ac_cv_header_rmt,
[AC_TRY_CPP([#include <sgtty.h>
#include <sys/socket.h>], ac_cv_header_rmt=yes, ac_cv_header_rmt=no)])dnl
+ AC_MSG_RESULT($ac_cv_header_rmt)
if test $ac_cv_header_rmt = yes; then
PROGS="$PROGS rmt"
fi
fi
rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2> /dev/null
done])dnl
+AC_MSG_RESULT($ac_cv_sys_long_file_names)
if test $ac_cv_sys_long_file_names = yes; then
AC_DEFINE(HAVE_LONG_FILE_NAMES)
fi
exit (status == -1);
}
], ac_cv_sys_restartable_syscalls=yes, ac_cv_sys_restartable_syscalls=no)])dnl
+AC_MSG_RESULT($ac_cv_sys_restartable_syscalls)
if test $ac_cv_sys_restartable_syscalls = yes; then
AC_DEFINE(HAVE_RESTARTABLE_SYSCALLS)
fi
test -n "$x_libraries" && ac_cv_x_includes="$x_libraries"
if test "${ac_cv_x_includes+set}" = set &&
test "${ac_cv_x_libraries+set}" = set; then
- AC_MSG_RESULT(using cached values for ac_cv_x_includes and ac_cv_x_libraries)
+ AC_VERBOSE(using cached values for ac_cv_x_includes and ac_cv_x_libraries)
else
AC_PATH_X_XMKMF
fi
x_libraries="$ac_cv_x_libraries"
fi
-test -n "$x_includes" && AC_MSG_RESULT(X11 headers are in $x_includes)
-test -n "$x_libraries" && AC_MSG_RESULT(X11 libraries are in $x_libraries)
+test -n "$x_includes" && AC_VERBOSE(X11 headers are in $x_includes)
+test -n "$x_libraries" && AC_VERBOSE(X11 libraries are in $x_libraries)
fi # No --with-x=no.
])dnl
dnl
dnl Internal subroutine of AC_PATH_X.
define(AC_PATH_X_XMKMF,
-[AC_MSG_CHECKING(for X include and library files with xmkmf)
+[AC_CHECKING(for X include and library files with xmkmf)
rm -fr conftestdir
if mkdir conftestdir; then
cd conftestdir
dnl
dnl Internal subroutine of AC_PATH_X.
define(AC_PATH_X_DIRECT,
-[AC_MSG_CHECKING(for X include and library files directly)
+[AC_CHECKING(for X include and library files directly)
test -z "$x_direct_TRY_library" && x_direct_TRY_library=Xt
test -z "$x_direct_TRY_include" && x_direct_TRY_include=X11/Intrinsic.h
AC_TRY_CPP([#include <$x_direct_TRY_include>], no_x=,
define(AC_PATH_XTRA,
[AC_REQUIRE([AC_OS_ISC])dnl
AC_REQUIRE([AC_PATH_X])dnl
-AC_MSG_CHECKING(for additional X libraries and flags)
+AC_CHECKING(for additional X libraries and flags)
if test -n "$x_includes"; then
X_CFLAGS="$X_CFLAGS -I$x_includes"
elif test "$no_x" = yes; then
fi
fi
#
-AC_MSG_RESULT(X compiler flags: $X_CFLAGS)
-AC_MSG_RESULT(X library flags: $X_LIBS)
-AC_MSG_RESULT(extra X libraries: $X_EXTRA_LIBS)
+AC_VERBOSE(X compiler flags: $X_CFLAGS)
+AC_VERBOSE(X library flags: $X_LIBS)
+AC_VERBOSE(extra X libraries: $X_EXTRA_LIBS)
AC_SUBST(X_CFLAGS)dnl
AC_SUBST(X_LIBS)dnl
AC_SUBST(X_EXTRA_LIBS)dnl
dnl
dnl
define(AC_OS_AIX,
-[AC_MSG_CHECKING(for AIX)
-AC_BEFORE([$0], [AC_TRY_LINK])dnl
+[AC_BEFORE([$0], [AC_TRY_LINK])dnl
AC_BEFORE([$0], [AC_TRY_RUN])dnl
AC_BEFORE([$0], [AC_TRY_CPP])dnl
+AC_MSG_CHECKING(for AIX)
AC_EGREP_CPP(yes,
[#ifdef _AIX
yes
#endif
-], AC_DEFINE(_ALL_SOURCE))
+], [AC_MSG_RESULT(yes); AC_DEFINE(_ALL_SOURCE)], AC_MSG_RESULT(no))
])dnl
dnl
define(AC_OS_MINIX,
AC_BEFORE([$0], [AC_TRY_RUN])dnl
AC_BEFORE([$0], [AC_TRY_CPP])dnl
AC_CHECK_HEADER(minix/config.h, MINIX=yes, MINIX=)
-# The Minix shell ca not assign to the same variable on the same line!
+# The Minix shell can not assign to the same variable on the same line!
if test "$MINIX" = yes; then
AC_DEFINE(_POSIX_SOURCE)
AC_DEFINE(_POSIX_1_SOURCE, 2)
if test -d /etc/conf/kconfig.d &&
grep _POSIX_VERSION [/usr/include/sys/unistd.h] >/dev/null 2>&1
then
+ AC_MSG_RESULT(yes)
ISC=yes # If later tests want to check for ISC.
AC_DEFINE(_POSIX_SOURCE)
if test "$GCC" = yes; then
CC="$CC -Xp"
fi
else
+ AC_MSG_RESULT(no)
ISC=
fi
])dnl
[#if defined(M_XENIX) && !defined(M_UNIX)
yes
#endif
-], XENIX=yes, XENIX=)
+], [XENIX=yes AC_MSG_RESULT(yes)], [XENIX= AC_MSG_RESULT(no)])
if test "$XENIX" = yes; then
LIBS="$LIBS -lx"
case "$DEFS" in
@c @setchapternewpage odd
@c %**end of header
-@set EDITION 1.97
-@set VERSION 1.97
+@set EDITION 1.98
+@set VERSION 1.98
@set UPDATED August 1994
@iftex
were an array of values.
@end defmac
-@defmac AC_TRY_CROSS
-@maindex TRY_CROSS
+@defmac AC_C_CROSS
+@maindex C_CROSS
If the C compiler being used does not produce executables that can run
on the system where @code{configure} is being run, set the shell
variable @code{cross_compiling} to @samp{yes}, otherwise @samp{no}.
the C compiler being used does not produce executables that run on the
system where @code{configure} is being run, then the test program is not
run. Instead, the shell commands @var{action-if-cross-compiling} are
-run. If that argument is given, this macro calls @code{AC_TRY_CROSS}
+run. If that argument is given, this macro calls @code{AC_C_CROSS}
if it has not already been called (@pxref{Compiler Characteristics}).
@end defmac
changes need only be made to the macro definitions, and all of the
callers change automatically.
+@defmac AC_CHECKING (@var{feature-description})
+@maindex CHECKING
+This macro is similar to @code{AC_MSG_CHECKING}, except that it prints a
+newline after the @var{feature-description}. It is considered obsolete.
+@end defmac
+
@defmac AC_MSG_CHECKING (@var{feature-description})
@maindex MSG_CHECKING
Notify the user that @code{configure} is checking for a particular
-feature. This macro prints a message that starts with @samp{checking }.
-It prints nothing if @code{configure} is run with the @samp{--silent} or
-@samp{--quiet} option. The @var{feature-description} should be
-something like @samp{whether the Fortran compiler accepts C++ comments}
-or @samp{for c89}.
+feature. This macro prints a message that starts with @samp{checking }
+and ends with @samp{...} and no newline. It must be followed by a call
+to @code{AC_MSG_RESULT} to print the result of the check and the
+newline. The @var{feature-description} should be something like
+@samp{whether the Fortran compiler accepts C++ comments} or @samp{for
+c89}.
+
+This macro prints nothing if @code{configure} is run with the
+@samp{--quiet} or @samp{--silent} option.
@end defmac
@defmac AC_MSG_ERROR (@var{error-description})
@defmac AC_MSG_RESULT (@var{result-description})
@maindex MSG_RESULT
-Notify the user of the results of a check. This information is
-only printed if @code{configure} is run with the @samp{--verbose}
-option. @var{result-description} should be something like @samp{setting
-ADA to $ADA}.
+Notify the user of the results of a check. @var{result-description} is
+almost always the value of the cache variable for the check, typically
+@samp{yes}, @samp{no}, or a file name. This macro should follow a call
+to @code{AC_MSG_CHECKING}, and the @var{result-description} should be
+the completion of the message printed by the call to
+@code{AC_MSG_CHECKING}.
+
+This macro prints nothing if @code{configure} is run with the
+@samp{--quiet} or @samp{--silent} option.
@end defmac
@defmac AC_MSG_WARN (@var{problem-description})
make hard links}.
@end defmac
+@defmac AC_VERBOSE (@var{result-description})
+@maindex VERBOSE
+This macro is similar to @code{AC_MSG_RESULT}, except that it is meant to
+follow a call to @code{AC_CHECKING} instead of @code{AC_MSG_CHECKING}.
+It is considered obsolete.
+@end defmac
+
@node Language Choice, Macro Ordering, Printing Messages, General Purpose Macros
@section Language Choice
@maindex CACHE_VAL
Ensure that the results of the check identified by @var{cache-id} are
available. If the results of the check were in the cache file that was
-read, print a verbose message saying so; otherwise, run the shell
-commands @var{commands-to-set-it}. Those commands should have no side
-effects except for setting the variable @var{cache-id}. In particular,
-they should not call @code{AC_DEFINE}; the code that follows the call to
-@code{AC_CACHE_VAL} should do that, based on the cached value. Also,
-they should not print any messages, for example with @code{AC_MSG_CHECKING};
-do that before calling @code{AC_CACHE_VAL}, so the messages are printed
-regardless of whether the results of the check are retrieved from the
-cache or determined by running the shell commands. If the shell
-commands are run to determine the value, the value will be saved in the
-cache file just before @code{configure} creates its output files.
+read, and @code{configure} was not given the @samp{--quiet} or
+@samp{--silent} option, print a message saying so; otherwise, run the
+shell commands @var{commands-to-set-it}. Those commands should have no
+side effects except for setting the variable @var{cache-id}. In
+particular, they should not call @code{AC_DEFINE}; the code that follows
+the call to @code{AC_CACHE_VAL} should do that, based on the cached
+value. Also, they should not print any messages, for example with
+@code{AC_MSG_CHECKING}; do that before calling @code{AC_CACHE_VAL}, so
+the messages are printed regardless of whether the results of the check
+are retrieved from the cache or determined by running the shell
+commands. If the shell commands are run to determine the value, the
+value will be saved in the cache file just before @code{configure}
+creates its output files.
@end defmac
@menu
C structures
@item sys
-operating systems
+operating system features
@item type
C types
@vindex PREPARE
@vindex INIT_PREPARE
@code{AC_INIT_PREPARE}
-@item AC_CHECKING
-@vindex CHECKING
-@vindex MSG_CHECKING
-@code{AC_MSG_CHECKING}
-@item AC_VERBOSE
-@vindex VERBOSE
-@vindex MSG_RESULT
-@code{AC_MSG_RESULT}
@item AC_WARN
@vindex WARN
@vindex MSG_WARN
@code{AC_STRUCT_ST_RDEV}
@item AC_CROSS_CHECK
@vindex CROSS_CHECK
-@vindex TRY_CROSS
-@code{AC_TRY_CROSS}
+@vindex C_CROSS
+@code{AC_C_CROSS}
@item AC_CHAR_UNSIGNED
@vindex CHAR_UNSIGNED
@vindex C_CHAR_UNSIGNED
if test "$PERL" != no-perl; then
PROGS=autoscan
else
- AC_VERBOSE(autoscan will not be built since perl is not found)
+ AC_WARN(autoscan will not be built since perl is not found)
fi
AC_PROGRAM_CHECK(BASH, bash, no-bash)
if test "$BASH" != no-bash; then
PROGS="$PROGS shindent"
else
- AC_VERBOSE(shindent will not be built since bash is not found)
+ AC_WARN(shindent will not be built since bash is not found)
fi
AC_PROG_INSTALL
@c @setchapternewpage odd
@c %**end of header
-@set EDITION 1.97
-@set VERSION 1.97
+@set EDITION 1.98
+@set VERSION 1.98
@set UPDATED August 1994
@iftex
were an array of values.
@end defmac
-@defmac AC_TRY_CROSS
-@maindex TRY_CROSS
+@defmac AC_C_CROSS
+@maindex C_CROSS
If the C compiler being used does not produce executables that can run
on the system where @code{configure} is being run, set the shell
variable @code{cross_compiling} to @samp{yes}, otherwise @samp{no}.
the C compiler being used does not produce executables that run on the
system where @code{configure} is being run, then the test program is not
run. Instead, the shell commands @var{action-if-cross-compiling} are
-run. If that argument is given, this macro calls @code{AC_TRY_CROSS}
+run. If that argument is given, this macro calls @code{AC_C_CROSS}
if it has not already been called (@pxref{Compiler Characteristics}).
@end defmac
changes need only be made to the macro definitions, and all of the
callers change automatically.
+@defmac AC_CHECKING (@var{feature-description})
+@maindex CHECKING
+This macro is similar to @code{AC_MSG_CHECKING}, except that it prints a
+newline after the @var{feature-description}. It is considered obsolete.
+@end defmac
+
@defmac AC_MSG_CHECKING (@var{feature-description})
@maindex MSG_CHECKING
Notify the user that @code{configure} is checking for a particular
-feature. This macro prints a message that starts with @samp{checking }.
-It prints nothing if @code{configure} is run with the @samp{--silent} or
-@samp{--quiet} option. The @var{feature-description} should be
-something like @samp{whether the Fortran compiler accepts C++ comments}
-or @samp{for c89}.
+feature. This macro prints a message that starts with @samp{checking }
+and ends with @samp{...} and no newline. It must be followed by a call
+to @code{AC_MSG_RESULT} to print the result of the check and the
+newline. The @var{feature-description} should be something like
+@samp{whether the Fortran compiler accepts C++ comments} or @samp{for
+c89}.
+
+This macro prints nothing if @code{configure} is run with the
+@samp{--quiet} or @samp{--silent} option.
@end defmac
@defmac AC_MSG_ERROR (@var{error-description})
@defmac AC_MSG_RESULT (@var{result-description})
@maindex MSG_RESULT
-Notify the user of the results of a check. This information is
-only printed if @code{configure} is run with the @samp{--verbose}
-option. @var{result-description} should be something like @samp{setting
-ADA to $ADA}.
+Notify the user of the results of a check. @var{result-description} is
+almost always the value of the cache variable for the check, typically
+@samp{yes}, @samp{no}, or a file name. This macro should follow a call
+to @code{AC_MSG_CHECKING}, and the @var{result-description} should be
+the completion of the message printed by the call to
+@code{AC_MSG_CHECKING}.
+
+This macro prints nothing if @code{configure} is run with the
+@samp{--quiet} or @samp{--silent} option.
@end defmac
@defmac AC_MSG_WARN (@var{problem-description})
make hard links}.
@end defmac
+@defmac AC_VERBOSE (@var{result-description})
+@maindex VERBOSE
+This macro is similar to @code{AC_MSG_RESULT}, except that it is meant to
+follow a call to @code{AC_CHECKING} instead of @code{AC_MSG_CHECKING}.
+It is considered obsolete.
+@end defmac
+
@node Language Choice, Macro Ordering, Printing Messages, General Purpose Macros
@section Language Choice
@maindex CACHE_VAL
Ensure that the results of the check identified by @var{cache-id} are
available. If the results of the check were in the cache file that was
-read, print a verbose message saying so; otherwise, run the shell
-commands @var{commands-to-set-it}. Those commands should have no side
-effects except for setting the variable @var{cache-id}. In particular,
-they should not call @code{AC_DEFINE}; the code that follows the call to
-@code{AC_CACHE_VAL} should do that, based on the cached value. Also,
-they should not print any messages, for example with @code{AC_MSG_CHECKING};
-do that before calling @code{AC_CACHE_VAL}, so the messages are printed
-regardless of whether the results of the check are retrieved from the
-cache or determined by running the shell commands. If the shell
-commands are run to determine the value, the value will be saved in the
-cache file just before @code{configure} creates its output files.
+read, and @code{configure} was not given the @samp{--quiet} or
+@samp{--silent} option, print a message saying so; otherwise, run the
+shell commands @var{commands-to-set-it}. Those commands should have no
+side effects except for setting the variable @var{cache-id}. In
+particular, they should not call @code{AC_DEFINE}; the code that follows
+the call to @code{AC_CACHE_VAL} should do that, based on the cached
+value. Also, they should not print any messages, for example with
+@code{AC_MSG_CHECKING}; do that before calling @code{AC_CACHE_VAL}, so
+the messages are printed regardless of whether the results of the check
+are retrieved from the cache or determined by running the shell
+commands. If the shell commands are run to determine the value, the
+value will be saved in the cache file just before @code{configure}
+creates its output files.
@end defmac
@menu
C structures
@item sys
-operating systems
+operating system features
@item type
C types
@vindex PREPARE
@vindex INIT_PREPARE
@code{AC_INIT_PREPARE}
-@item AC_CHECKING
-@vindex CHECKING
-@vindex MSG_CHECKING
-@code{AC_MSG_CHECKING}
-@item AC_VERBOSE
-@vindex VERBOSE
-@vindex MSG_RESULT
-@code{AC_MSG_RESULT}
@item AC_WARN
@vindex WARN
@vindex MSG_WARN
@code{AC_STRUCT_ST_RDEV}
@item AC_CROSS_CHECK
@vindex CROSS_CHECK
-@vindex TRY_CROSS
-@code{AC_TRY_CROSS}
+@vindex C_CROSS
+@code{AC_C_CROSS}
@item AC_CHAR_UNSIGNED
@vindex CHAR_UNSIGNED
@vindex C_CHAR_UNSIGNED
Look for the package's source code in directory @var{dir}. Usually
@code{configure} can determine that directory automatically.
-@item --verbose
-@itemx -v
-Print the results of the checks.
-
@item --version
Print the version of Autoconf used to generate the @code{configure}
script, and exit.
Look for the package's source code in directory @var{dir}. Usually
@code{configure} can determine that directory automatically.
-@item --verbose
-@itemx -v
-Print the results of the checks.
-
@item --version
Print the version of Autoconf used to generate the @code{configure}
script, and exit.
M4 environment variable to its path name.
)m4exit(2)])dnl
dnl
-define(AC_ACVERSION, 1.97)dnl
+define(AC_ACVERSION, 1.98)dnl
dnl This is defined by the --version option of the autoconf script.
ifdef([AC_PRINT_VERSION], [Autoconf version AC_ACVERSION
m4exit(0)])dnl
--cache-file=FILE cache test results in FILE
--help print this message
--no-create do not create output files
---quiet, --silent do not print \`checking for...' messages
---verbose print results of checks
+--quiet, --silent do not print \`checking...' messages
--version print the version of autoconf that created configure
Directories:
--exec-prefix=PREFIX install host dependent files in PREFIX [/usr/local]
# 1 file creation
# 2 errors and warnings
# 3 unused; some systems may open it to /dev/tty
-# 4 checking for... messages
-# 5 test results
-# 6 compiler messages
+# 4 checking for... messages and results
+# 5 compiler messages
if test "$silent" = yes; then
exec 4>/dev/null
else
exec 4>&1
fi
-if test "$verbose" = yes; then
- exec 5>&1
-else
- exec 5>/dev/null
-fi
-exec 6>./config.log
+exec 5>./config.log
echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-" 1>&6
+" 1>&5
# Save the original args if we used an alternate arg parser.
ac_configure_temp="${configure_args-[$]@}"
if test -n "$ac_cv_path_<<>>AC_VAR_NAME"; then
prefix=`echo $ac_cv_path_<<>>AC_VAR_NAME|sed 's%/[^/][^/]*/[^/][^/]*$%%'`
changequote([, ])dnl
-dnl test -z "$prefix" && prefix=/
- AC_MSG_RESULT(setting installation directory prefix to ${prefix})
fi
fi
undefine(AC_VAR_NAME)dnl
dnl Subroutines of AC_CANONICAL_SYSTEM.
dnl
define(AC_CANONICAL_HOST,
-[AC_MSG_CHECKING(host type)
+[AC_MSG_CHECKING(host system type)
case "${host_alias}" in
NONE)
host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
-test -n "$host" && AC_MSG_RESULT(setting host to $host)
+AC_MSG_RESULT($host)
AC_SUBST(host)dnl
AC_SUBST(host_alias)dnl
AC_SUBST(host_cpu)dnl
])dnl
dnl
define(AC_CANONICAL_TARGET,
-[AC_MSG_CHECKING(target type)
+[AC_MSG_CHECKING(target system type)
case "${target_alias}" in
NONE)
target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
-test -n "$target" && AC_MSG_RESULT(setting target to $target)
+AC_MSG_RESULT($target)
AC_SUBST(target)dnl
AC_SUBST(target_alias)dnl
AC_SUBST(target_cpu)dnl
])dnl
dnl
define(AC_CANONICAL_BUILD,
-[AC_MSG_CHECKING(build type)
+[AC_MSG_CHECKING(build system type)
case "${build_alias}" in
NONE) build= build_alias= ;;
build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
;;
esac
-test -n "$build" && AC_MSG_RESULT(setting build to $build)
+AC_MSG_RESULT($build)
AC_SUBST(build)dnl
AC_SUBST(build_alias)dnl
AC_SUBST(build_cpu)dnl
dnl AC_CACHE_VAL(CACHE-ID, COMMANDS-TO-SET-IT)
dnl The name of shell var CACHE-ID must contain `_cv_' in order to get saved.
define(AC_CACHE_VAL,
-[dnl We used to use the below line, but it fails if the 1st arg is a
+[AC_REQUIRE([AC_MSG_ECHO_N])dnl
+dnl We used to use the below line, but it fails if the 1st arg is a
dnl shell variable, so we need the eval.
dnl if test "${$1+set}" = set; then
if eval "test \"`echo '${'$1'+set}'`\" = set"; then
-dnl This verbose message is just for testing the caching code.
-dnl AC_MSG_RESULT(using cached value for $1)
- AC_MSG_RESULT(using cached value)
+ echo $ac_n "(cached) $ac_c" 1>&4
else
$2
fi
dnl Uniformly use AC_DEFINE_[SED]QUOTE, so callers of AC_DEFINE_UNQUOTED
dnl can use AC_QUOTE_* manually if they want to.
ifelse($#, 2,
-[define([AC_VAL], $2)dnl
-echo 1>&5 " defining" $1 to be ifelse(AC_VAL, , empty, "AC_QUOTE_SQUOTE(AC_VAL)")],
-[define([AC_VAL], 1)dnl
-echo 1>&5 " defining $1"])
+[define([AC_VAL], $2)dnl],
+[define([AC_VAL], 1)dnl])
dnl
echo "[#][define]" $1 "AC_QUOTE_SQUOTE(AC_VAL)" >> confdefs.h
dnl Define DEFS even if AC_LIST_HEADERS for use in user case statements.
dnl AC_SUBST_FILE(VARIABLE, FILE)
define(AC_SUBST_FILE,
[if test -f $2; then
- AC_MSG_RESULT(using $2 for $1)
+ echo using $2 for $1)
AC_INSERT_FILE($1, $2)
elif test -f ${srcdir}/$2; then
- AC_MSG_RESULT(using ${srcdir}/$2 for $1)
+ echo using ${srcdir}/$2 for $1)
AC_INSERT_FILE($1, ${srcdir}/$2)
fi
])dnl
dnl ### Printing messages
dnl
dnl
+dnl Check whether to use -n, \c, or newline-tab to separate
+dnl checking messages from result messages.
+define(AC_MSG_ECHO_N,
+[AC_PROVIDE([$0])dnl
+if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
+ if (echo -n testing; echo 1,2,3) | grep -e -n > /dev/null; then
+ ac_n= ac_c='
+' ac_t=' '
+ else
+ ac_n=-n ac_c= ac_t=
+ fi
+else
+ ac_n= ac_c='\c' ac_t=
+fi])dnl
+dnl
dnl AC_MSG_CHECKING(FEATURE-DESCRIPTION)
define(AC_MSG_CHECKING,
-[echo "checking $1" 1>&4])dnl
+[AC_REQUIRE([AC_MSG_ECHO_N])dnl
+echo $ac_n "checking $1""...$ac_c" 1>&4])dnl
+dnl
+dnl Obsolete version.
+define(AC_CHECKING,
+[AC_OBSOLETE([$0], [; instead use AC_MSG_CHECKING])dnl
+echo "checking $1" 1>&4])dnl
dnl
dnl AC_MSG_RESULT(RESULT-DESCRIPTION)
define(AC_MSG_RESULT,
-[echo " $1" 1>&5])dnl
+[AC_REQUIRE([AC_MSG_ECHO_N])dnl
+echo "$ac_t""$1" 1>&4])dnl
+dnl
+dnl Obsolete version.
+define(AC_VERBOSE,
+[AC_OBSOLETE([$0], [; instead use AC_MSG_RESULT])dnl
+echo " $1" 1>&4])dnl
dnl
dnl AC_MSG_WARN(PROBLEM-DESCRIPTION)
define(AC_MSG_WARN,
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='${CPP}'
-ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&6 2>&6'
+ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&5 2>&5'
])dnl
dnl
define(AC_LANG_CPLUSPLUS,
ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='${CXXCPP}'
-ac_compile='${CXX-gcc} $CXXFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&6 2>&6'
+ac_compile='${CXX-gcc} $CXXFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&5 2>&5'
])dnl
dnl
dnl Push the current language on a stack.
])dnl
fi])dnl
$1="$ac_cv_prog_$1"
-test -n "[$]$1" && AC_MSG_RESULT(setting $1 to [$]$1)
+test -n "[$]$1" && AC_MSG_RESULT([$]$1)
AC_SUBST($1)dnl
])dnl
dnl
;;
esac])dnl
$1="$ac_cv_path_$1"
-test -n "[$]$1" && AC_MSG_RESULT(setting $1 to [$]$1)
+test -n "[$]$1" && AC_MSG_RESULT([$]$1)
AC_SUBST($1)dnl
])dnl
dnl
AC_TRY_LINK( , [main();], AC_CV_NAME=yes, AC_CV_NAME=no)dnl
LIBS="${ac_save_LIBS}"
])dnl
+AC_MSG_RESULT($AC_CV_NAME)
if test "${AC_CV_NAME}" = yes; then
ifelse([$2], ,
[AC_DEFINE([HAVE_LIB]translit(AC_LIB_NAME, [a-z], [A-Z]))
[AC_PROVIDE([$0])dnl
dnl It's actually ok to use this, if you don't care about caching.
dnl AC_OBSOLETE([$0], [; instead use AC_TRY_LINK])dnl
-ifelse([$1], , , [AC_MSG_CHECKING([for $1])
+ifelse([$1], , , [AC_CHECKING([for $1])
])dnl
AC_TRY_LINK([$2], [$3], [$4], [$5])dnl
])dnl
dnl [, ACTION-IF-CROSS-COMPILING]])
define(AC_TRY_RUN,
[AC_PROVIDE([$0])dnl
-AC_REQUIRE([AC_TRY_CROSS])dnl
+AC_REQUIRE([AC_C_CROSS])dnl
if test "$cross_compiling" = yes; then
ifelse([$4], , AC_MSG_ERROR(can not run test program while cross compiling),
- [AC_MSG_RESULT(using default for cross-compiling)
+ [AC_MSG_WARN(using default for cross-compiling)
$4
])
else
[AC_TRY_CPP([#include <$1>], eval "ac_cv_header_$ac_var=yes",
eval "ac_cv_header_$ac_var=no")])dnl
if eval "test \"`echo '$ac_cv_header_'$ac_var`\" = yes"; then
+ AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
-ifelse([$3], , , [else
- $3
+else
+ AC_MSG_RESULT(no)
+ifelse([$3], , , [$3
])dnl
fi
])dnl
#endif
], eval "ac_cv_func_$1=yes", eval "ac_cv_func_$1=no")])dnl
if eval "test \"`echo '$ac_cv_func_'$1`\" = yes"; then
+ AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
-ifelse([$3], , , [else
- $3
+else
+ AC_MSG_RESULT(no)
+ifelse([$3], , , [$3
])dnl
fi
])dnl
define(AC_REPLACE_FUNCS,
[for ac_func in $1
do
-AC_CHECK_FUNC(${ac_func}, ,
-[LIBOBJS="$LIBOBJS ${ac_func}.o"
-AC_MSG_RESULT(using ${ac_func}.o instead)
-])dnl
+AC_CHECK_FUNC(${ac_func}, , [LIBOBJS="$LIBOBJS ${ac_func}.o"])
done
AC_SUBST(LIBOBJS)dnl
])dnl
fprintf(f, "%d\n", sizeof($1));
exit(0);
}], AC_CV_NAME=`cat conftestval`)])dnl
+AC_MSG_RESULT($AC_CV_NAME)
AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME)
undefine(AC_TYPE_NAME)dnl
undefine(AC_CV_NAME)dnl
[AC_MSG_CHECKING(for $1 in sys/types.h)
AC_CACHE_VAL(ac_cv_type_$1,
[AC_EGREP_HEADER($1, sys/types.h, ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
+AC_MSG_RESULT($ac_cv_type_$1)
if test $ac_cv_type_$1 = no; then
AC_DEFINE($1, $2)
fi
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
[#] [$]0 [$]configure_args
+#
+# Compiler output produced by configure, useful for debugging
+# configure, is in ./config.log if it exists.
changequote(, )dnl
ac_cs_usage="Usage: ${CONFIG_STATUS} [--recheck] [--version] [--help]"
# The recursion is here.
if test -n "${ac_sub_configure}"; then
- AC_MSG_RESULT([running ${CONFIG_SHELL-/bin/sh} ${ac_sub_configure} ${ac_sub_configure_args} --cache-file=$ac_sub_cache_file] --srcdir=${ac_sub_srcdir})
+ echo "[running ${CONFIG_SHELL-/bin/sh} ${ac_sub_configure} ${ac_sub_configure_args} --cache-file=$ac_sub_cache_file] --srcdir=${ac_sub_srcdir}"
if ${CONFIG_SHELL-/bin/sh} ${ac_sub_configure} ${ac_sub_configure_args} --cache-file=$ac_sub_cache_file --srcdir=${ac_sub_srcdir}
then :
else
AC_PROVIDE([$0])dnl
AC_CHECK_PROG(CC, gcc, gcc, cc)
-# Find out if we are using GNU C, under whatever name.
+AC_MSG_CHECKING(whether we are using GNU C)
AC_CACHE_VAL(ac_cv_prog_gcc,
[cat > conftest.c <<EOF
#ifdef __GNUC__
yes
#endif
EOF
-if ${CC-cc} -E conftest.c 2>&6 | egrep yes >/dev/null 2>&1; then
+if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
fi])dnl
+AC_MSG_RESULT($ac_cv_prog_gcc)
if test $ac_cv_prog_gcc = yes; then GCC=yes; else GCC= ; fi
])dnl
dnl
yes
#endif
EOF
-if ${CXX-gcc} -E conftest.C 2>&6 | egrep yes >/dev/null 2>&1; then
+if ${CXX-gcc} -E conftest.C 2>&5 | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gxx=yes
else
ac_cv_prog_gxx=no
Autoconf TCGETA'
AC_EGREP_CPP($ac_pattern, $ac_prog, ac_cv_prog_gcc_traditional=yes)
fi])dnl
+ AC_MSG_RESULT($ac_cv_prog_gcc_traditional)
if test $ac_cv_prog_gcc_traditional = yes; then
CC="$CC -traditional"
- AC_MSG_RESULT(setting CC to $CC)
fi
fi
])dnl
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
-if ${CC-cc} -c conftest.c -o conftest.o 1>&6 2>&6 &&
- test -f conftest.o && ${CC-cc} -c conftest.c -o conftest.o 1>&6 2>&6
+if ${CC-cc} -c conftest.c -o conftest.o 1>&5 2>&5 &&
+ test -f conftest.o && ${CC-cc} -c conftest.c -o conftest.o 1>&5 2>&5
then
if test "x$CC" != xcc; then
# Test first that cc exists at all.
- if cc -c conftest.c 1>&6 2>&6
+ if cc -c conftest.c 1>&5 2>&5
then
- if cc -c conftest.c -o conftest2.o 1>&6 2>&6 &&
- test -f conftest2.o && cc -c conftest.c -o conftest2.o 1>&6 2>&6
+ if cc -c conftest.c -o conftest2.o 1>&5 2>&5 &&
+ test -f conftest2.o && cc -c conftest.c -o conftest2.o 1>&5 2>&5
then
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
fi
fi
rm -f conftest*
])dnl
-if test $ac_cv_prog_cc_${ac_cc}_c_o = no; then
+if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
+ AC_MSG_RESULT(yes)
+else
+ AC_MSG_RESULT(no)
AC_DEFINE(NO_MINUS_C_MINUS_O)
fi
])dnl
[AC_MSG_CHECKING(whether ${MAKE-make} sets \$MAKE)
set dummy ${MAKE-make}; ac_make=[$]2
AC_CACHE_VAL(ac_cv_prog_make_${ac_make}_set,
-[cat > conftestmake <<'EOF'
+[cat > conftestmake <<\EOF
all:
@echo 'ac_maketemp="${MAKE}"'
EOF
eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftestmake])dnl
-if test $ac_cv_prog_make_${ac_make}_set = yes; then
+if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
+ AC_MSG_RESULT(yes)
SET_MAKE=
else
+ AC_MSG_RESULT(no)
SET_MAKE="MAKE=${MAKE-make}"
- AC_MSG_RESULT(setting MAKE to ${MAKE-make} in Makefiles)
fi
AC_SUBST([SET_MAKE])dnl
])dnl
ac_cv_prog_CPP="$CPP"])dnl
fi
CPP="$ac_cv_prog_CPP"
-AC_MSG_RESULT(setting CPP to $CPP)
+AC_MSG_RESULT($CPP)
AC_SUBST(CPP)dnl
])dnl
dnl
AC_LANG_RESTORE[]dnl
fi])dnl
CXXCPP="$ac_cv_prog_CXXCPP"
-AC_MSG_RESULT(setting CXXCPP to $CXXCPP)
+AC_MSG_RESULT($CXXCPP)
AC_SUBST(CXXCPP)dnl
])dnl
dnl
define(AC_PROG_LEX,
[AC_PROVIDE([$0])dnl
AC_CHECK_PROG(LEX, flex, flex, lex)
+AC_MSG_CHECKING(for $LEX library)
if test -z "$LEXLIB"
then
case "$LEX" in
*) LEXLIB="-ll" ;;
esac
fi
-AC_MSG_RESULT(setting LEXLIB to $LEXLIB)
+AC_MSG_RESULT($LEXLIB)
AC_SUBST(LEXLIB)])dnl
dnl
define(AC_DECL_YYTEXT,
AC_TRY_LINK(`cat $LEX_OUTPUT_ROOT.c`, ac_cv_prog_lex_yytext_pointer=yes)
LIBS="$ac_save_LIBS"
rm -f "${LEX_OUTPUT_ROOT}.c"])dnl
+AC_MSG_RESULT($ac_cv_prog_lex_yytext_pointer)
if test $ac_cv_prog_lex_yytext_pointer = yes; then
AC_DEFINE(YYTEXT_POINTER)
fi
test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"])dnl
INSTALL="$ac_cv_path_install"
fi
+AC_MSG_RESULT($INSTALL)
AC_SUBST(INSTALL)dnl
-AC_MSG_RESULT(setting INSTALL to $INSTALL)
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
AC_SUBST(INSTALL_PROGRAM)dnl
-AC_MSG_RESULT(setting INSTALL_PROGRAM to $INSTALL_PROGRAM)
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
AC_SUBST(INSTALL_DATA)dnl
-AC_MSG_RESULT(setting INSTALL_DATA to $INSTALL_DATA)
])dnl
dnl
define(AC_PROG_LN_S,
fi])dnl
LN_S="$ac_cv_prog_LN_S"
if test "$ac_cv_prog_LN_S" = "ln -s"; then
- AC_MSG_RESULT(ln -s is supported)
+ AC_MSG_RESULT(yes)
else
- AC_MSG_RESULT(ln -s is not supported)
+ AC_MSG_RESULT(no)
fi
AC_SUBST(LN_S)dnl
])dnl
define(AC_PROG_RSH,
[AC_MSG_CHECKING(for remote shell)
AC_CACHE_VAL(ac_cv_path_RSH,
-[ac_cv_path_RSH=true
+[ac_cv_path_RSH=no
for ac_file in \
/usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh /usr/bin/nsh
do
fi
done])dnl
RSH="$ac_cv_path_RSH"
+AC_MSG_RESULT($RSH)
if test $RSH != true; then
- AC_MSG_RESULT(found remote shell $RSH)
RTAPELIB=rtapelib.o
else
- AC_MSG_RESULT(found no remote shell)
AC_CHECK_HEADER(netdb.h, [RTAPELIB=rtapelib.o AC_DEFINE(HAVE_NETDB_H)],
[RTAPELIB= AC_DEFINE(NO_REMOTE)])
fi
exit (0); }
], , ac_stdc_headers=no)
fi])dnl
+AC_MSG_RESULT($ac_cv_header_stdc)
if test $ac_cv_header_stdc = yes; then
AC_DEFINE(STDC_HEADERS)
fi])dnl
[; instead use AC_CHECK_HEADERS(string.h) and HAVE_STRING_H])dnl
AC_MSG_CHECKING([for BSD string and memory functions])
AC_TRY_LINK([#include <strings.h>], [rindex(0, 0); bzero(0, 0);], ,
- AC_DEFINE(USG))])dnl
+ [AC_MSG_RESULT(yes); AC_DEFINE(USG)], [AC_MSG_RESULT(no)])])dnl
dnl
dnl
dnl If memchr and the like aren't declared in <string.h>, include <memory.h>.
dnl To avoid problems, don't check for gcc2 built-ins.
define(AC_MEMORY_H,
-[AC_OBSOLETE([$0], [; instead use AC_CHECK_HEADERS(memory.h) and HAVE_MEMORY_H])AC_MSG_CHECKING(whether string.h declares mem functions)
-AC_EGREP_HEADER(memchr, string.h, ,
- [AC_CHECK_HEADER(memory.h, AC_DEFINE(NEED_MEMORY_H))])]
-)dnl
+[AC_OBSOLETE([$0], [; instead use AC_CHECK_HEADERS(memory.h) and HAVE_MEMORY_H])dnl
+AC_MSG_CHECKING(whether string.h declares mem functions)
+AC_EGREP_HEADER(memchr, string.h, ac_found=yes, ac_found=no)
+AC_MSG_RESULT($ac_found)
+if test $ac_found = no; then
+ AC_CHECK_HEADER(memory.h, [AC_DEFINE(NEED_MEMORY_H)])
+fi])dnl
dnl
define(AC_HEADER_MAJOR,
[AC_MSG_CHECKING([for major, minor and makedev header])
if test $ac_cv_header_major = no; then
AC_CHECK_HEADER(sys/sysmacros.h, ac_cv_header_major=sys/sysmacros.h)
fi])dnl
+AC_MSG_RESULT($ac_cv_header_major)
case "$ac_cv_header_major" in
sys/mkdev.h) AC_DEFINE(MAJOR_IN_MKDEV) ;;
sys/sysmacros.h) AC_DEFINE(MAJOR_IN_SYSMACROS) ;;
#include <$ac_hdr>], [DIR *dirp = 0;], ac_cv_header_dir=$ac_hdr; break)
done])dnl
+AC_MSG_RESULT($ac_cv_header_dir)
case "$ac_cv_header_dir" in
dirent.h) AC_DEFINE(HAVE_DIRENT_H) ;;
sys/ndir.h) AC_DEFINE(HAVE_SYS_NDIR_H) ;;
ndir.h) AC_DEFINE(HAVE_NDIR_H) ;;
esac
-AC_MSG_CHECKING(for closedir return value)
+AC_MSG_CHECKING(whether closedir returns void)
AC_CACHE_VAL(ac_cv_func_closedir_void,
[AC_TRY_RUN([#include <sys/types.h>
#include <$ac_cv_header_dir>
int closedir(); main() { exit(closedir(opendir(".")) != 0); }],
ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes)])dnl
+AC_MSG_RESULT($ac_cv_func_closedir_void)
if test $ac_cv_func_closedir_void = yes; then
AC_DEFINE(CLOSEDIR_VOID)
fi
#include <$ac_hdr>], [DIR *dirp = 0;], ac_cv_header_dir=$ac_hdr; break)
done])dnl
+AC_MSG_RESULT($ac_cv_header_dir)
case "$ac_cv_header_dir" in
dirent.h) AC_DEFINE(DIRENT) ;;
sys/ndir.h) AC_DEFINE(SYSNDIR) ;;
ndir.h) AC_DEFINE(NDIR) ;;
esac
-AC_MSG_CHECKING(for closedir return value)
+AC_MSG_CHECKING(whether closedir returns void)
AC_CACHE_VAL(ac_cv_func_closedir_void,
[AC_TRY_RUN([#include <sys/types.h>
#include <$ac_cv_header_dir>
int closedir(); main() { exit(closedir(opendir(".")) != 0); }],
ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes)])dnl
+AC_MSG_RESULT($ac_cv_func_closedir_void)
if test $ac_cv_func_closedir_void = yes; then
AC_DEFINE(VOID_CLOSEDIR)
fi
#endif
#endif /* S_ISSOCK */
], ac_cv_header_stat_broken=yes, ac_cv_header_stat_broken=no)])dnl
+AC_MSG_RESULT($ac_cv_header_stat_broken)
if test $ac_cv_header_stat_broken = yes; then
AC_DEFINE(STAT_MACROS_BROKEN)
fi
#include <unistd.h>
#endif], [char *msg = *(sys_siglist + 1);],
ac_cv_decl_sys_siglist=yes, ac_cv_decl_sys_siglist=no)])dnl
+AC_MSG_RESULT($ac_cv_decl_sys_siglist)
if test $ac_cv_decl_sys_siglist = yes; then
AC_DEFINE(SYS_SIGLIST_DECLARED)
fi
dnl
define(AC_TYPE_GETGROUPS,
[AC_REQUIRE([AC_TYPE_UID_T])dnl
-AC_MSG_CHECKING(for type of array argument to getgroups)
+AC_MSG_CHECKING(type of array argument to getgroups)
AC_CACHE_VAL(ac_cv_type_getgroups,
[changequote(, )dnl
dnl Do not put single quotes in the C program text!
changequote([, ])dnl
AC_TRY_RUN([$ac_prog],
ac_cv_type_getgroups=gid_t, ac_cv_type_getgroups=int)])dnl
+AC_MSG_RESULT($ac_cv_type_getgroups)
AC_DEFINE_UNQUOTED(GETGROUPS_T, $ac_cv_type_getgroups)
])dnl
dnl
AC_CACHE_VAL(ac_cv_type_uid_t,
[AC_EGREP_HEADER(uid_t, sys/types.h,
ac_cv_type_uid_t=yes, ac_cv_type_uid_t=no)])dnl
+AC_MSG_RESULT($ac_cv_type_uid_t)
if test $ac_cv_type_uid_t = no; then
AC_DEFINE(uid_t, int)
AC_DEFINE(gid_t, int)
#endif
extern void (*signal ()) ();],
[int i;], ac_cv_type_signal=void, ac_cv_type_signal=int)])dnl
+AC_MSG_RESULT($ac_cv_type_signal)
AC_DEFINE_UNQUOTED(RETSIGTYPE, $ac_cv_type_signal)
])dnl
dnl
exit(0);
}
], ac_cv_func_mmap=yes, ac_cv_func_mmap=no)])dnl
+AC_MSG_RESULT($ac_cv_func_mmap)
if test $ac_cv_func_mmap = yes; then
AC_DEFINE(HAVE_MMAP)
fi
);
}
}], ac_cv_func_vfork=yes, ac_cv_func_vfork=no)])dnl
+AC_MSG_RESULT($ac_cv_func_vfork)
if test $ac_cv_func_vfork = no; then
AC_DEFINE(vfork, fork)
fi
&& r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
}
}], ac_cv_func_wait3=yes, ac_cv_func_wait3=no)])dnl
+AC_MSG_RESULT($ac_cv_func_wait3)
if test $ac_cv_func_wait3 = yes; then
AC_DEFINE(HAVE_WAIT3)
fi
AC_CACHE_VAL(ac_cv_header_alloca_h,
[AC_TRY_LINK([#include <alloca.h>], [char *p = alloca(2 * sizeof(int));],
ac_cv_header_alloca_h=yes, ac_cv_header_alloca_h=no)])dnl
+AC_MSG_RESULT($ac_cv_header_alloca_h)
if test $ac_cv_header_alloca_h = yes; then
AC_DEFINE(HAVE_ALLOCA_H)
fi
#endif
], [char *p = (char *) alloca(1);],
ac_cv_func_alloca=yes, ac_cv_func_alloca=no)])dnl
+AC_MSG_RESULT($ac_cv_func_alloca)
if test $ac_cv_func_alloca = yes; then
AC_DEFINE(HAVE_ALLOCA)
fi
ALLOCA=alloca.o
AC_DEFINE(C_ALLOCA)
-AC_MSG_CHECKING(whether Cray hooks are needed for C alloca)
-AC_EGREP_CPP(webecray,
+AC_MSG_CHECKING(whether alloca needs Cray hooks)
+AC_CACHE_VAL(ac_cv_os_cray,
+[AC_EGREP_CPP(webecray,
[#if defined(CRAY) && ! defined(CRAY2)
webecray
#else
wenotbecray
#endif
-],
+], ac_cv_os_cray=yes, ac_cv_os_cray=no)])dnl
+AC_MSG_RESULT($ac_cv_os_cray)
+if test $ac_cv_os_cray = yes; then
AC_CHECK_FUNC([_getb67], AC_DEFINE(CRAY_STACKSEG_END, _getb67),
AC_CHECK_FUNC([GETB67], AC_DEFINE(CRAY_STACKSEG_END, GETB67),
-AC_CHECK_FUNC([getb67], AC_DEFINE(CRAY_STACKSEG_END, getb67)))))
+AC_CHECK_FUNC([getb67], AC_DEFINE(CRAY_STACKSEG_END, getb67))))
+fi
AC_MSG_CHECKING(stack direction for C alloca)
AC_CACHE_VAL(ac_cv_c_stack_direction,
exit (find_stack_direction() < 0);
}], ac_cv_c_stack_direction=1, ac_cv_c_stack_direction=-1,
ac_cv_c_stack_direction=0)])dnl
+AC_MSG_RESULT($ac_cv_c_stack_direction)
AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction)
fi
AC_SUBST(ALLOCA)dnl
[AC_TRY_LINK([#include <nlist.h>],
[struct nlist n; n.n_un.n_name = 0;],
ac_cv_struct_nlist_n_un=yes, ac_cv_struct_nlist_n_un=no)])dnl
+AC_MSG_RESULT($ac_cv_struct_nlist_n_un)
if test $ac_cv_struct_nlist_n_un = yes; then
AC_DEFINE(NLIST_NAME_UNION)
fi
Yowza Am I SETGID yet
#endif],
ac_cv_func_getloadavg_setgid=yes, ac_cv_func_getloadavg_setgid=no)])dnl
+AC_MSG_RESULT($ac_cv_func_getloadavg_setgid)
if test $ac_cv_func_getloadavg_setgid = yes; then
NEED_SETGID=true AC_DEFINE(GETLOADAVG_PRIVILEGED)
fi
changequote([, ])dnl
])dnl
KMEM_GROUP=$ac_cv_group_kmem
- AC_MSG_RESULT(/dev/kmem is owned by $KMEM_GROUP)
+ AC_MSG_RESULT($KMEM_GROUP)
fi
AC_SUBST(KMEM_GROUP)dnl
])dnl
dnl
define(AC_FUNC_UTIME_NULL,
-[AC_MSG_CHECKING(utime with null argument)
+[AC_MSG_CHECKING(whether utime accepts a null argument)
AC_CACHE_VAL(ac_cv_func_utime_null,
[rm -f conftestdata; > conftestdata
# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
&& t.st_mtime - s.st_mtime < 120));
}], ac_cv_func_utime_null=yes, ac_cv_func_utime_null=no)
rm -f core])dnl
+AC_MSG_RESULT($ac_cv_func_utime_null)
if test $ac_cv_func_utime_null = yes; then
AC_DEFINE(HAVE_UTIME_NULL)
fi
strcoll ("ABC", "DEF") >= 0 ||
strcoll ("123", "456") >= 0);
}], ac_cv_func_strcoll=yes, ac_cv_func_strcoll=no)])dnl
+AC_MSG_RESULT($ac_cv_func_strcoll)
if test $ac_cv_func_strcoll = yes; then
AC_DEFINE(HAVE_STRCOLL)
fi
exit(0); /* Non-reversed systems segv here. */
}], ac_cv_func_setvbuf_reversed=yes, ac_cv_func_setvbuf_reversed=no)
rm -f core])dnl
+AC_MSG_RESULT($ac_cv_func_setvbuf_reversed)
if test $ac_cv_func_setvbuf_reversed = yes; then
AC_DEFINE(SETVBUF_REVERSED)
fi
dnl
define(AC_STRUCT_TM,
[AC_PROVIDE([$0])dnl
-AC_MSG_CHECKING([for struct tm in sys/time.h instead of time.h])
+AC_MSG_CHECKING([whether struct tm is in sys/time.h or time.h])
AC_CACHE_VAL(ac_cv_struct_tm,
[AC_TRY_LINK([#include <sys/types.h>
#include <time.h>],
[struct tm *tp; tp->tm_sec;],
ac_cv_struct_tm=time.h, ac_cv_struct_tm=sys/time.h)])dnl
+AC_MSG_RESULT($ac_cv_struct_tm)
if test $ac_cv_struct_tm = sys/time.h; then
AC_DEFINE(TM_IN_SYS_TIME)
fi
#include <sys/time.h>
#include <time.h>],
[struct tm *tp;], ac_cv_header_time=yes, ac_cv_header_time=no)])dnl
+AC_MSG_RESULT($ac_cv_header_time)
if test $ac_cv_header_time = yes; then
AC_DEFINE(TIME_WITH_SYS_TIME)
fi
[AC_TRY_LINK([#include <sys/types.h>
#include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_zone;],
ac_cv_struct_tm_zone=yes, ac_cv_struct_tm_zone=no)])dnl
+AC_MSG_RESULT($ac_cv_struct_tm_zone)
if test "$ac_cv_struct_tm_zone" = yes; then
AC_DEFINE(HAVE_TM_ZONE)
else
extern char *tzname[]; /* RS6000 and others reject char **tzname. */
#endif>>, changequote([, ])dnl
[atoi(*tzname);], ac_cv_var_tzname=yes, ac_cv_var_tzname=no)])dnl
+ AC_MSG_RESULT($ac_cv_var_tzname)
if test $ac_cv_var_tzname = yes; then
AC_DEFINE(HAVE_TZNAME)
fi
[AC_TRY_LINK([#include <sys/types.h>
#include <sys/stat.h>], [struct stat s; s.st_blocks;],
ac_cv_struct_st_blocks=yes, ac_cv_struct_st_blocks=no)])dnl
+AC_MSG_RESULT($ac_cv_struct_st_blocks)
if test $ac_cv_struct_st_blocks = yes; then
AC_DEFINE(HAVE_ST_BLOCKS)
else
[AC_TRY_LINK([#include <sys/types.h>
#include <sys/stat.h>], [struct stat s; s.st_blksize;],
ac_cv_struct_st_blksize=yes, ac_cv_struct_st_blksize=no)])dnl
+AC_MSG_RESULT($ac_cv_struct_st_blksize)
if test $ac_cv_struct_st_blksize = yes; then
AC_DEFINE(HAVE_ST_BLKSIZE)
fi
[AC_TRY_LINK([#include <sys/types.h>
#include <sys/stat.h>], [struct stat s; s.st_rdev;],
ac_cv_struct_st_rdev=yes, ac_cv_struct_st_rdev=no)])dnl
+AC_MSG_RESULT($ac_cv_struct_st_rdev)
if test $ac_cv_struct_st_rdev = yes; then
AC_DEFINE(HAVE_ST_RDEV)
fi
dnl ### Checks for compiler characteristics
dnl
dnl
-define(AC_TRY_CROSS,
+define(AC_C_CROSS,
[AC_PROVIDE([$0])dnl
# If we cannot run a trivial program, we must be cross compiling.
AC_MSG_CHECKING(whether cross-compiling)
AC_CACHE_VAL(ac_cv_c_cross,
[AC_TRY_RUN([main(){exit(0);}], ac_cv_c_cross=no, ac_cv_c_cross=yes)])dnl
cross_compiling=$ac_cv_c_cross
-if test $ac_cv_c_cross = yes; then
- AC_MSG_RESULT(we are cross-compiling)
-else
- AC_MSG_RESULT(we are not cross-compiling)
-fi])dnl
+AC_MSG_RESULT($ac_cv_c_cross)
+])dnl
dnl
define(AC_C_CHAR_UNSIGNED,
-[AC_MSG_CHECKING(for unsigned characters)
+[AC_MSG_CHECKING(whether char is unsigned)
AC_CACHE_VAL(ac_cv_c_char_unsigned,
[AC_TRY_RUN(
[/* volatile prevents gcc2 from optimizing the test away on sparcs. */
volatile char c = 255; exit(c < 0);
#endif
}], ac_cv_c_char_unsigned=yes, ac_cv_c_char_unsigned=no)])dnl
+AC_MSG_RESULT($ac_cv_c_char_unsigned)
if test $ac_cv_c_char_unsigned = yes; then
AC_DEFINE(__CHAR_UNSIGNED__)
fi
exit(sizeof(long double) < sizeof(double)); }],
ac_cv_c_long_double=yes, ac_cv_c_long_double=no)
fi])dnl
+AC_MSG_RESULT($ac_cv_c_long_double)
if test $ac_cv_c_long_double = yes; then
AC_DEFINE(HAVE_LONG_DOUBLE)
fi
[AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(int)])
AC_MSG_CHECKING(integer size)
AC_TRY_RUN([main() { exit(sizeof(int) != 2); }],
- AC_DEFINE(INT_16_BITS))
+ [AC_MSG_RESULT(16 bits)
+ AC_DEFINE(INT_16_BITS)], AC_MSG_RESULT(not 16 bits))
])dnl
dnl
define(AC_LONG_64_BITS,
[AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(long)])
AC_MSG_CHECKING(for 64-bit long ints)
AC_TRY_RUN([main() { exit(sizeof(long int) != 8); }],
- AC_DEFINE(LONG_64_BITS))
+ [AC_MSG_RESULT(64 bits)
+ AC_DEFINE(LONG_64_BITS)], AC_MSG_RESULT(not 64 bits))
])dnl
dnl
define(AC_C_BIGENDIAN,
-[AC_MSG_CHECKING(byte ordering)
+[AC_MSG_CHECKING(whether byte ordering is bigendian)
AC_CACHE_VAL(ac_cv_c_bigendian,
[AC_TRY_RUN([main () {
/* Are we little or big endian? From Harbison&Steele. */
u.l = 1;
exit (u.c[sizeof (long) - 1] == 1);
}], ac_cv_c_bigendian=no, ac_cv_c_bigendian=yes)])dnl
+AC_MSG_RESULT($ac_cv_c_bigendian)
if test $ac_cv_c_bigendian = yes; then
AC_DEFINE(WORDS_BIGENDIAN)
fi
return a == 1 && b[0] == 2 && b[1] == 3 && b[2] == 4;
}], ac_cv_c_arg_array=no, ac_cv_c_arg_array=yes)
rm -f core])dnl
+AC_MSG_RESULT($ac_cv_c_arg_array)
if test $ac_cv_c_arg_array = no; then
AC_DEFINE(NO_ARG_ARRAY)
fi
else
ac_cv_c_inline=no
fi])dnl
+AC_MSG_RESULT($ac_cv_c_inline)
if test $ac_cv_c_inline = no; then
AC_DEFINE(inline, __inline)
fi
])dnl
define(AC_C_CONST,
-[dnl Do not "break" this again.
-AC_MSG_CHECKING([for lack of working const])
+[dnl This message is consistent in form with the other checking messages,
+dnl and with the result message.
+AC_MSG_CHECKING([for working const])
AC_CACHE_VAL(ac_cv_c_const,
[changequote(, )dnl
dnl Do not put single quotes in the C program text!
}'
changequote([, ])dnl
AC_TRY_LINK(, [$ac_prog], ac_cv_c_const=yes, ac_cv_c_const=no)])dnl
+AC_MSG_RESULT($ac_cv_c_const)
if test $ac_cv_c_const = no; then
AC_DEFINE(const, )
fi
ac_cv_sys_interpreter=no
fi
rm -f conftest])dnl
+AC_MSG_RESULT($ac_cv_sys_interpreter)
if test $ac_cv_sys_interpreter = yes; then
ifelse([$1], , :, [$1])
ifelse([$2], , , [else
fi
])dnl
define(AC_SYS_REMOTE_TAPE,
-[AC_MSG_CHECKING(for remote tape and socket header files)
-AC_CHECK_HEADER(sys/mtio.h, AC_DEFINE(HAVE_SYS_MTIO_H))
+[AC_CHECK_HEADER(sys/mtio.h, AC_DEFINE(HAVE_SYS_MTIO_H))
if test "$ac_cv_header_mtio_h" = yes; then
+AC_MSG_CHECKING(for remote tape header files)
AC_CACHE_VAL(ac_cv_header_rmt,
[AC_TRY_CPP([#include <sgtty.h>
#include <sys/socket.h>], ac_cv_header_rmt=yes, ac_cv_header_rmt=no)])dnl
+ AC_MSG_RESULT($ac_cv_header_rmt)
if test $ac_cv_header_rmt = yes; then
PROGS="$PROGS rmt"
fi
fi
rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2> /dev/null
done])dnl
+AC_MSG_RESULT($ac_cv_sys_long_file_names)
if test $ac_cv_sys_long_file_names = yes; then
AC_DEFINE(HAVE_LONG_FILE_NAMES)
fi
exit (status == -1);
}
], ac_cv_sys_restartable_syscalls=yes, ac_cv_sys_restartable_syscalls=no)])dnl
+AC_MSG_RESULT($ac_cv_sys_restartable_syscalls)
if test $ac_cv_sys_restartable_syscalls = yes; then
AC_DEFINE(HAVE_RESTARTABLE_SYSCALLS)
fi
test -n "$x_libraries" && ac_cv_x_includes="$x_libraries"
if test "${ac_cv_x_includes+set}" = set &&
test "${ac_cv_x_libraries+set}" = set; then
- AC_MSG_RESULT(using cached values for ac_cv_x_includes and ac_cv_x_libraries)
+ AC_VERBOSE(using cached values for ac_cv_x_includes and ac_cv_x_libraries)
else
AC_PATH_X_XMKMF
fi
x_libraries="$ac_cv_x_libraries"
fi
-test -n "$x_includes" && AC_MSG_RESULT(X11 headers are in $x_includes)
-test -n "$x_libraries" && AC_MSG_RESULT(X11 libraries are in $x_libraries)
+test -n "$x_includes" && AC_VERBOSE(X11 headers are in $x_includes)
+test -n "$x_libraries" && AC_VERBOSE(X11 libraries are in $x_libraries)
fi # No --with-x=no.
])dnl
dnl
dnl Internal subroutine of AC_PATH_X.
define(AC_PATH_X_XMKMF,
-[AC_MSG_CHECKING(for X include and library files with xmkmf)
+[AC_CHECKING(for X include and library files with xmkmf)
rm -fr conftestdir
if mkdir conftestdir; then
cd conftestdir
dnl
dnl Internal subroutine of AC_PATH_X.
define(AC_PATH_X_DIRECT,
-[AC_MSG_CHECKING(for X include and library files directly)
+[AC_CHECKING(for X include and library files directly)
test -z "$x_direct_TRY_library" && x_direct_TRY_library=Xt
test -z "$x_direct_TRY_include" && x_direct_TRY_include=X11/Intrinsic.h
AC_TRY_CPP([#include <$x_direct_TRY_include>], no_x=,
define(AC_PATH_XTRA,
[AC_REQUIRE([AC_OS_ISC])dnl
AC_REQUIRE([AC_PATH_X])dnl
-AC_MSG_CHECKING(for additional X libraries and flags)
+AC_CHECKING(for additional X libraries and flags)
if test -n "$x_includes"; then
X_CFLAGS="$X_CFLAGS -I$x_includes"
elif test "$no_x" = yes; then
fi
fi
#
-AC_MSG_RESULT(X compiler flags: $X_CFLAGS)
-AC_MSG_RESULT(X library flags: $X_LIBS)
-AC_MSG_RESULT(extra X libraries: $X_EXTRA_LIBS)
+AC_VERBOSE(X compiler flags: $X_CFLAGS)
+AC_VERBOSE(X library flags: $X_LIBS)
+AC_VERBOSE(extra X libraries: $X_EXTRA_LIBS)
AC_SUBST(X_CFLAGS)dnl
AC_SUBST(X_LIBS)dnl
AC_SUBST(X_EXTRA_LIBS)dnl
dnl
dnl
define(AC_OS_AIX,
-[AC_MSG_CHECKING(for AIX)
-AC_BEFORE([$0], [AC_TRY_LINK])dnl
+[AC_BEFORE([$0], [AC_TRY_LINK])dnl
AC_BEFORE([$0], [AC_TRY_RUN])dnl
AC_BEFORE([$0], [AC_TRY_CPP])dnl
+AC_MSG_CHECKING(for AIX)
AC_EGREP_CPP(yes,
[#ifdef _AIX
yes
#endif
-], AC_DEFINE(_ALL_SOURCE))
+], [AC_MSG_RESULT(yes); AC_DEFINE(_ALL_SOURCE)], AC_MSG_RESULT(no))
])dnl
dnl
define(AC_OS_MINIX,
AC_BEFORE([$0], [AC_TRY_RUN])dnl
AC_BEFORE([$0], [AC_TRY_CPP])dnl
AC_CHECK_HEADER(minix/config.h, MINIX=yes, MINIX=)
-# The Minix shell ca not assign to the same variable on the same line!
+# The Minix shell can not assign to the same variable on the same line!
if test "$MINIX" = yes; then
AC_DEFINE(_POSIX_SOURCE)
AC_DEFINE(_POSIX_1_SOURCE, 2)
if test -d /etc/conf/kconfig.d &&
grep _POSIX_VERSION [/usr/include/sys/unistd.h] >/dev/null 2>&1
then
+ AC_MSG_RESULT(yes)
ISC=yes # If later tests want to check for ISC.
AC_DEFINE(_POSIX_SOURCE)
if test "$GCC" = yes; then
CC="$CC -Xp"
fi
else
+ AC_MSG_RESULT(no)
ISC=
fi
])dnl
[#if defined(M_XENIX) && !defined(M_UNIX)
yes
#endif
-], XENIX=yes, XENIX=)
+], [XENIX=yes AC_MSG_RESULT(yes)], [XENIX= AC_MSG_RESULT(no)])
if test "$XENIX" = yes; then
LIBS="$LIBS -lx"
case "$DEFS" in