summaryrefslogtreecommitdiff
path: root/build_posix
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2011-09-02 21:53:51 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2011-09-02 21:53:51 +1000
commit7bd5fc20c3c9359577e08c1628c2cdb5c5ae953c (patch)
treee00689d5dd64946473500e21a0c54001a90270b7 /build_posix
parent223a281bb64fbc1b29c99334bde47f04a2d83d81 (diff)
downloadmongo-7bd5fc20c3c9359577e08c1628c2cdb5c5ae953c.tar.gz
Don't build tests by default (in particular, test/format needs a BDB tree).
Diffstat (limited to 'build_posix')
-rw-r--r--build_posix/Make.base6
-rw-r--r--build_posix/aclocal/options.m411
2 files changed, 15 insertions, 2 deletions
diff --git a/build_posix/Make.base b/build_posix/Make.base
index 39b35c26e82..6ec55b6dad7 100644
--- a/build_posix/Make.base
+++ b/build_posix/Make.base
@@ -6,11 +6,13 @@ endif
if PYTHON
PYBUILD = lang/python
endif
+if BUILD_TESTS
+ TEST_SUBDIRS = test/format test/salvage test/thread
+endif
SUBDIRS = . \
bench/tcbench examples/c \
ext/compressors/nop_compress \
- test/format test/salvage test/thread \
- $(BZBUILD) $(PYBUILD)
+ $(BZBUILD) $(PYBUILD) $(TEST_SUBDIRS)
wtdir = $(prefix)/wt
wt_LTLIBRARIES = libwiredtiger.la
diff --git a/build_posix/aclocal/options.m4 b/build_posix/aclocal/options.m4
index 8678c32a803..5ea3dae1ef7 100644
--- a/build_posix/aclocal/options.m4
+++ b/build_posix/aclocal/options.m4
@@ -60,6 +60,17 @@ esac
AC_MSG_RESULT($db_cv_enable_python)
AM_CONDITIONAL(PYTHON, test x$db_cv_enable_python = xyes)
+AC_MSG_CHECKING(if --enable-test option specified)
+AC_ARG_ENABLE(test,
+ [AC_HELP_STRING([--enable-test],
+ [Build the test programs by default.])], r=$enableval, r=no)
+case "$r" in
+no) db_cv_enable_test=no;;
+*) db_cv_enable_test=yes;;
+esac
+AC_MSG_RESULT($db_cv_enable_test)
+AM_CONDITIONAL(BUILD_TESTS, test x$db_cv_enable_test = xyes)
+
AH_TEMPLATE(HAVE_VERBOSE, [Define to 1 to support the Env.verbose_set method.])
AC_MSG_CHECKING(if --enable-verbose option specified)
AC_ARG_ENABLE(verbose,