1From e7330bfe63efd0062fa51d50a4aaa0f1abd5ff75 Mon Sep 17 00:00:00 2001
2From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3Date: Sun, 22 Nov 2020 17:02:43 +0100
4Subject: [PATCH] configure.ac: fix AVX, SSE and MMX options
5
6AVX, SSE and MMX options are broken since
7https://github.com/freeswitch/spandsp/commit/87a900c70df73e128a5926587047f529105f5f64
8
9For example, when the user enables SSE, it will also enable MMX and the
10user can't disable MMX
11
12Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
13[Upstream status: https://github.com/freeswitch/spandsp/pull/20]
14---
15 configure.ac | 8 --------
16 1 file changed, 8 deletions(-)
17
18diff --git a/configure.ac b/configure.ac
19index 83fb3fd..ac2592e 100644
20--- a/configure.ac
21+++ b/configure.ac
22@@ -486,35 +486,27 @@ armv7[bl] | armv7-*)
23 x86_64-* | i386-* | i686-*)
24     if test "$enable_avx2" = "yes" ; then
25         AC_DEFINE([SPANDSP_USE_AVX2], [1], [Use the AVX2 instruction set (i386 and x86_64 only).])
26-        enable_avx="yes"
27     fi
28     if test "$enable_avx" = "yes" ; then
29         AC_DEFINE([SPANDSP_USE_AVX], [1], [Use the AVX instruction set (i386 and x86_64 only).])
30-        enable_sse4_2="yes"
31     fi
32     if test "$enable_sse4_2" = "yes" ; then
33         AC_DEFINE([SPANDSP_USE_SSE4_2], [1], [Use the SSE4.2 instruction set (i386 and x86_64 only).])
34-        enable_sse4_1="yes"
35     fi
36     if test "$enable_sse4_1" = "yes" ; then
37         AC_DEFINE([SPANDSP_USE_SSE4_1], [1], [Use the SSE4.1 instruction set (i386 and x86_64 only).])
38-        enable_ssse3="yes"
39     fi
40     if test "$enable_ssse3" = "yes" ; then
41         AC_DEFINE([SPANDSP_USE_SSSE3], [1], [Use the SSSE3 instruction set (i386 and x86_64 only).])
42-        enable_sse3="yes"
43     fi
44     if test "$enable_sse3" = "yes" ; then
45         AC_DEFINE([SPANDSP_USE_SSE3], [1], [Use the SSE3 instruction set (i386 and x86_64 only).])
46-        enable_sse2="yes"
47     fi
48     if test "$enable_sse2" = "yes" ; then
49         AC_DEFINE([SPANDSP_USE_SSE2], [1], [Use the SSE2 instruction set (i386 and x86_64 only).])
50-        enable_sse="yes"
51     fi
52     if test "$enable_sse" = "yes" ; then
53         AC_DEFINE([SPANDSP_USE_SSE], [1], [Use the SSE instruction set (i386 and x86_64 only).])
54-        enable_mmx="yes"
55     fi
56     if test "$enable_mmx" = "yes" ; then
57         AC_DEFINE([SPANDSP_USE_MMX], [1], [Use the MMX instruction set (i386 and x86_64 only).])
58--
592.29.2
60
61