From 0f9cc88a4c237143279e8fcfc80fc12e36d712c2 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 17 May 2012 09:46:24 -0400 Subject: [PATCH] Use GLIB_VERSION_MIN_REQUIRED to work around GValueArray deprecation GValueArray is deprecated as of GLib 2.32, but we need to use it for dbus-glib stuff. So use the new GLIB_VERSION_MIN_REQUIRED macro to prevent those warnings. https://bugzilla.gnome.org/show_bug.cgi?id=669613 --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 1330572f5f..127314c7d9 100644 --- a/configure.ac +++ b/configure.ac @@ -304,6 +304,11 @@ PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.1 dbus-glib-1 >= 0.75) AC_SUBST(DBUS_CFLAGS) AC_SUBST(DBUS_LIBS) +# dbus-glib uses GValueArray, which is deprecated as of GLib 2.32. +# Set GLIB_VERSION_MIN_REQUIRED to something less than that to avoid +# getting warnings. (GLIB_VERSION_2_26 is the oldest defined version.) +DBUS_CFLAGS="$DBUS_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26" + PKG_CHECK_MODULES(GLIB, gthread-2.0 glib-2.0 >= 2.22 gobject-2.0) AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS)