summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-09 18:56:06 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-10 12:50:32 +0100
commitd108651b68ddf0ef6680df42fd64d406e9077725 (patch)
tree29abf4e5e021fb0c228caac02be953a6fc541b22
parent46e0f63e59df3cbf2a8c5f49b32b48b233f45e19 (diff)
Apply GLib deprecation/availability version checks
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49725 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Mikhail Zabaluev <mikhail.zabaluev@nokia.com>
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 39c6aaa..bad1b3e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -92,6 +92,10 @@ PKG_CHECK_MODULES([GLIB], [gobject-2.0 >= 2.30, gio-2.0 >= 2.30])
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
AC_SUBST([GLIB_GENMARSHAL])
+dnl MIN_REQUIRED must stay 2.30 because of GValueArray
+AC_DEFINE([GLIB_VERSION_MIN_REQUIRED], [GLIB_VERSION_2_30], [Ignore post 2.30 deprecations])
+AC_DEFINE([GLIB_VERSION_MAX_ALLOWED], [GLIB_VERSION_2_30], [Prevent post 2.30 APIs])
+
PKG_CHECK_MODULES([DBUS], [dbus-1 >= 0.60, dbus-glib-1 >= 0.60])
PKG_CHECK_MODULES([SOFIA_SIP_UA], [sofia-sip-ua-glib >= 1.12.11])
PKG_CHECK_MODULES([TELEPATHY_GLIB], [telepathy-glib >= 0.17.7])