[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AM_CONDITIONAL and config.status
From: |
Roger Leigh |
Subject: |
Re: AM_CONDITIONAL and config.status |
Date: |
Sun, 3 Feb 2002 00:37:29 +0000 |
User-agent: |
Mutt/1.3.25i |
On Sat, Feb 02, 2002 at 11:07:15AM -0700, Tom Tromey wrote:
> >>>>> "Roger" == Roger Leigh <address@hidden> writes:
>
> Roger> in Makefile.in, is it safe to use this format in my own .in files (e.g.
> Roger> po/POTFILES.in), or will the format used for the conditionals in .in
> Roger> files change at a future date? What I need to do is have lines
> Roger> conditionally included, as some are conditionally distributed.
>
> Conditionals don't work they way you seem to think they do.
> The @FOO_TRUE@ is rewritten to either `' (empty string) or `#' (make
> comment) by configure. No line is omitted from the generated Makefile.
>
> My recommendation is not to rely on the implementation of
> conditionals. It isn't something we have ever documented. We might
> actually change it at some point; for instance we might be able to get
> better performance from config.status if we change how conditionals
> are implemented.
OK. Back to the drawing board ;-)
I did actually get this working:
@address@hidden CUPS sources
@address@hidden/cups/genppd.c
@address@hidden Foomatic-related sources
@address@hidden/foomatic/printer_options.c
==>
# CUPS sources
src/cups/genppd.c
# Foomatic-related sources
src/foomatic/printer_options.c
When GIMP_SOURCE is true, the lines are nicely commented out with '#'.
I won't use this though ;-)
> Roger> if COND
> Roger> FOO
> Roger> BAR
> Roger> BAZ
> Roger> else
> Roger> BAD
> Roger> endif
>
> I read this example but I don't understand how it differs from what we
> already do. Right now you can enclose all kinds of stuff in a single
> conditional. What you can't do is have a conditional that starts or
> ends in the middle of a rule or macro definition.
OK. I though that in the past I could only have one line between
if-endif or if-else or else-endif. That was quite some time ago though.
automake.info only gives examples which use a single line.
> Roger> Being able to use 'ifndef' would also be another nice addition,
> Roger> or has this already been done (I possibly remember this being
> Roger> mentioned).
>
> You can use `if !FOO'.
Great.
Many thanks,
Roger
--
Roger Leigh
** Registration Number: 151826, http://counter.li.org **
Need Epson Stylus Utilities? http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848 available on public keyservers