automake
[Top][All Lists]
Advanced

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

Re: [revised patch 1/1] support AC_SUBST'able automake rules


From: Lars J. Aas
Subject: Re: [revised patch 1/1] support AC_SUBST'able automake rules
Date: Fri, 9 Feb 2001 17:56:57 +0100
User-agent: Mutt/1.2.5i

On Fri, Feb 09, 2001 at 10:48:38AM -0600, Michael Bletzinger wrote:
: The thing is, that since every AC_SUBST'd variable is transformed into a
: make variable, you can already specify all sorts of derived stuff using
: make variables in Makefile.am's with the CVS automake. For example:
: 
: in the configure.in
: 
: AC_SUBST(arch)
: AC_SUBST(nonthreaded)
: AC_SUBST(nonthreaded_sources)
: 
: 
: and in the Makefile.am
: 
: foo_SOURCES = foo.c fee_$(arch).c
: 
: lib_LTLIBRARIES = libfoo_$(nonthreaded).la
: 
: libfoo___nonthreaded__la_SOURCES = foo.c $(nonthreaded_sources)

Ah, I missed this "hack" when I started trying.  I don't consider it to
be "supported", though, since you need to transform the characters...

: So I'm not sure that doing autoconf substitution really adds anything.  

If nothing else, it will de-obfuscate such hacks as the one above :)

  Lars J
-- 
Innovation is one percent inspiration and ninetynine percent perspiration,
and in my case; twice that...  -- Norville Barnes, `The Hudsucker Proxy'



reply via email to

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