[libsocialweb] configure.ac: set GLib 2.26 as minimal version



commit 8346001a78fd26d4e0a073e1d97b4903725fe50b
Author: Simon McVittie <simon mcvittie collabora co uk>
Date:   Wed Mar 6 11:46:02 2013 +0000

    configure.ac: set GLib 2.26 as minimal version
    
    libsocialweb claims to support GLib as old as 2.14, but there's no
    macro for that; 2.26 is the oldest version for which a version macro
    exists.
    
    In particular, this gets rid of deprecation warnings about GValueArray.
    
    Signed-off-by: Simon McVittie <simon mcvittie collabora co uk>
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=695280
    Reviewed-by: Ross Burton <ross burtonini com>

 configure.ac |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 732abea..7eecb80 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,6 +45,9 @@ AM_PATH_GLIB_2_0([2.14.0],
                  [AC_MSG_ERROR([glib-2.0 is required])],
                  [gobject gthread gmodule-no-export])
 
+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])
+
 AS_ALL_LINGUAS
 IT_PROG_INTLTOOL([0.40], [no-xml])
 GETTEXT_PACKAGE=libsocialweb


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]