From b135483abc85f14b14015d2ea66bababbb67abcc Mon Sep 17 00:00:00 2001 From: Avuton Olrich Date: Sat, 17 Apr 2010 11:02:41 -0700 Subject: 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. --- m4/pretty_print.m4 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 m4/pretty_print.m4 (limited to 'm4') diff --git a/m4/pretty_print.m4 b/m4/pretty_print.m4 new file mode 100644 index 00000000..37efe5de --- /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) " +]) -- cgit v1.2.3