Commit 2ca4281a authored by Gildas Bazin's avatar Gildas Bazin

* configure.ac.in: the libmpeg2 plugin is now enabled by default when the right version of libmpeg2 is detected (0.3.2 aka cvs).
parent c19bfe22
...@@ -1799,13 +1799,24 @@ dnl ...@@ -1799,13 +1799,24 @@ dnl
dnl Libmpeg2 plugin dnl Libmpeg2 plugin
dnl dnl
AC_ARG_ENABLE(libmpeg2, AC_ARG_ENABLE(libmpeg2,
[ --enable-libmpeg2 libmpeg2 decoder support (default disabled)]) [ --enable-libmpeg2 libmpeg2 decoder support (default enabled)])
if test "x${enable_libmpeg2}" = "xyes" if test "x${enable_libmpeg2}" != "xno"
then then
AC_CHECK_HEADERS(mpeg2dec/mpeg2.h, [ AC_CHECK_HEADERS(mpeg2dec/mpeg2.h, [
PLUGINS="${PLUGINS} libmpeg2" AC_MSG_CHECKING(for libmpeg2 version >= 0.3.2)
LDFLAGS_libmpeg2="${LDFLAGS_libmpeg2} -lmpeg2" AC_EGREP_CPP(yes,
],[]) [#include <mpeg2dec/mpeg2.h>
#ifdef MPEG2_RELEASE
#if MPEG2_RELEASE >= MPEG2_VERSION(0,3,2)
yes
#endif
#endif],
[AC_MSG_RESULT([yes])
PLUGINS="${PLUGINS} libmpeg2"
LDFLAGS_libmpeg2="${LDFLAGS_libmpeg2} -lmpeg2"],
[AC_MSG_RESULT([no]) ]
)
])
fi fi
dnl dnl
...@@ -1820,7 +1831,7 @@ then ...@@ -1820,7 +1831,7 @@ then
LDFLAGS_vorbis="${LDFLAGS_vorbis} -lvorbis -logg" LDFLAGS_vorbis="${LDFLAGS_vorbis} -lvorbis -logg"
],[]) ],[])
fi fi
dnl dnl
dnl Tremor plugin dnl Tremor plugin
dnl dnl
......
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