mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-31 11:29:39 +00:00
configure.ac: add --enable-tests
Allow the user to disable tests through --disable-tests, this is especially useful for example to disable gdk-pixbuf dependency Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
ead7790d47
commit
32beff2ff5
@ -1,7 +1,11 @@
|
||||
NULL =
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
SUBDIRS = python_modules common tests docs
|
||||
SUBDIRS = python_modules common docs
|
||||
|
||||
if ENABLE_TESTS
|
||||
SUBDIRS += tests
|
||||
endif
|
||||
|
||||
EXTRA_DIST = \
|
||||
meson.build \
|
||||
|
||||
@ -33,6 +33,13 @@ AC_SEARCH_LIBS(regcomp, [regex rx])
|
||||
SPICE_CHECK_SYSDEPS
|
||||
SPICE_EXTRA_CHECKS
|
||||
|
||||
AC_ARG_ENABLE([tests],
|
||||
AS_HELP_STRING([--enable-tests],
|
||||
[Enable tests @<:@default=yes@:>@]),
|
||||
[],
|
||||
enable_tests="yes")
|
||||
AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = "xyes")
|
||||
|
||||
AC_ARG_ENABLE([alignment-checks],
|
||||
AS_HELP_STRING([--enable-alignment-checks],
|
||||
[Enable runtime checks for cast alignment @<:@default=no@:>@]),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user