configure.ac: Add optional third variable to results.
Add optional third value to results() to allow for non "yes" answers which are considered positive.
This commit is contained in:
parent
6ed69e6395
commit
615ccd1070
@ -1478,7 +1478,7 @@ results(mad, [MAD])
|
|||||||
results(mpg123, [MPG123])
|
results(mpg123, [MPG123])
|
||||||
results(mp4, [MP4])
|
results(mp4, [MP4])
|
||||||
results(mpc, [Musepack])
|
results(mpc, [Musepack])
|
||||||
results(oggflac, [OggFLAC])
|
results(oggflac, [OggFLAC], flac)
|
||||||
echo -ne '\n\t'
|
echo -ne '\n\t'
|
||||||
results(with_tremor, [OggTremor])
|
results(with_tremor, [OggTremor])
|
||||||
results(vorbis, [OggVorbis])
|
results(vorbis, [OggVorbis])
|
||||||
|
@ -1,17 +1,19 @@
|
|||||||
AC_DEFUN([results], [
|
AC_DEFUN([results], [
|
||||||
dnl This is a hack to allow "with" names, otherwise "enable".
|
dnl This is a hack to allow "with" names, otherwise "enable".
|
||||||
num=`expr match $1 "with"`
|
num=`expr match $1 'with'`
|
||||||
if test "$num" != "0"; then
|
if test "$num" != "0"; then
|
||||||
var="`echo '$'$1`"
|
var="`echo '$'$1`"
|
||||||
else
|
else
|
||||||
var="`echo '$'enable_$1`"
|
var="`echo '$'enable_$1`"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n "("
|
echo -n '('
|
||||||
if eval "test x$var = xyes"; then
|
if eval "test x$var = xyes"; then
|
||||||
echo -n "+"
|
echo -n '+'
|
||||||
|
elif test -n "$3" && eval "test x$var = x$3"; then
|
||||||
|
echo -n '+'
|
||||||
else
|
else
|
||||||
echo -n "-"
|
echo -n '-'
|
||||||
fi
|
fi
|
||||||
echo -n "$2) "
|
echo -n "$2) "
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user