Makefile.am.in question

Simon Hausmann hausmann at kde.org
Tue Jul 9 17:05:49 BST 2002


On Tue, Jul 09, 2002 at 04:58:23PM +0200, Rob Kaper wrote:
> My app currently used the following in Makefile.am :
> 
> atlantik_LDADD = ../libatlantikui/libatlantikui.la ../libatlantikclient/libatlantikclient.la $(top_builddir)/libkdegames/libkdegames.la $(LIB_KIO)
> 
> This breaks stand-alone releases though, since libkdegames is not part of
> the Atlantik package.
> 
> Does anyone know how to use Makefile.am.in to substitute
> $(top_builddir)/libkdegames/libkdegames.la with $KDEDIR/lib/libkdegames.la
> in case if [ -d $(top_builddir)/libkdegames ] fails?

I guess something along the lines of this shold work:

atlantik_LDADD = ... $(LIB_KDEGAMES) ...

and in configure.in.in:

if [ foobar ]; then
    AC_SUBST(LIB_KDEGAMES, \$(top_builddir)/libkdegames/libkdegames.la)
else
    AC_SUBST(LIB_KDEGAMES, "-lkdegames")
fi

Simon




More information about the kde-core-devel mailing list