From: Akim Demaille Date: Tue, 5 Sep 2000 10:19:01 +0000 (+0000) Subject: * autoconf.sh: Consider undefined macros as errors. X-Git-Tag: autoconf-2.50~647 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82bbd6fe4e2df5834cd58fcc2ba3ba825690d343;p=thirdparty%2Fautoconf.git * autoconf.sh: Consider undefined macros as errors. * tests/base.m4 (unexpanded macros): Expect error, not warning --- diff --git a/ChangeLog b/ChangeLog index 0d8b0fea1..78e7b6e77 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-09-05 Pavel Roskin + + * autoconf.sh: Consider undefined macros as errors. + * tests/base.m4 (unexpanded macros): Expect error, not warning + 2000-09-05 Dave Love * aclang.m4 (_AC_PROG_F77_GNU): Run command from standard input so diff --git a/autoconf.in b/autoconf.in index a9221c369..3e7aa8f4a 100644 --- a/autoconf.in +++ b/autoconf.in @@ -313,7 +313,7 @@ case $task in cat >$tmp/finalize.awk <&2" + print file ":" line ": error: undefined macro: " macro | "cat >&2" } { @@ -374,7 +374,7 @@ case $task in } } EOF - $AWK -f $tmp/finalize.awk <$tmp/configure >&4 + $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || exit 1 ;; # End of the task script. diff --git a/autoconf.sh b/autoconf.sh index a9221c369..3e7aa8f4a 100644 --- a/autoconf.sh +++ b/autoconf.sh @@ -313,7 +313,7 @@ case $task in cat >$tmp/finalize.awk <&2" + print file ":" line ": error: undefined macro: " macro | "cat >&2" } { @@ -374,7 +374,7 @@ case $task in } } EOF - $AWK -f $tmp/finalize.awk <$tmp/configure >&4 + $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || exit 1 ;; # End of the task script. diff --git a/bin/autoconf.in b/bin/autoconf.in index a9221c369..3e7aa8f4a 100644 --- a/bin/autoconf.in +++ b/bin/autoconf.in @@ -313,7 +313,7 @@ case $task in cat >$tmp/finalize.awk <&2" + print file ":" line ": error: undefined macro: " macro | "cat >&2" } { @@ -374,7 +374,7 @@ case $task in } } EOF - $AWK -f $tmp/finalize.awk <$tmp/configure >&4 + $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || exit 1 ;; # End of the task script. diff --git a/tests/tools.m4 b/tests/tools.m4 index 6bceef1af..4529116f5 100644 --- a/tests/tools.m4 +++ b/tests/tools.m4 @@ -256,9 +256,9 @@ AC_THIS_IS_PROBABLY_NOT_DEFINED 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)