fixing #1589
authorChristian Grothoff <christian@grothoff.org>
Wed, 28 Jul 2010 20:19:39 +0000 (20:19 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 28 Jul 2010 20:19:39 +0000 (20:19 +0000)
src/datacache/Makefile.am
src/datastore/Makefile.am

index 0713d792d7937c7fd08a704ea1f893e6f7298162..a103430460b3281bdbee7604a021bd80bcff6cae 100644 (file)
@@ -11,6 +11,9 @@ if USE_COVERAGE
   XLIBS = -lgcov
 endif
 
+if HAVE_SQLITE
+  SQLITE_PLUGIN = libgnunet_plugin_datacache_sqlite.la
+endif
 
 lib_LTLIBRARIES = \
   libgnunetdatacache.la
@@ -27,7 +30,7 @@ libgnunetdatacache_la_LDFLAGS = \
 
 
 plugin_LTLIBRARIES = \
-  libgnunet_plugin_datacache_sqlite.la \
+  $(SQLITE_PLUGIN) \
   libgnunet_plugin_datacache_template.la 
 
 
@@ -47,10 +50,14 @@ libgnunet_plugin_datacache_template_la_LDFLAGS = \
  $(GN_PLUGIN_LDFLAGS)
 
 
-check_PROGRAMS = \
+if HAVE_SQLITE
+  SQLITE_TESTS = \
  test_datacache \
  test_datacache_quota \
  perf_datacache 
+endif
+
+check_PROGRAMS = $(SQLITE_TESTS) 
 
 if !DISABLE_TEST_RUN
 TESTS = $(check_PROGRAMS)
index 7904907b6f0f02abbf7d2aa3e50bf8204407951b..6fdf73d1ae6701b96ef24c1c1d5897bd20f2d230 100644 (file)
@@ -35,9 +35,12 @@ gnunet_service_datastore_LDADD = \
   $(top_builddir)/src/util/libgnunetutil.la \
   $(GN_LIBINTL)
 
+if HAVE_SQLITE
+  SQLITE_PLUGIN = libgnunet_plugin_datastore_sqlite.la
+endif
 
 plugin_LTLIBRARIES = \
-  libgnunet_plugin_datastore_sqlite.la \
+  $(SQLITE_PLUGIN) \
   libgnunet_plugin_datastore_template.la 
 
 
@@ -57,12 +60,18 @@ libgnunet_plugin_datastore_template_la_LDFLAGS = \
  $(GN_PLUGIN_LDFLAGS)
 
 
-check_PROGRAMS = \
+if HAVE_SQLITE
+SQLITE_TESTS = \
  test_datastore_api \
  test_datastore_api_management \
  perf_datastore_api \
  perf_plugin_datastore
 
+endif
+
+check_PROGRAMS = \
+  $(SQLITE_TESTS)
+
 if !DISABLE_TEST_RUN
 TESTS = $(check_PROGRAMS)
 endif