2
1

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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. Signed-off-by: Peter Seiderer <ps.report@gmx.net>
  6. ---
  7. configure.ac | 15 +++++++++++----
  8. 1 file changed, 11 insertions(+), 4 deletions(-)
  9. diff --git a/configure.ac b/configure.ac
  10. index c1a9111..8fe7b8b 100644
  11. --- a/configure.ac
  12. +++ b/configure.ac
  13. @@ -76,13 +76,20 @@ 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. AC_ARG_ENABLE([test-run],
  28. AS_HELP_STRING([--enable-test-run], [For internal use only]),
  29. [run_tests="$enableval"], [run_tests="yes"])
  30. -AM_CONDITIONAL(RUN_TESTS, [test "x$run_tests" = "xyes"])
  31. +AM_CONDITIONAL(RUN_TESTS, [test "x${enable_runtime_tests}x$run_tests" = "xyesxyes"])
  32. with_cflags=""
  33. if test "x$GCC" = "xyes"; then
  34. @@ -167,8 +174,8 @@ AC_MSG_RESULT([
  35. Libdir ${libdir}
  36. Build documentation ${have_doxygen}
  37. - Enable unit-tests ${HAVE_CHECK}
  38. - Run unit-tests ${run_tests}
  39. + Enable unit-tests ${HAVE_CHECK} (runtime-tests: ${enable_runtime_tests})
  40. + Run unit-tests ${run_tests} (runtime-tests: ${enable_runtime_tests})
  41. Enable profiling ${enable_gcov}
  42. Static library symbol check ${static_symbol_leaks_test}
  43. ])
  44. --
  45. 2.11.0