From 2de6521fe8d0c2103895a52714e0eaa632769cec Mon Sep 17 00:00:00 2001
From: Anton Shterenlikht <mexas@bristol.ac.uk>
Date: Mon, 19 Mar 2012 15:02:52 +0100
Subject: [PATCH] Fixed typo preventing build for ia64/sparc64.

http://www.freebsd.org/cgi/query-pr.cgi?pr=165798
---
 m4/ax_ext.m4 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/m4/ax_ext.m4 b/m4/ax_ext.m4
index 41536f7fe1..898f2bfd51 100644
--- a/m4/ax_ext.m4
+++ b/m4/ax_ext.m4
@@ -69,8 +69,10 @@ AC_DEFUN([AX_EXT],
   AC_CACHE_CHECK([whether sse2 is supported], [ax_cv_have_sse2_ext],
   [
     ax_cv_have_sse2_ext=no
-    if test "$((0x$edx>>26&0x01))" = 1; then
-      ax_cv_have_sse2_ext=yes
+    if test "$ax_cv_gcc_x86_cpuid_0x00000001" != "unknown"; then
+      if test "$((0x$edx>>26&0x01))" = 1; then
+        ax_cv_have_sse2_ext=yes
+      fi
     fi
   ])
 
-- 
GitLab