1
From: Torsten Werner <twerner@debian.org>
2
Date: Sat, 20 Mar 2010 23:34:07 +0100
3
Subject: [PATCH] do not build tests by default
6
configure.in | 9 +++++++++
7
src/Makefile.am | 6 +++++-
8
2 files changed, 14 insertions(+), 1 deletions(-)
10
diff --git a/configure.in b/configure.in
11
index bd288e1..d28745f 100644
14
@@ -120,6 +120,15 @@ fi
16
AM_CONDITIONAL(APPLE, test $target_vendor = apple)
18
+AC_ARG_ENABLE([tests],
19
+AC_HELP_STRING([--enable-tests], [build tests]),
20
+[case "${enableval}" in
23
+ *) AC_MSG_ERROR([bad value ${enableval} for --enable-tests]) ;;
24
+esac], [tests=false])
25
+AM_CONDITIONAL(ENABLE_TESTS, test x$tests = xtrue)
29
AM_CONFIG_HEADER(src/avgconfig.h)
30
diff --git a/src/Makefile.am b/src/Makefile.am
31
index dc866c2..3b752f9 100644
39
SUBDIRS = base graphics imaging lmfit audio video player conradrelais parport anim \
40
- wrapper python test utils
41
+ wrapper python utils $(TESTDIRS)
43
EXTRA_DIST = avgrc avgconfigwrapper.h api.h avgconfig_win.h