lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

commit 27bd80910a9fa638b6748164661cd1cabc54fdeb
parent 3b1bb08f974694ba72ebe2c93b9d445a48e33d01
Author: Nicolas Thill <nico@openwrt.org>
Date:   Sat,  7 Feb 2015 14:31:35 +0100

libdmapsharing: make check library optionnal

Signed-off-by: Nicolas Thill <nico@openwrt.org>

Diffstat:
Alibs/libdmapsharing/patches/003-make_unit_test_optional.patch | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/libs/libdmapsharing/patches/003-make_unit_test_optional.patch b/libs/libdmapsharing/patches/003-make_unit_test_optional.patch @@ -0,0 +1,17 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -357,7 +357,13 @@ if test -n "$BUILD_DPAPVIEW" ; then + AC_WARN([will not build dpapview]) + fi + +-PKG_CHECK_MODULES([CHECK], [check >= 0.9.4],have_check=yes,have_check=no) ++dnl Test if --enable-unit-test given ++AC_ARG_ENABLE(unit-test, [AC_HELP_STRING([--enable-unit-test],[enable unit test])]) ++if test "x$enable_unit_test" = "xyes" ; then ++ PKG_CHECK_MODULES([CHECK], [check >= 0.9.4],have_check=yes,have_check=no) ++else ++ have_check=no ++fi + AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes") + if test "x$have_check" = "xyes"; then + AC_DEFINE(HAVE_CHECK, 1, [Define if check support is enabled])