diff --git a/configure.ac b/configure.ac index 3ef01b0021..17fdc202bf 100644 --- a/configure.ac +++ b/configure.ac @@ -143,6 +143,7 @@ AC_ARG_WITH([dbus-services], [dbusservicedir=$withval]) AC_SUBST(dbusservicedir) +efl_deprecated_option="no" EFL_WITH_BIN([edje], [edje-cc]) @@ -4367,3 +4368,15 @@ if test "x$prefix" != "x/usr"; then echo "" echo "#-------------------------------------------------------------------#" fi + +if test "x${efl_deprecated_option}" = "xyes"; then + echo "" + echo "#-------------------------------------------------------------------#" + echo "##==-- ALERT --==##" + echo "#-------------------------------------------------------------------#" + echo "" + echo " Your build script is using a deprecated option. It will get b0rken" + echo "with the next release of EFL. You better update it now than later." + echo "" + echo "#-------------------------------------------------------------------#" +fi diff --git a/m4/efl_binary.m4 b/m4/efl_binary.m4 index 2d0aea7d97..a86a41d101 100644 --- a/m4/efl_binary.m4 +++ b/m4/efl_binary.m4 @@ -10,17 +10,23 @@ 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 +_efl_with_binary="" +_efl_binary_define="no" + AC_ARG_WITH([$2], [AC_HELP_STRING([--with-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=]DOWN[@:>@])], [ _efl_with_binary=${withval} _efl_binary_define="yes" - ], + ], []) + +AC_ARG_WITH([bin-$2], + [AC_HELP_STRING([--with-bin-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=]DOWN[@:>@ DEPRECATED])], [ - _efl_with_binary="" - _efl_binary_define="no" - ] -) + _efl_with_binary=${withval} + _efl_binary_define="yes" + efl_deprecated_option="yes" + ], []) DOWN=${_efl_with_binary} AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}])