Index: trunk/psModules/configure.ac
===================================================================
--- trunk/psModules/configure.ac	(revision 13397)
+++ trunk/psModules/configure.ac	(revision 13644)
@@ -28,4 +28,12 @@
 
 AC_PREFIX_DEFAULT([`pwd`])
+
+dnl build tests at the same time as the source code
+AC_ARG_ENABLE(tests,
+  [AS_HELP_STRING(--enable-tests,build tests at same time as source)],
+  [AC_MSG_RESULT(test building enabled)
+   tests=true],
+   [tests=false])
+AM_CONDITIONAL(BUILD_TESTS, test x$tests = xtrue)
 
 dnl ------------------- PERL options ---------------------
