aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-06-12 15:20:18 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-06-12 15:20:18 +0100
commit9a4deeafe2cf4f5972bf8e777a059b1a6dda0f52 (patch)
tree18404f9ded1414f371118d76d02f41bcd631f94e /m4
parentelua: use --with-elua instead of --with-elua-bin (diff)
downloadefl-9a4deeafe2cf4f5972bf8e777a059b1a6dda0f52.tar.gz
m4: EFL_WITH_BIN_SUFFIX, make use of it in configure.ac
Diffstat (limited to 'm4')
-rw-r--r--m4/efl_binary.m415
1 files changed, 9 insertions, 6 deletions
diff --git a/m4/efl_binary.m4 b/m4/efl_binary.m4
index a86a41d101..3a811f8c11 100644
--- a/m4/efl_binary.m4
+++ b/m4/efl_binary.m4
@@ -1,9 +1,7 @@
-
-
-dnl Usage: EFL_WITH_BIN(package, binary)
+dnl Usage: EFL_WITH_BIN_SUFFIX(package, binary, suffix)
dnl Call AC_SUBST(_binary) (_binary is the lowercase of binary, - being transformed into _ by default, or the value set by the user)
-AC_DEFUN([EFL_WITH_BIN],
+AC_DEFUN([EFL_WITH_BIN_SUFFIX],
[
m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl
@@ -31,9 +29,14 @@ AC_ARG_WITH([bin-$2],
DOWN=${_efl_with_binary}
AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}])
-with_binary_[]m4_defn([DOWN])=${_efl_with_binary}
+with_binary_[]m4_defn([DOWN])[]$3=${_efl_with_binary}
-AM_CONDITIONAL(HAVE_[]UP, [test "x${_efl_binary_define}" = "xyes"])
+AM_CONDITIONAL(HAVE_[]UP[]m4_translit([[$3]], [a-z], [A-Z]), [test "x${_efl_binary_define}" = "xyes"])
AC_SUBST(DOWN)
])
+
+dnl Usage: EFL_WITH_BIN(package, binary)
+dnl Call AC_SUBST(_binary) (_binary is the lowercase of binary, - being transformed into _ by default, or the value set by the user)
+
+AC_DEFUN([EFL_WITH_BIN], [EFL_WITH_BIN_SUFFIX([$1], [$2], [])])