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
6 Signed-off-by: Peter Seiderer <ps.report@gmx.net>
8 configure.ac | 11 +++++++++--
9 1 file changed, 9 insertions(+), 2 deletions(-)
11 diff --git a/configure.ac b/configure.ac
12 index 54a2510..286737b 100644
15 @@ -74,7 +74,14 @@ else
16 AC_MSG_WARN([check not found - skipping building unit tests])
18 AM_CONDITIONAL(HAVE_VALGRIND, [test "x$VALGRIND" != "x"])
19 -AM_CONDITIONAL(ENABLE_RUNTIME_TESTS, [test "x$HAVE_CHECK" = "xyes"])
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])
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"])
31 @@ -159,7 +166,7 @@ AC_MSG_RESULT([
34 Build documentation ${have_doxygen}
35 - Enable unit-tests ${HAVE_CHECK}
36 + Enable unit-tests ${HAVE_CHECK} (runtime-tests: ${enable_runtime_tests})
37 Enable profiling ${enable_gcov}
38 Static library symbol check ${static_symbol_leaks_test}