summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-02-18 14:27:48 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-04-05 12:48:23 +0100
commitc052230fffb444ff15667bb07411397ce77fb08c (patch)
tree87518fffe2fffda1031d1c4f2e689a2247b9d303 /configure.ac
parent02be6d055348ee0013cf744ecf518bbbe5cadedf (diff)
downloaddbus-c052230fffb444ff15667bb07411397ce77fb08c.tar.gz
dbus-c052230fffb444ff15667bb07411397ce77fb08c.tar.bz2
dbus-c052230fffb444ff15667bb07411397ce77fb08c.zip
Don't warn for functions deprecated since GLib 2.26
Also warn if we inadvertently use a function introduced since then. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=59971 Reviewed-by: Colin Walters <walters@verbum.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index dc083bb6..edd599cd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -212,6 +212,9 @@ fi
# default (unless you don't have GLib), because they don't bloat the library
# or binaries.
+AC_DEFINE([GLIB_VERSION_MIN_REQUIRED], [GLIB_VERSION_2_26], [Ignore post-2.26 deprecations])
+AC_DEFINE([GLIB_VERSION_MAX_ALLOWED], [GLIB_VERSION_2_26], [Prevent post-2.26 APIs])
+
with_glib=yes
if test "x$enable_modular_tests" != xno; then