mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-08 19:19:05 +00:00
build-sys: Add configure option to enable statistics
Follow up to 5fba8dd1a3
to make it easier to enable them
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
cb3216aa83
commit
06cb7378ad
@ -13,7 +13,7 @@ makecheck:
|
||||
|
||||
statistics:
|
||||
script:
|
||||
- CFLAGS="$CFLAGS -DRED_STATISTICS " ./autogen.sh
|
||||
- ./autogen.sh --enable-statistics
|
||||
- make
|
||||
- make -C server check || (cat server/tests/test-suite.log && exit 1)
|
||||
|
||||
|
||||
@ -218,6 +218,11 @@ AM_CONDITIONAL([BUILD_MANUAL], [test -n "$ASCIIDOC" || test -n "$A2X"])
|
||||
AM_CONDITIONAL([BUILD_HTML_MANUAL], [test -n "$ASCIIDOC"])
|
||||
AM_CONDITIONAL([BUILD_CHUNKED_MANUAL], [test -n "$A2X"])
|
||||
|
||||
AC_ARG_ENABLE([statistics],
|
||||
AS_HELP_STRING([--enable-statistics=@<:@yes/no@:>@],
|
||||
[Build SPICE with statistic code enabled @<:@default=no@:>@]))
|
||||
AS_IF([test "$enable_statistics" = "yes"],
|
||||
[AC_DEFINE([RED_STATISTICS], [1], [Enable SPICE statistics])])
|
||||
|
||||
dnl ===========================================================================
|
||||
dnl check compiler flags
|
||||
|
||||
Loading…
Reference in New Issue
Block a user