Re: Bugfix: pkg-config fails if using glib2
xrysoflis <[email protected]> Tue, 29 Dec 2009 00:33:27 -0800 (PST)
| Newsgroups | gmane.comp.gnome.gdome |
|---|---|
| Message-ID | <[email protected]> |
I cannot obtain the binary version for libgdome0 from fink, even though I have the latest version of the package installer and have updated the list of packages. I am running leopard (10.5.8). I have also tried compiling gdome from source but I get the following error: checking for pkg-config... /sw/bin/pkg-config checking for glib-2.0... yes checking GLIB_CFLAGS... -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include checking GLIB_LIBS... -L/sw/lib -lglib-2.0 -lintl -liconv checking for pkg-config... (cached) /sw/bin/pkg-config checking for GLIB - version >= 2.2.0... no *** Could not run GLIB test program, checking why... *** The test program failed to compile or link. See the file config.log for the *** exact error that occured. This usually means GLIB is incorrectly installed. configure: error: Could not find GLIB (see config.log for details). Any ideas? Thanks! Daniel Macks wrote: > > PKG_CHECK_MODULES needs to know the path to the 'pkg-config' program. > The first time the PKG_CHECK_MODULES macro is encountered, this path > is determined. All later times, that initially-deteremined path is > reused. The bug in gdome2-0.8.1 (at least when configure is > regenerated using recent versions of autoconf and other tools) is that > the first P_C_M is used is within a conditional. If --enable-glib-1 is > not passed, that conditional is false, so the code from that P_C_M is > not executed: we then wind up with P_C_M in the glib2 without a valid > path to pkg-config. Solution: pre-determine that path before going > into the glib1/glib2 conditionals: > > diff -Nurd -x'*~' gdome2-0.8.1.orig/configure.in gdome2-0.8.1/configure.in > --- gdome2-0.8.1.orig/configure.in 2003-10-05 10:39:27.000000000 -0400 > +++ gdome2-0.8.1/configure.in 2006-03-03 18:04:11.000000000 -0500 > @@ -62,6 +62,7 @@ > [ --enable-glib-1=[no] Specify if you want to use > glib 1], > GLIB_1=yes > ) > +PKG_PROG_PKG_CONFIG > > if test "x$GLIB_1" = "xyes" > then > > > dan > > -- > Daniel Macks > [email protected] > http://www.netspace.org/~dmacks > > _______________________________________________ > gdome mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/gdome > > -- View this message in context: http://old.nabble.com/Bugfix%3A-pkg-config-fails-if-using-glib2-tp3304458p26941524.html Sent from the GDome mailing list archive at Nabble.com.