Configuring with GLib



I noticed that the glib.m4 Autoconf macro was updated to use pkg-config
recently.  So I look at the configure.in file for Gtk+ to see how it is
configured to use GLib.  Here's what it looks like:

GLIB_PACKAGES="gobject-2.0 gmodule-2.0 gthread-2.0"
GLIB_REQUIRED_VERSION=1.3.2

AM_PATH_GLIB_2_0($GLIB_REQUIRED_VERSION, :,
    AC_MSG_ERROR([
        *** GLIB $GLIB_REQUIRED_VERSION or better is required. The
latest version of
        *** GLIB is always available from ftp://ftp.gtk.org/.]),
    gobject gmodule gthread)

GLIB_DEPLIBS=$GLIB_LIBS

CFLAGS="$CFLAGS $GLIB_CFLAGS"
AC_SUBST(GLIB_CFLAGS)
 304                AC_SUBST(GLIB_LIBS)
 305 owen     1.98  AC_SUBST(GLIB_DEPLIBS)





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