From eb7a60ea47add9498a23e7efd15943143b4cba81 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 11 Apr 2013 14:36:33 -0400 Subject: [PATCH] configure: Specify GLib min/max version Mainly to avoid deprecation warnings about g_type_init(). https://bugs.freedesktop.org/show_bug.cgi?id=63440 --- configure.ac | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index a9c24c4..b57138f 100644 --- a/configure.ac +++ b/configure.ac @@ -122,6 +122,8 @@ if test "x$GCC" = "xyes"; then fi PKG_CHECK_MODULES(GLIB, [gmodule-2.0 gio-2.0 >= 2.30.0]) +dnl Avoid warning spew about g_type_init() being deprecated +GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_30 '-DGLIB_VERSION_MAX_ALLOWED=G_ENCODE_VERSION(2,34)'" AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) -- 1.7.1