Commit c5c70b25 authored by Sam Hocevar's avatar Sam Hocevar

* configure.ac: check for MMX intrinsics.

parent 10e3803d
......@@ -1059,6 +1059,16 @@ if test "${ac_cv_mmx_inline}" != "no"; then
ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
fi
dnl Check for -mmmx
AC_CACHE_CHECK([if \$CC groks MMX intrinsics],
[ac_cv_c_mmx_intrinsics],
[CFLAGS="${CFLAGS_save} -mmmx"
AC_TRY_COMPILE([#include <mmintrin.h>],,ac_cv_c_mmx_intrinsics=yes, ac_cv_c_mmx_intrinsics=no)])
if test "${ac_cv_c_mmx_intrinsics}" != "no"; then
AC_DEFINE(HAVE_MMX_INTRINSICS, 1, Define if MMX intrinsics are available.)
VLC_ADD_CFLAGS([i420_rgb_mmx],[-mmmx])
fi
AC_CACHE_CHECK([if \$CC groks MMX EXT inline assembly],
[ac_cv_mmxext_inline],
[CFLAGS="${CFLAGS_save}"
......
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