This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: choosing a source file based on configure


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]