summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-02-11 08:07:38 +0000
committerChris Michael <cp.michael@samsung.com>2014-02-28 13:09:08 +0000
commitb2ad8e401beb469c36196f5df9adb769a4a6efa5 (patch)
tree16f2e140bee78924cd1adcd89a5d1e668df7f9e0 /m4
parent437654c6b53f3f460e42cbf64c9bd981c7cd08e3 (diff)
evas-drm: Check for drm hw accel support in the drm engine
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'm4')
-rw-r--r--m4/evas_check_engine.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4
index 3fd4890..75aa868 100644
--- a/m4/evas_check_engine.m4
+++ b/m4/evas_check_engine.m4
@@ -585,6 +585,7 @@ AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
585 585
586]) 586])
587 587
588
588dnl use: EVAS_CHECK_ENGINE_DEP_DRM(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 589dnl use: EVAS_CHECK_ENGINE_DEP_DRM(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
589 590
590AC_DEFUN([EVAS_CHECK_ENGINE_DEP_DRM], 591AC_DEFUN([EVAS_CHECK_ENGINE_DEP_DRM],
@@ -603,6 +604,20 @@ PKG_CHECK_EXISTS([libdrm],
603 [have_dep="no"]) 604 [have_dep="no"])
604 605
605if test "x${have_dep}" = "xyes" ; then 606if test "x${have_dep}" = "xyes" ; then
607 if test "x${want_drm_hw_accel}" = "xyes"; then
608 PKG_CHECK_EXISTS([gbm egl >= 7.10 glesv2],
609 [
610 have_hw_dep="yes"
611 requirement="libdrm gbm egl >= 7.10 glesv2"
612 ],
613 [have_hw_dep="no"])
614 fi
615
616 if test "x${have_hw_dep}" = "xyes"; then
617 AC_DEFINE(HAVE_DRM_HW_ACCEL, 1, [Enabled drm hardware accelerated rendering])
618 fi
619 AM_CONDITIONAL([HAVE_DRM_HW_ACCEL], [test "x${have_hw_dep}" = "xyes"])
620
606 if test "x$3" = "xstatic" ; then 621 if test "x$3" = "xstatic" ; then
607 requirements_pc_evas="${requirement} ${requirements_pc_evas}" 622 requirements_pc_evas="${requirement} ${requirements_pc_evas}"
608 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}" 623 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"