From: Thomas Vander Stichele Date: Wed, 16 Jan 2002 22:24:40 +0000 (+0000) Subject: added jpeg_mmx check X-Git-Tag: BRANCH-EVENTS2-ROOT~145 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=237cbf490676362654d7a00dee2ca6f809c2b880;p=platform%2Fupstream%2Fgst-plugins-bad.git added jpeg_mmx check Original commit message from CVS: added jpeg_mmx check --- diff --git a/configure.ac b/configure.ac index edb4d5f..48d252e 100644 --- a/configure.ac +++ b/configure.ac @@ -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)