[vlc-devel] commit: Error if XvMC is requested while libmpeg2 unavailable ( Daniel Mierswa )
git version control
git at videolan.org
Wed Sep 23 21:41:46 CEST 2009
vlc | branch: master | Daniel Mierswa <impulze at impulze.org> | Wed Sep 23 21:21:57 2009 +0200| [fd1b3bd6c2fe03aba485b850ebd0b6301cd3ae5b] | committer: Rafaël Carré
Error if XvMC is requested while libmpeg2 unavailable
Edited patch to apply to master, original is here:
http://mailman.videolan.org/pipermail/vlc-devel/2009-June/061076.html
Original-by: Nicolas Chauvet
Signed-off-by: Daniel Mierswa <impulze at impulze.org>
Signed-off-by: Rafaël Carré <rafael.carre at gmail.com>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fd1b3bd6c2fe03aba485b850ebd0b6301cd3ae5b
---
configure.ac | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 74c6844..efb1f82 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3584,9 +3584,13 @@ AC_ARG_ENABLE(xvmc,
])
AS_IF([test "${enable_xvmc}" != "no"], [
AC_CHECK_HEADERS(X11/extensions/vldXvMC.h, [
- VLC_ADD_PLUGIN([xvmc])
- VLC_ADD_LIBS([xvmc],[${X_LIBS} ${X_PRE_LIBS} -lX11 -lXext -lXvMCW -lXv ${LIBMPEG2_LIBS}])
- VLC_ADD_CPPFLAGS([xvmc],[${X_CFLAGS} ${LIBMPEG2_CFLAGS}])
+ AS_IF([test "${enable_libmpeg2}" = "yes"], [
+ VLC_ADD_PLUGIN([xvmc])
+ VLC_ADD_LIBS([xvmc],[${X_LIBS} ${X_PRE_LIBS} -lX11 -lXext -lXvMCW -lXv ${LIBMPEG2_LIBS}])
+ VLC_ADD_CPPFLAGS([xvmc],[${X_CFLAGS} ${LIBMPEG2_CFLAGS}])
+ ], [
+ AC_MSG_ERROR([XVideo-MotionCompensation needs libmpeg2 which isn't available])
+ ])
], [
AC_MSG_ERROR([XVideo-MotionCompensation extension not found!])
])
More information about the vlc-devel
mailing list