Default for building tests is 'yes' and one can disable it --disable-tests. --- configure.ac | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 577f9a9..e786e9d 100644 --- a/configure.ac +++ b/configure.ac @@ -8,7 +8,7 @@ m4_include([spice-common/m4/spice-deps.m4]) AC_CONFIG_HEADER([config.h]) AC_CONFIG_AUX_DIR([build-aux]) -AM_INIT_AUTOMAKE([foreign dist-bzip2 -Wall -Werror -Wno-portability]) +AM_INIT_AUTOMAKE([foreign dist-bzip2 subdir-objects -Wall -Werror -Wno-portability]) m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) LT_INIT([disable-static win32-dll]) AM_MAINTAINER_MODE @@ -272,6 +272,12 @@ PKG_CHECK_MODULES(GTHREAD, gthread-2.0 > 2.0.0) AC_SUBST(GTHREAD_CFLAGS) AC_SUBST(GTHREAD_LIBS) +AC_ARG_ENABLE([tests], + AS_HELP_STRING([--enable-tests=@<:@auto/yes/no@:>@], + [Enable tests @<:@default=yes@:>@]), + [], + [enable_tests="yes"]) + AC_ARG_ENABLE([webdav], AS_HELP_STRING([--enable-webdav=@<:@auto/yes/no@:>@], [Enable webdav support @<:@default=auto@:>@]), @@ -713,7 +719,7 @@ AC_SUBST(SPICE_GTK_REQUIRES) m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) -AM_CONDITIONAL([BUILD_TESTS], [test x"$enable_static" = xyes]) +AM_CONDITIONAL([BUILD_TESTS], [test x"$enable_tests" = xyes]) AC_OUTPUT([ Makefile @@ -753,6 +759,7 @@ AC_MSG_NOTICE([ DBus: ${have_dbus} WebDAV support: ${have_phodav} LZ4 support: ${enable_lz4} + Tests: ${enable_tests} Now type 'make' to build $PACKAGE -- 2.5.0 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel