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

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 95527e43845a5063a6125d7779a30d44c3b437ac 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. ---
  7. configure.ac | 11 +++++++++--
  8. 1 file changed, 9 insertions(+), 2 deletions(-)
  9. diff --git a/configure.ac b/configure.ac
  10. index 54a2510..286737b 100644
  11. --- a/configure.ac
  12. +++ b/configure.ac
  13. @@ -74,7 +74,14 @@ else
  14. AC_MSG_WARN([check not found - skipping building unit tests])
  15. fi
  16. AM_CONDITIONAL(HAVE_VALGRIND, [test "x$VALGRIND" != "x"])
  17. -AM_CONDITIONAL(ENABLE_RUNTIME_TESTS, [test "x$HAVE_CHECK" = "xyes"])
  18. +
  19. +AC_ARG_ENABLE([runtime-tests],
  20. + AS_HELP_STRING([--disable-runtime-tests], [Disable runtime tests]))
  21. +AS_IF([test "x$enable_runtime_tests" != "xno"],
  22. + [enable_runtime_tests=yes],
  23. + [enable_runtime_tests=no])
  24. +
  25. +AM_CONDITIONAL(ENABLE_RUNTIME_TESTS, [test "x${enable_runtime_tests}x$HAVE_CHECK" = "xyesxyes"])
  26. AM_CONDITIONAL(ENABLE_STATIC_LINK_TEST, [test "x$enable_static" = "xyes"])
  27. with_cflags=""
  28. @@ -159,7 +166,7 @@ AC_MSG_RESULT([
  29. Libdir ${libdir}
  30. Build documentation ${have_doxygen}
  31. - Enable unit-tests ${HAVE_CHECK}
  32. + Enable unit-tests ${HAVE_CHECK} (runtime-tests: ${enable_runtime_tests})
  33. Enable profiling ${enable_gcov}
  34. Static library symbol check ${static_symbol_leaks_test}
  35. ])
  36. --
  37. 2.1.4