diff configure @ 2978:d84182f0054e

GTK4: Support for dw_html_javascript_add() and DW_SIGNAL_HTML_MESSAGE. Also add support for the stable WebKitGTK 6.0 for GTK4. They changed a lot including the package name, add USE_WEBKIT6 for this.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 24 Mar 2023 23:04:39 +0000
parents 83c17a84bc27
children a464a74505f7
line wrap: on
line diff
--- a/configure	Fri Mar 24 17:35:53 2023 +0000
+++ b/configure	Fri Mar 24 23:04:39 2023 +0000
@@ -7151,8 +7151,9 @@
          fi
          if test x"$GTK_LIBS" != x; then
             DW_DIR=gtk4
-            # WebKit2GTK built for GTK4 becomes 5.0
-            WEBKIT_PKG="webkit2gtk-5.0"
+            # WebKit2GTK built for GTK4 becomes 5.0 or 6.0
+            WEBKIT_PKG="webkitgtk-6.0"
+            WEBKIT_ALT_PKG="webkit2gtk-5.0"
          fi
       else
          # Put the GTK2 test here since --with-gtk2 is mutually
@@ -7208,6 +7209,11 @@
 printf "%s\n" "#define USE_WEBKIT2 1" >>confdefs.h
 
          fi
+         if test "$WEBKIT_PKG" = "webkitgtk-6.0"; then
+
+printf "%s\n" "#define USE_WEBKIT6 1" >>confdefs.h
+
+         fi
       fi
       if test x"$RPATH" != x; then
          RPATH="-Wl,-R$RPATH"