[Spice-commits] configure.ac

Frediano Ziglio fziglio at kemper.freedesktop.org
Mon Sep 7 06:56:46 PDT 2015


 configure.ac |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

New commits:
commit 434c6e1007dc345555d94be9f75e78f4253637a8
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Fri Sep 4 11:22:01 2015 +0100

    build-sys: Update warning message
    
    arch_warn was set to 1 only if architecture is not x86, x64 or arm.
    Update the message as we actually mainly test x64.
    Define the warning message and do the architecture checks in the
    same place so that they are easier to keep in sync.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Christophe Fergeau <cfergeau at redhat.com>

diff --git a/configure.ac b/configure.ac
index dee0a28..61f8dcd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,10 +63,11 @@ m4_ifndef([AS_VAR_APPEND],
 
 # Check for the CPU we are using
 case $host_cpu in
-  i386|i486|i586|i686|i786|k6|k7|x86_64|armv6|armv6l|armv6hl|armv7|armv7l|armv7hl)
+  x86_64)
+        arch_warn=""
         ;;
   *)
-        arch_warn=1
+        arch_warn="spice-server on non-x86_64 architectures hasn't been extensively tested"
 esac
 
 dnl =========================================================================
@@ -322,8 +323,8 @@ echo "
         Manual:                   ${have_asciidoc}
 "
 
-if test x"$arch_warn" = x1; then
-        AC_MSG_WARN([spice-server on non-x86/x86_64 architectures hasn't been extensively tested])
+if test x"$arch_warn" != x; then
+        AC_MSG_WARN([$arch_warn])
         echo ""
 fi
 


More information about the Spice-commits mailing list