summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2013-03-24 13:00:55 +0100
committerCedric Bail <cedric.bail@free.fr>2013-03-24 22:59:44 +0900
commit0fbe8161ba21906b0eb504049e534edc220b6196 (patch)
tree1176ca70fd2e8cc293c68b167afbb548cc885c2e /m4
parent77e557e7e5e19ab1e76a3635266eb7e1a6584e7d (diff)
edje: add option to enable theme compilation when cross compiling
Diffstat (limited to 'm4')
-rw-r--r--m4/efl_binary.m425
1 files changed, 25 insertions, 0 deletions
diff --git a/m4/efl_binary.m4 b/m4/efl_binary.m4
new file mode 100644
index 0000000..9165eef
--- /dev/null
+++ b/m4/efl_binary.m4
@@ -0,0 +1,25 @@
1
2
3dnl Usage: EFL_WITH_BIN(package, binary)
4dnl Call AC_SUBST(_binary) (_binary is the lowercase of binary, - being transformed into _ by default, or the value set by the user)
5
6AC_DEFUN([EFL_WITH_BIN],
7[
8
9m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl
10
11dnl configure option
12
13AC_ARG_WITH([bin-$2],
14 [AC_HELP_STRING([--with-bin-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=]DOWN[@:>@])],
15 [_efl_with_binary=${withval}],
16 [_efl_with_binary="EFL_RUN_IN_TREE=1 $(top_builddir)/bin/$1/]DOWN")
17
18DOWN=${_efl_with_binary}
19AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}])
20
21with_binary_[]m4_defn([DOWN])=${_efl_with_binary}
22
23AC_SUBST(DOWN)
24
25])