[Top][All Lists]

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

Re: [PATCH] AC_INIT: properly quote package name containing m4 macro

From: Ralf Corsepius
Subject: Re: [PATCH] AC_INIT: properly quote package name containing m4 macro
Date: Sat, 19 Mar 2011 05:27:30 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7

On 03/17/2011 10:09 PM, Ralf Wildenhues wrote:
Hi Eric,

* Eric Blake wrote on Thu, Mar 17, 2011 at 05:57:48PM CET:
We have an existing use case that argues for unexpanded (automake's
desire to write tests for dummy packages that use arbitrary names that
happen to match m4 builtins that aren't in the m4_ reserved namespace).
My use case is to set the version number consistently inside of a package (package suite) which consists of several sub-packages.

To achieve this, I have two aclocal *.m4s containing something similar to this:


... accompanied by this in's:

... and this in's
ACLOCAL_AMFLAGS = -I <path-to-version.m4>

AC_INIT is very widely
used, by almost every package using Autoconf.  There might be some
that rely on the current behavior, at least if it has been that way
for a long time.  (And at some point in the past, the behavior might
have been consistent ...)  Expanding user macros here can be useful.
What I do is one way to escape autoconf many years ago having stopped allowing variables in AC_INIT. It allows me to only change one file with version bumps, instead having to modify many's.


reply via email to

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