From dfc4062d5aa1e4dc7f44fbb1104638ca78fe9e7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sun, 25 Sep 2022 07:05:32 +0800 Subject: Turn Strap parsing into a feature rather than external libtidy package option, though it does, require libtidy to parse Strap, but libtidy will only be used for parsing Strap, not for anything else, seen from the library user's perspective. --- configure.ac | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 4d895be..734bb99 100644 --- a/configure.ac +++ b/configure.ac @@ -3,14 +3,12 @@ AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_PROG_CC AM_PROG_AR LT_INIT -AC_ARG_WITH([tidy], - [AS_HELP_STRING([--with-tidy], - [enable HTML parsing with libtidy])], - [], - [with_tidy=no]) -AS_IF([test "x$with_tidy" != xno], - [PKG_CHECK_MODULES([TIDY], [tidy])]) -AM_CONDITIONAL([TIDY], [test "x$with_tidy" = xyes]) +AC_ARG_ENABLE([strap], + [AS_HELP_STRING([--enable-strap], + [enable Strap template parsing with libtidy])], + [PKG_CHECK_MODULES([TIDY], [tidy])], + [enable_strap=no]) +AM_CONDITIONAL([STRAP], [test "x$enable_strap" = xyes]) AC_CANONICAL_HOST case $host_cpu in *wasm* ) wasm=true;; -- cgit v1.2.3