This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: choosing a source file based on configure
- To: Bryan VanDeVen <bryanv at arlut dot utexas dot edu>
- Subject: Re: choosing a source file based on configure
- From: Tom Tromey <tromey at redhat dot com>
- Date: 17 Dec 2000 16:30:13 -0700
- Cc: Automake (E-mail) <automake at gnu dot org>
- List-Id: Discussion list for automake <automake.gnu.org><mailto:automake-request@gnu.org?subject=unsubscribe>
- References: <0011291515290P.07838@evgsunflower>
- Reply-To: tromey at redhat dot com
>>>>> "Bryan" == Bryan VanDeVen <bryanv@arlut.utexas.edu> writes:
Bryan> what is the best way to use a different source file based on
Bryan> the outcome of configure? We would like to normailly produce a
Bryan> stubbed out version of a lib function, and only use the real
Bryan> version when building inside the closed space
The best way is to use an automake conditional and then conditionally
include the source file in your _SOURCES variable.
Bryan> liblfbl_la_SOURCES = bit_unpack.c \
Bryan> fixpos.c \
Bryan> getcentr.c \
Bryan> $(@LFBLCODE@) \
Bryan> getlfbla.c \
Bryan> getlfbld.c
This won't work. A _SOURCES variable must have static contents.
Tom