From 5033673ef827c095538f7dd7858fcad587c606ed Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Mon, 20 Feb 2012 18:34:28 +0100 Subject: [PATCH] add --disable test option --- Makefile.am | 3 ++- configure.ac | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 19db0be..b18f673 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,8 +4,9 @@ if BUILD_MSBCG729 SUBDIRS += msbcg729 endif +if RUN_TESTS SUBDIRS += test - +endif pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libbcg729.pc diff --git a/configure.ac b/configure.ac index 18684bc..37ccde9 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,10 @@ AC_ARG_ENABLE(strict, [wall_werror=$enableval], [wall_werror=yes] ) +# configure option to disable the tests +AC_ARG_ENABLE([tests], + AS_HELP_STRING([--disable-tests], [Disable the tests])) + AM_CONDITIONAL([RUN_TESTS], [test "x$enable_tests" != "xno"]) CFLAGS="$CFLAGS -Wall"