cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=868202349ab7161e4a4aabc1d6cd153084d82d59

commit 868202349ab7161e4a4aabc1d6cd153084d82d59
Author: Cedric Bail <[email protected]>
Date:   Fri Feb 21 22:13:00 2014 +0900

    autotools: add supported for deprecated option.
---
 configure.ac     | 13 +++++++++++++
 m4/efl_binary.m4 | 16 +++++++++++-----
 2 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3ef01b0..17fdc20 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 2d0aea7..a86a41d 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}])

-- 


Reply via email to