summaryrefslogtreecommitdiff
path: root/m4/ecore_check_module.m4
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-07 17:18:17 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-07 17:18:17 +0000
commit892c64297ece6c9f1ef1bbb8cdd0355de69133ec (patch)
treedf933358ff4cdf5ca9491c8acf9f1e8a9b9b9c59 /m4/ecore_check_module.m4
parent65507985183367fc2376daddaa366630fae81431 (diff)
efl: begin (still partial!) to make an uniform choice of engines ecore/evas
still lots to do, but some improvements: - ecore_evas does not inherit pkg-config from modules since modules are SO - renamed internal ecore evas define from SOFTWARE_BUFFER to BUFFER, to make consistent. SVN revision: 80473
Diffstat (limited to 'm4/ecore_check_module.m4')
-rw-r--r--m4/ecore_check_module.m424
1 files changed, 24 insertions, 0 deletions
diff --git a/m4/ecore_check_module.m4 b/m4/ecore_check_module.m4
index 8d0d76bf3c..2ceda79441 100644
--- a/m4/ecore_check_module.m4
+++ b/m4/ecore_check_module.m4
@@ -48,6 +48,30 @@ m4_popdef([UP])
48m4_popdef([DOWN]) 48m4_popdef([DOWN])
49]) 49])
50 50
51dnl use: ECORE_EVAS_MODULE(name, want, [DEPENDENCY-CHECK-CODE])
52AC_DEFUN([ECORE_EVAS_MODULE],
53[
54m4_pushdef([UP], m4_translit([[$1]], [-a-z], [_A-Z]))dnl
55m4_pushdef([DOWN], m4_translit([[$1]], [-A-Z], [_a-z]))dnl
56
57have_ecore_evas_[]m4_defn([DOWN])="no"
58want_module="$2"
59
60if test "x$have_ecore_evas" = "xyes"; then
61 if test "x$want_module" = "xyes" || test "x$want_module" = "xstatic"; then
62 $3
63
64 AC_DEFINE([BUILD_ECORE_EVAS_]m4_defn([UP]), [1], [Support for $1 Engine in Ecore_Evas])
65 have_ecore_evas_[]m4_defn([DOWN])="yes"
66 fi
67fi
68
69AM_CONDITIONAL([BUILD_ECORE_EVAS_]UP, [test "x$have_ecore_evas_]m4_defn([DOWN])[" = "xyes"])
70
71m4_popdef([UP])
72m4_popdef([DOWN])
73])
74
51dnl use: ECORE_EVAS_CHECK_MODULE_FULL(foo-bar, evas-module, want, description, backend[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 75dnl use: ECORE_EVAS_CHECK_MODULE_FULL(foo-bar, evas-module, want, description, backend[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
52AC_DEFUN([ECORE_EVAS_CHECK_MODULE_FULL], 76AC_DEFUN([ECORE_EVAS_CHECK_MODULE_FULL],
53[ 77[