diff options
author | James Thomas <james.thomas@codethink.co.uk> | 2014-06-20 12:42:32 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-07-18 08:52:58 +0000 |
commit | 2e5232b980eaa1074023a65dd7941e80b72a763c (patch) | |
tree | 3d5e8866d90a99ad36b6dd06117ddf4371449027 /configure.ac | |
parent | 6b49b4ed82e4e0aa096a7dcaf47ef6e0b9531703 (diff) | |
download | weston-2e5232b980eaa1074023a65dd7941e80b72a763c.tar.gz |
compositor-drm: Add support for Tegra Jetson TK1baserock/weston-1.11.0/tegra
Update configure.ac to add check for libdrm_tegra
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 97a77694..fbb2c8cf 100644 --- a/configure.ac +++ b/configure.ac @@ -133,6 +133,23 @@ fi PKG_CHECK_MODULES(LIBDRM, [libdrm], [AC_DEFINE(HAVE_LIBDRM, 1, [Define if libdrm is available]) have_libdrm=yes], have_libdrm=no) +AC_ARG_ENABLE(libdrm-tegra, + AS_HELP_STRING([--disable-libdrm-tegra], + [do not build support for nvidia Jetson TK1]),, + enable_libdrm_tegra=auto) + +if test "x$enable_libdrm_tegra" != "xno"; then + PKG_CHECK_MODULES(LIBDRM_TEGRA, + libdrm_tegra, + have_libdrm_tegra=yes, + have_libdrm_tegra=no) + if test "x$have_libdrm_tegra" = "xno" -a "x$enable_libdrm_tegra" = "xyes"; then + AC_MSG_ERROR([Tegra support explicitly requested, but libdrm_tegra not found]) + fi + AS_IF([test "x$have_libdrm_tegra" = "xyes"], + AC_DEFINE([HAVE_DRM_TEGRA], [1], [Enable tegra support in drm backend])) +fi + AC_ARG_ENABLE(x11-compositor, [ --enable-x11-compositor],, enable_x11_compositor=yes) AM_CONDITIONAL(ENABLE_X11_COMPOSITOR, test x$enable_x11_compositor = xyes) @@ -699,4 +716,5 @@ AC_MSG_RESULT([ libwebp Support ${have_webp} libunwind Support ${have_libunwind} VA H.264 encoding Support ${have_libva} + Tegra DRM Support ${have_libdrm_tegra} ]) |