aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-04-29 11:54:26 +0100
committerChris Michael <cp.michael@samsung.com>2013-04-29 11:54:26 +0100
commit27c593afa98fb30b33378c9102a56ee4440bf46b (patch)
tree6e0479b61f40a084ca0da5b2f0f8ac8d7ce209f8 /m4
parentWhen we free the swap buffer, do Not munmap the buffer data. (diff)
downloadefl-27c593afa98fb30b33378c9102a56ee4440bf46b.tar.gz
Add EVAS_CHECK_ENGINE_DEP_DRM to m4
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'm4')
-rw-r--r--m4/evas_check_engine.m435
1 files changed, 35 insertions, 0 deletions
diff --git a/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4
index 5e6655ccf5..907bc8c155 100644
--- a/m4/evas_check_engine.m4
+++ b/m4/evas_check_engine.m4
@@ -585,6 +585,41 @@ AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
])
+dnl use: EVAS_CHECK_ENGINE_DEP_DRM(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
+
+AC_DEFUN([EVAS_CHECK_ENGINE_DEP_DRM],
+[
+
+requirement=""
+have_dep="no"
+evas_engine_[]$1[]_cflags=""
+evas_engine_[]$1[]_libs=""
+
+PKG_CHECK_EXISTS([libdrm],
+ [
+ have_dep="yes"
+ requirement="libdrm"
+ ],
+ [have_dep="no"])
+
+if test "x${have_dep}" = "xyes" ; then
+ if test "x$3" = "xstatic" ; then
+ requirements_pc_evas="${requirement} ${requirements_pc_evas}"
+ requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
+ else
+ PKG_CHECK_MODULES([DRM], [${requirement}])
+ evas_engine_[]$1[]_cflags="${DRM_CFLAGS}"
+ evas_engine_[]$1[]_libs="${DRM_LIBS}"
+ fi
+fi
+
+AC_SUBST([evas_engine_$1_cflags])
+AC_SUBST([evas_engine_$1_libs])
+
+AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
+
+])
+
dnl use: EVAS_ENGINE(name, want_engine, [DEPENDENCY-CHECK-CODE])
dnl