Re: [gnet-dev] support for glib2?



David is the one to ask, but he is on vacation (until next thur) and I'm
not sure when he will check his email next so I'll try to answer.

I don't know if it works but, try this:

First make sure you have glib2 installed
  %glib-confing --version

Then edit configure.in (in the top level of the gnet dir) and change 1.2
to 2.0. This way it should fail if it finds 1.2 first.
# Need GLIB
AM_PATH_GLIB(1.2.0,
            [LIBS="$LIBS $GLIB_LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS"],
            AC_MSG_ERROR(Cannot find GLIB: Is glib-config in path?))

&

  AM_PATH_GLIB(1.2.0, AC_DEFINE(HAVE_GETHOSTBYNAME_R_GLIB_MUTEX), [
      AC_MSG_WARN(You have neither Glib threads nor the function
gethostbyname_r. This means that calls to gethostbyname (called by the
GNet address  functions) will not be thread safe so could malfunction in
programs that use threads.)

I think that should be it.

Andy

On Wed, 20 Jun 2001, Peter J. Braam wrote:

> Hi,
>
> I'd like to use gnet, but I need glib2.  Has it been ported?  What do I
> change in the automake/autoconf setup to find glib2 instead of glib 1.2?
>
> Thanks!
>
> - Peter -
>
> _______________________________________________
> gnet-dev mailing list
> gnet-dev gnetlibrary org
> http://www.gnetlibrary.org/mailman/listinfo/gnet-dev
>




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