[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: expand-before-require bug

From: Ralf Wildenhues
Subject: Re: expand-before-require bug
Date: Mon, 26 Jan 2009 20:30:41 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

* Eric Blake wrote on Mon, Jan 26, 2009 at 12:36:25AM CET:
> Backporting within gnulib-common.m4 itself won't work - we have to
> redefine AC_DEFUN_ONCE before any other gnulib .m4 file that uses it to
> define another macro.  Fortunately, Automake collects all m4/*.m4 files in
> alphabetical order, so it should be as simple as making a file named
> 000-gnulib.m4 (or some-such) which is then guaranteed to be included
> before any other gnulib m4 file.  Any thoughts on how best to name/include
> such a file reliably?

I'd name it 000-gnulib-override.m4.  GCC's config/override.m4 uses this
to ensure aclocal includes it (the m4_PACKAGE_VERSION is only to avoid
errors with older Autoconf):

[dnl AC_DEFUN a commonly used macro so this file is picked up.
m4_copy([AC_PREREQ], [_AC_PREREQ])
m4_copy([_AC_PREREQ], [AC_PREREQ])


reply via email to

[Prev in Thread] Current Thread [Next in Thread]