[note: I've subscribed to [EMAIL PROTECTED] but I'm not sure if it has
gone through yet, so please copy me on replies!]
Or am I just confused? I'm build shared libraries for SWIG wrappers
for Guile, Python and Perl. That works fine, but then I want to make
it all contingent upon SWIG being found on the system, and I run in to
problems.
I have autoconf code that defines @SWIG_LIBRARIES@, and I put the line
lib_LTLIBRARIES = libgenie.la @SWIG_LIBRARIES@
(instead of lib_LTLIBRARIES = libgenie.la libge.la libgeperl.la libgeguile.la)
When I do so I get this error message:
libgenie/Makefile.am:1: `lib_LTLIBRARIES' contains configure substitution, but
\`EXTRA_LTLIBRARIES' not defined
libgenie/Makefile.am:13: invalid unused variable name: `libgeperl_la_SOURCES'
libgenie/Makefile.am:17: invalid unused variable name: `libgeguile_la_SOURCES'
libgenie/Makefile.am:11: invalid unused variable name: `libge_la_SOURCES'
make[1]: *** [/n/toaster/u/rosalia/repo/GENIE/genie/libgenie/Makefile.in] Error\ 1
make[1]: Leaving directory `/tmp/g-work/libgenie'
make: *** [install-recursive] Error 1
So I peruse the manual and try to play with
EXTRA_LTLIBRARIES = libge.la libgeperl.la libgeguile.la
(these are all the python/perl/guile libraries that might be included
in @SWIG_LIBRARIES@)
Then the automake works and does not whine, but when I go to "make
install" I get really weird make+libtool messages involving .lai
files, which I've never heard of:
/bin/sh ../libtool --mode=install /usr/bin/install -c libge.la /tmp/junk/lib/libge.la
/usr/bin/install -c .libs/libge.lai /tmp/junk/lib/libge.la
/usr/bin/install: .libs/libge.lai: No such file or directory
/bin/sh ../libtool --mode=install /usr/bin/install -c libgeperl.la
/tmp/junk/lib/libgeperl.la
/usr/bin/install -c .libs/libgeperl.lai /tmp/junk/lib/libgeperl.la
/usr/bin/install: .libs/libgeperl.lai: No such file or directory
make[1]: *** [install-libLTLIBRARIES] Error 1
make[1]: Leaving directory `/tmp/g-work/libgenie'
make: *** [install-am] Error 2
The *unconditional* library, which is libgenie.la, installed just fine
(it had a .libs/lai file), but the *conditional* libraries in
@SWIG_LIBRARIES@ (in this case libge.la and libgeperl.la) do not
install, I presume because there is no .libs/libge.lai and
.libs/libgeperl.lai.
The string .lai does not appear in the automake/autoconf/libtool info
pages, nor in the generated Makefile.in or Makefile. I presume it is
put in there by libtool itself. Bottom line, until I peruse libtool
source code I have no idea why these files are not there.
Can anyone help me understand this?