aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-02-12 13:51:29 +0000
committerChris Michael <cp.michael@samsung.com>2014-02-28 13:11:47 +0000
commit5fe4a20cf72b814b937b7d977ebf37034a2c781e (patch)
treea4c4091d117624ebdb134c4945e76a8d46829171 /m4
parentevas-drm: Rename drm hardware acceleration option (diff)
downloadefl-5fe4a20cf72b814b937b7d977ebf37034a2c781e.tar.gz
evas-drm: Add support for checking what GL library to use for drm hardware acceleration
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'm4')
-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"
evas_engine_[]$1[]_cflags=""
evas_engine_[]$1[]_libs=""
+if test "x${with_opengl}" = "xes" ; then
+ gl_library="glesv2"
+else
+ gl_library="gl"
+fi
+
PKG_CHECK_EXISTS([libdrm],
[
have_dep="yes"
@@ -605,14 +611,16 @@ PKG_CHECK_EXISTS([libdrm],
[have_dep="no"])
if test "x${have_dep}" = "xyes" ; then
+ AC_MSG_CHECKING([whether to enable Drm hardware acceleration])
if test "x${want_drm_hw_accel}" = "xyes" ; then
- PKG_CHECK_EXISTS([gbm egl >= 7.10 glesv2],
+ PKG_CHECK_EXISTS([egl >= 7.10 ${gl_library}],
[
have_hw_dep="yes"
- requirement="libdrm gbm egl >= 7.10 glesv2"
+ requirement +="egl >= 7.10 ${gl_library}"
],
[have_hw_dep="no"])
fi
+ AC_MSG_RESULT([${have_hw_dep}])
if test "x${have_hw_dep}" = "xyes" ; then
AC_DEFINE(HAVE_DRM_HW_ACCEL, 1, [Enabled drm hardware accelerated rendering])