summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-06 16:13:52 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-06 16:13:52 +0000
commite6b6bc90edaf7d5008eaee00f4eed570f3db1750 (patch)
tree6d3d69d16cc9fd9560abcdb1e86f282d7bf271aa /configure
parent1d497e2d826ef866bfdb7d2b6a0a8884b2164deb (diff)
downloadmpv-e6b6bc90edaf7d5008eaee00f4eed570f3db1750.tar.bz2
mpv-e6b6bc90edaf7d5008eaee00f4eed570f3db1750.tar.xz
altivec support under netbsd, patch by Matthew Green
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12142 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index c206d1dc60..1925142c14 100755
--- a/configure
+++ b/configure
@@ -878,6 +878,18 @@ EOF
_altivec=yes
fi
fi
+ # only gcc 3.4 works reliably with altivec code under netbsd
+ if netbsd ; then
+ case $cc_version in
+ 2*|3.0*|3.1*|3.2*|3.3*)
+ ;;
+ *)
+ if [ `sysctl -n machdep.altivec` -eq 1 ]; then
+ _altivec=yes
+ fi
+ ;;
+ esac
+ fi
if test "$_altivec" = yes; then
echores "$proc altivec"
else