From 19ead3d0bbcdb267d12141a5174c6e0f7e27151b Mon Sep 17 00:00:00 2001
From: rtoy <rtoy>
Date: Wed, 12 Aug 2009 16:20:46 +0000
Subject: [PATCH] There is no or function in my version of GNU make, so do it
 the hard way when setting -DFEATURE_SSE2.

---
 lisp/Config.x86_common | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/lisp/Config.x86_common b/lisp/Config.x86_common
index 8e89b4bb9..5635e5b85 100644
--- a/lisp/Config.x86_common
+++ b/lisp/Config.x86_common
@@ -24,8 +24,16 @@ GC_SRC := cgc.c
 CPP_DEFINE_OPTIONS += -DWANT_CGC
 endif
 
-ifneq ($(or $(FEATURE_X87),$(FEATURE_SSE2)),)
+# Enable support for SSE2.  If FEATURE_X87 is set, we want SSE2
+# support in the C code too so that the same binary is built in both
+# cases.  If neither is set, then we don't want any SSE2 support at
+# all.
+ifdef FEATURE_X87
 CPP_DEFINE_OPTIONS += -DFEATURE_SSE2
+else
+ifdef FEATURE_SSE2
+CPP_DEFINE_OPTIONS += -DFEATURE_SSE2
+endif
 endif
 
 ifdef FEATURE_UNICODE
-- 
GitLab