Package: gravit
Version: 0.5.1+dfsg-1
Severity: important
Tags: patch

Hi,

Your package failes to build on non x86 architectures because the configure
script tries to use the value of the cpuid instruction which only exists on
x86 architectures.

I've attached a patch to fix this.

Thanks,
James

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386 mipsel

diff --git a/acinclude/ax_ext_sse.m4 b/acinclude/ax_ext_sse.m4
index 296c876..bd0c991 100644
--- a/acinclude/ax_ext_sse.m4
+++ b/acinclude/ax_ext_sse.m4
@@ -45,7 +45,7 @@ AC_DEFUN([AX_EXT_SSE],
  AC_CACHE_CHECK([whether mmx is supported], [ax_cv_have_mmx_ext],
   [
     ax_cv_have_mmx_ext=no
-    if test "$((0x$edx>>23&0x01))" = 1; then
+    if test "$edx" != "unknown" && test "$((0x$edx>>23&0x01))" = 1; then
       ax_cv_have_mmx_ext=yes
     fi
   ])
@@ -53,7 +53,7 @@ AC_DEFUN([AX_EXT_SSE],
  AC_CACHE_CHECK([whether sse is supported], [ax_cv_have_sse_ext],
   [
     ax_cv_have_sse_ext=no
-    if test "$((0x$edx>>25&0x01))" = 1; then
+    if test "$edx" != "unknown" && test "$((0x$edx>>25&0x01))" = 1; then
       ax_cv_have_sse_ext=yes
     fi
   ])

Reply via email to