[PATCH util/macros] Use AS_ECHO rather than AS_ECHO_N

Jon TURNEY jon.turney at dronecode.org.uk
Tue Feb 14 13:59:38 PST 2012


The AS_ECHO_N macro was only introduced in autoconf 2.62.
Backticks remove trailing newlines, so we don't need to use echo -n

Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
---
 xorg-macros.m4.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in
index 9e6acf5..8550ca0 100644
--- a/xorg-macros.m4.in
+++ b/xorg-macros.m4.in
@@ -1495,7 +1495,7 @@ m4_foreach([flag], m4_cdr($@), [
 
 dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname
 		AC_MSG_CHECKING([if $CC supports ]flag[])
-		cacheid=`AS_ECHO_N([xorg_cv_cc_flag_]flag[])`
+		cacheid=`AS_ECHO([xorg_cv_cc_flag_]flag[])`
 		AC_CACHE_VAL(AS_TR_SH($cacheid),
 			     [AC_LINK_IFELSE([AC_LANG_PROGRAM([int i;])],
 					     [eval AS_TR_SH($cacheid)=yes],
-- 
1.7.9


--------------060408040803060500000403--


More information about the xorg-devel mailing list