This patch combines two small patches which fix issues with x86_64 and mmx in the configure script.
Submitted by: Gilbert Ashley Author: unknown Origin: ALT/Sisyphus Linux, Alexey Voinov <[email protected]> (transplanted from cc00640a0aa908707adc6de8c0f5c60235493df0) configure.ac | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-)
# HG changeset patch # User John H. Robinson, IV <[email protected]> # Date 1229204904 28800 # Branch wm_0_92 # Node ID 5623dddc5decde137141a0ddf50c780aee154d7f # Parent 76b6993c20bdf31b209d27811cb4eb36ea505d14 x86_64 mmx fixes This patch combines two small patches which fix issues with x86_64 and mmx in the configure script. Submitted by: Gilbert Ashley Author: unknown Origin: ALT/Sisyphus Linux, Alexey Voinov <[email protected]> (transplanted from cc00640a0aa908707adc6de8c0f5c60235493df0) diff --git a/configure.ac b/configure.ac --- a/configure.ac +++ b/configure.ac @@ -190,8 +190,17 @@ # until we fix it, leave it disabled asm_support=no mmx_support=no -if test "$ac_cv_prog_gcc" = yes; then +check_for_mmx_support=yes +AC_ARG_ENABLE(mmx, + [ --disable-mmx disable compilation of MMX inline assembly ], + [if test x$enableval != xyes; then + check_for_mmx_support=no + fi]) + +if test "$ac_cv_prog_gcc" = yes -a "$check_for_mmx_support" = yes; then +case $host_cpu in +*i?86*) # gcc-3.3 or newer complains about some of our stuff without this NOSTRICTALIASING="-fno-strict-aliasing" @@ -218,6 +227,8 @@ mmx_support=yes fi fi + ;; +esac fi AC_SUBST(NOSTRICTALIASING)
