mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
1bc582c399
Original commit message from CVS: - my mistake... mpeg2dec libs does not depend on X11 libraries (vo library distributed with mpeg2dec depends on X11 libs). Add configure option so user can specify where mpeg2dec library is installed. This way we do not guess where is mpeg2dec. If it is not in standard location (prefix==/usr), then leave it to the user. Changes inspired by AM_PATH_LIBMIKMOD.
19 lines
722 B
Text
19 lines
722 B
Text
AC_DEFUN(GST_CHECK_MPEG2DEC,
|
|
[dnl
|
|
AC_ARG_WITH(mpeg2dec-prefix,
|
|
[ --with-mpeg2dec-prefix=PFX Prefix where mpeg2dec is installed (optional)],
|
|
mpeg2dec_config_prefix="$withval", mpeg2dec_config_prefix="")
|
|
|
|
if test x$mpeg2dec_config_prefix = x ; then
|
|
CHECK_LIBHEADER(MPEG2DEC, mpeg2, mpeg2_init, mpeg2dec/mpeg2.h,
|
|
MPEG2DEC_LIBS="-lmpeg2 -lmpeg2dec")
|
|
else
|
|
CHECK_LIBHEADER(MPEG2DEC, mpeg2, mpeg2_init, mpeg2dec/mpeg2.h, [
|
|
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)
|
|
fi
|
|
|
|
AC_SUBST(MPEG2DEC_CFLAGS)
|
|
AC_SUBST(MPEG2DEC_LIBS)
|
|
])
|