summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 2ded490..9fc5c9d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -154,5 +154,5 @@ AC_CHECK_HEADER([expat.h],[
AC_CHECK_HEADERS([tidy.h tidy/tidy.h],[
- AC_CHECK_LIB([tidy],[tidyParseBuffer],[
+ test -z "$TIDY_LIBS" && AC_CHECK_LIB([tidy],[tidyParseBuffer],[
TIDY_LIBS=-ltidy
TIDY_CFLAGS=
@@ -163,5 +163,5 @@ AC_CHECK_HEADERS([tidy.h tidy/tidy.h],[
])
],[
- test "$ac_header" = "tidy/tidy.h" \
+ test -z "$TIDY_LIBS" -a "$ac_header" = "tidy/tidy.h" \
&& AC_MSG_ERROR([no required htmltidy library found. get one from http://tidy.sourceforge.net/])
])