Commit d431f940 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

configure.ac: Allow --disable-mmx and --disable-sse.

parent 9c4b2e75
...@@ -1526,16 +1526,20 @@ AS_IF([test "${CFLAGS_TUNING}"], ...@@ -1526,16 +1526,20 @@ AS_IF([test "${CFLAGS_TUNING}"],
dnl dnl
dnl x86 accelerations dnl x86 accelerations
dnl dnl
if test "${host_cpu}" = "i686" -o "${host_cpu}" = "i586" -o "${host_cpu}" = "x86" -o "${host_cpu}" = "i386" -o "${host_cpu}" = "i486" -o "${host_cpu}" = "x86_64" AC_ARG_ENABLE(mmx,
then [ --disable-mmx disable MMX optimizations (default enabled on x86)],
[ if test "${enable_mmx}" = "yes"; then ARCH="${ARCH} mmx";
VLC_ADD_PLUGINS([${ACCEL_MODULES}]) fi ],
[ if test "${host_cpu}" = "i686" -o "${host_cpu}" = "i586" -o "${host_cpu}" = "x86" -o "${host_cpu}" = "i386" -o "${host_cpu}" = "i486" -o "${host_cpu}" = "x86_64"; then
ARCH="${ARCH} mmx" ARCH="${ARCH} mmx"
VLC_ADD_PLUGINS([${ACCEL_MODULES}]) VLC_ADD_PLUGINS([${ACCEL_MODULES}]) fi ])
fi
if test "${host_cpu}" = "i686" -o "${host_cpu}" = "x86_64" AC_ARG_ENABLE(sse,
then [ --disable-sse disable SSE (1 and 2) optimizations (default enabled on i686 and x86_64)],
ARCH="${ARCH} sse sse2" [ if test "${enable_sse}" = "yes"; then ARCH="${ARCH} sse sse2";
VLC_ADD_PLUGINS([${ACCEL_MODULES}]) VLC_ADD_PLUGINS([${ACCEL_MODULES}]) fi ],
fi [ if test "${host_cpu}" = "i686" -o "${host_cpu}" = "x86_64"; then ARCH="${ARCH} sse sse2";
VLC_ADD_PLUGINS([${ACCEL_MODULES}]) fi ])
dnl dnl
dnl Memory usage dnl Memory usage
......
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