added jpeg_mmx check

Original commit message from CVS:
added jpeg_mmx check
This commit is contained in:
Thomas Vander Stichele 2002-01-16 22:24:40 +00:00
parent e867f02458
commit e46ad4f4c2

View file

@ -522,6 +522,17 @@ GST_CHECK_FEATURE(JPEG, [jpeg], jpegenc jpegdec, [
AC_SUBST(JPEG_LIBS)
])
dnl *** jpeg-mmx ***
AC_ARG_WITH(jpeg-mmx-path, [ --with-jpeg-mmx-path, path to mmx accelerated jpeg lib])
translit(dnm, m, l) AM_CONDITIONAL(USE_JPEG_MMX, true)
GST_CHECK_FEATURE(JPEG_MMX, [jpeg-mmx], jpegmmxenc jpegmmxdec, [
AC_CHECK_LIB(jpeg-mmx, jpeg_start_compress, HAVE_JPEG_MMX="yes", HAVE_JPEG_MMX="no", "-L$with_jpeg_mmx_path")
JPEG_MMX_LIBS="-L$with_jpeg_mmx_path -ljpeg-mmx"
JPEG_MMX_CFLAGS="-I$with_jpeg_mmx_path"
AC_SUBST(JPEG_MMX_LIBS)
AC_SUBST(JPEG_MMX_CFLAGS)
])
dnl *** mad ***
dnl FIXME: we could use header checks here as well IMO
translit(dnm, m, l) AM_CONDITIONAL(USE_MAD, true)