2018-10-26 19:52:36 +02:00
|
|
|
From 93f6bc2b97a2b76a5e725d63d4b6c2dfe7baf63b Mon Sep 17 00:00:00 2001
|
2015-10-11 23:56:33 +02:00
|
|
|
From: Peter Seiderer <ps.report@gmx.net>
|
|
|
|
Date: Sun, 11 Oct 2015 13:33:19 +0200
|
|
|
|
Subject: [PATCH] configure: add '--disable-runtime-tests' option
|
|
|
|
|
2018-10-26 19:52:36 +02:00
|
|
|
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
|
|
|
[Rebased libevdev-1.6.0]
|
2015-10-11 23:56:33 +02:00
|
|
|
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
|
|
|
---
|
2018-10-26 19:52:36 +02:00
|
|
|
configure.ac | 11 +++++++++--
|
|
|
|
1 file changed, 9 insertions(+), 2 deletions(-)
|
2015-10-11 23:56:33 +02:00
|
|
|
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
2018-10-26 19:52:36 +02:00
|
|
|
index 5161d93..2b3bb26 100644
|
2015-10-11 23:56:33 +02:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
2018-10-26 19:52:36 +02:00
|
|
|
@@ -76,7 +76,14 @@ else
|
2015-10-11 23:56:33 +02:00
|
|
|
AC_MSG_WARN([check not found - skipping building unit tests])
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(HAVE_VALGRIND, [test "x$VALGRIND" != "x"])
|
|
|
|
-AM_CONDITIONAL(ENABLE_RUNTIME_TESTS, [test "x$HAVE_CHECK" = "xyes"])
|
|
|
|
+
|
|
|
|
+AC_ARG_ENABLE([runtime-tests],
|
|
|
|
+ AS_HELP_STRING([--disable-runtime-tests], [Disable runtime tests]))
|
|
|
|
+AS_IF([test "x$enable_runtime_tests" != "xno"],
|
|
|
|
+ [enable_runtime_tests=yes],
|
|
|
|
+ [enable_runtime_tests=no])
|
|
|
|
+
|
|
|
|
+AM_CONDITIONAL(ENABLE_RUNTIME_TESTS, [test "x${enable_runtime_tests}x$HAVE_CHECK" = "xyesxyes"])
|
|
|
|
AM_CONDITIONAL(ENABLE_STATIC_LINK_TEST, [test "x$enable_static" = "xyes"])
|
|
|
|
|
|
|
|
with_cflags=""
|
2018-10-26 19:52:36 +02:00
|
|
|
@@ -162,7 +169,7 @@ AC_MSG_RESULT([
|
2015-10-11 23:56:33 +02:00
|
|
|
Libdir ${libdir}
|
|
|
|
|
|
|
|
Build documentation ${have_doxygen}
|
|
|
|
- Enable unit-tests ${HAVE_CHECK}
|
|
|
|
+ Enable unit-tests ${HAVE_CHECK} (runtime-tests: ${enable_runtime_tests})
|
|
|
|
Enable profiling ${enable_gcov}
|
|
|
|
Static library symbol check ${static_symbol_leaks_test}
|
|
|
|
])
|
|
|
|
--
|
2018-10-26 19:52:36 +02:00
|
|
|
2.19.1
|
2015-10-11 23:56:33 +02:00
|
|
|
|