summaryrefslogtreecommitdiff
path: root/m4/ecore_check_module.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/ecore_check_module.m4')
-rw-r--r--m4/ecore_check_module.m435
1 files changed, 0 insertions, 35 deletions
diff --git a/m4/ecore_check_module.m4 b/m4/ecore_check_module.m4
deleted file mode 100644
index 8fdec9b..0000000
--- a/m4/ecore_check_module.m4
+++ /dev/null
@@ -1,35 +0,0 @@
1dnl use: ECORE_EVAS_MODULE(name, want, [DEPENDENCY-CHECK-CODE])
2AC_DEFUN([ECORE_EVAS_MODULE],
3[dnl
4m4_pushdef([UP], m4_translit([[$1]], [-a-z], [_A-Z]))dnl
5m4_pushdef([DOWN], m4_translit([[$1]], [-A-Z], [_a-z]))dnl
6
7have_ecore_evas_[]m4_defn([DOWN])="no"
8want_module="$2"
9
10ecore_evas_engines_[]m4_defn([DOWN])[]_cflags=""
11ecore_evas_engines_[]m4_defn([DOWN])[]_libs=""
12
13if test "x$want_module" = "xyes" || test "x$want_module" = "xstatic"; then
14 $3
15
16 AC_DEFINE([BUILD_ECORE_EVAS_]m4_defn([UP]), [1], [Support for $1 Engine in Ecore_Evas])
17 have_ecore_evas_[]m4_defn([DOWN])="yes"
18
19 case "$1" in
20 xgl-drm)
21 PKG_CHECK_MODULES([GBM], [gbm])
22 ecore_evas_engines_[]m4_defn([DOWN])[]_cflags="${GBM_CFLAGS}"
23 ecore_evas_engines_[]m4_defn([DOWN])[]_libs="${GBM_LIBS}"
24 ;;
25 esac
26fi
27
28AC_SUBST([ecore_evas_engines_]m4_defn([DOWN])[_cflags])
29AC_SUBST([ecore_evas_engines_]m4_defn([DOWN])[_libs])
30
31EFL_ADD_FEATURE([ECORE_EVAS], [$1], [${want_module}])dnl
32AM_CONDITIONAL([BUILD_ECORE_EVAS_]UP, [test "x$have_ecore_evas_]m4_defn([DOWN])[" = "xyes"])dnl
33m4_popdef([UP])dnl
34m4_popdef([DOWN])dnl
35])