pretty_print.m4 369 Bytes
Newer Older
1 2
AC_DEFUN([results], [
	dnl This is a hack to allow "with" names, otherwise "enable".
3
	num=`expr $1 : 'with'`
4 5 6 7 8 9
	if test "$num" != "0"; then
		var="`echo '$'$1`"
	else
		var="`echo '$'enable_$1`"
	fi

10
	printf '('
11
	if eval "test x$var = xyes"; then
12
		printf '+'
13
	elif test -n "$3" && eval "test x$var = x$3"; then
14
		printf '+'
15
	else
16
		printf '-'
17
	fi
18
	printf '%s) ' "$2"
19
])