summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2011-06-04 18:43:45 -0700
committerDavid Schleef <ds@schleef.org>2011-06-04 19:01:16 -0700
commit655e511a5c1704df907eaa62d6d9a6d32d2fd032 (patch)
tree383b246e0f5940e22e2e2f3f49f2730a4dd515d9 /configure.ac
parent7b12d4647a8a6a549143cdb6afa9294d1192efda (diff)
downloadgstreamer-plugins-bad-655e511a5c1704df907eaa62d6d9a6d32d2fd032.tar.gz
d3dvideosink: Add plugin
Fixes #651782. Patch from various authors, by way of ossbuild.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac39
1 files changed, 39 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 617e07e6b..772f45310 100644
--- a/configure.ac
+++ b/configure.ac
@@ -454,6 +454,44 @@ int main ()
AC_SUBST(HAVE_DIRECTSOUND)
])
+dnl Direct3D
+translit(dnm, m, l) AM_CONDITIONAL(USE_DIRECT3D, true)
+AG_GST_CHECK_FEATURE(DIRECT3D, [Direct3D plug-in], direct3dsink, [
+ HAVE_DIRECT3D="no"
+ save_CFLAGS="$CFLAGS"
+ save_LDFLAGS="$LDFLAGS"
+ save_LIBS="$LIBS"
+ CFLAGS="$CFLAGS $DIRECTX_CFLAGS"
+ LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
+ LIBS="$LIBS -ld3d -lgdi32"
+ AC_MSG_CHECKING(for Direct3D LDFLAGS)
+ AC_LINK_IFELSE([
+#include <windows.h>
+#include <d3d.h>
+
+int main ()
+{
+ GetStockObject(0);
+ Direct3DCreate(NULL, NULL, NULL);
+
+ return 0;
+}
+],
+ [HAVE_DIRECT3D="yes"],
+ [HAVE_DIRECT3D="no"])
+ AC_MSG_RESULT($HAVE_DIRECT3D)
+ CFLAGS=$save_CFLAGS
+ LDFLAGS=$save_LDFLAGS
+ LIBS=$save_LIBS
+
+ if test "x$HAVE_DIRECT3D" = "xyes"; then
+ dnl this is much more than we want
+ DIRECT3D_LIBS="-ld3d -ldxguid -lgdi32"
+ AC_SUBST(DIRECT3D_LIBS)
+ fi
+ AC_SUBST(HAVE_DIRECT3D)
+])
+
dnl DirectDraw
translit(dnm, m, l) AM_CONDITIONAL(USE_DIRECTDRAW, true)
AG_GST_CHECK_FEATURE(DIRECTDRAW, [DirectDraw plug-in], directdrawsink, [
@@ -1888,6 +1926,7 @@ sys/acmenc/Makefile
sys/acmmp3dec/Makefile
sys/applemedia/Makefile
sys/avc/Makefile
+sys/d3dvideosink/Makefile
sys/decklink/Makefile
sys/directdraw/Makefile
sys/directsound/Makefile