m4/mpd_depends.m4: print warning when disabling the feature
This commit is contained in:
@@ -2,13 +2,14 @@ dnl Declare a dependency of one feature on another. If the depending
|
||||
dnl feature is disabled, the former must be disabled as well. If the
|
||||
dnl former was explicitly enabled, abort with an error message.
|
||||
dnl
|
||||
dnl Parameters: varname1, varname2 (=dependency), errmsg
|
||||
dnl Parameters: varname1, varname2 (=dependency), description, errmsg
|
||||
AC_DEFUN([MPD_DEPENDS], [
|
||||
if test x$$2 = xno; then
|
||||
if test x$$1 = xauto; then
|
||||
AC_MSG_WARN([$4: disabling $3])
|
||||
$1=no
|
||||
elif test x$$1 = xyes; then
|
||||
AC_MSG_ERROR([$3])
|
||||
AC_MSG_ERROR([$3: $4])
|
||||
fi
|
||||
fi
|
||||
])
|
||||
|
Reference in New Issue
Block a user