Re: AM_CONDITIONAL to choose between building library or linking directly

2012-09-11 Thread Fabrício Zimmerer Murta
k you, I was really wondering if that noinst_ approach would fit, it turns that it's the only solution. -Original Message- From: Nick Bowler Sent: Tuesday, September 11, 2012 4:42 PM To: FabrícioZimmerer Murta Cc: Automake Mailing List Subject: Re: AM_CONDITIONAL to choose between buildi

Re: AM_CONDITIONAL to choose between building library or linking directly

2012-09-11 Thread Nick Bowler
On 2012-09-11 15:41 -0300, Fabrício Zimmerer Murta wrote: > Is that supposed not to work? > > (“LIBRARY_BUILD” AM_CONDITIONAL set accordingly on configre.ac) > Makefile.am: > > if LIBRARY_BUILD > lib_LTLIBRARIRES = libprog.la > libprog_la_SOURCES = a.c b.c d.c > else !LIBRARY_BUILD > bin_PROGRAMS

AM_CONDITIONAL to choose between building library or linking directly

2012-09-11 Thread Fabrício Zimmerer Murta
Is that supposed not to work? (“LIBRARY_BUILD” AM_CONDITIONAL set accordingly on configre.ac) Makefile.am: if LIBRARY_BUILD lib_LTLIBRARIRES = libprog.la libprog_la_SOURCES = a.c b.c d.c else !LIBRARY_BUILD bin_PROGRAMS = driver driver_SOURCES = a.c b.c d.c driver.c endif !LIBRARY_BUILD if LIBRA