+2000-09-05 Pavel Roskin <proski@gnu.org>
+
+ * autoconf.sh: Consider undefined macros as errors.
+ * tests/base.m4 (unexpanded macros): Expect error, not warning
+
2000-09-05 Dave Love <fx@gnu.org>
* aclang.m4 (_AC_PROG_F77_GNU): Run command from standard input so
cat >$tmp/finalize.awk <<EOF
function undefined (file, line, macro)
{
- print file ":" line ": warning: undefined macro: " macro | "cat >&2"
+ print file ":" line ": error: undefined macro: " macro | "cat >&2"
}
{
}
}
EOF
- $AWK -f $tmp/finalize.awk <$tmp/configure >&4
+ $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || exit 1
;; # End of the task script.
cat >$tmp/finalize.awk <<EOF
function undefined (file, line, macro)
{
- print file ":" line ": warning: undefined macro: " macro | "cat >&2"
+ print file ":" line ": error: undefined macro: " macro | "cat >&2"
}
{
}
}
EOF
- $AWK -f $tmp/finalize.awk <$tmp/configure >&4
+ $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || exit 1
;; # End of the task script.
cat >$tmp/finalize.awk <<EOF
function undefined (file, line, macro)
{
- print file ":" line ": warning: undefined macro: " macro | "cat >&2"
+ print file ":" line ": error: undefined macro: " macro | "cat >&2"
}
{
}
}
EOF
- $AWK -f $tmp/finalize.awk <$tmp/configure >&4
+ $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || exit 1
;; # End of the task script.
It would be very bad if Autoconf forgot to expand [AC_]OUTPUT!
]])
-AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [],
-[[configure.in:2: warning: undefined macro: AC_THIS_IS_PROBABLY_NOT_DEFINED
-configure:3: warning: undefined macro: AC_OUTPUT
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 1, [],
+[[configure.in:2: error: undefined macro: AC_THIS_IS_PROBABLY_NOT_DEFINED
+configure:3: error: undefined macro: AC_OUTPUT
]])
AT_CLEANUP(configure)