From 5f5c0c92eab8028c29d6de2eb26ca7d20f6eb3e2 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 4 Jan 2013 16:30:09 +0000 Subject: Require GLib 2.30 and forbid earlier-deprecated or newer functions --- configure.ac | 9 ++++++--- salut/telepathy-salut-uninstalled.pc.in | 2 +- salut/telepathy-salut.pc.in | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 583e2bdf..2920db2a 100644 --- a/configure.ac +++ b/configure.ac @@ -161,9 +161,12 @@ AC_HEADER_RESOLV dnl GTK docs GTK_DOC_CHECK -dnl Check for Glib -PKG_CHECK_MODULES(GLIB, - [glib-2.0 >= 2.24, gobject-2.0 >= 2.16, gthread-2.0 >= 2.4, gio-2.0]) +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([GLIB], + [glib-2.0 >= 2.30, gobject-2.0, gthread-2.0, gio-2.0]) AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) diff --git a/salut/telepathy-salut-uninstalled.pc.in b/salut/telepathy-salut-uninstalled.pc.in index 03fadcdb..2c660f4b 100644 --- a/salut/telepathy-salut-uninstalled.pc.in +++ b/salut/telepathy-salut-uninstalled.pc.in @@ -12,6 +12,6 @@ Name: Telepathy-Salut (uninstalled) Description: Link-local XMPP backend for the Telepathy framework (uninstalled) Version: @VERSION@ Requires: pkg-config >= 0.21 -Requires.private: glib-2.0 >= 2.16, gobject-2.0 >= 2.16, telepathy-glib >= 0.20 +Requires.private: glib-2.0 >= 2.30, gobject-2.0, gthread-2.0, gio-2.0, telepathy-glib >= 0.20 Libs: ${abs_top_builddir}/src/libsalut-plugins.la ${abs_top_builddir}/lib/ext/wocky/wocky/libwocky.la Cflags: -I${abs_top_srcdir} -I${abs_top_srcdir}/lib/ext/wocky diff --git a/salut/telepathy-salut.pc.in b/salut/telepathy-salut.pc.in index a6d192ad..edb645a2 100644 --- a/salut/telepathy-salut.pc.in +++ b/salut/telepathy-salut.pc.in @@ -12,6 +12,6 @@ Name: Telepathy-Salut Description: Link-local XMPP backend for the Telepathy framework Version: @VERSION@ Requires: pkg-config >= 0.21 -Requires.private: glib-2.0 >= 2.16, gobject-2.0 >= 2.16, telepathy-glib >= 0.20 +Requires.private: glib-2.0 >= 2.30, gobject-2.0, gthread-2.0, gio-2.0, telepathy-glib >= 0.20 Libs: -L${pluginexeclibdir} -lsalut-plugins -lwocky Cflags: -I${includedir}/telepathy-salut-0 -- cgit v1.2.3