automatic altivec support detection on linux

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10358 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-07-01 15:33:07 +00:00
parent 5f92ac1d7b
commit 9b51317612
1 changed files with 5 additions and 0 deletions

5
configure vendored
View File

@ -872,6 +872,11 @@ EOF
_march='-mcpu=750'
_mcpu='-mtune=750'
fi
if linux ; then
if test -n "`$_cpuinfo | grep altivec`"; then
_altivec=yes
fi
fi
if darwin ; then
if [ `sysctl -n hw.vectorunit` -eq 1 ]; then
_altivec=yes