aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-05 10:52:36 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-05 10:52:36 +0100
commitfcd44ae4a941590e67de21a3b6f23b0a1c5d2cfb (patch)
tree7ad799848a5010d724f37f03af897a9f010aa056
parent030336c989366ebe576a63ecbcab6824e5e8e9ae (diff)
downloadpaludis-fcd44ae4a941590e67de21a3b6f23b0a1c5d2cfb.tar.gz
paludis-fcd44ae4a941590e67de21a3b6f23b0a1c5d2cfb.tar.xz
Make sure tidy works if we need it
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8276eb5..9dd00c1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -917,6 +917,13 @@ AC_ARG_ENABLE([htmltidy],
AC_SUBST([HAVE_HTMLTIDY])
AM_CONDITIONAL([HAVE_HTMLTIDY], test "x$HAVE_HTMLTIDY" = "xyes")
+if test "x$HAVE_HTMLTIDY" = "xyes" ; then
+ AC_CHECK_PROG(HAVE_HTMLTIDY_WORKS, [tidy], [yes], [no])
+ if test "x$HAVE_HTMLTIDY_WORKS" = xno ; then
+ AC_MSG_ERROR([--enable-htmltidy was specified but 'tidy' doesn't work])
+ fi
+fi
+
dnl {{{ check for whether to build xml stuff
AC_MSG_CHECKING([whether to build xml things for metadata.xml and GLSA support])
AC_ARG_ENABLE([xml],