Without --enable-haskell-tests, do not claim to WANT_HSTESTS,
which pulls in test/hs/htest without declaring a rule for it.

Signed-off-by: Thomas Vander Stichele <[email protected]>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index e44b8f3..bc75181 100644
--- a/configure.ac
+++ b/configure.ac
@@ -800,7 +800,7 @@ if test -z "$HLINT"; then
   AC_MSG_WARN([hlint not found, checking code will not be possible])
 fi
 
-AM_CONDITIONAL([WANT_HSTESTS], [test "x$HS_NODEV" = x])
+AM_CONDITIONAL([WANT_HSTESTS], [test "x$HS_NODEV" = x && test x$HTEST = xyes ])
 AM_CONDITIONAL([WANT_HSAPIDOC], [test "$HS_APIDOC" = yes])
 AM_CONDITIONAL([HAS_HLINT], [test "$HLINT"])
 
-- 
2.7.0.rc3.207.g0ac5344

Reply via email to