+2000-09-21 Pavel Roskin <proski@gnu.org>
+
+ * tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Check stderr from
+ autoconf and autoheader. Expected warnings disabled by "-W none"
+ Preceding comment removed as no longer relevant.
+ * tests/semantics.m4 (AC_CHECK_PROG & AC_PATH_PROG): Check
+ stderr from autoconf.
+ (AC_PATH_PROG & AC_PATH_PROGS): Likewise.
+ (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Likewise.
+ * tests/tools.m4 (autoheader): Check that autoheader prints
+ a warning for missing templates. Check stderr from autoconf.
+ * tests/torture.m4 (config.status under extreme conditions):
+ Check stderr from autoconf and autoheader.
+ (command line interface): Check stderr from autoconf.
+
2000-09-21 Pavel Roskin <proski@gnu.org>
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix usage info for
AC_OUTPUT
])
-dnl FIXME: Here we just don't consider the stderr from Autoconf.
-dnl Maybe some day we could be more precise and filter out warnings.
-dnl The problem is that currently some warnings are spread on several
-dnl lines, so grepping -v warning is not enough.
-AT_CHECK([autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
-AT_CHECK([autoheader --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([autoconf -W none --autoconf-dir .. -l $at_srcdir], 0, [], [])
+AT_CHECK([autoheader --autoconf-dir .. -l $at_srcdir], 0, [], [])
AT_CHECK([top_srcdir=$top_srcdir ./configure], 0, ignore, [])
test -n "$at_verbose" && echo "--- config.log" && cat config.log
exit $fail
]])
-AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
AT_CHECK([./configure], 0, ignore)
exit $fail
]])
-AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
AT_CHECK([./configure], 0, ignore)
AT_CLEANUP(path config.log config.cache configure)
AC_OUTPUT
]])
-AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
# Create a header
AT_CHECK([./configure what_to_test=header], 0, ignore)
AC_DEFINE(that, "whatever you want.")
]])
-AT_CHECK([../autoheader --autoconf-dir .. -<configure.in], 1, ignore, ignore)
+AT_CHECK([../autoheader --autoconf-dir .. -<configure.in], 1, [],
+[autoheader: No template for symbol `that'
+])
# 3. Check TOP and BOTTOM.
Bottom2 from configure.in.
/* Bottom from acconfig.h. */
-]], ignore)
+]], [])
AT_CLEANUP
AC_CONFIG_FILES([Makefile])
AC_CONFIG_COMMANDS([default],[[echo $fubar]],[[fubar=$fubar]])
AC_OUTPUT
-]], ignore)
+]], [])
AT_CLEANUP
AC_OUTPUT
])
-AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
-AT_CHECK([../autoheader --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
+AT_CHECK([../autoheader --autoconf-dir .. -l $at_srcdir], 0, [], [])
AT_CHECK([./configure], 0, ignore)
# Checking that AC_DEFINE worked properly.
AC_OUTPUT
]])
-AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
AT_CHECK([./configure one=one --enable-two=two --with-three=three |
sed -n -e 's/^result=//p'], 0,