diff options
author | Max Kellermann <max@duempel.org> | 2009-04-01 21:59:58 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-04-01 21:59:58 +0200 |
commit | 1d0b2c56798f18791be9d6e61f0adc0417f9e990 (patch) | |
tree | 08b00b64b4b62f29259ee2695c9bd762c45d3c11 /configure.ac | |
parent | d6d244c5a123f48ebf5a73692e8d926a563dac8e (diff) | |
download | mpd-1d0b2c56798f18791be9d6e61f0adc0417f9e990.tar.gz mpd-1d0b2c56798f18791be9d6e61f0adc0417f9e990.tar.xz mpd-1d0b2c56798f18791be9d6e61f0adc0417f9e990.zip |
configure.ac: auto-detect HTTPD plugin depending on encoders
Enable the HTTPD output plugin by default, provided that the encoder
API is available.
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index f750aa90f..585f63b8a 100644 --- a/configure.ac +++ b/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) |