[libgdata] build: Do not add unused gnome dependencies to libgdata.pc



commit 60230e288e465091380135ed2d2397cce7ae956c
Author: Alexandre Rostovtsev <tetromino gentoo org>
Date:   Sun Dec 16 00:34:18 2012 -0500

    build: Do not add unused gnome dependencies to libgdata.pc
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690281

 configure.ac |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 76d4898..b4698c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -91,17 +91,20 @@ AC_ARG_ENABLE(gnome, AS_HELP_STRING([--enable-gnome], [Whether to enable GNOME s
 AC_MSG_RESULT($enable_gnome)
 AM_CONDITIONAL([ENABLE_GNOME], [test "x$enable_gnome" = "xyes"])
 
-GNOME_PACKAGES_PUBLIC=""
-GNOME_PACKAGES_PRIVATE="libsoup-gnome-2.4 gcr-base-3 libxml-2.0 goa-1.0 >= $GOA_REQS"
-GNOME_PACKAGES="$GNOME_PACKAGES_PUBLIC $GNOME_PACKAGES_PRIVATE"
-AC_SUBST([GNOME_PACKAGES_PUBLIC])
-AC_SUBST([GNOME_PACKAGES_PRIVATE])
-AC_SUBST([GNOME_PACKAGES])
-
 if test "x$enable_gnome" = "xyes"; then
+	GNOME_PACKAGES_PUBLIC=""
+	GNOME_PACKAGES_PRIVATE="libsoup-gnome-2.4 gcr-base-3 libxml-2.0 goa-1.0 >= $GOA_REQS"
+	GNOME_PACKAGES="$GNOME_PACKAGES_PUBLIC $GNOME_PACKAGES_PRIVATE"
 	AC_DEFINE(HAVE_GNOME, 1, [Defined if GNOME support is enabled])
 	PKG_CHECK_MODULES([GNOME], [$GNOME_PACKAGES])
+else
+	GNOME_PACKAGES_PUBLIC=""
+	GNOME_PACKAGES_PRIVATE=""
+	GNOME_PACKAGES=""
 fi
+AC_SUBST([GNOME_PACKAGES_PUBLIC])
+AC_SUBST([GNOME_PACKAGES_PRIVATE])
+AC_SUBST([GNOME_PACKAGES])
 
 # Various necessary functions and headers
 AC_CHECK_FUNCS([strchr])



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