diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:34:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:34:30 +0000 |
commit | 4fc2f55f761d71aae1f145d5aa94ba929cc39676 (patch) | |
tree | 5c1e1db3b46dd4edbe11f612d93cb94b96891ce3 /m4/pdns_enable_unit_tests.m4 | |
parent | Initial commit. (diff) | |
download | dnsdist-4fc2f55f761d71aae1f145d5aa94ba929cc39676.tar.xz dnsdist-4fc2f55f761d71aae1f145d5aa94ba929cc39676.zip |
Adding upstream version 1.7.3.upstream/1.7.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'm4/pdns_enable_unit_tests.m4')
-rw-r--r-- | m4/pdns_enable_unit_tests.m4 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/m4/pdns_enable_unit_tests.m4 b/m4/pdns_enable_unit_tests.m4 new file mode 100644 index 0000000..f34fbe0 --- /dev/null +++ b/m4/pdns_enable_unit_tests.m4 @@ -0,0 +1,18 @@ +AC_DEFUN([PDNS_ENABLE_UNIT_TESTS], [ + AC_MSG_CHECKING([whether to enable unit test building]) + AC_ARG_ENABLE([unit-tests], + AS_HELP_STRING([--enable-unit-tests], + [enable unit test building @<:@default=no@:>@]), + [enable_unit_tests=$enableval], + [enable_unit_tests=no] + ) + AC_MSG_RESULT([$enable_unit_tests]) + AM_CONDITIONAL([UNIT_TESTS], [test "x$enable_unit_tests" != "xno"]) + + AS_IF([test "x$enable_unit_tests" != "xno"], [ + BOOST_TEST([mt]) + AS_IF([test "$boost_cv_lib_unit_test_framework" = "no"], [ + AC_MSG_ERROR([Boost Unit Test library not found]) + ]) + ]) +]) |