diff options
author | Chris Michael <cpmichael@osg.samsung.com> | 2016-05-03 13:30:18 -0400 |
---|---|---|
committer | Chris Michael <cpmichael@osg.samsung.com> | 2016-05-25 09:25:17 -0400 |
commit | bb583a94f84bad27ba10f055f190a91469085892 (patch) | |
tree | 3d9f8a45c50c92de09eb005171569240353c63c9 | |
parent | c21bced4f8aa2e758d9e001d4b0158fce5b33988 (diff) | |
download | enlightenment-bb583a94f84bad27ba10f055f190a91469085892.tar.gz |
add checks for building with Ecore_Drm2 support
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
-rw-r--r-- | configure.ac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index c602f3de89..9ff2d1ad1f 100644 --- a/configure.ac +++ b/configure.ac @@ -759,7 +759,16 @@ WL_DRM=false define([CHECK_MODULE_WL_DRM], [ if test "x${have_wayland}" = "xyes" ; then - AC_E_CHECK_PKG(WL_DRM, [ ecore-drm >= $efl_version ], [WL_DRM=true], [WL_DRM=false]) + PKG_CHECK_EXISTS([ecore-drm2 >= $efl_version], [have_ecore_drm2="yes"], [have_ecore_drm2="no"]) + if test "x${have_ecore_drm2}" = "xyes"; then + AC_E_CHECK_PKG(WL_DRM, [ ecore-drm2 >= $efl_version ecore >= $efl_version eina >= $efl_version ], + [ + WL_DRM=true + AC_DEFINE_UNQUOTED([HAVE_DRM2],[1],[enable ecore-drm2 support]) + ], [WL_DRM=false]) + else + AC_E_CHECK_PKG(WL_DRM, [ ecore-drm >= $efl_version ], [WL_DRM=true], [WL_DRM=false]) + fi else WL_DRM=false fi |