From 14719eb18856a96e4abd824023b0c7e84e693a6d Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <randrianasulu@gmail.com>
Date: Sun, 3 Apr 2022 19:34:26 +0300
Subject: [PATCH 1/2] video4linux2 and DVB support currently depend on libzmpeg

---
 cinelerra-5.1/configure.ac | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/cinelerra-5.1/configure.ac b/cinelerra-5.1/configure.ac
index c6d78b0f..7c53cb4c 100644
--- a/cinelerra-5.1/configure.ac
+++ b/cinelerra-5.1/configure.ac
@@ -83,6 +83,12 @@ fi
 if test "x$WANT_COMMERCIAL" = "xyes" -a "x$WANT_LIBZMPEG" != "xyes" ; then
   AC_MSG_ERROR([commercial requires libzmpeg support.])
 fi
+if test "x$WANT_VIDEO4LINUX2" = "xyes" -a "x$WANT_LIBZMPEG" != "xyes" ; then
+  AC_MSG_ERROR([video4linux2 currently requires libzmpeg support.])
+fi
+if test "x$WANT_DVB" = "xyes" -a "x$WANT_LIBZMPEG" != "xyes" ; then
+  AC_MSG_ERROR([dvb currently requires libzmpeg support.])
+fi
 
 if test "x$WANT_CINBIN_BUILD" = "xyes"; then
   WANT_LOCALE_DIR='$$CIN_LIB/locale'
-- 
2.35.1

