include-next, warnings: support older autoconf
authorEric Blake <eblake@redhat.com>
Tue, 26 Jul 2011 19:58:26 +0000 (13:58 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 26 Jul 2011 20:11:24 +0000 (14:11 -0600)
commit336406c13cc08ee13d6a15cc8cf86efb9132a830
treec82a6fd51b00e2191d7a7f386bc9a4fd1b0eeda8
parentc0ff72b95999d6a0e9fe7151c713352f154ad70a
include-next, warnings: support older autoconf

Older autoconf did not know how to peer through quoting of the
m4 macro created by AS_VAR_PUSHDEF; while newer autoconf has
been patched to allow typical autoconf quoting rules to still
apply, compatibility with autoconf 2.59 requires the unquoted
use of the macro name for all uses prior to AS_VAR_POPDEF.

absolute-header.m4 and warn-on-use.m4 already got this right.

* m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
AS_VAR_PUSHDEF in a way that works with older autoconf.
* m4/warnings.m4 (gl_WARN_ADD): Likewise.
Reported by Daniel P. Berrange.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
m4/include_next.m4
m4/warnings.m4