efl_binary.m4 | efl_binary.m4 | |||
---|---|---|---|---|
skipping to change at line 45 | skipping to change at line 45 | |||
UP[]_PRG=DOWN[${EXEEXT}] | UP[]_PRG=DOWN[${EXEEXT}] | |||
fi | fi | |||
AC_SUBST(UP[]_PRG) | AC_SUBST(UP[]_PRG) | |||
AM_CONDITIONAL(BUILD_[]UP, test "x$have_[]m4_defn([DOWN])" = "xyes") | AM_CONDITIONAL(BUILD_[]UP, test "x$have_[]m4_defn([DOWN])" = "xyes") | |||
AS_IF([test "x$have_[]m4_defn([DOWN])" = "xyes"], [$2], [$3]) | AS_IF([test "x$have_[]m4_defn([DOWN])" = "xyes"], [$2], [$3]) | |||
]) | ]) | |||
dnl Macro that check if a binary is built or not | ||||
dnl Usage: EFL_WITH_BIN(package, binary, default_value) | ||||
dnl Call AC_SUBST(_binary) (_binary is the lowercase of binary, - being tra | ||||
nsformed into _ by default, or the value set by the user) | ||||
AC_DEFUN([EFL_WITH_BIN], | ||||
[ | ||||
m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl | ||||
dnl configure option | ||||
AC_ARG_WITH([$2], | ||||
[AC_HELP_STRING([--with-$2=PATH], [specify a specific path to ]DOWN[ @<: | ||||
@default=$3@:>@])], | ||||
[_efl_with_binary=${withval}], | ||||
[_efl_with_binary=$(pkg-config --variable=prefix $1)/bin/$3]) | ||||
DOWN=${_efl_with_binary} | ||||
AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}]) | ||||
with_binary_[]m4_defn([DOWN])=${_efl_with_binary} | ||||
AC_SUBST(DOWN) | ||||
]) | ||||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 0 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |