blob: f34fbe03cf7cf9b7b5c6d1ab29c879790170631b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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])
])
])
])
|