[MPlayer-dev-eng] wishlist again and again

Diego Biurrun diego at biurrun.de
Fri Jun 13 03:36:53 CEST 2003


Sylvain Petreolle writes:
 > Wishlist item to add :
 > 
 > - fix CPU flags detection, as theyre shown supported but disabled.
 > (spotted by many users on different platforms)

You mean not shown supported but supported nevertheless, I suppose.  I
once made a workaround for this (attached).  It should not be that
hard to fix, but I suspect configure needs a bit of surgery to
accomplish this.

Does anybody know a real solution?  I think this is far too ugly to
commit.

Diego


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.639
diff -u -r1.639 configure
--- configure	19 Jan 2003 16:42:25 -0000	1.639
+++ configure	19 Jan 2003 17:56:55 -0000
@@ -596,6 +596,29 @@
 
 fi
 
+# CPU options have to be set here, they have no effect if set later.
+for ac_option do
+  case "$ac_option" in
+  --enable-mtrr)	_mtrr=yes	              ;;
+  --disable-mtrr)	_mtrr=no	              ;;
+  --enable-altivec)     _altivec=yes                  ;;
+  --disable-altivec)    _altivec=no                   ;;
+  --enable-sse)         _sse=yes                      ;;
+  --disable-sse)        _sse=no                       ;;
+  --enable-sse2)        _sse2=yes                     ;;
+  --disable-sse2)       _sse2=no                      ;;
+  --enable-mmx2)        _mmx2=yes                     ;;
+  --disable-mmx2)       _mmx2=no                      ;;
+  --enable-3dnow)       _3dnow=yes                    ;;
+  --disable-3dnow)      _3dnow=no       _3dnowex=no   ;;
+  --enable-3dnowex)     _3dnow=yes      _3dnowex=yes  ;;
+  --disable-3dnowex)    _3dnowex=no                   ;;
+  --enable-mmx)         _mmx=yes                      ;;
+  # 3Dnow! requires MMX
+  --disable-mmx)        _3dnow=no _3dnowex=no _mmx=no _mmx2=no ;;
+  esac
+done
+
 
 if [ "$host_arch" = alpha ]; then
   echocheck "CPU type"



More information about the MPlayer-dev-eng mailing list