0001-configure-add-disable-runtime-tests-option.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. From 93f6bc2b97a2b76a5e725d63d4b6c2dfe7baf63b 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. Signed-off-by: Peter Seiderer <ps.report@gmx.net>
  6. [Rebased libevdev-1.6.0]
  7. Signed-off-by: Peter Seiderer <ps.report@gmx.net>
  8. ---
  9. configure.ac | 11 +++++++++--
  10. 1 file changed, 9 insertions(+), 2 deletions(-)
  11. diff --git a/configure.ac b/configure.ac
  12. index 5161d93..2b3bb26 100644
  13. --- a/configure.ac
  14. +++ b/configure.ac
  15. @@ -76,7 +76,14 @@ 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. with_cflags=""
  30. @@ -162,7 +169,7 @@ AC_MSG_RESULT([
  31. Libdir ${libdir}
  32. Build documentation ${have_doxygen}
  33. - Enable unit-tests ${HAVE_CHECK}
  34. + Enable unit-tests ${HAVE_CHECK} (runtime-tests: ${enable_runtime_tests})
  35. Enable profiling ${enable_gcov}
  36. Static library symbol check ${static_symbol_leaks_test}
  37. ])
  38. --
  39. 2.19.1