aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac2
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index e5d9469..212bcfe 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -319,6 +319,8 @@ endif
## Build rules: tests
+if BUILD_TESTS
+
if BUILD_GIT_RECEIVER
dist_check_SCRIPTS += \
tests/blogc-git-receiver/check_post_receive.sh \
@@ -648,6 +650,8 @@ endif
endif
+endif
+
TESTS = \
$(check_PROGRAMS) \
$(dist_check_SCRIPTS) \
diff --git a/configure.ac b/configure.ac
index 8d29465..e5b9ac9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -170,7 +170,7 @@ AS_IF([test "x$have_tests" = "xyes"], [
])
])
])
-AM_CONDITIONAL([BUILD_TESTS], [test "x$enable_tests" = "xyes"])
+AM_CONDITIONAL([BUILD_TESTS], [test "x$have_tests" = "xyes"])
AM_CONDITIONAL([USE_CMOCKA], [test "x$have_cmocka" = "xyes"])
AM_CONDITIONAL([USE_BGR_DEPS], [test "x$have_bgr_deps" = "xyes"])