aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-04 02:08:14 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-04 02:08:14 +0000
commit9ea2ce1041549c90f94062ce5ec145056e7fbdfa (patch)
tree3bcd3fb016bc498a72ff99c8d67c8b7ef2d91718 /m4
parente2ce20e9a4dfd12bb383a1b60032f2ef7b507850 (diff)
downloadefl-9ea2ce1041549c90f94062ce5ec145056e7fbdfa.tar.gz
efl-9ea2ce1041549c90f94062ce5ec145056e7fbdfa.tar.xz
efl-9ea2ce1041549c90f94062ce5ec145056e7fbdfa.zip
efl: merge edje.
this is still in progress, mostly the multisense stuff is pending. it seems that when we merge ecore_audio in edje the libremix and similar are gone, at least from Edje, and will be in ecore_audio itself (or pulseaudio). Changes: * __UNUSED__ to EINA_UNUSED * binaries (epp, embryo_cc, edje_cc) now consider EFL_RUN_IN_TREE and will assume the binaries are still not installed, running from build tree location (needs more testing, maybe doesn't work with srcdir != builddir, still doesn't solve cross compile builds) SVN revision: 82139
Diffstat (limited to 'm4')
-rw-r--r--m4/efl_lua.m426
1 files changed, 26 insertions, 0 deletions
diff --git a/m4/efl_lua.m4 b/m4/efl_lua.m4
new file mode 100644
index 000000000..61eccf119
--- /dev/null
+++ b/m4/efl_lua.m4
@@ -0,0 +1,26 @@
+dnl EFL_CHECK_LUA_5_1(EFL)
+dnl checks for lua5.1 in pkg-config (multiple names) and -llua directly
+dnl will call EFL_ADD_LIBS() or EFL_DEPEND_PKG() as required.
+dnl this is a strict call and will abort if lua is not found
+AC_DEFUN([EFL_CHECK_LUA_5_1],
+[dnl
+requirement_lua=""
+PKG_CHECK_EXISTS([lua >= 5.1.0], [requirement_lua="lua >= 5.1.0"],
+ [PKG_CHECK_EXISTS([lua5.1 >= 5.1.0], [requirement_lua="lua5.1 >= 5.1.0"],
+ [PKG_CHECK_EXISTS([lua-5.1 >= 5.1.0], [requirement_lua="lua-5.1 >= 5.1.0"],
+ [PKG_CHECK_EXISTS([lua51 >= 5.1.0], [requirement_lua="lua51 >= 5.1.0"])])])])
+
+if test "x${requirement_lua}" = "x"; then
+ AC_MSG_CHECKING([whether lua_newstate() is in liblua])
+ AC_CHECK_LIB([lua], [lua_newstate],
+ [have_lua="yes"
+ EFL_ADD_LIBS([$1], [-llua])],
+ [have_lua="no"])
+ AC_MSG_RESULT([${have_lua}])
+ if test "${have_lua}" = "no"; then
+ AC_MSG_ERROR([Missing lua 5.1 support])
+ fi
+else
+ EFL_DEPEND_PKG([$1], [LUA], [${requirement_lua}])
+fi
+])