From: David Woodhouse Date: Sun, 12 Nov 2023 19:04:53 +0000 (-0500) Subject: Set GLIB_VERSION_MIN_REQUIRED and GLIB_VERSION_MAX_ALLOWED X-Git-Tag: v1.5~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b26ec9d0423b5baa06335124d8820a3d8d3db15c;p=pidgin-chime.git Set GLIB_VERSION_MIN_REQUIRED and GLIB_VERSION_MAX_ALLOWED The minimum is fairly ancieht because we build some gtk-2.0 and EDS bits, and perhaps we could do that *only* for those components as the rest of the code is clean. But this is OK for now. Add a maximum too, to help avoid using stuff which is too new to be usable on ancient distributions we might still want to support. Like g_memdup2(). Signed-off-by: David Woodhouse --- diff --git a/configure.ac b/configure.ac index f6e0c53..d3b8a93 100644 --- a/configure.ac +++ b/configure.ac @@ -60,6 +60,11 @@ AC_SEARCH_LIBS([dlopen],[dl dld], ) AC_SUBST([DLOPEN_LIBS]) +# Older gtk-2.0 (for chimeseen) GTypeDebugFlags, deprecated in 2.36. +# EDS code uses GTimeVal, deprecated in 2.62 +AC_DEFINE(GLIB_VERSION_MIN_REQUIRED, GLIB_VERSION_2_34, [Ignore post 2.60 deprecations]) +AC_DEFINE(GLIB_VERSION_MAX_ALLOWED, GLIB_VERSION_2_62, [Prevent post 2.60 APIs]) + PKG_CHECK_MODULES(DBUS, [dbus-1]) PKG_CHECK_MODULES(GNUTLS, [gnutls >= 3.2.0]) PKG_CHECK_MODULES(FARSTREAM, [farstream-0.2])