diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2009-03-02 15:56:27 +0100 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-03-02 12:00:38 -0500 |
commit | 96f72fd795180846831d22ef261ccacfbfbcf25b (patch) | |
tree | 769bb87eedafc843804f11badfe5fd92ef9d1487 /server/conf_macros.m4 | |
parent | 5e3966c99180abdcd1e21774a882f1c14c47aae8 (diff) | |
download | sssd-96f72fd795180846831d22ef261ccacfbfbcf25b.tar.gz sssd-96f72fd795180846831d22ef261ccacfbfbcf25b.tar.bz2 sssd-96f72fd795180846831d22ef261ccacfbfbcf25b.zip |
Make tests configurable
Diffstat (limited to 'server/conf_macros.m4')
-rw-r--r-- | server/conf_macros.m4 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/server/conf_macros.m4 b/server/conf_macros.m4 index 2c182cc1..a65b5130 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 + ]) + |