From c77d34b748601f99ff96d74b168381c68640f791 Mon Sep 17 00:00:00 2001 From: Xabier Rodriguez Calvar Date: Mon, 14 May 2012 19:33:27 +0200 Subject: [PATCH] Enabling bypassing tests --- Makefile.am | 3 ++- configure.ac | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 87a8b1c..dfc626d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,5 @@ -SUBDIRS = interfaces geoclue src providers example test docs +SUBDIRS = interfaces geoclue src providers example @BUILD_TESTS@ docs + pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = geoclue.pc diff --git a/configure.ac b/configure.ac index d4362e0..a41f6de 100644 --- a/configure.ac +++ b/configure.ac @@ -35,6 +35,12 @@ else AC_DEFINE(GEOCLUE_DBUS_BUS, DBUS_BUS_SESSION, Use the session bus) fi +AC_ARG_ENABLE(tests,[ --disable-tests disable test libraries ], enable_tests=$enableval,enable_tests=yes) +if test "x$enable_tests" = "xyes"; then + BUILD_TESTS=test +fi +AC_SUBST(BUILD_TESTS) + PKG_CHECK_MODULES(GEOCLUE, [ glib-2.0 gobject-2.0 -- 1.7.10