aboutsummaryrefslogtreecommitdiffstats
path: root/m4/pretty_print.m4
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-01-07 23:52:23 +0100
committerMax Kellermann <max@duempel.org>2011-01-07 23:52:23 +0100
commit1a2ea4c06cd9fd648bb0243a0dfd9e0b960a6788 (patch)
tree8a13ed86728b59caebd86dc7a1287c234b4985f1 /m4/pretty_print.m4
parenta800afcbf8845df0edc6aee3bb48036bba34e255 (diff)
parent8c0afd8557b1823e2df94c9f4de90c29eafbf035 (diff)
downloadmpd-1a2ea4c06cd9fd648bb0243a0dfd9e0b960a6788.tar.gz
mpd-1a2ea4c06cd9fd648bb0243a0dfd9e0b960a6788.tar.xz
mpd-1a2ea4c06cd9fd648bb0243a0dfd9e0b960a6788.zip
Merge branch 'v0.16.x'
Conflicts: NEWS configure.ac
Diffstat (limited to 'm4/pretty_print.m4')
-rw-r--r--m4/pretty_print.m412
1 files changed, 6 insertions, 6 deletions
diff --git a/m4/pretty_print.m4 b/m4/pretty_print.m4
index a22357a8d..687dceefe 100644
--- a/m4/pretty_print.m4
+++ b/m4/pretty_print.m4
@@ -1,19 +1,19 @@
AC_DEFUN([results], [
dnl This is a hack to allow "with" names, otherwise "enable".
- num=`expr match $1 'with'`
+ num=`expr $1 : 'with'`
if test "$num" != "0"; then
var="`echo '$'$1`"
else
var="`echo '$'enable_$1`"
fi
- echo -n '('
+ printf '('
if eval "test x$var = xyes"; then
- echo -n '+'
+ printf '+'
elif test -n "$3" && eval "test x$var = x$3"; then
- echo -n '+'
+ printf '+'
else
- echo -n '-'
+ printf '-'
fi
- echo -n "$2) "
+ printf '%s) ' "$2"
])