mirror of https://code.videolan.org/videolan/vlc
* Compile Altivec modules on Darwin. [MacOS X port]
This commit is contained in:
parent
d73c57ac23
commit
1e76706805
|
@ -129,6 +129,10 @@ AC_ARG_ENABLE(mmx,
|
||||||
[ --disable-mmx Disable MMX optimizations (default enabled for x86)],
|
[ --disable-mmx Disable MMX optimizations (default enabled for x86)],
|
||||||
[ if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi ],
|
[ if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi ],
|
||||||
[ if test x${host_cpu} = xi686 -o x${host_cpu} = xi586 -o x${host_cpu} = xx86; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi ])
|
[ if test x${host_cpu} = xi686 -o x${host_cpu} = xi586 -o x${host_cpu} = xx86; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi ])
|
||||||
|
AC_ARG_ENABLE(altivec,
|
||||||
|
[ --enable-activec Enable altivec optimizations (default enabled for PPC)],
|
||||||
|
[ if test x$enableval = xyes; then ARCH=${ARCH}" altivec"; PLUGINS=${PLUGINS}"idctaltivec "; fi ],
|
||||||
|
[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH=${ARCH}" altivec"; PLUGINS=${PLUGINS}"idctaltivec "; fi ])
|
||||||
AC_ARG_ENABLE(css,
|
AC_ARG_ENABLE(css,
|
||||||
[ --disable-css Disable DVD CSS decryption (default enabled)],
|
[ --disable-css Disable DVD CSS decryption (default enabled)],
|
||||||
[ if test x$enableval = xyes; then CSS=1; else CSS=0; fi ], [ CSS=1; ])
|
[ if test x$enableval = xyes; then CSS=1; else CSS=0; fi ], [ CSS=1; ])
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#define CPU_CAPABILITY_MMX 1<<3
|
#define CPU_CAPABILITY_MMX 1<<3
|
||||||
#define CPU_CAPABILITY_3DNOW 1<<4
|
#define CPU_CAPABILITY_3DNOW 1<<4
|
||||||
#define CPU_CAPABILITY_MMXEXT 1<<5
|
#define CPU_CAPABILITY_MMXEXT 1<<5
|
||||||
|
#define CPU_CAPABILITY_ALTIVEC 1<<16
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* TestVersion: tests if the given string equals the current version
|
* TestVersion: tests if the given string equals the current version
|
||||||
|
|
Loading…
Reference in New Issue