summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-12-15 22:58:23 -0500
committerTingPing <tingping@tingping.se>2014-12-17 18:21:10 -0500
commit664f6bf1e757d74cf35a5d3ab18754ebc792242f (patch)
treebeef156e5cfbfbfca6fe50db2515d131797e6b5f
parentaeb5d15871cca7fe5eba806431b4e63fee015a94 (diff)
configure: Set glib min requirement to 2.32
and warn when using newer APIs
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 25f4f6ac..bdb256f5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -190,9 +190,11 @@ dnl *********************************************************************
 dnl ** GLIB *************************************************************
 dnl *********************************************************************
 
-AM_PATH_GLIB_2_0([2.28.0], [], [AC_MSG_ERROR([Glib not found!])], [gmodule gobject gio])
+AM_PATH_GLIB_2_0([2.32.0], [], [AC_MSG_ERROR([Glib not found!])], [gmodule gobject gio])
 COMMON_CFLAGS="$GLIB_CFLAGS -DG_DISABLE_SINGLE_INCLUDES"
 COMMON_LIBS="$GLIB_LIBS"
+AC_DEFINE([GLIB_VERSION_MIN_REQUIRED], [GLIB_VERSION_2_32], [Dont warn using older APIs])
+AC_DEFINE([GLIB_VERSION_MAX_ALLOWED], [GLIB_VERSION_2_32], [Prevents using newer APIs])
 
 dnl *********************************************************************
 dnl ** GTK **************************************************************