From 1d0b2c56798f18791be9d6e61f0adc0417f9e990 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 1 Apr 2009 21:59:58 +0200 Subject: [PATCH] configure.ac: auto-detect HTTPD plugin depending on encoders Enable the HTTPD output plugin by default, provided that the encoder API is available. --- configure.ac | 15 +++++++++++++-- 1 file 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)