[ekiga/gnome-2-26] Made the MMX support optional (fixing bug #575831)



commit 249a10e2db2fca269ca9a7309fe64a3e62defbc7
Author: Julien Puydt <jpuydt src gnome org>
Date:   Thu Mar 19 17:39:48 2009 +0000

    Made the MMX support optional (fixing bug #575831)
    
    svn path=/trunk/; revision=7795
---
 configure.ac |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 4f12cd9..ca5dae6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -370,7 +370,11 @@ dnl ###############################
 AC_MSG_CHECKING(for x86 platform)
 case $host_cpu in
   i386|i486|i586|i686|i786|k6|k7)
-	use_x86_asm=yes
+        AC_ARG_ENABLE(mmx, AS_HELP_STRING([--enable-mmx],[enable MMX acceleration (default is enabled)]), [if test "x$enableval" = "xyes"; then
+                             use_x86_asm=yes
+			   else
+			     use_x86_asm=no
+                           fi], use_x86_asm=yes)
         ;;
    *)
   	use_x86_asm=no
@@ -378,7 +382,7 @@ esac
 AC_MSG_RESULT($use_x86_asm)
 
 use_mmx_asm=no
-if test $use_x86_asm = yes; then
+if test "x$use_x86_asm" = "xyes"; then
     save_ac_ext=$ac_ext
     ac_ext=S
     
@@ -391,7 +395,7 @@ if test $use_x86_asm = yes; then
     rm -rf conftest*
 
     ac_ext=$save_ac_ext
-    if test $use_mmx_asm = yes; then
+    if test "x$use_mmx_asm" = "xyes"; then
       AC_DEFINE([USE_MMX], 1, [MMX Support])
       AC_MSG_RESULT(yes)
     else
@@ -399,7 +403,7 @@ if test $use_x86_asm = yes; then
     fi
 fi
 
-AM_CONDITIONAL(USE_MMX, test x$use_mmx_asm = xyes)
+AM_CONDITIONAL(USE_MMX, test "x$use_mmx_asm" = "xyes")
 
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]