[MPlayer-cvslog] CVS: main configure,1.1177,1.1178
Diego Biurrun CVS
syncmail at mplayerhq.hu
Tue Apr 25 03:38:05 CEST 2006
- Previous message: [MPlayer-cvslog] CVS: main parser-cfg.c, 1.8, 1.9 parser-mecmd.c, 1.14, 1.15 parser-mecmd.h, 1.1, 1.2 parser-mpcmd.c, 1.27, 1.28 playtree.c, 1.23, 1.24 playtree.h, 1.8, 1.9 playtreeparser.c, 1.32, 1.33 playtreeparser.h, 1.5, 1.6
- Next message: [MPlayer-cvslog] CVS: main Makefile, 1.366, 1.367 mencoder.c, 1.350, 1.351
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
CVS change done by Diego Biurrun CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv29049
Modified Files:
configure
Log Message:
Simplify x86 CPU flag/extension check.
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.1177
retrieving revision 1.1178
diff -u -r1.1177 -r1.1178
--- configure 24 Apr 2006 21:50:06 -0000 1.1177
+++ configure 25 Apr 2006 01:38:02 -0000 1.1178
@@ -419,6 +419,13 @@
# 1st pass checking for vital options
+_mmx=auto
+_3dnow=auto
+_3dnowext=auto
+_mmxext=auto
+_sse=auto
+_sse2=auto
+_mtrr=auto
_install=install
_ranlib=ranlib
_cc=cc
@@ -784,34 +791,6 @@
_cpuinfo="TOOLS/cpuinfo"
fi
-x86_exts_check()
-{
- pparam=`$_cpuinfo | grep 'features' | cut -d ':' -f 2 | _head 1`
- if test -z "$pparam" ; then
- pparam=`$_cpuinfo | grep 'flags' | cut -d ':' -f 2 | _head 1`
- fi
-
- _mmx=no
- _3dnow=no
- _3dnowext=no
- _mmxext=no
- _sse=no
- _sse2=no
- _mtrr=no
-
- for i in $pparam ; do
- case "$i" in
- 3dnow) _3dnow=yes ;;
- 3dnowext) _3dnowext=yes ;;
- mmx) _mmx=yes ;;
- mmxext) _mmxext=yes ;;
- mtrr|k6_mtrr|cyrix_arr) _mtrr=yes ;;
- xmm|sse|kni) _sse=yes _mmxext=yes ;;
- sse2) _sse2=yes ;;
- esac
- done
-}
-
if x86 || x86_64 ; then
# gather more CPU information
pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2 | _head 1`
@@ -820,7 +799,17 @@
pmodel=`$_cpuinfo | grep -v 'model name' | grep 'model' | cut -d ':' -f 2 | cut -d ' ' -f 2 | _head 1`
pstepping=`$_cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2 | _head 1`
- x86_exts_check
+ exts=`$_cpuinfo | grep 'features\|flags' | cut -d ':' -f 2 | _head 1`
+
+ pparam=`echo $exts | sed -e s/k6_mtrr/mtrr/ -e s/cyrix_arr/mtrr/ \
+ -e s/xmm/sse/ -e s/kni/sse/`
+
+ for ext in $pparam ; do
+ eval _$ext=auto && eval _$ext=yes
+ done
+
+ # SSE implies MMX2, but not all SSE processors report the mmxext CPU flag.
+ test _sse=yes && _mmxext=yes
echocheck "CPU vendor"
echores "$pvendor ($pfamily:$pmodel:$pstepping)"
- Previous message: [MPlayer-cvslog] CVS: main parser-cfg.c, 1.8, 1.9 parser-mecmd.c, 1.14, 1.15 parser-mecmd.h, 1.1, 1.2 parser-mpcmd.c, 1.27, 1.28 playtree.c, 1.23, 1.24 playtree.h, 1.8, 1.9 playtreeparser.c, 1.32, 1.33 playtreeparser.h, 1.5, 1.6
- Next message: [MPlayer-cvslog] CVS: main Makefile, 1.366, 1.367 mencoder.c, 1.350, 1.351
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list