Commit 69409cf5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

configure: allow CSS even without Bison or Flex

Building CSS support from tarball works fine even without those tools.
parent f2ba1049
......@@ -2981,16 +2981,8 @@ dnl
AC_ARG_ENABLE(css,
[ --enable-css CSS selector engine (default auto)])
AS_IF([test "${enable_css}" != "no"], [
with_css="no"
AS_IF([test "x$LEX" != "x:"], [
dnl can only accept bison or we need byacc feature test for %destructor
AS_IF([test "x$YACC" = "xbison -y"], [
AC_DEFINE(HAVE_CSS, 1, [Define if CSS engine is built])
with_css="yes"
],[
AC_MSG_WARN("Bison not found. CSS support disabled.")
])
])
with_css="yes"
AC_DEFINE(HAVE_CSS, 1, [Define if CSS engine is built])
])
AM_CONDITIONAL([ENABLE_CSS], [test "${with_css}" = "yes"])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment