[Top][All Lists]

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

Re: expand-before-require bug

From: Eric Blake
Subject: Re: expand-before-require bug
Date: Sun, 25 Jan 2009 16:36:25 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20081209 Thunderbird/ Mnenhy/

Hash: SHA1

According to Bruno Haible on 1/23/2009 5:26 PM:
> Eric Blake wrote:
>> With the proposal for autoconf 2.64, it can be
>> either invoked or required, in any order, without warning; it guarantees
>> that the expansion only occurs once; and it will never suffer from
>> out-of-order expansion (thanks to the embedded require under the hood).
> Sounds perfect. I can't await to see it running, and backported into
> gnulib-common.m4 :-)

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've got the autoconf side running in my sandbox, and am now working on
the gnulib side.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


reply via email to

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