diff options
author | Avuton Olrich <avuton@gmail.com> | 2010-04-17 11:02:41 -0700 |
---|---|---|
committer | Avuton Olrich <avuton@gmail.com> | 2010-04-21 12:23:37 -0700 |
commit | b135483abc85f14b14015d2ea66bababbb67abcc (patch) | |
tree | 724573ad6242e9a91b2e8ae91784fd1165a7c050 /m4 | |
parent | ba36cbde06b35ae27cf2e1435e9cab3197930ebb (diff) | |
download | mpd-b135483abc85f14b14015d2ea66bababbb67abcc.tar.gz mpd-b135483abc85f14b14015d2ea66bababbb67abcc.tar.xz mpd-b135483abc85f14b14015d2ea66bababbb67abcc.zip |
configure.ac: New pretty print results menu.
This commit adds a new pretty print menu, we've (far) outgrown the old
menu which because hard to traverse.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/pretty_print.m4 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/m4/pretty_print.m4 b/m4/pretty_print.m4 new file mode 100644 index 000000000..37efe5de1 --- /dev/null +++ b/m4/pretty_print.m4 @@ -0,0 +1,17 @@ +AC_DEFUN([results], [ + dnl This is a hack to allow "with" names, otherwise "enable". + num=`expr match $1 "with"` + if test "$num" != "0"; then + var="`echo '$'$1`" + else + var="`echo '$'enable_$1`" + fi + + echo -n "(" + if eval "test x$var = xyes"; then + echo -n "+" + else + echo -n "-" + fi + echo -n "$2) " +]) |