]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/sntp/m4/sntp_problemtests.m4
Fix multiple ntp vulnerabilities.
[FreeBSD/releng/10.2.git] / contrib / ntp / sntp / m4 / sntp_problemtests.m4
1 dnl ######################################################################
2 dnl SNTP_PROBLEM_TESTS
3 dnl
4 dnl Some platforms have problems building or running certain tests.
5 dnl While we're in the initial phase of the deployment of the test
6 dnl framework, sometimes we may need to disable these tests.
7 dnl
8 dnl This is where we do that.
9 dnl
10 AC_DEFUN([SNTP_PROBLEM_TESTS], [
11 case "$build" in
12  $host) cross=0 ;;
13  *)     cross=1 ;;
14 esac
15
16 AC_MSG_CHECKING([if we want to enable tests with undiagnosed problems])
17 AC_ARG_ENABLE(
18     [problem-tests],
19     [AS_HELP_STRING(
20         [--enable-problem-tests],
21         [+ enable tests with undiagnosed problems]
22     )],
23     [sntp_ept=$enableval],
24     [sntp_ept=yes]
25 )
26 AC_MSG_RESULT([$sntp_ept])
27
28 AC_MSG_CHECKING([if we can run test-kodDatabase])
29 sntp_test_kodDatabase="no"
30 case "$sntp_ept:$cross:$host" in
31  no:0:*-apple-darwin12.6.0) ;;
32  *) sntp_test_kodDatabase="yes" ;;
33 esac
34 AC_MSG_RESULT([$sntp_test_kodDatabase])
35 AM_CONDITIONAL([BUILD_TEST_KODDATABASE], [test x$sntp_test_kodDatabase = xyes])
36
37 AC_MSG_CHECKING([if we can run test-kodFile])
38 sntp_test_kodFile="no"
39 case "$sntp_ept:$cross:$host" in
40  no:0:*-apple-darwin12.6.0) ;;
41  *) sntp_test_kodFile="yes" ;;
42 esac
43 AC_MSG_RESULT([$sntp_test_kodFile])
44 AM_CONDITIONAL([BUILD_TEST_KODFILE], [test x$sntp_test_kodFile = xyes])
45
46 ])
47 dnl ======================================================================