diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-04-03 16:38:03 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-04-04 11:02:58 +0200 |
commit | 2479ef3d6052ec03eb998496cb32f41f54f5799c (patch) | |
tree | 3d7d12a2cc61c4a79b7edbc7a2551b624f11382d /configure.ac | |
parent | 7aba06d98bb844e6af037ee8a8b72bb686725512 (diff) |
use new GLib API checking macros
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index eb31522..61985ee 100644 --- a/configure.ac +++ b/configure.ac @@ -70,7 +70,10 @@ AC_SUBST(ERROR_CFLAGS) AC_HEADER_STDC([]) AC_C_INLINE -dnl Check for Glib +dnl Check for Glib +AC_DEFINE(GLIB_VERSION_MIN_REQUIRED, GLIB_VERSION_2_28, [Ignore post 2.28 deprecations]) +AC_DEFINE(GLIB_VERSION_MAX_ALLOWED, GLIB_VERSION_2_28, [Prevent post 2.28 APIs]) + PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.28.0, gobject-2.0 >= 2.28.0, gio-2.0 >= 2.28.0 ]) AC_SUBST(GLIB_CFLAGS) |