2002-01-18 14:09:52 +00:00
|
|
|
AC_DEFUN(GST_CHECK_MPEG2DEC,
|
|
|
|
[dnl
|
2002-01-18 19:46:03 +00:00
|
|
|
AC_ARG_WITH(mpeg2dec-prefix,
|
|
|
|
[ --with-mpeg2dec-prefix=PFX Prefix where mpeg2dec is installed (optional)],
|
|
|
|
mpeg2dec_config_prefix="$withval", mpeg2dec_config_prefix="")
|
2002-01-18 14:09:52 +00:00
|
|
|
|
2002-01-18 19:46:03 +00:00
|
|
|
if test x$mpeg2dec_config_prefix = x ; then
|
|
|
|
CHECK_LIBHEADER(MPEG2DEC, mpeg2, mpeg2_init, mpeg2dec/mpeg2.h,
|
|
|
|
MPEG2DEC_LIBS="-lmpeg2 -lmpeg2dec")
|
|
|
|
else
|
2002-01-18 14:09:52 +00:00
|
|
|
CHECK_LIBHEADER(MPEG2DEC, mpeg2, mpeg2_init, mpeg2dec/mpeg2.h, [
|
2002-01-18 19:46:03 +00:00
|
|
|
MPEG2DEC_LIBS="-lmpeg2 -lmpeg2dec -L$mpeg2dec_config_prefix/lib"
|
|
|
|
MPEG2DEC_CFLAGS="-I$mpeg2dec_config_prefix/include"
|
|
|
|
], , -L$mpeg2dec_config_prefix/lib, -I$mpeg2dec_config_prefix/include)
|
2002-01-18 14:09:52 +00:00
|
|
|
fi
|
2002-01-18 19:46:03 +00:00
|
|
|
|
2002-01-18 14:09:52 +00:00
|
|
|
AC_SUBST(MPEG2DEC_CFLAGS)
|
|
|
|
AC_SUBST(MPEG2DEC_LIBS)
|
|
|
|
])
|