1From 78bbf185934147a69ceb4b617d424e12e70997bf Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Tue, 27 Jun 2017 21:00:58 +0100
4Subject: [PATCH 3/3] gtk-doc: Handle floating gtk-doc dependency
5
6Allow the tests to be explicitly disabled to avoid floating dependnecy
7issues. This is not really an issue with RSS but is on previous releases.
8
9RP 2017/6/27
10Upstream-Status: Pending
11
12---
13 configure.ac | 10 ++++++++++
14 1 file changed, 10 insertions(+)
15
16diff --git a/configure.ac b/configure.ac
17index 684e2d1..e5e3aab 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -146,6 +146,11 @@ if test "x$GCC" = "xyes"; then
21 	fi
22 fi
23
24+AC_ARG_ENABLE([tests],
25+	AS_HELP_STRING([--enable-tests],
26+	[enable tests (default=yes)]),,
27+	[enable_tests="yes"])
28+
29 dnl if glib is available we can enable the tests
30 PKG_CHECK_MODULES(TEST_DEPS, [glib-2.0 >= 2.6.0 gobject-2.0 >= 2.6.0],
31 	[	glib_prefix="`$PKG_CONFIG --variable=prefix glib-2.0`"
32@@ -156,6 +161,11 @@ PKG_CHECK_MODULES(TEST_DEPS, [glib-2.0 >= 2.6.0 gobject-2.0 >= 2.6.0],
33 		build_tests="no"
34 	]
35 )
36+if test "x$enable_tests" != "xyes"; then
37+	gtk_doc_use_libtool="no"
38+	build_tests="no"
39+fi
40+
41 AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL" -a x$gtk_doc_use_libtool = xyes )
42 dnl this enables the rule in test/Makefile.am
43 AM_CONDITIONAL(BUILD_TESTS, test x$build_tests = xyes)
44--
452.14.1
46
47