aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-04-12 04:07:24 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:07:24 +0000
commit86d6ba077b8d183914eec1f970ddaf077b574f4b (patch)
treeb5a50e018f06200a5357e12d86df8cdec92a7e47 /configure.ac
parentd4f319deafc41d000c7e249e1acfe9626dec52a8 (diff)
downloadmpd-86d6ba077b8d183914eec1f970ddaf077b574f4b.tar.gz
mpd-86d6ba077b8d183914eec1f970ddaf077b574f4b.tar.xz
mpd-86d6ba077b8d183914eec1f970ddaf077b574f4b.zip
provide switches for TCP and unix sockets
autoconf flags for enabling and disabling TCP and unix domain socket support. Embedded machines without a TCP stack may be better off without TCP support. git-svn-id: https://svn.musicpd.org/mpd/trunk@7236 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--configure.ac36
1 files changed, 36 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 679be11e6..d9697136e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -65,6 +65,8 @@ AC_ARG_ENABLE(ao,[ --enable-ao enable support for libao (default: d
AC_ARG_ENABLE(shout,[ --disable-shout disable support for streaming through shout (default: enable)],[enable_shout=$enableval],[enable_shout=yes])
AC_ARG_ENABLE(iconv,[ --disable-iconv disable iconv support (default: enable)],[enable_iconv=$enableval],[enable_iconv=yes])
AC_ARG_ENABLE(ipv6,[ --disable-ipv6 disable IPv6 support (default: enable)],[enable_ipv6=$enableval],[enable_ipv6=yes])
+AC_ARG_ENABLE(tcp,[ --disable-tcp disable support for clients connecting via TCP (default: enable)],[enable_tcp=$enableval],[enable_tcp=yes])
+AC_ARG_ENABLE(un,[ --enable-un enable support for clients connecting via unix domain sockets (default: disable)],[enable_un=$enableval],[enable_un=no])
AC_ARG_ENABLE(oss,[ --disable-oss disable OSS support (default: enable)],[enable_oss=$enableval],[enable_oss=yes])
AC_ARG_ENABLE(alsa,[ --disable-alsa disable ALSA support (default: enable)],[enable_alsa=$enableval],[enable_alsa=yes])
AC_ARG_ENABLE(jack,[ --disable-jack disable jack support (default: enable)],[enable_jack=$enableval],[enable_jack=yes])
@@ -132,6 +134,11 @@ dnl AC_CHECK_HEADER(langinfo.h,[enable_langinfo=yes;AC_DEFINE(HAVE_LANGINFO,1,[D
AM_LANGINFO_CODESET
AC_CHECK_HEADER(locale.h,[enable_locale=yes;AC_DEFINE(HAVE_LOCALE,1,[Define if locale.h is present])],enable_locale=no)
+if test x$enable_tcp = xno; then
+ # if we don't support TCP, we don't need IPv6 either
+ enable_ipv6=no
+fi
+
if test x$enable_ipv6 = xyes; then
AC_MSG_CHECKING(for ipv6)
AC_EGREP_CPP([AP_maGiC_VALUE],
@@ -151,6 +158,14 @@ AP_maGiC_VALUE
)
fi
+if test x$enable_tcp = xyes; then
+ AC_DEFINE(HAVE_TCP, 1, [Define if TCP socket support is enabled])
+fi
+
+if test x$enable_un = xyes; then
+ AC_DEFINE(HAVE_UN, 1, [Define if unix domain socket support is enabled])
+fi
+
enable_osx=no
case $host in
*-darwin*)
@@ -638,6 +653,27 @@ echo ""
echo "########### MPD CONFIGURATION ############"
echo ""
+echo " Client Support:"
+if test x$enable_tcp = xyes; then
+ echo " TCP support ...................enabled"
+else
+ echo " TCP support ...................disabled"
+fi
+
+if test x$enable_un = xyes; then
+ echo " Unix domain socket support ....enabled"
+else
+ echo " Unix domain socket support ....disabled"
+fi
+
+echo ""
+
+if
+ test x$enable_tcp = xno &&
+ test x$enable_un = xno; then
+ AC_MSG_ERROR([No client interfaces configured!])
+fi
+
echo " Playback Support:"
if test x$enable_ao = xyes; then
echo " libao support .................enabled"