summaryrefslogtreecommitdiff
path: root/nonprism/gthumb/webkit2gtk-4.0.patch
blob: 8fb23585c151dfdc820f653722bb16180a9a2ede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 4c64cb990fc1e32e269571b34065d7aa8d92c79e Mon Sep 17 00:00:00 2001
From: Dominique Leuenberger <dimstar@opensuse.org>
Date: Fri, 15 Aug 2014 16:47:27 +0200
Subject: Build against either webkit2gtk-3.0 or webkit2gtk-4.0

The API changes were minor and none affected gthumb.

diff --git a/configure.ac b/configure.ac
index 6f9f03e..da246f9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -508,10 +508,14 @@ AC_ARG_ENABLE([webkit2],
 
 if test x$enable_webkit2 = xyes ; then
 	PKG_CHECK_MODULES(WEBKIT2,
-			  [webkit2gtk-3.0 >= $WEBKIT2_REQUIRED],
+			  [webkit2gtk-4.0 >= $WEBKIT2_REQUIRED],
 			  [AC_DEFINE(HAVE_WEBKIT2, 1, [Have webkit2gtk])
 			   enable_webkit2=yes],
-			  [enable_webkit2=no])
+			  [PKG_CHECK_MODULES(WEBKIT2,
+					     [webkit2gtk-3.0 >= $WEBKIT2_REQUIRED],
+					     [AC_DEFINE(HAVE_WEBKIT2, 1, [Have webkit2gtk])
+					      enable_webkit2=yes],
+					     [enable_webkit2=no])])
 fi
 AC_SUBST(WEBKIT2_CFLAGS)
 AC_SUBST(WEBKIT2_LIBS)
-- 
cgit v0.10.1