I'm trying to allow configure to modulate whether or not a libtool library
is installed. I have in my Makefile.am:
lib_LTLIBRARIES = @INSTALL_LIBFOO@
noinst_LTLIBRARIES = @NOINSTALL_LIBFOO@
EXTRA_LTLIBRARIES = libfoo.la
Depending on what happens in configure, one of INSTALL_LIBFOO or
NOINSTALL_LIBFOO will resolve to "libfoo.la" and the other variable will
be empty.
Building appears to go fine. However, when I attempt "make install", I get
/bin/sh ../libtool --mode=install /usr/bin/install -c libfoo.la
/usr/local/lib/libfoo.la
/usr/bin/install -c .libs/libfoo.lai /usr/local/lib/libfoo.la
/usr/bin/install: .libs/libfoo.lai: No such file or directory
make[2]: *** [install-libLTLIBRARIES] Error 1
Sure enough, the .lai file is nowhere to be found. In fact the .libs
directory contains only libfoo.al and a symlink to the .la file. Shared
libraries are missing even though they weren't disabled and the .lo files
seem to have build just fine.
--
Braden N. McDaniel
[EMAIL PROTECTED]
<URL:http://www.endoframe.com>