configure.ac: added function MPD_AUTO_PRE
This function checks whether a prerequisite for a feature was found.
This commit is contained in:
parent
a6ed888f9f
commit
d23a23db10
@ -21,6 +21,21 @@ AC_DEFUN([MPD_AUTO_DISABLED], [
|
|||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
dnl Check whether a prerequisite for a feature was found. This is
|
||||||
|
dnl very similar to MPD_AUTO_RESULT, but does not finalize the
|
||||||
|
dnl detection; it assumes that more checks will follow.
|
||||||
|
AC_DEFUN([MPD_AUTO_PRE], [
|
||||||
|
name="$1"
|
||||||
|
var="enable_$1"
|
||||||
|
found="found_$name"
|
||||||
|
feature="$2"
|
||||||
|
msg="$3"
|
||||||
|
|
||||||
|
if eval "test x`echo '$'$var` != xno" && eval "test x`echo '$'$found` = xno"; then
|
||||||
|
MPD_AUTO_DISABLED([$name], [$feature], [$msg])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
AC_DEFUN([MPD_AUTO_RESULT], [
|
AC_DEFUN([MPD_AUTO_RESULT], [
|
||||||
name="$1"
|
name="$1"
|
||||||
var="enable_$1"
|
var="enable_$1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user