summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2009-09-11 13:51:28 +0100
committerRichard Hughes <richard@hughsie.com>2009-09-11 13:51:28 +0100
commit9785f18d7e8ba0c927b52fbfba0147a4afdaf28f (patch)
treef2192da4b3d2c3c63374a275dcdafc662b0d5d06 /configure.ac
parent8cb468ce64b0e1b21198744977d8a14e17ff5efe (diff)
Add some self tests and fix up some obvious bugs
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0d521e3..b66a73a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -177,6 +177,16 @@ fi
AM_CONDITIONAL(BACKEND_TYPE_DUMMY, [test x$with_backend = xdummy])
AM_CONDITIONAL(BACKEND_TYPE_LINUX, [test x$with_backend = xlinux])
+dnl ---------------------------------------------------------------------------
+dnl - Build self tests
+dnl ---------------------------------------------------------------------------
+AC_ARG_ENABLE(tests, AS_HELP_STRING([--enable-tests],[enable unit test code]),
+ enable_tests=$enableval,enable_tests=yes)
+AM_CONDITIONAL(EGG_BUILD_TESTS, test x$enable_tests = xyes)
+if test x$enable_tests = xyes; then
+ AC_DEFINE(EGG_BUILD_TESTS,1,[Build test code])
+fi
+
if test "x$GCC" = "xyes"; then
LDFLAGS="-Wl,--as-needed $LDFLAGS"
fi