0001-configure.ac-fix-AVX-SSE-and-MMX-options.patch 2.3 KB

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