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