diff options
author | Lubosz Sarnecki <lubosz.sarnecki@collabora.co.uk> | 2015-10-02 13:31:39 +0200 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2015-12-18 15:56:34 -0500 |
commit | 41738ca83b63c911e6b90f1dbce748830282031b (patch) | |
tree | 3efe7bccbc7ea7edc20246e757ebefc29ffd123d /configure.ac | |
parent | ebeae8bcdba7de275c18c866ac90cee0c5c56407 (diff) | |
download | gstreamer-plugins-bad-41738ca83b63c911e6b90f1dbce748830282031b.tar.gz |
build: Add dmabuf build condition.
configure.ac: Build dmabuf when EGL and drm_fourcc.h is available.
gl: Link gst-allocators.
https://bugzilla.gnome.org/show_bug.cgi?id=743345
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 0119ec224..7334de5a1 100644 --- a/configure.ac +++ b/configure.ac @@ -813,6 +813,21 @@ else fi fi +dnl check for DMABUF support +HAVE_DRM_FOURCC_HEADER=no +AC_CHECK_HEADER(libdrm/drm_fourcc.h, + HAVE_DRM_FOURCC_HEADER=yes, ) + +HAVE_GST_ALLOCATORS=no +PKG_CHECK_MODULES(GST_ALLOCATORS, gstreamer-allocators-1.0, + HAVE_GST_ALLOCATORS=yes, ) + +if test "x$HAVE_DRM_FOURCC_HEADER" = "xyes" -a \ + "x$HAVE_GST_ALLOCATORS" = "xyes" -a \ + "x$HAVE_EGL" = "xyes"; then + AC_DEFINE(GST_GL_HAVE_DMABUF, [1] , [DMABUF available for gl plugins]) +fi + dnl check if we can include both GL and GLES2 at the same time if test "x$HAVE_GL" = "xyes" -a "x$HAVE_GLES2" = "xyes"; then GL_INCLUDES=" |