Skip to content

Commit 150cc28

Browse files
committed
configure: disable libcheck test if test build is disabled
Signed-off-by: Patrick McCarty <[email protected]>
1 parent 8c0a87b commit 150cc28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ AM_SILENT_RULES([yes])
1414
LT_INIT
1515

1616
PKG_CHECK_MODULES([zlib], [zlib])
17-
PKG_CHECK_MODULES([CHECK], [check >= 0.9])
1817

1918
AC_ARG_ENABLE([bzip2],
2019
[AS_HELP_STRING([--disable-bzip2],[Do not use bzip2 compression (uses bzip2 by default)])])
@@ -58,6 +57,7 @@ fi
5857
AM_CONDITIONAL([COVERAGE], [test "$have_coverage" = "yes"])
5958

6059
AS_IF([test "$enable_tests" != "no"], [
60+
PKG_CHECK_MODULES([CHECK], [check >= 0.9])
6161
AC_PATH_PROG([have_valgrind], [valgrind])
6262
AS_IF([test -z "${have_valgrind}"], [
6363
AC_MSG_ERROR([Must have valgrind installed to run functional tests])

0 commit comments

Comments
 (0)