aboutsummaryrefslogtreecommitdiffstats
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
parenteio: fix a typos. (diff)
downloadefl-1737dab7ec9d4f66c4c1fa221d128f78041b1175.tar.gz
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 9165eef64f..79d6a193b2 100644
--- a/m4/efl_binary.m4
+++ b/m4/efl_binary.m4
@@ -7,19 +7,27 @@ AC_DEFUN([EFL_WITH_BIN],
[
m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl
-
+m4_pushdef([UP], m4_translit([[$2]], [-a-z], [_A-Z]))dnl
dnl configure option
AC_ARG_WITH([bin-$2],
[AC_HELP_STRING([--with-bin-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=]DOWN[@:>@])],
- [_efl_with_binary=${withval}],
- [_efl_with_binary="EFL_RUN_IN_TREE=1 $(top_builddir)/bin/$1/]DOWN")
+ [
+ _efl_with_binary=${withval}
+ _efl_binary_define="yes"
+ ],
+ [
+ _efl_with_binary=""
+ _efl_binary_define="no"
+ ]
+)
DOWN=${_efl_with_binary}
AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}])
with_binary_[]m4_defn([DOWN])=${_efl_with_binary}
+AM_CONDITIONAL(HAVE_[]UP, [test "${_efl_binary_define}" = "xyes"])
AC_SUBST(DOWN)
])