fi
fi
+dnl
+dnl special access module for BlackMagic SDI cards
+dnl
+AC_ARG_ENABLE(sdi,
+ [ --enable-sdi BlackMagic SDI access module (default disabled)])
+if test "${enable_sdi}" = "yes"
+then
+ AC_ARG_WITH(sdi_sdk,
+ [ --with-sdi-sdk=DIR Location of BlackMagic SDI SDK],[],[])
+ if test "${with_sdi_sdk}" != "no" -a -n "${with_sdi_sdk}"
+ then
+ VLC_ADD_CPPFLAGS([sdi],[-I${with_sdi_sdk}/include])
+ fi
+ CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_sdi}"
+ AC_LANG_PUSH(C++)
+ AC_CHECK_HEADERS(DeckLinkAPIDispatch.cpp, [
+ VLC_ADD_PLUGIN([sdi])
+ ],[AC_MSG_WARN(BlackMagic SDI include files not found, sdi disabled)])
+ AC_LANG_POP(C++)
+ CPPFLAGS="${CPPFLAGS_save}"
+fi
+
+
dnl
dnl gnomeVFS access module
dnl
AC_LANG_POP(C++)
AM_CONDITIONAL(BUILD_MOZILLA,${mozilla})
-VLC_ADD_PLUGIN([sdi])
-
dnl
dnl Plugin and builtin checks
dnl