]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/libevdev/0001-configure-add-disable-runtime-tests-option.patch
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / package / libevdev / 0001-configure-add-disable-runtime-tests-option.patch
1 From fe965061b4306e3ca811ff86dc1ca29f7db9af18 Mon Sep 17 00:00:00 2001
2 From: Peter Seiderer <ps.report@gmx.net>
3 Date: Sun, 11 Oct 2015 13:33:19 +0200
4 Subject: [PATCH] configure: add '--disable-runtime-tests' option
5
6 Signed-off-by: Peter Seiderer <ps.report@gmx.net>
7 ---
8  configure.ac | 15 +++++++++++----
9  1 file changed, 11 insertions(+), 4 deletions(-)
10
11 diff --git a/configure.ac b/configure.ac
12 index c1a9111..8fe7b8b 100644
13 --- a/configure.ac
14 +++ b/configure.ac
15 @@ -76,13 +76,20 @@ else
16         AC_MSG_WARN([check not found - skipping building unit tests])
17  fi
18  AM_CONDITIONAL(HAVE_VALGRIND, [test "x$VALGRIND" != "x"])
19 -AM_CONDITIONAL(ENABLE_RUNTIME_TESTS, [test "x$HAVE_CHECK" = "xyes"])
20 +
21 +AC_ARG_ENABLE([runtime-tests],
22 +       AS_HELP_STRING([--disable-runtime-tests], [Disable runtime tests]))
23 +AS_IF([test "x$enable_runtime_tests" != "xno"],
24 +       [enable_runtime_tests=yes],
25 +       [enable_runtime_tests=no])
26 +
27 +AM_CONDITIONAL(ENABLE_RUNTIME_TESTS, [test "x${enable_runtime_tests}x$HAVE_CHECK" = "xyesxyes"])
28  AM_CONDITIONAL(ENABLE_STATIC_LINK_TEST, [test "x$enable_static" = "xyes"])
29  
30  AC_ARG_ENABLE([test-run],
31                AS_HELP_STRING([--enable-test-run], [For internal use only]),
32                [run_tests="$enableval"], [run_tests="yes"])
33 -AM_CONDITIONAL(RUN_TESTS, [test "x$run_tests" = "xyes"])
34 +AM_CONDITIONAL(RUN_TESTS, [test "x${enable_runtime_tests}x$run_tests" = "xyesxyes"])
35  
36  with_cflags=""
37  if test "x$GCC" = "xyes"; then
38 @@ -167,8 +174,8 @@ AC_MSG_RESULT([
39                Libdir                           ${libdir}
40  
41                Build documentation              ${have_doxygen}
42 -              Enable unit-tests                ${HAVE_CHECK}
43 -              Run unit-tests                   ${run_tests}
44 +              Enable unit-tests                ${HAVE_CHECK} (runtime-tests: ${enable_runtime_tests})
45 +              Run unit-tests                   ${run_tests} (runtime-tests: ${enable_runtime_tests})
46                Enable profiling                 ${enable_gcov}
47                Static library symbol check      ${static_symbol_leaks_test}
48                ])
49 -- 
50 2.11.0
51