commit 3a018e2d1b57cd25d7c64d4470dc14a26851a239
parent bfe7656c6e8c9cf666270d77dc91bad5135292a0
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 22 Sep 2012 20:04:16 +0000
only run compression tests if lib was found
Diffstat:
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/main/Makefile.am b/src/main/Makefile.am
@@ -19,10 +19,12 @@ extract_LDADD = \
$(top_builddir)/src/main/libextractor.la
if HAVE_ZLIB
- zlib =-lz
+zlib =-lz
+TEST_ZLIB = test_gzip
endif
if HAVE_BZ2
- bz2lib = -lbz2
+bz2lib = -lbz2
+TEST_BZIP2 = test_bzip2
endif
libextractor_la_LDFLAGS = \
@@ -99,8 +101,8 @@ check_PROGRAMS = \
test_plugin_load_multi \
test_ipc \
test_file \
- test_gzip \
- test_bzip2
+ $(TEST_ZLIB) \
+ $(TEST_BZIP2)
if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)