Add --disable-tests option to the configure script to allow to easily disable build of the test-suite.
Signed-off-by: Sven Neumann <[email protected]> --- 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 _______________________________________________ Libunwind-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/libunwind-devel
