autotools: actually put the macro at the right place.

This commit is contained in:
Cedric BAIL 2014-08-27 23:22:10 +02:00
parent b50813f6e5
commit 49af128d5c
2 changed files with 9 additions and 10 deletions

View File

@ -271,16 +271,6 @@ fi
AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"])
### 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}])
### compilers
AC_PROG_MKDIR_P

View File

@ -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"`