Fail if XvMC is requested but absent. Fix link-time dependencies.
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 17 Apr 2009 12:24:51 +0000 (15:24 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 17 Apr 2009 12:24:51 +0000 (15:24 +0300)
configure.ac

index c5ab7e0..9bd2c24 100644 (file)
@@ -4115,8 +4115,10 @@ 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 -lXinerama])
-    VLC_ADD_CPPFLAGS([xvmc],[${X_CFLAGS}])
+    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 extension not found!])
   ])
 ])