aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2014-08-27 23:22:10 +0200
committerCedric BAIL <cedric@osg.samsung.com>2014-08-27 23:22:57 +0200
commit49af128d5c1ddac5856a8c018bc2924715301a9b (patch)
tree458d36428d32193a04562d5b7340f76dfa541e30 /m4
parentautotools: provide BSD-echo compatibility (fix c++ bindings) (diff)
downloadefl-49af128d5c1ddac5856a8c018bc2924715301a9b.tar.gz
autotools: actually put the macro at the right place.
Diffstat (limited to 'm4')
-rw-r--r--m4/efl.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/m4/efl.m4 b/m4/efl.m4
index aa6de2afab..3598ce78fe 100644
--- a/m4/efl.m4
+++ b/m4/efl.m4
@@ -57,6 +57,15 @@ case "$TERM" in
;;
esac
+### echo compatibility
+
+## the BSD echo does not have the -e option (it is the default behaviour)
+echo_e=
+if test "`echo -e x`" = "x"; then
+ echo_e=-e
+fi
+AC_SUBST([ECHO_E], [${echo_e}])
+
if test "${want_color}" = "yes"; then
COLOR_YES=`echo $echo_e "\033@<:@1;32m"`
COLOR_NO=`echo $echo_e "\033@<:@1;31m"`