summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2023-05-04 16:15:06 +0200
committerraveit65 <[email protected]>2023-05-06 21:43:04 +0200
commit6ba0000aa903dfcb1a9718aa4431028d1400cc0a (patch)
tree857d8e45c5d9a62717a6a98cb22a2318b1e2777c
parent92f7d054d2a534bb08f92821e910625ecc0a3760 (diff)
downloadatril-6ba0000aa903dfcb1a9718aa4431028d1400cc0a.tar.bz2
atril-6ba0000aa903dfcb1a9718aa4431028d1400cc0a.tar.xz
support webkit2 4.0 and 4.1
Co-authored-by: Colomban Wendling <[email protected]>
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 9783c8aa..f341f0a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -622,7 +622,13 @@ AC_ARG_ENABLE(epub,
have_webkit="no"
if test "x$enable_epub" = "xyes"; then
- PKG_CHECK_MODULES(EPUB, webkit2gtk-4.1 >= $WEBKIT_REQUIRED \
+ dnl select the available WebKit2Gtk4 version, with a preference towards 4.1
+ webkit_pkg=webkit2gtk-4.1
+ PKG_CHECK_EXISTS([$webkit_pkg >= $WEBKIT_REQUIRED], [],
+ [PKG_CHECK_EXISTS([webkit2gtk-4.0 >= $WEBKIT_REQUIRED],
+ [webkit_pkg=webkit2gtk-4.0])])
+
+ PKG_CHECK_MODULES(EPUB, $webkit_pkg >= $WEBKIT_REQUIRED \
libxml-2.0 >= $LIBXML_REQUIRED zlib,have_webkit=yes,have_webkit=no)
if test "x$have_webkit" = "xyes"; then