summaryrefslogtreecommitdiffstats
path: root/server/conf_macros.m4
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2009-03-02 15:56:27 +0100
committerSimo Sorce <ssorce@redhat.com>2009-03-02 12:00:38 -0500
commit96f72fd795180846831d22ef261ccacfbfbcf25b (patch)
tree769bb87eedafc843804f11badfe5fd92ef9d1487 /server/conf_macros.m4
parent5e3966c99180abdcd1e21774a882f1c14c47aae8 (diff)
downloadsssd-96f72fd795180846831d22ef261ccacfbfbcf25b.tar.gz
sssd-96f72fd795180846831d22ef261ccacfbfbcf25b.tar.xz
sssd-96f72fd795180846831d22ef261ccacfbfbcf25b.zip
Make tests configurable
Diffstat (limited to 'server/conf_macros.m4')
-rw-r--r--server/conf_macros.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/server/conf_macros.m4 b/server/conf_macros.m4
index 2c182cc11..a65b5130c 100644
--- a/server/conf_macros.m4
+++ b/server/conf_macros.m4
@@ -90,3 +90,20 @@ AC_DEFUN(WITH_INFOPIPE,
fi
])
+AC_DEFUN(WITH_TESTS,
+ [ AC_ARG_WITH([tests],
+ [AC_HELP_STRING([--with-tests],
+ [Whether to build tests [no]]
+ )
+ ],
+ [],
+ with_tests=no
+ )
+
+ if test x"$with_tests" == xyes; then
+ AC_DEFINE(HAVE_TESTS, 1, [Build tests])
+ HAVE_TESTS=1
+ AC_SUBST(HAVE_TESTS)
+ fi
+ ])
+