>>>>> "Mark" == Mark Galassi <[EMAIL PROTECTED]> writes:

Mark> lib_LTLIBRARIES = libgenie.la @SWIG_LIBRARIES@
Mark> EXTRA_LTLIBRARIES = libge.la libgeperl.la libgeguile.la

This is right.

Mark> /bin/sh ../libtool  --mode=install /usr/bin/install -c libge.la 
/tmp/junk/lib/libge.la

Automake uses a special libtool invocation to install libtool
libraries.  This insulates automake from details of libtool's
implementation.

Mark> The *unconditional* library, which is libgenie.la, installed just fine
Mark> (it had a .libs/lai file), but the *conditional* libraries in
Mark> @SWIG_LIBRARIES@ (in this case libge.la and libgeperl.la) do not
Mark> install, I presume because there is no .libs/libge.lai and
Mark> .libs/libgeperl.lai.

I believe you have to somehow notify libtool that you plan to install
these libraries.  I think adding a -rpath to the link line will do it.
When it can do so, automake discovers this information statically --
but in an EXTRA_ case it cannot.

In your situation I recommend using automake conditionals and not
@SWIG_LIBRARIES@.  This will simplify your life.

    if SWIG
    lib_LTLIBRARIES = libgenie.la libge.la libgeperl.la libgeguile.la
    else
    lib_LTLIBRARIES = libgenie.la
    endif

Tom

Reply via email to