configure.ac: auto-detect HTTPD plugin depending on encoders
Enable the HTTPD output plugin by default, provided that the encoder API is available.
This commit is contained in:
parent
d6d244c5a1
commit
1d0b2c5679
15
configure.ac
15
configure.ac
@ -613,8 +613,8 @@ AM_CONDITIONAL(HAVE_PULSE, test x$enable_pulse = xyes)
|
||||
|
||||
AC_ARG_ENABLE(httpd-output,
|
||||
AS_HELP_STRING([--enable-httpd-output],
|
||||
[enables the HTTP server output (default: disable)]),,
|
||||
[enable_httpd_output=no])
|
||||
[enables the HTTP server output]),,
|
||||
[enable_httpd_output=auto])
|
||||
|
||||
enable_osx=no
|
||||
case "$host_os" in
|
||||
@ -980,6 +980,17 @@ if test x$enable_shout = xauto; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if test x$enable_httpd_output = xauto; then
|
||||
# handle HTTPD auto-detection: disable if no encoder is
|
||||
# available
|
||||
if test x$enable_encoder = xyes; then
|
||||
enable_httpd_output=yes
|
||||
else
|
||||
AC_MSG_WARN([No encoder plugin -- disabling the HTTP output plugin])
|
||||
enable_httpd_output=no
|
||||
fi
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(HAVE_SHOUT, test x$enable_shout = xyes)
|
||||
|
||||
AM_CONDITIONAL(ENABLE_HTTPD_OUTPUT, test x$enable_httpd_output = xyes)
|
||||
|
Loading…
Reference in New Issue
Block a user