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]> 1 file changed, 12 insertions(+), 1 deletion(-) configure.ac | 13 ++++++++++++-
# HG changeset patch # User John H. Robinson, IV <[email protected]> # Date 1229204904 28800 # Node ID c7f5a6b63d02603bd2207115d5ac75f33377ea98 # Parent f2d28f07af563b324cd958d5f3dbd92566cb5008 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]> 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)
