I have an automake script which, depending on the value of some
substitutions defined in configure, allows a library to be built either as
something that will be installed or as a helper library. I am hoping to
consolidate these substitutions into one or two automake conditionals.
I have an automake conditional that looks like this (lines numbered for
reference):
1 EXTRA_LTLIBRARIES = libjs.la
2 if JS_INSTALL
3 lib_LTLIBRARIES = libjs.la
4 else
5 noinst_LTLIBRARIES = libjs.la
6 endif
Running automake yields these errors:
automake: src/Makefile.am: `libjs.la' is already going to be installed in
`noinst'
automake: src/Makefile.am: `libjs.la' is already going to be installed in
`noinst'
src/Makefile.am: libjs_la_OBJECTS should not be defined
src/Makefile.am: libjs_la_OBJECTS should not be defined
Lines 1 and 3 appear to be at fault; commenting both of them out gives no
errors, and commenting either of them out yields:
automake: src/Makefile.am: `libjs.la' is already going to be installed in
`noinst'
src/Makefile.am: libjs_la_OBJECTS should not be defined
Note that "libjs_la_OBJECTS" is not defined anywhere in the automake
script.
Is there some way to do what I want here, or should I just go back to
using several autoconf substitution variables? (BTW, I'm using automake
1.4.)
--
Braden N. McDaniel
[EMAIL PROTECTED]
<http://www.endoframe.com>