Hi Mike, * Mike Heffner wrote on Wed, May 11, 2005 at 10:39:13PM CEST: > > lib_LTLIBRARIES= > noinst_LTLIBRARIES= > > if FOO_STANDALONE > lib_LTLIBRARIES+=libfoo.la > else > noinst_LTLIBRARIES+=libfoo.la > endif
Hmm, this works over here. > Automake reports this as an error: > > foo/Makefile.am:21: `libfoo.la' is already going to be installed in `lib' > foo/Makefile.am:19: `libfoo.la' previously declared here > > > What is the correct way of doing this conditional library building? Which Automake version do you use? Do you have AM_CONDITIONAL([FOO_STANDALONE], ...) in configure.ac? Regards, Ralf