[gdome] Bugfix: pkg-config fails if using glib2

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],
 if test "x$GLIB_1" = "xyes"


Daniel Macks
dmacks netspace org

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