diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-06 09:36:01 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-06 09:36:01 +0000 |
commit | cc8eb6239356d3f32ac5c13f00397d90c685ed09 (patch) | |
tree | 61ca1a0213701c0216a451bfd973bdc178622504 /configure | |
parent | cd4c2fdfb4358cb9ed57050a2f4df6bfe7034530 (diff) | |
download | mpv-cc8eb6239356d3f32ac5c13f00397d90c685ed09.tar.bz2 mpv-cc8eb6239356d3f32ac5c13f00397d90c685ed09.tar.xz |
Fix AltiVec autodetection: The autodetection was overriding configure
command line options.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24350 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -482,6 +482,7 @@ _armv5te=auto _armv6=auto _iwmmxt=auto _mtrr=auto +_altivec=auto _install=install _ranlib=ranlib _ldconfig=ldconfig @@ -2021,21 +2022,20 @@ EOF _march='' _mcpu='' _optimizing='' - _altivec=no echocheck "CPU type" case $system_name in Linux) proc=`$_cpuinfo | grep 'cpu' | cut -d ':' -f 2 | cut -d ',' -f 1 | cut -b 2- | _head 1` if test -n "`$_cpuinfo | grep altivec`"; then - _altivec=yes + test $_altivec = auto && _altivec=yes fi ;; Darwin) proc=`$_cpuinfo | grep "Processor type" | cut -f 3 -d ' ' | sed 's/ppc//'` if [ `sysctl -n hw.vectorunit` -eq 1 -o \ "`sysctl -n hw.optional.altivec 2> /dev/null`" = "1" ]; then - _altivec=yes + test $_altivec = auto && _altivec=yes fi ;; NetBSD) @@ -2045,7 +2045,7 @@ EOF ;; *) if [ `sysctl -n machdep.altivec` -eq 1 ]; then - _altivec=yes + test $_altivec = auto && _altivec=yes fi ;; esac @@ -2057,6 +2057,7 @@ EOF if test "$_altivec" = yes; then echores "$proc altivec" else + _altivec=no echores "$proc" fi |