[NetworkManager-pptp/lr/gtk-4.0: 3/9] build: check max gtk version




commit 7b1653ff344fb672849f97a7cf42033f4efac5ee
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 55564ed..6133fa7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -108,6 +108,7 @@ GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_32"
 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]