]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* autoconf.sh: Consider undefined macros as errors.
authorAkim Demaille <akim@epita.fr>
Tue, 5 Sep 2000 10:19:01 +0000 (10:19 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 5 Sep 2000 10:19:01 +0000 (10:19 +0000)
* tests/base.m4 (unexpanded macros): Expect error, not warning

ChangeLog
autoconf.in
autoconf.sh
bin/autoconf.in
tests/tools.m4

index 0d8b0fea12a002e3b96da747b6cbdd913b8d715d..78e7b6e77d8aaf939d194379a4ea1c9dedc619e9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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
index a9221c369503bd059dda173d4b132f9f0f540af6..3e7aa8f4a26f169fb6723d793f8ad13d6c7594ee 100644 (file)
@@ -313,7 +313,7 @@ case $task in
   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"
     }
 
     {
@@ -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.
 
 
index a9221c369503bd059dda173d4b132f9f0f540af6..3e7aa8f4a26f169fb6723d793f8ad13d6c7594ee 100644 (file)
@@ -313,7 +313,7 @@ case $task in
   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"
     }
 
     {
@@ -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.
 
 
index a9221c369503bd059dda173d4b132f9f0f540af6..3e7aa8f4a26f169fb6723d793f8ad13d6c7594ee 100644 (file)
@@ -313,7 +313,7 @@ case $task in
   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"
     }
 
     {
@@ -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.
 
 
index 6bceef1af7bf413ce7411bb83443c931a65c3726..4529116f52b13339a3238ff9fb6e3d9f3289488f 100644 (file)
@@ -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)