automake
[Top][All Lists]
Advanced

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

Re: Fw: 2nd possibly silly question: XTRA_foo_SOURCES


From: Robert Collins
Subject: Re: Fw: 2nd possibly silly question: XTRA_foo_SOURCES
Date: Sun, 1 Apr 2001 19:48:20 +1000

----- Original Message -----
From: "Lars J. Aas" <address@hidden>
To: "Robert Collins" <address@hidden>
Sent: Sunday, April 01, 2001 1:20 AM
Subject: Re: Fw: 2nd possibly silly question: XTRA_foo_SOURCES


> On Sun, Apr 01, 2001 at 12:19:44AM +1000, Robert Collins wrote:
> : I hadn't tried those - thanks.
> :
> : And yes, I did double check when I saw that!
>
> Try making an AM_CONDITIONAL in configure.in then, e.g.
>
> AM_CONDITIONAL(USE_DNSSOLUTION1, true)
>
> and write this in Makefile.am:
>
> if USE_DNSSOLUTION1
> DNSSOURCE = dns.c
> else
> DNSSOURCE = ...
> endif
>
> ..._SOURCES = ... ... $(DNSSOURCE) ...
>
> I know this works because I use it all the time.  If it doesn't,
there's
> something very strange about the project.
>
>   Lars J
>

Thanks - it works. Mind you a 6000 line Makefile is a little excessive
(there are 6 such AM_CONDITIONALS in use now I've put them all in
place).

Most of the lines are truely irrelevant as well - such as:
@ENABLE_HTCP_TRUE@@ENABLE_UNLINKD_TRUE@@MAKE_LEAKFINDER_TRUE@@USE_DELAY_
POOLS_TRUE@@USE_DN
SSERVER_TRUE@@USE_SNMP_FALSE@ HttpHeaderTools.$(OBJEXT) \

httpheadertools has no dependencies on the possible values of any of the
conditionals.

It would be a lot easier if I could just do what the doco implied, and
can be done with the _PROGRAMS target...

Or maybe I'm hitting a bug?

Rob




reply via email to

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