summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--m4/evas_check_engine.m412
1 files changed, 10 insertions, 2 deletions
diff --git a/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4
index 4e2cec4833..d8bee0fe62 100644
--- a/m4/evas_check_engine.m4
+++ b/m4/evas_check_engine.m4
@@ -597,6 +597,12 @@ have_hw_dep="no"
597evas_engine_[]$1[]_cflags="" 597evas_engine_[]$1[]_cflags=""
598evas_engine_[]$1[]_libs="" 598evas_engine_[]$1[]_libs=""
599 599
600if test "x${with_opengl}" = "xes" ; then
601 gl_library="glesv2"
602else
603 gl_library="gl"
604fi
605
600PKG_CHECK_EXISTS([libdrm], 606PKG_CHECK_EXISTS([libdrm],
601 [ 607 [
602 have_dep="yes" 608 have_dep="yes"
@@ -605,14 +611,16 @@ PKG_CHECK_EXISTS([libdrm],
605 [have_dep="no"]) 611 [have_dep="no"])
606 612
607if test "x${have_dep}" = "xyes" ; then 613if test "x${have_dep}" = "xyes" ; then
614 AC_MSG_CHECKING([whether to enable Drm hardware acceleration])
608 if test "x${want_drm_hw_accel}" = "xyes" ; then 615 if test "x${want_drm_hw_accel}" = "xyes" ; then
609 PKG_CHECK_EXISTS([gbm egl >= 7.10 glesv2], 616 PKG_CHECK_EXISTS([egl >= 7.10 ${gl_library}],
610 [ 617 [
611 have_hw_dep="yes" 618 have_hw_dep="yes"
612 requirement="libdrm gbm egl >= 7.10 glesv2" 619 requirement +="egl >= 7.10 ${gl_library}"
613 ], 620 ],
614 [have_hw_dep="no"]) 621 [have_hw_dep="no"])
615 fi 622 fi
623 AC_MSG_RESULT([${have_hw_dep}])
616 624
617 if test "x${have_hw_dep}" = "xyes" ; then 625 if test "x${have_hw_dep}" = "xyes" ; then
618 AC_DEFINE(HAVE_DRM_HW_ACCEL, 1, [Enabled drm hardware accelerated rendering]) 626 AC_DEFINE(HAVE_DRM_HW_ACCEL, 1, [Enabled drm hardware accelerated rendering])