]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Ignore undefined macros, necessary with m4 1.6.
authorEric Blake <ebb9@byu.net>
Mon, 21 Jul 2008 22:41:10 +0000 (16:41 -0600)
committerEric Blake <ebb9@byu.net>
Mon, 21 Jul 2008 22:41:10 +0000 (16:41 -0600)
* bin/autoupdate.in (_au___undefine): New macro,...
(_au__undefine): ...wrapped by ifdef to silence m4 warnings.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
bin/autoupdate.in

index a45513f32a47be59bdbe64f1b6741e922df32da8..eda69956e54ac220a1c4ca6f0bc0b5053aec98a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-07-21  Eric Blake  <ebb9@byu.net>
 
+       Ignore undefined macros, necessary with m4 1.6.
+       * bin/autoupdate.in (_au___undefine): New macro,...
+       (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
+       Reported by Ralf Wildenhues.
+
        Resync with gnulib.
        * GNUmakefile: Grab from upstream, to fix issue where 'make
        install' would allow installation of stale version string.
index 3a01af785025c329b943ca87755bf1c6f830190f..644de19c24b971705c00cd64f2a855ddd285c85c 100644 (file)
@@ -267,8 +267,10 @@ foreach my $file (@ARGV)
       # Define our special macros:
       define([_au__defn], defn([defn]))
       define([_au__divert], defn([divert]))
+      define([_au__ifdef], defn([ifdef]))
       define([_au__include], defn([include]))
-      define([_au__undefine], defn([undefine]))
+      define([_au___undefine], defn([undefine]))
+      define([_au__undefine], [_au__ifdef([$1], [_au___undefine([$1])])])
       define([_au__save], [m4_ifdef([$1], [m4_copy([$1], [_au_$1])])])
       define([_au__restore],
        [_au_m4_ifdef([_au_$1],