Mail Archives: djgpp/2001/08/07/06:20:02
"Peter J. Farley III" wrote:
>
> Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> wrote:
> <Snipped>
> >You're looking in the wrong place. You need an _automake_ conditional,
> >here, not a Make conditional. And automake only supports 'if', not
> >'ifdef'. Make operators 'ifdef' and 'ifeq' are GNU extensions which
> >automake doesn't use, in order to stay portable to non-GNU makes.
> >
> >I.e. you can't use GNU make conditionals in a Makefile.am, I think.
>
> Thanks, Hans. I was afraid that was the answer. I've read over the
> automake conditionals docs, which I think I understand, so I guess
> I'll have to convert it to use them.
Problem is that they're not functionally equivalent.
Automake conditionals represent a configure-time decision; GNU make
conditionals are a run-time decision. The latter allows you to change
make's behaviour by running
make CONDVAR=value
but automake conditionals require a reconfigure to make such a change.
I just ran a little test and it seems there is a way out: automake
requires its conditionals to start in column 0, make doesnt. So if
you merely precede your if/else/endif by a single space, automake
won't complain and the conditional will end up in the Makefile as
intended.
--
Tim Van Holder - Anubex N.V.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
This message was posted using plain text. I do not endorse any
products or services that may be hyperlinked to this message.
- Raw text -