summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
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])