[Glade-users] Set make up to compile with libxml



S?ren Juul wrote:

How do I set up a project to using libxml when it is being compiled? I
suppose it is somewhere in configure or Makefile?

Sure, since glade uses libxml - you can take the glade3 tarball as an 
example...
you'll notice in the configure.in you have a PKG_CHECK_MODULES() line for
all or most required packages - followed by AC_SUBST() - like so:

PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.10.0  libxml-2.0 >= 2.4.0)
AC_SUBST(GTK_LIBS)
AC_SUBST(GTK_CFLAGS)

This above lines basicly ensure the right versions of gtk+ and libxml2, and
then the `_LIBS' & `_CFLAGS' variables will be created with the `GTK' prefix
(as it was the first argument to the PKG_CHECK_MODULES macro) so then
you have GTK_LIBS & GTK_CFLAGS available in the configure script - but
to propagate those values to the makefiles - you need the AC_SUBST commands,
look to glade3/src/Makefile.am to see how the GTK_LIBS & GTK_CFLAGS are then
used to compile glade.

Thats basicly it.

Cheers,
                               -Tristan





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]