summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorjaf <jaf@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-05-03 09:43:36 +0000
committerjaf <jaf@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-05-03 09:43:36 +0000
commitdc545e7b680db5dc6903eba93a09b39689bf8dce (patch)
tree0623c7638d83850a9a3f5f18faf29ef1411a4860 /configure
parent0a9278d9c539a5a5f3e7b1f0919b8e6874840a65 (diff)
downloadmpv-dc545e7b680db5dc6903eba93a09b39689bf8dce.tar.bz2
mpv-dc545e7b680db5dc6903eba93a09b39689bf8dce.tar.xz
add something like 'Optimizing for: i686 mmx mmx2 sse'
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5944 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure b/configure
index b3c5fa0d3c..9b981e02f0 100755
--- a/configure
+++ b/configure
@@ -522,6 +522,7 @@ if x86 ; then
_sse=yes
_sse2=yes
_mtrr=yes
+ _optimizing="Runtime CPU-Detection enabled"
fi
fi
@@ -634,6 +635,7 @@ EOF
else
_march="-march=$proc"
_mcpu="-mcpu=$proc"
+ _optimizing="$proc"
fi
else
# i686 is probably the most common cpu - optimize to it
@@ -738,6 +740,7 @@ EOF
if ( cc_check && $TMPO ) > /dev/null 2>&1 ; then
echores "yes"
+ _optimizing="$_optimizing $2"
return 0
else
echores "failed"
@@ -750,14 +753,17 @@ EOF
}
extcheck $_mmx "mmx" "emms" || _mmx=no
+ extcheck $_mmx2 "mmx2" "sfence" || _mmx2=no
extcheck $_3dnow "3dnow" "femms" || _3dnow=no
extcheck $_3dnowex "3dnowex" "pswapd %%mm0, %%mm0" || _3dnowex=no
- extcheck $_mmx2 "mmx2" "sfence" || _mmx2=no
extcheck $_sse "sse" "xorps %%xmm0, %%xmm0" || _sse=no
extcheck $_sse2 "sse2" "xorpd %%xmm0, %%xmm0" || _sse2=no
echocheck "mtrr support"
echores "$_mtrr"
+ if test "$_mtrr" = yes ; then
+ _optimizing="$_optimizing mtrr"
+ fi
fi
@@ -4090,7 +4096,6 @@ EOF
#############################################################################
-#FIXME: add something like "Optimizing for: i686 mmx mmx2 sse"
cat << EOF
Config files successfully generated by ./configure !
@@ -4099,6 +4104,8 @@ Config files successfully generated by ./configure !
Data directory: $_datadir
Config direct.: $_confdir
+ Optimizing for: $_optimizing
+
Enabled optional drivers:
Input: $_inputmodules
Codecs: $_codecmodules