summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2012-03-10 15:04:28 +0000
committerChase Douglas <chase.douglas@canonical.com>2012-03-12 15:15:14 -0700
commita02a9048a1b831d13d32413e2af429ac8d7a5c2b (patch)
treed72edf83e1eb1fbd6cf01326090f69cae6fc0dc0
parent299ae797eff46900e7d5914ff4502662f97f2062 (diff)
Don't use AS_ECHO in XORG_TESTSET_CFLAG
Further to commit 52ef6f6, since AS_ECHO isn't supported in autoconf 2.61 either, rewrite use of cache variable in XORG_TESTSET_CFLAG so 'echo' isn't needed at all. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Gaetan Nadon<memsize@videotron.ca> Reviewed-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
-rw-r--r--xorg-macros.m4.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in
index ee356e1..099825f 100644
--- a/xorg-macros.m4.in
+++ b/xorg-macros.m4.in
@@ -1551,15 +1551,15 @@ 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([xorg_cv_cc_flag_]flag[])`
- AC_CACHE_VAL(AS_TR_SH($cacheid),
+ cacheid=AS_TR_SH([xorg_cv_cc_flag_]flag[])
+ AC_CACHE_VAL($cacheid,
[AC_LINK_IFELSE([AC_LANG_PROGRAM([int i;])],
- [eval AS_TR_SH($cacheid)=yes],
- [eval AS_TR_SH($cacheid)=no])])
+ [eval $cacheid=yes],
+ [eval $cacheid=no])])
PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]"
- eval supported=$AS_TR_SH($cacheid)
+ eval supported=\$$cacheid
AC_MSG_RESULT([$supported])
if test "$supported" = "yes" ; then
$1="$$1 ]flag["