summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2013-03-24 23:41:44 +0900
committerCedric Bail <cedric.bail@free.fr>2013-03-24 23:44:04 +0900
commit1737dab7ec9d4f66c4c1fa221d128f78041b1175 (patch)
treed781d9a2c1e697e1960a4271e1c5e679a334ddec /m4
parenta1c24625dd47c431c69df15fba3d843b61707ee0 (diff)
edje: work also when not cross compiling.
Diffstat (limited to 'm4')
-rw-r--r--m4/efl_binary.m414
1 files changed, 11 insertions, 3 deletions
diff --git a/m4/efl_binary.m4 b/m4/efl_binary.m4
index 9165eef..79d6a19 100644
--- a/m4/efl_binary.m4
+++ b/m4/efl_binary.m4
@@ -7,19 +7,27 @@ AC_DEFUN([EFL_WITH_BIN],
7[ 7[
8 8
9m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl 9m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl
10 10m4_pushdef([UP], m4_translit([[$2]], [-a-z], [_A-Z]))dnl
11dnl configure option 11dnl configure option
12 12
13AC_ARG_WITH([bin-$2], 13AC_ARG_WITH([bin-$2],
14 [AC_HELP_STRING([--with-bin-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=]DOWN[@:>@])], 14 [AC_HELP_STRING([--with-bin-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=]DOWN[@:>@])],
15 [_efl_with_binary=${withval}], 15 [
16 [_efl_with_binary="EFL_RUN_IN_TREE=1 $(top_builddir)/bin/$1/]DOWN") 16 _efl_with_binary=${withval}
17 _efl_binary_define="yes"
18 ],
19 [
20 _efl_with_binary=""
21 _efl_binary_define="no"
22 ]
23)
17 24
18DOWN=${_efl_with_binary} 25DOWN=${_efl_with_binary}
19AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}]) 26AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}])
20 27
21with_binary_[]m4_defn([DOWN])=${_efl_with_binary} 28with_binary_[]m4_defn([DOWN])=${_efl_with_binary}
22 29
30AM_CONDITIONAL(HAVE_[]UP, [test "${_efl_binary_define}" = "xyes"])
23AC_SUBST(DOWN) 31AC_SUBST(DOWN)
24 32
25]) 33])