This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Modulating library installation
- To: automake at gnu dot org
- Subject: Modulating library installation
- From: "Braden N. McDaniel" <braden at endoframe dot com>
- Date: Mon, 27 Mar 2000 08:40:52 -0500 (EST)
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
braden@endoframe.com
<URL:http://www.endoframe.com>