aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-05-03 13:30:18 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-05-25 09:25:17 -0400
commitbb583a94f84bad27ba10f055f190a91469085892 (patch)
tree3d9f8a45c50c92de09eb005171569240353c63c9 /configure.ac
parentchange 'if' clause to make gcc-6 happy (diff)
downloadenlightenment-bb583a94f84bad27ba10f055f190a91469085892.tar.gz
add checks for building with Ecore_Drm2 support
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index c602f3de8..9ff2d1ad1 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