aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-26 19:32:43 +0100
committerMax Kellermann <max@duempel.org>2008-10-26 19:32:43 +0100
commit3609de8685cfdfbf2d01fb8bbff02a78d9c07d06 (patch)
treee5573fbdbb7a392abbb163a73318874ed615e03c /configure.ac
parent6b09e4daefec2db743e4a0a9d7ff4ad86004d036 (diff)
downloadmpd-3609de8685cfdfbf2d01fb8bbff02a78d9c07d06.tar.gz
mpd-3609de8685cfdfbf2d01fb8bbff02a78d9c07d06.tar.xz
mpd-3609de8685cfdfbf2d01fb8bbff02a78d9c07d06.zip
http: use libcurl
MPD's HTTP client code has always been broken, no matter how effort was put into fixing it. Replace it with libcurl, which is known to be quite stable. This adds a fat library dependency, but only for people who need streaming.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 37057a802..d79240ff9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -103,6 +103,17 @@ AC_ARG_ENABLE(un,
dnl
+dnl input options
+dnl
+
+AC_ARG_ENABLE(curl,
+ AS_HELP_STRING([--disable-curl],
+ [enable support obtaining song data via HTTP (default: enable)]),
+ [enable_curl=$enableval],
+ [enable_curl=yes])
+
+
+dnl
dnl audio output plugins
dnl
@@ -316,6 +327,13 @@ case $host in
enable_osx=yes ;;
esac
+if test x$enable_curl = xyes; then
+ PKG_CHECK_MODULES(CURL, [libcurl],
+ AC_DEFINE(HAVE_CURL, 1, [Define when libcurl is used for HTTP streaming]),
+ enable_curl=no)
+fi
+AM_CONDITIONAL(HAVE_CURL, test x$enable_curl = xyes)
+
if test x$enable_shout_ogg = xyes || x$enable_shout_mp3 = xyes; then
enable_shout=yes
PKG_CHECK_MODULES([SHOUT], [shout],