Commit 1e767068 authored by Christophe Massiot's avatar Christophe Massiot

* Compile Altivec modules on Darwin. [MacOS X port]

parent d73c57ac
This diff is collapsed.
...@@ -129,6 +129,10 @@ AC_ARG_ENABLE(mmx, ...@@ -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 @@ ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment