[Spice-devel] [PATCH spice-gtk v5 5/5] Add configure option --enable-alignment-checks

Christophe de Dinechin christophe at dinechin.org
Tue May 30 12:52:51 UTC 2017


From: Christophe de Dinechin <dinechin at redhat.com>

Signed-off-by: Christophe de Dinechin <dinechin at redhat.com>
---
 configure.ac | 8 ++++++++
 spice-common | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 62acafc..caa289a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -565,6 +565,14 @@ else
   SPICE_WARNING([No D-Bus support, desktop integration and USB redirection may not work properly])
 fi
 
+AC_ARG_ENABLE([alignment-checks],
+  AS_HELP_STRING([--enable-alignment-checks],
+                 [Enable runtime checks for cast alignment @<:@default=no@:>@]),
+  [],
+  enable_alignment_checks="no")
+AS_IF([test "x$enable_alignment_checks" = "xyes"],
+      [AC_DEFINE([SPICE_DEBUG_ALIGNMENT], 1, [Enable runtime checks for cast alignment])])
+
 SPICE_CHECK_LZ4
 
 dnl ===========================================================================
diff --git a/spice-common b/spice-common
index 692d303..eaefe2d 160000
--- a/spice-common
+++ b/spice-common
@@ -1 +1 @@
-Subproject commit 692d303c8b1e2da7a47da713ad499f57ed5e6b5e
+Subproject commit eaefe2d69f8f3a8ebaa29aeec59a759c42f60517
-- 
2.11.0 (Apple Git-81)



More information about the Spice-devel mailing list