summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am6
-rw-r--r--configure.ac2
2 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index ab10f5f..8add19f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,11 @@
ACLOCAL_AMFLAGS = -I m4
NULL =
-SUBDIRS = spice-common gtk po doc data tests
+SUBDIRS = spice-common gtk po doc data
+
+if BUILD_TESTS
+SUBDIRS += tests
+endif
if HAVE_INTROSPECTION
if WITH_VALA
diff --git a/configure.ac b/configure.ac
index 24416a9..e2dd742 100644
--- a/configure.ac
+++ b/configure.ac
@@ -696,6 +696,8 @@ AC_SUBST(SPICE_GTK_REQUIRES)
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
+AM_CONDITIONAL([BUILD_TESTS], [test x"$enable_static" = xyes])
+
AC_OUTPUT([
Makefile
spice-client-glib-2.0.pc