Code

configure.ac: added option --enable-test
authorMax Kellermann <max@duempel.org>
Tue, 20 Oct 2009 05:19:11 +0000 (07:19 +0200)
committerMax Kellermann <max@duempel.org>
Tue, 20 Oct 2009 05:19:11 +0000 (07:19 +0200)
This will enable the test suite.

configure.ac

index 85642cad560d4e7f251314747f9a14ac1ca4e137..1b615d9241e5c3f8105850b29a8fa297f628b03e 100644 (file)
@@ -375,6 +375,13 @@ if test "x$enable_debug" = xno; then
        AM_CFLAGS="$AM_CFLAGS -DNDEBUG"
 fi
 
+AC_ARG_ENABLE(test,
+       AS_HELP_STRING([--enable-test],
+               [build the test programs @<:@default=no@:>@]),,
+       enable_test=$enable_debug)
+
+AM_CONDITIONAL(ENABLE_TEST, test "x$enable_test" = xyes)
+
 
 dnl
 dnl CFLAGS