aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@gmail.com>2014-08-27 22:30:08 +0200
committerCedric BAIL <cedric@osg.samsung.com>2014-08-27 22:31:20 +0200
commitb50813f6e5025a84d0bb6d7b9e7d0cdfb0bf71f9 (patch)
tree04ecdd6564930c24385c8622e2671f50ab072338 /m4
parentEcore con: Fix some ecore con runtime issues on windows. (diff)
downloadefl-b50813f6e5025a84d0bb6d7b9e7d0cdfb0bf71f9.tar.gz
autotools: provide BSD-echo compatibility (fix c++ bindings)
Summary: The '-e' option does not exist in BSD-echo, nevertheless it behaves by default like the "echo -e" of the GNU-echo. Reviewers: raster, cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1376 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'm4')
-rw-r--r--m4/efl.m415
1 files changed, 4 insertions, 11 deletions
diff --git a/m4/efl.m4 b/m4/efl.m4
index f4ec1263d7..aa6de2afab 100644
--- a/m4/efl.m4
+++ b/m4/efl.m4
@@ -58,17 +58,10 @@ case "$TERM" in
esac
if test "${want_color}" = "yes"; then
- if test `echo -e x` = x; then
- echoopt=-e
- else
- echoopt=
- fi
-
- COLOR_YES=`echo $echoopt "\033@<:@1;32m"`
- COLOR_NO=`echo $echoopt "\033@<:@1;31m"`
- COLOR_OTHER=`echo $echoopt "\033@<:@1;36m"`
- COLOR_RESET=`echo $echoopt "\033@<:@0m"`
-
+ COLOR_YES=`echo $echo_e "\033@<:@1;32m"`
+ COLOR_NO=`echo $echo_e "\033@<:@1;31m"`
+ COLOR_OTHER=`echo $echo_e "\033@<:@1;36m"`
+ COLOR_RESET=`echo $echo_e "\033@<:@0m"`
else
COLOR_YES=""
COLOR_NO=""