]> git.sesse.net Git - vlc/commitdiff
Add an autoconf check for the BlackMagic SDK.
authorSteinar Gunderson <sgunderson@bigfoot.com>
Sat, 25 Sep 2010 16:43:31 +0000 (18:43 +0200)
committerSteinar Gunderson <sgunderson@bigfoot.com>
Sat, 25 Sep 2010 16:43:31 +0000 (18:43 +0200)
configure.ac

index 0d38fa9f68a01919dd812e9019bd812bbf22ad86..28f9d0d92464925612692c5021e6d98aa27159bb 100644 (file)
@@ -2133,6 +2133,29 @@ then
   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
@@ -4452,8 +4475,6 @@ fi
 AC_LANG_POP(C++)
 AM_CONDITIONAL(BUILD_MOZILLA,${mozilla})
 
-VLC_ADD_PLUGIN([sdi])
-
 dnl
 dnl  Plugin and builtin checks
 dnl