libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH] Allow to disable build of the test-suite


From: Sven Neumann
Subject: [Libunwind-devel] [PATCH] Allow to disable build of the test-suite
Date: Wed, 17 Aug 2011 17:38:26 +0200

Add --disable-tests option to the configure script to allow to
easily disable build of the test-suite.

Signed-off-by: Sven Neumann <address@hidden>
---
 Makefile.am  |    6 +++++-
 configure.in |    7 +++++++
 2 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 1434c0c..7f1de96 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -31,7 +31,11 @@ endif
 
 nodist_include_HEADERS = include/libunwind-common.h
 
-SUBDIRS = src tests doc
+if BUILD_TESTS
+tests = tests
+endif
+
+SUBDIRS = src $(tests) doc
 
 noinst_HEADERS = include/dwarf.h include/dwarf_i.h include/dwarf-eh.h  \
        include/libunwind_i.h include/mempool.h                         \
diff --git a/configure.in b/configure.in
index c17b9da..808b31d 100644
--- a/configure.in
+++ b/configure.in
@@ -262,6 +262,13 @@ if test x$intel_compiler = xyes; then
   AC_MSG_RESULT([$have_static_libcxa])
 fi
 
+AC_MSG_CHECKING([whether to build the test-suite])
+AC_ARG_ENABLE(tests,
+[  --disable-tests         disable build of the test-suite],
+[enable_tests=$enableval], [enable_tests=yes])
+AM_CONDITIONAL(BUILD_TESTS, test x$enable_tests = xyes)
+AC_MSG_RESULT([$enable_tests])
+
 CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}"
 
 arch="$target_arch"
-- 
1.7.4.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]