[vlc-commits] configure: Fix --enable-decklink behavior

Marvin Scholz git at videolan.org
Wed Sep 19 12:51:50 CEST 2018


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Tue Sep 11 19:01:14 2018 +0200| [8383fb08a4cf780248ab0778585d398a871a3d55] | committer: Marvin Scholz

configure: Fix --enable-decklink behavior

When explicitly enabled, configure should fail when it can't find the
Decklink SDK.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8383fb08a4cf780248ab0778585d398a871a3d55
---

 configure.ac | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index bd757582df..09992925b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1904,7 +1904,11 @@ then
   AC_CHECK_HEADERS([DeckLinkAPIDispatch.cpp], [
       have_decklink=yes
   ], [
-      AC_MSG_WARN([Blackmagic DeckLink SDI include files not found, decklink disabled])
+      AS_IF([test "${enable_decklink}" = "yes"], [
+        AC_MSG_ERROR([Blackmagic DeckLink SDI include files not found!])
+      ], [
+        AC_MSG_WARN([Blackmagic DeckLink SDI include files not found, decklink disabled])
+      ])
   ])
   AC_LANG_POP([C++])
   VLC_RESTORE_FLAGS



More information about the vlc-commits mailing list