]> git.pld-linux.org Git - packages/mplayer.git/blame - mplayer-altivec.patch
- rework old patch against new mplayer
[packages/mplayer.git] / mplayer-altivec.patch
CommitLineData
c03f2216 1--- mplayer/configure.orig 2009-11-17 23:59:50.000000000 +0100
2+++ mplayer/configure 2009-11-18 02:23:19.760319977 +0100
3@@ -742,6 +742,7 @@
4 _w32threads=auto
5 _ass=auto
c294b55d 6 _rpath=no
5aa1377d 7+_disable_altivec=no
30e3739f 8 _asmalign_pot=auto
c03f2216 9 _stream_cache=yes
10 _priority=no
11@@ -1315,7 +1316,7 @@
12 --enable-fast-cmov) _fast_cmov=yes ;;
13 --disable-fast-cmov) _fast_cmov=no ;;
5aa1377d
JB
14 --enable-altivec) _altivec=yes ;;
15- --disable-altivec) _altivec=no ;;
16+ --disable-altivec) _altivec=no; _disable_altivec=yes ;;
30e3739f 17 --enable-armv5te) _armv5te=yes ;;
18 --disable-armv5te) _armv5te=no ;;
c03f2216 19 --enable-armv6) _armv6=yes ;;
20@@ -2639,15 +2640,15 @@
5aa1377d 21
eeb11871 22 #FIXME: This should happen before the check for CFLAGS..
c03f2216 23 def_altivec_h='#define HAVE_ALTIVEC_H 0'
eeb11871 24-if ppc && ( test "$_altivec" = yes || test "$_runtime_cpudetection" = yes ) ; then
c03f2216 25+if ppc && ( test "$_altivec" = yes || test "$_runtime_cpudetection" = yes ) && test "$_disable_altivec" != "yes"; then
eeb11871
ER
26
27 # check if AltiVec is supported by the compiler, and how to enable it
28 echocheck "GCC AltiVec flags"
c03f2216 29 cat > $TMPC << EOF
30 int main(void) { return 0; }
31 EOF
32- if $(cc_check -maltivec -mabi=altivec) ; then
33- _altivec_gcc_flags="-maltivec -mabi=altivec"
34+ if $(cc_check -maltivec) ; then
35+ _altivec_gcc_flags="-maltivec"
36 # check if <altivec.h> should be included
37 cat > $TMPC << EOF
38 #include <altivec.h>
This page took 0.02945 seconds and 4 git commands to generate.