2010-04-17 20:02:41 +02:00
|
|
|
AC_DEFUN([results], [
|
|
|
|
dnl This is a hack to allow "with" names, otherwise "enable".
|
2010-04-18 00:52:28 +02:00
|
|
|
num=`expr match $1 'with'`
|
2010-04-17 20:02:41 +02:00
|
|
|
if test "$num" != "0"; then
|
|
|
|
var="`echo '$'$1`"
|
|
|
|
else
|
|
|
|
var="`echo '$'enable_$1`"
|
|
|
|
fi
|
|
|
|
|
2010-04-18 00:52:28 +02:00
|
|
|
echo -n '('
|
2010-04-17 20:02:41 +02:00
|
|
|
if eval "test x$var = xyes"; then
|
2010-04-18 00:52:28 +02:00
|
|
|
echo -n '+'
|
|
|
|
elif test -n "$3" && eval "test x$var = x$3"; then
|
|
|
|
echo -n '+'
|
2010-04-17 20:02:41 +02:00
|
|
|
else
|
2010-04-18 00:52:28 +02:00
|
|
|
echo -n '-'
|
2010-04-17 20:02:41 +02:00
|
|
|
fi
|
|
|
|
echo -n "$2) "
|
|
|
|
])
|