[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autotools and glib-2.0
- To: developer at arabeyes dot org
- Subject: Re: autotools and glib-2.0
- From: Mohammed Sameer <Uniball at gmx dot net>
- Date: Fri, 20 Dec 2002 00:44:13 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
My Inbox Happily Received This From Mohammed Elzubeir @ Wed, 18 Dec 2002 22:47:39 -0600
> On Thu, Dec 19, 2002 at 05:57:01AM +0200, Mohammed Sameer wrote:
> > >
> > > Okay, replying to myself, but here it is anyway. Found the macro!
> > >
> > > AM_PATH_GLIB_2_0()
> > >
> > > Just in case someone runs into this again.
> >
> > I think the right way (?) 'd be:
> >
> > PKG_CHECK_MODULES(FOO, glib-2.0 >= 2.0.0)
> >
> > then you'll have
> > FOO_CFLAGS -> compile flags
> > FOO_LIBS -> link flags
> >
>
> Well, it's a 'way', but the AM_PATH_GLIB_2_0 macro does all this checking for
> you.
>
> --------------------->exerpt from glib-2.0.m4 <-------------------------------
> dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject
> dnl gthread is specified in MODULES, pass to pkg-config
> --------------------->exerpt from glib-2.0.m4 <-------------------------------
>
I was using AM_PATH_GTK_2_0() in the earlier versions of Katoob & that caused problems when Gtk is not in the standard location,
That's why i like to stick to the pkg-config stuff ;)
- --
- ----------------
- -- Katoob Main Developer
Linux registered user # 224950
ICQ # 58475622
FIRST make it run, THEN make it run fast "Brian Kernighan".
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+Aku9y2aOKaP9DfcRAmS/AKCKGvEtdMO4cMyQPRFDfikN7+13NgCgjmOL
uW9X9HnVxyZLCLb1yVsKb7s=
=9Z9c
-----END PGP SIGNATURE-----