autoconf
[Top][All Lists]
Advanced

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

Re: multilib and Makefile regeneration


From: Paolo Bonzini
Subject: Re: multilib and Makefile regeneration
Date: Mon, 31 Aug 2009 23:53:17 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3

On 08/31/2009 11:11 PM, Ralf Wildenhues wrote:
The easiest for now would be (3), the coolest, most difficult and
probably most dangerous one would be (2).  Something like
   AC_CONFIG_FILES_COMMANDS(some/Makefile, more-user-commands,
                            [more-init-cmds])

but then the order of issuing this and the respective
   AC_CONFIG_FILES(some/Makefile)

would be significant.  I don't see any way to avoid this.

You could specify that AC_CONFIG_FILES comes first, and *_COMMANDS occurrences come later in the order that appears in the source (and do nothing unless the corresponding AC_CONFIG_FILES exists).

The simplest implementation would amount to two m4_append (actually one m4_append plus one _AC_CONFIG_COMMANDS_INIT) in AC_CONFIG_FILES_COMMANDS, and an m4_ifdef in _AC_CONFIG_REGISTER_DEST.

Paolo




reply via email to

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