Commit a762948c authored by Rafaël Carré's avatar Rafaël Carré

decklink: fix detection

parent b67f9a62
...@@ -1745,6 +1745,7 @@ AC_ARG_ENABLE(decklink, ...@@ -1745,6 +1745,7 @@ AC_ARG_ENABLE(decklink,
AC_ARG_WITH(decklink_sdk, AC_ARG_WITH(decklink_sdk,
[AS_HELP_STRING[--with-decklink-sdk=DIR], [AS_HELP_STRING[--with-decklink-sdk=DIR],
[ location of Blackmagic DeckLink SDI SDK])]) [ location of Blackmagic DeckLink SDI SDK])])
have_decklink=no
if test "${enable_decklink}" != "no" if test "${enable_decklink}" != "no"
then then
if test "${with_decklink_sdk}" != "no" -a -n "${with_decklink_sdk}" if test "${with_decklink_sdk}" != "no" -a -n "${with_decklink_sdk}"
...@@ -1754,8 +1755,9 @@ then ...@@ -1754,8 +1755,9 @@ then
VLC_SAVE_FLAGS VLC_SAVE_FLAGS
CXXFLAGS="${CXXFLAGS} ${CXXFLAGS_decklink}" CXXFLAGS="${CXXFLAGS} ${CXXFLAGS_decklink}"
AC_LANG_PUSH(C++) AC_LANG_PUSH(C++)
AC_CHECK_HEADERS(DeckLinkAPIDispatch.cpp, [], [ AC_CHECK_HEADERS(DeckLinkAPIDispatch.cpp, [
have_decklink=no have_decklink=yes
], [
AC_MSG_WARN(Blackmagic DeckLink SDI include files not found, decklink disabled) AC_MSG_WARN(Blackmagic DeckLink SDI include files not found, decklink disabled)
]) ])
AC_LANG_POP(C++) AC_LANG_POP(C++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment