[Spice-commits] .gitlab-ci.yml configure.ac
Frediano Ziglio
fziglio at kemper.freedesktop.org
Tue Nov 29 09:41:19 UTC 2016
.gitlab-ci.yml | 2 +-
configure.ac | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 06cb7378ade43a0834e69076643a00b4663230aa
Author: Pavel Grunt <pgrunt at redhat.com>
Date: Tue Nov 29 09:38:27 2016 +0100
build-sys: Add configure option to enable statistics
Follow up to 5fba8dd1a346248f215f0167d113fb20a7bb733a
to make it easier to enable them
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 122e74c..77e2a08 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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)
diff --git a/configure.ac b/configure.ac
index d36e27e..4fa4c83 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
More information about the Spice-commits
mailing list