Mercurial > mplayer.hg
comparison configure @ 33626:a621fd1e93ae
Fix "sse in cpuinfo implies mmxext" hack to still work when --disable-sse is used.
author | reimar |
---|---|
date | Thu, 23 Jun 2011 18:42:26 +0000 |
parents | 16a8338ef734 |
children | 9eb4e5b5e4c9 |
comparison
equal
deleted
inserted
replaced
33625:5e3f013bf4c2 | 33626:a621fd1e93ae |
---|---|
1775 | 1775 |
1776 exts=$($_cpuinfo | egrep 'features|flags' | cut -d ':' -f 2 | head -n 1) | 1776 exts=$($_cpuinfo | egrep 'features|flags' | cut -d ':' -f 2 | head -n 1) |
1777 | 1777 |
1778 pparam=$(echo $exts | sed -e s/k6_mtrr/mtrr/ -e s/cyrix_arr/mtrr/ -e s/centaur_mcr/mtrr/ \ | 1778 pparam=$(echo $exts | sed -e s/k6_mtrr/mtrr/ -e s/cyrix_arr/mtrr/ -e s/centaur_mcr/mtrr/ \ |
1779 -e s/xmm/sse/ -e s/kni/sse/) | 1779 -e s/xmm/sse/ -e s/kni/sse/) |
1780 # SSE implies MMX2, but not all SSE processors report the mmxext CPU flag. | |
1781 pparam=$(echo $pparam | sed -e 's/sse/sse mmxext/') | |
1780 | 1782 |
1781 for ext in $pparam ; do | 1783 for ext in $pparam ; do |
1782 eval test \"\$_$ext\" = auto 2>/dev/null && eval _$ext=kernel_check | 1784 eval test \"\$_$ext\" = auto 2>/dev/null && eval _$ext=kernel_check |
1783 done | 1785 done |
1784 | |
1785 # SSE implies MMX2, but not all SSE processors report the mmxext CPU flag. | |
1786 test $_sse = kernel_check && _mmxext=kernel_check | |
1787 | 1786 |
1788 echocheck "CPU vendor" | 1787 echocheck "CPU vendor" |
1789 echores "$pvendor ($pfamily:$pmodel:$pstepping)" | 1788 echores "$pvendor ($pfamily:$pmodel:$pstepping)" |
1790 | 1789 |
1791 echocheck "CPU type" | 1790 echocheck "CPU type" |