[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/1] added configuration option for building tests
From: |
Andrei Kholodnyi |
Subject: |
[PATCH 1/1] added configuration option for building tests |
Date: |
Thu, 9 Sep 2010 00:38:25 +0200 |
now tests can be built and installed with --enable-tests option
by default this option is set to disable
---
configure.in | 8 ++++++++
src/Makefile.am | 6 +++++-
2 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/configure.in b/configure.in
index d0e31b8..6ce7d0b 100644
--- a/configure.in
+++ b/configure.in
@@ -18,6 +18,11 @@ AC_ARG_ENABLE([python],
[],
[enable_python=check])
+AC_ARG_ENABLE([tests],
+ [AS_HELP_STRING([--enable-tests], [build and install tests (no by
default)])],
+ [],
+ [enable_tests=no])
+
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(limits.h sys/ioctl.h sys/time.h unistd.h)
@@ -35,6 +40,9 @@ AS_IF([test $enable_python != "no"],
[AC_MSG_FAILURE([python is not available])])])])
AM_CONDITIONAL([HAVE_PYTHON], [test "$enable_python" = 'yes'])
+# check for tests support
+AM_CONDITIONAL(tests_support, test $enable_tests = "yes")
+
dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_CHECK_FUNCS(select socket)
diff --git a/src/Makefile.am b/src/Makefile.am
index fa6a695..9f34ce1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -10,12 +10,16 @@ EXTRA_DIST = cl/ChangeLog cl/README cl/configuration.lisp
cl/elisp.lisp \
guile/ChangeLog guile/Makefile guile/README guile/gssip.scm.in \
guile/gssip.c guile/gssip.h
-SUBDIRS=server audio c modules tests
+SUBDIRS=server audio c modules
if HAVE_PYTHON
SUBDIRS += python
endif
+if tests_support
+SUBDIRS += tests
+endif
+
DIST_SUBDIRS=server audio c modules tests python
--
1.6.0.4
- [PATCH 1/1] added configuration option for building tests,
Andrei Kholodnyi <=