diff --git a/configure.ac b/configure.ac
index cb1eb6dda83ec6e8fd65047f4a604585dfcbcf7c..3d7eaa34364644c291c0c55f73190f01d0e868eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -575,7 +575,7 @@ if test "$HTOOLS" != "yes" && test "$ENABLE_CONFD" = "True"; then
 fi
 
 AM_CONDITIONAL([WANT_HTOOLS], [test x$HTOOLS = xyes])
-AM_CONDITIONAL([WANT_HTOOLSTESTS], [test "x$GHC_PKG_QUICKCHECK" != x])
+AM_CONDITIONAL([WANT_HTOOLSTESTS], [test "x$HTOOLS_NODEV" = x])
 AM_CONDITIONAL([WANT_HTOOLSAPIDOC], [test x$HTOOLS_APIDOC = xyes])
 AM_CONDITIONAL([HAS_HLINT], [test "$HLINT"])