[NetworkManager-vpnc/lr/gtk-4.0: 8/17] build: check max gtk version




commit dfd149f79f7300363c7c756e12726cb261730bb3
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Wed Nov 3 13:47:19 2021 +0100

    build: check max gtk version
    
    Set a upper bound on Gtk version, so that we don't accidentally use
    features from a newer one.

 configure.ac | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/configure.ac b/configure.ac
index 025cd73..07467e4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -102,6 +102,7 @@ GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_34"
 if test x"$with_gnome" != xno; then
        PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 3.4)
        GTK_CFLAGS="$GTK_CFLAGS -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_4"
+       GTK_CFLAGS="$GTK_CFLAGS -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_4"
 
        PKG_CHECK_MODULES(LIBNMA, libnma >= 1.2.0)
        PKG_CHECK_MODULES(LIBSECRET, libsecret-1 >= 0.18)


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