From 16e8226cafc9c38558b1de9414c935b4d7148bec Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 21 Sep 2023 10:29:00 +0100 Subject: [PATCH] allow building the litehtml plugin with libgumbo >= 0.10 but < 0.12 if, and only if, explicitly requested --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 40dc272d4..438e0cb01 100644 --- a/configure.ac +++ b/configure.ac @@ -1309,6 +1309,11 @@ AC_SUBST(FONTCONFIG_LIBS) dnl gumbo ********************************************************************** PKG_CHECK_MODULES(LIBGUMBO, gumbo >= 0.12, HAVE_LIBGUMBO=yes, HAVE_LIBGUMBO=no) +if test x"$HAVE_LIBGUMBO" = xno; then + if test x"$enable_litehtml_viewer_plugin" = xyes; then + PKG_CHECK_MODULES(LIBGUMBO, gumbo >= 0.10, HAVE_LIBGUMBO=yes, HAVE_LIBGUMBO=no) + fi +fi AC_SUBST(LIBGUMBO_CFLAGS) AC_SUBST(LIBGUMBO_LIBS) -- 2.11.4.GIT