]> git.sesse.net Git - vlc/commitdiff
Configure: vaapi and vdpau need avcodec
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 12 Mar 2013 16:22:31 +0000 (17:22 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 12 Mar 2013 16:22:31 +0000 (17:22 +0100)
Should fix distcheck

configure.ac

index 52d2341beab824831b05ae18f2f1b30726f666ee..c08205b4b05eebad6e0da5e869ac7f8c59c9b6f6 100644 (file)
@@ -2258,7 +2258,7 @@ AS_IF([test "${enable_libva}" = "yes" -a "${have_avcodec}" != "yes" ], [
   AC_MSG_ERROR([--enable-libva and --disable-avcodec options are mutually exclusive. Use --enable-avcodec.])
 ])
 have_avcodec_vaapi="no"
-AS_IF([test "${enable_libva}" != "no"], [
+AS_IF([test "${enable_libva}" != "no" -a "${have_avcodec}" == "yes"], [
   PKG_CHECK_MODULES(LIBVA, [libva libva-x11], [
     VLC_SAVE_FLAGS
     CPPFLAGS="${CPPFLAGS} ${AVCODEC_CFLAGS}"
@@ -2995,7 +2995,7 @@ AC_ARG_ENABLE(vdpau,
   [AS_HELP_STRING([--enable-vdpau],
     [VDPAU hardware decoder support (default auto)])])
 have_vdpau="no"
-AS_IF([test "${enable_vdpau}" != "no"], [
+AS_IF([test "${enable_vdpau}" != "no" -a "${have_avcodec}" == "yes"], [
   PKG_CHECK_MODULES([VDPAU], [vdpau], [
     have_vdpau="yes"
     AS_IF([test "${no_x}" = "yes"], [