From 38a2ee788b0899f26c0378fa3b358c28db72110b Mon Sep 17 00:00:00 2001 From: djcb Date: Sat, 11 Aug 2012 18:48:48 +0300 Subject: [PATCH] * bump glib version to 2.24, make gtest stuff non-optional (even ubuntu 10.04 comes with 2.24, so that should be conservative enough) --- configure.ac | 11 +---------- guile/Makefile.am | 6 +----- lib/Makefile.am | 6 +----- mu/Makefile.am | 6 +----- 4 files changed, 4 insertions(+), 25 deletions(-) diff --git a/configure.ac b/configure.ac index aa18d10b..b8f6b3a6 100644 --- a/configure.ac +++ b/configure.ac @@ -103,19 +103,11 @@ AS_IF([test "x$PKG_CONFIG" = "xno"],[ # glib2? # we need 2.14 at least, because we use GRegex -PKG_CHECK_MODULES(GLIB,glib-2.0 >= 2.14 gobject-2.0) +PKG_CHECK_MODULES(GLIB,glib-2.0 >= 2.24 gobject-2.0) AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) glib_version="`$PKG_CONFIG --modversion glib-2.0`" -# gtest was introduced in glib 2.16; but we're also using -# g_test_log_set_fatal_handler, which was introduced in 2.22 -PKG_CHECK_MODULES(g_test,glib-2.0 >= 2.22, [have_gtest=yes],[have_gtest=no]) -AM_CONDITIONAL(BUILD_TESTS, test "x$have_gtest" = "xyes") -AS_IF([test "x$have_gtest" = "xno"],[ - AC_MSG_WARN([You need GLIB version >= 2.22 to build the tests]) -]) - # gmime 2.4 or 2.6? PKG_CHECK_MODULES(GMIME,gmime-2.6,[have_gmime_26=yes],[have_gmime_26=no]) AS_IF([test "x$have_gmime_26" = "xno"],[ @@ -371,7 +363,6 @@ fi echo echo "Build mu4e emacs frontend : $build_mu4e" echo "Build crypto support (gmime >= 2.6) : $have_gmime_26" -echo "Build unit tests (glib >= 2.22) : $have_gtest" echo "Build 'mug' toy-ui (gtk+/webkit) : $buildgui" echo "McCabe's Cyclomatic Complexity tool : $have_pmccabe" echo diff --git a/guile/Makefile.am b/guile/Makefile.am index 0c296a19..23d4c0a8 100644 --- a/guile/Makefile.am +++ b/guile/Makefile.am @@ -18,11 +18,7 @@ include $(top_srcdir)/gtest.mk # note, we need top_builddir for snarfing with 'make distcheck' (ie., # with separate builddir) -SUBDIRS= . mu examples - -if BUILD_TESTS -SUBDIRS += tests -endif +SUBDIRS= . mu examples tests INCLUDES=-I. -I${top_builddir} -I${top_srcdir}/lib ${GUILE_CFLAGS} ${GLIB_CFLAGS} diff --git a/lib/Makefile.am b/lib/Makefile.am index 7d60a5f8..de9b120e 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -18,11 +18,7 @@ include $(top_srcdir)/gtest.mk # enforce compiling guile (optionally) first,then this dir first # before decending into tests/ -SUBDIRS= . - -if BUILD_TESTS -SUBDIRS += tests -endif +SUBDIRS= . tests if BUILD_CRYPTO crypto=mu-msg-crypto.c mu-msg-crypto.h diff --git a/mu/Makefile.am b/mu/Makefile.am index 5ff1e9dc..f3b1b8ff 100644 --- a/mu/Makefile.am +++ b/mu/Makefile.am @@ -18,11 +18,7 @@ include $(top_srcdir)/gtest.mk # enforce compiling guile (optionally) first,then this dir first # before decending into tests/ -SUBDIRS= . - -if BUILD_TESTS -SUBDIRS += tests -endif +SUBDIRS= . tests INCLUDES=-I${top_srcdir}/lib $(GLIB_CFLAGS)