]> git.sesse.net Git - vlc/commitdiff
Don't error out if --disable-avcodec was specified but not --disable-libva
authorRafaël Carré <funman@videolan.org>
Thu, 3 Nov 2011 19:14:58 +0000 (15:14 -0400)
committerRafaël Carré <funman@videolan.org>
Thu, 3 Nov 2011 19:23:34 +0000 (15:23 -0400)
configure.ac

index be981b1dfab825f11795837355ebf7fed74c7099..8f631c42951307af330b8f948557d993c973b633 100644 (file)
@@ -2470,11 +2470,10 @@ dnl
 AC_ARG_ENABLE(libva,
   [  --enable-libva          VAAPI GPU decoding support (libVA) (default auto)])
 
+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.])
+])
 AS_IF([test "${enable_libva}" != "no"], [
-  AS_IF([test "${have_avcodec}" != "yes"], [
-    AC_MSG_ERROR([--enable-libva and --disable-avcodec options are mutually exclusive.])
-  ])
-
   PKG_CHECK_MODULES(LIBVA, [libva libva-x11], [
     VLC_SAVE_FLAGS
     CPPFLAGS="${CPPFLAGS} ${AVCODEC_CFLAGS}"