build: Add --disable-modular-tests build option
authorColin Walters <walters@verbum.org>
Fri, 13 Jan 2012 15:09:10 +0000 (10:09 -0500)
committerColin Walters <walters@verbum.org>
Sun, 15 Apr 2012 15:15:54 +0000 (11:15 -0400)
commitf084b603771f78126bc0b07229a1574b76e776bb
treec2af8be04d1d9927a46a30193a8eb2078d7f0f5b
parent366c39b6420c4cd23653a0e7d798d5f34e556392
build: Add --disable-modular-tests build option

This patch solves two problems:

First, it allows builders to optionally cut the circular dependency
between dbus and glib by disabling the modular tests (just like how
the tests can be disabled in dbus).

Second, the tests are entirely pointless to build if cross-compiling.

It also moves us slightly closer to the long term future we want where
the tests are a separate ./configure invocation and run against the
INSTALLED glib, not the one in the source tree. This would allow us to
run the tests constantly, not just when glib is built.

https://bugzilla.gnome.org/show_bug.cgi?id=667806
Makefile.am
configure.ac
gio/Makefile.am
glib/Makefile.am
gobject/Makefile.am