[Top][All Lists]

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

Omitting libraries if empty?

From: John Gruenenfelder
Subject: Omitting libraries if empty?
Date: Mon, 11 Aug 2003 16:17:01 -0700
User-agent: Mutt/1.5.4i

I have a project which uses all three of the autotools.  Following the
examples given in the Autobook, one of my library subdirectories is "replace"
containing functions which will be conditionally compiled if the system does
not have them.

The problem I am having occurs when there are no files to be compiled in
replace.  On my Debian machine, this does not cause any trouble; ar allows an
archive to be created with no members, and the linker will accept an empty
library and ignore it.

Other systems, however, choke on this such as IRIX and OSX.  How can I make
it so that is NOT used, nor compiled, if there is nothing to put
into it?

My main lists "replace" in the SUBDIRS variable.  Each of my
subdirectories' Makefiles list in their fo_LDADD variables.  How
can I make this conditional?

--John Gruenenfelder    Research Assistant, Steward Observatory, U of Arizona
Try Weasel Reader for PalmOS  --
"This is the most fun I've had without being drenched in the blood
of my enemies!"
        --Sam of Sam & Max

reply via email to

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