2007-06-01 20:32:25 +02:00
|
|
|
AC_PREREQ(2.60)
|
2009-07-15 22:36:41 +02:00
|
|
|
AC_INIT(mpd, 0.15.2~git, musicpd-dev-team@lists.sourceforge.net)
|
2008-11-07 17:14:52 +01:00
|
|
|
AC_CONFIG_SRCDIR([src/main.c])
|
2008-10-18 07:21:04 +02:00
|
|
|
AM_INIT_AUTOMAKE([foreign 1.9 dist-bzip2])
|
2008-11-07 17:14:52 +01:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
2008-09-23 22:38:46 +02:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2004-02-24 00:41:20 +01:00
|
|
|
|
2009-02-04 18:52:34 +01:00
|
|
|
AC_DEFINE(PROTOCOL_VERSION, "0.15.0", [The mpd protocol version])
|
2009-01-05 09:31:04 +01:00
|
|
|
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl programs
|
|
|
|
dnl
|
2004-02-24 00:41:20 +01:00
|
|
|
|
2008-09-29 15:51:02 +02:00
|
|
|
AC_PROG_CC_C99
|
2009-02-12 18:14:14 +01:00
|
|
|
AC_PROG_CXX
|
|
|
|
|
2009-04-15 22:29:16 +02:00
|
|
|
HAVE_CXX=yes
|
|
|
|
if test x$CXX = xg++; then
|
|
|
|
# CXX=g++ probably means that autoconf hasn't found any C++
|
|
|
|
# compiler; to be sure, we check again
|
|
|
|
AC_PATH_PROG(CXX, $CXX, no)
|
|
|
|
if test x$CXX = xno; then
|
|
|
|
# no, we don't have C++ - the following hack is
|
|
|
|
# required because automake insists on using $(CXX)
|
|
|
|
# for linking the MPD binary
|
|
|
|
AC_MSG_NOTICE([Disabling C++ support])
|
|
|
|
CXX="$CC"
|
|
|
|
HAVE_CXX=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2004-03-17 19:13:29 +01:00
|
|
|
AC_PROG_INSTALL
|
2004-05-18 22:27:12 +02:00
|
|
|
AC_PROG_MAKE_SET
|
2009-01-05 09:31:04 +01:00
|
|
|
PKG_PROG_PKG_CONFIG
|
2004-03-17 19:13:29 +01:00
|
|
|
|
2004-03-18 04:29:25 +01:00
|
|
|
|
2009-01-06 09:07:02 +01:00
|
|
|
dnl
|
|
|
|
dnl declare variables
|
|
|
|
dnl
|
|
|
|
|
2009-02-25 16:46:07 +01:00
|
|
|
AC_SUBST(AM_CFLAGS,"")
|
|
|
|
|
2009-01-06 09:07:02 +01:00
|
|
|
AC_SUBST(MPD_LIBS)
|
|
|
|
AC_SUBST(MPD_CFLAGS)
|
|
|
|
MPD_LIBS=""
|
|
|
|
MPD_CFLAGS=""
|
|
|
|
|
|
|
|
|
2009-01-05 09:31:04 +01:00
|
|
|
dnl
|
|
|
|
dnl OS specific defaults
|
|
|
|
dnl
|
2006-07-18 11:55:15 +02:00
|
|
|
|
2009-02-18 23:01:08 +01:00
|
|
|
AC_CANONICAL_HOST
|
|
|
|
|
2009-02-18 23:07:13 +01:00
|
|
|
case "$host_os" in
|
|
|
|
mingw32* | windows*)
|
2009-01-03 13:21:25 +01:00
|
|
|
MPD_LIBS="$MPD_LIBS -lws2_32"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2006-07-23 01:28:30 +02:00
|
|
|
if test -z "$prefix" || test "x$prefix" = xNONE; then
|
|
|
|
local_lib=
|
|
|
|
local_include=
|
|
|
|
|
|
|
|
# aren't autotools supposed to be smart enough to figure this out? oh
|
|
|
|
# well, the git-core Makefile managed to do some of the work for us :)
|
|
|
|
case "$host_os" in
|
|
|
|
darwin*)
|
|
|
|
local_lib='/sw/lib /opt/local/lib'
|
|
|
|
local_include='/sw/include /opt/local/include'
|
|
|
|
;;
|
|
|
|
freebsd* | openbsd*)
|
|
|
|
local_lib=/usr/local/lib
|
|
|
|
local_include=/usr/local/include
|
|
|
|
;;
|
|
|
|
netbsd*)
|
|
|
|
local_lib=/usr/pkg/lib
|
|
|
|
local_include=/usr/pkg/include
|
|
|
|
LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/pkg/lib"
|
|
|
|
;;
|
|
|
|
esac
|
2006-07-18 11:55:15 +02:00
|
|
|
|
2006-07-23 01:28:30 +02:00
|
|
|
for d in $local_lib; do
|
|
|
|
if test -d "$d"; then
|
|
|
|
LDFLAGS="$LDFLAGS -L$d"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
for d in $local_include; do
|
|
|
|
if test -d "$d"; then
|
|
|
|
CFLAGS="$CFLAGS -I$d"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
2004-02-24 00:41:20 +01:00
|
|
|
|
2008-10-16 08:40:55 +02:00
|
|
|
|
2008-12-28 19:48:53 +01:00
|
|
|
dnl
|
|
|
|
dnl libc features
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_CHECK_FUNCS(syslog)
|
|
|
|
if test $ac_cv_func_syslog = no; then
|
|
|
|
# syslog is not in the default libraries. See if it's in some other.
|
|
|
|
for lib in bsd socket inet; do
|
|
|
|
AC_CHECK_LIB($lib, syslog,
|
|
|
|
[AC_DEFINE(HAVE_SYSLOG)
|
|
|
|
LIBS="$LIBS -l$lib"; break])
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
2009-01-05 09:31:04 +01:00
|
|
|
AC_CHECK_LIB(socket,socket,MPD_LIBS="$MPD_LIBS -lsocket",)
|
|
|
|
AC_CHECK_LIB(nsl,gethostbyname,MPD_LIBS="$MPD_LIBS -lnsl",)
|
|
|
|
|
|
|
|
AC_CHECK_LIB(m,exp,MPD_LIBS="$MPD_LIBS -lm",)
|
|
|
|
|
2009-01-05 09:31:09 +01:00
|
|
|
AC_CHECK_HEADERS(locale.h)
|
2009-03-09 19:10:18 +01:00
|
|
|
AC_CHECK_HEADERS(valgrind/memcheck.h)
|
2009-01-05 09:31:04 +01:00
|
|
|
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl mandatory libraries
|
|
|
|
dnl
|
|
|
|
|
2009-03-27 18:04:34 +01:00
|
|
|
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.6 gthread-2.0],,
|
|
|
|
[AC_MSG_ERROR([glib-2.6 is required])])
|
2009-01-05 09:31:04 +01:00
|
|
|
|
2008-12-28 19:48:53 +01:00
|
|
|
|
2008-10-16 08:40:55 +02:00
|
|
|
dnl
|
|
|
|
dnl protocol options
|
|
|
|
dnl
|
|
|
|
|
2009-01-05 09:43:07 +01:00
|
|
|
AC_ARG_ENABLE(tcp,
|
|
|
|
AS_HELP_STRING([--disable-tcp],
|
2009-03-06 09:53:12 +01:00
|
|
|
[disable support for clients connecting via TCP (default: enable)]),,
|
2009-01-05 09:43:07 +01:00
|
|
|
[enable_tcp=yes])
|
|
|
|
|
2008-10-16 08:40:55 +02:00
|
|
|
AC_ARG_ENABLE(ipv6,
|
|
|
|
AS_HELP_STRING([--disable-ipv6],
|
2009-03-06 09:53:12 +01:00
|
|
|
[disable IPv6 support (default: enable)]),,
|
2008-10-16 08:40:55 +02:00
|
|
|
[enable_ipv6=yes])
|
|
|
|
|
2009-01-05 09:43:07 +01:00
|
|
|
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],
|
|
|
|
[
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <netdb.h>
|
|
|
|
#ifdef PF_INET6
|
|
|
|
#ifdef AF_INET6
|
|
|
|
AP_maGiC_VALUE
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
],
|
|
|
|
AC_DEFINE(HAVE_IPV6, 1, [Define if IPv6 support present])
|
|
|
|
AC_MSG_RESULT([yes]),
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$enable_tcp = xyes; then
|
|
|
|
AC_DEFINE(HAVE_TCP, 1, [Define if TCP socket support is enabled])
|
|
|
|
fi
|
2008-10-16 08:40:55 +02:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(un,
|
2008-12-24 03:32:11 +01:00
|
|
|
AS_HELP_STRING([--disable-un],
|
2009-03-06 09:53:12 +01:00
|
|
|
[disable support for clients connecting via unix domain sockets (default: enable)]),,
|
2008-10-16 08:40:55 +02:00
|
|
|
[enable_un=yes])
|
|
|
|
|
2009-01-05 09:43:07 +01:00
|
|
|
if test x$enable_un = xyes; then
|
|
|
|
AC_DEFINE(HAVE_UN, 1, [Define if unix domain socket support is enabled])
|
|
|
|
STRUCT_UCRED
|
|
|
|
fi
|
|
|
|
|
2008-10-16 08:40:55 +02:00
|
|
|
|
2009-03-06 11:30:40 +01:00
|
|
|
dnl ##
|
2009-01-05 09:41:45 +01:00
|
|
|
dnl misc libraries
|
2009-03-06 11:30:40 +01:00
|
|
|
dnl ##
|
|
|
|
|
2009-03-31 21:48:04 +02:00
|
|
|
AC_ARG_ENABLE(cue,
|
|
|
|
AS_HELP_STRING([--enable-cue],
|
|
|
|
[enable support for libcue support]),,
|
|
|
|
enable_cue=auto)
|
|
|
|
|
|
|
|
MPD_AUTO_PKG(cue, CUE, [libcue],
|
|
|
|
[libcue parsing library], [libcue not found])
|
|
|
|
if test x$enable_cue = xyes; then
|
|
|
|
AC_DEFINE([HAVE_CUE], 1,
|
|
|
|
[Define to enable libcue support])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_CUE, test x$enable_cue = xyes)
|
|
|
|
|
2009-03-06 11:30:40 +01:00
|
|
|
dnl ##
|
|
|
|
dnl Avahi / Zeroconf
|
|
|
|
dnl ##
|
|
|
|
AC_ARG_WITH(zeroconf,
|
|
|
|
AS_HELP_STRING([--with-zeroconf=@<:@auto|avahi|bonjour|no@:>@],
|
2009-03-06 17:16:37 +01:00
|
|
|
[enable zeroconf backend (default=auto)]),,
|
2009-03-06 11:30:40 +01:00
|
|
|
with_zeroconf="auto")
|
2008-10-26 19:32:43 +01:00
|
|
|
|
2009-01-05 09:44:48 +01:00
|
|
|
case $with_zeroconf in
|
|
|
|
no|avahi|bonjour)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
with_zeroconf=auto
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if test x$with_zeroconf != xno; then
|
|
|
|
if test x$with_zeroconf = xavahi || test x$with_zeroconf = xauto; then
|
|
|
|
PKG_CHECK_MODULES([AVAHI], [avahi-client avahi-glib],
|
2009-03-06 17:16:37 +01:00
|
|
|
[found_avahi=1;AC_DEFINE([HAVE_AVAHI], 1, [Define to enable Avahi Zeroconf support])]
|
|
|
|
MPD_LIBS="$MPD_LIBS $AVAHI_LIBS" MPD_CFLAGS="$MPD_CFLAGS $AVAHI_CFLAGS",
|
|
|
|
[found_avahi=0])
|
2009-01-05 09:44:48 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$found_avahi = x1; then
|
|
|
|
with_zeroconf=avahi
|
|
|
|
elif test x$with_zeroconf = xavahi; then
|
|
|
|
AC_MSG_ERROR([Avahi support requested but not found])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$with_zeroconf = xbonjour || test x$with_zeroconf = xauto; then
|
|
|
|
AC_CHECK_HEADER(dns_sd.h,
|
2009-03-06 17:16:37 +01:00
|
|
|
[found_bonjour=1;AC_DEFINE([HAVE_BONJOUR], 1, [Define to enable Bonjour Zeroconf support])],
|
|
|
|
[found_bonjour=0])
|
2009-01-05 09:44:48 +01:00
|
|
|
AC_CHECK_LIB(dns_sd, DNSServiceRegister,
|
2009-03-06 17:16:37 +01:00
|
|
|
MPD_LIBS="$MPD_LIBS -ldns_sd")
|
2009-01-05 09:44:48 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$found_bonjour = x1; then
|
|
|
|
with_zeroconf=bonjour
|
|
|
|
elif test x$with_zeroconf = xbonjour; then
|
|
|
|
AC_MSG_ERROR([Bonjour support requested but not found])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$with_zeroconf = xauto; then
|
|
|
|
AC_MSG_WARN([No supported Zeroconf backend found, disabling Zeroconf])
|
|
|
|
with_zeroconf=no
|
|
|
|
else
|
|
|
|
AC_DEFINE([HAVE_ZEROCONF], 1, [Define to enable Zeroconf support])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_ZEROCONF, test x$with_zeroconf != xno)
|
|
|
|
AM_CONDITIONAL(HAVE_AVAHI, test x$with_zeroconf = xavahi)
|
|
|
|
AM_CONDITIONAL(HAVE_BONJOUR, test x$with_zeroconf = xbonjour)
|
|
|
|
|
2009-01-12 09:56:14 +01:00
|
|
|
AC_ARG_ENABLE(sqlite,
|
|
|
|
AS_HELP_STRING([--enable-sqlite],
|
2009-03-28 21:48:09 +01:00
|
|
|
[enable support for the SQLite database]),,
|
|
|
|
[enable_sqlite=auto])
|
2009-01-12 09:56:14 +01:00
|
|
|
|
2009-03-28 21:48:09 +01:00
|
|
|
MPD_AUTO_PKG(sqlite, SQLITE, [sqlite3],
|
|
|
|
[SQLite database support], [sqlite not found])
|
2009-01-12 09:56:14 +01:00
|
|
|
if test x$enable_sqlite = xyes; then
|
|
|
|
AC_DEFINE([ENABLE_SQLITE], 1, [Define to enable sqlite database support])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(ENABLE_SQLITE, test x$enable_sqlite = xyes)
|
|
|
|
|
2008-10-26 19:32:43 +01:00
|
|
|
|
2008-10-16 08:40:55 +02:00
|
|
|
dnl
|
2009-01-05 09:41:45 +01:00
|
|
|
dnl input plugins
|
2008-10-16 08:40:55 +02:00
|
|
|
dnl
|
|
|
|
|
2009-01-05 09:41:45 +01:00
|
|
|
AC_ARG_ENABLE(curl,
|
2009-03-28 21:48:09 +01:00
|
|
|
AS_HELP_STRING([--enable-curl],
|
2009-04-01 22:13:38 +02:00
|
|
|
[enable support for libcurl HTTP streaming (default: auto)]),,
|
2009-03-28 21:48:09 +01:00
|
|
|
[enable_curl=auto])
|
2008-10-16 08:40:55 +02:00
|
|
|
|
2009-03-28 21:48:09 +01:00
|
|
|
MPD_AUTO_PKG(curl, CURL, [libcurl],
|
|
|
|
[libcurl HTTP streaming], [libcurl not found])
|
2009-01-05 09:44:48 +01:00
|
|
|
if test x$enable_curl = xyes; then
|
2009-03-28 21:48:09 +01:00
|
|
|
AC_DEFINE(HAVE_CURL, 1, [Define when libcurl is used for HTTP streaming])
|
2009-01-05 09:44:48 +01:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(HAVE_CURL, test x$enable_curl = xyes)
|
|
|
|
|
2009-03-02 23:11:31 +01:00
|
|
|
AC_ARG_ENABLE(lastfm,
|
|
|
|
AS_HELP_STRING([--enable-lastfm],
|
|
|
|
[enable support for last.fm radio (default: disable)]),,
|
|
|
|
[enable_lastfm=no])
|
|
|
|
|
|
|
|
if test x$enable_lastfm = xyes; then
|
|
|
|
if test x$enable_curl != xyes; then
|
|
|
|
AC_MSG_ERROR([Cannot enable last.fm radio without curl])
|
|
|
|
fi
|
|
|
|
|
2009-03-06 01:21:53 +01:00
|
|
|
AC_DEFINE(ENABLE_LASTFM, 1, [Define when last.fm radio is enabled])
|
2009-03-02 23:11:31 +01:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(ENABLE_LASTFM, test x$enable_lastfm = xyes)
|
|
|
|
|
2009-01-29 21:42:10 +01:00
|
|
|
AC_ARG_ENABLE(mms,
|
|
|
|
AS_HELP_STRING([--enable-mms],
|
2009-03-28 21:48:09 +01:00
|
|
|
[enable the MMS protocol with libmms]),,
|
|
|
|
[enable_mms=auto])
|
2009-01-29 21:42:10 +01:00
|
|
|
|
2009-03-28 21:48:09 +01:00
|
|
|
MPD_AUTO_PKG(mms, MMS, [libmms],
|
|
|
|
[libmms mms:// protocol support], [libmms not found])
|
2009-01-29 21:42:10 +01:00
|
|
|
if test x$enable_mms = xyes; then
|
2009-03-28 21:48:09 +01:00
|
|
|
AC_DEFINE(ENABLE_MMS, 1,
|
|
|
|
[Define when libmms is used for the MMS protocol])
|
2009-01-29 21:42:10 +01:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(ENABLE_MMS, test x$enable_mms = xyes)
|
|
|
|
|
2008-10-16 08:40:55 +02:00
|
|
|
|
2008-12-16 21:45:59 +01:00
|
|
|
dnl
|
|
|
|
dnl archive plugins
|
|
|
|
dnl
|
|
|
|
|
2008-12-27 13:45:17 +01:00
|
|
|
dnl bzip2
|
2008-12-27 18:50:37 +01:00
|
|
|
AC_ARG_ENABLE(bzip2,
|
2008-12-27 19:44:58 +01:00
|
|
|
AS_HELP_STRING([--enable-bzip2],
|
2009-03-06 09:53:12 +01:00
|
|
|
[enable bzip2 archive support (default: disabled)]),,
|
2009-03-07 23:05:25 +01:00
|
|
|
enable_bzip2=no)
|
2008-12-16 21:45:59 +01:00
|
|
|
|
2009-03-07 23:05:25 +01:00
|
|
|
if test x$enable_bzip2 = xyes; then
|
2008-12-29 11:27:11 +01:00
|
|
|
AC_CHECK_LIB(bz2, BZ2_bzDecompressInit,
|
|
|
|
[MPD_LIBS="$MPD_LIBS -lbz2"],
|
2009-04-13 20:39:51 +02:00
|
|
|
[AC_MSG_ERROR([libbz2 not found])])
|
2008-12-29 10:01:33 +01:00
|
|
|
fi
|
2008-12-27 13:45:17 +01:00
|
|
|
|
2009-03-07 23:05:25 +01:00
|
|
|
AM_CONDITIONAL(HAVE_BZ2, test x$enable_bzip2 = xyes)
|
|
|
|
if test x$enable_bzip2 = xyes; then
|
2008-12-27 13:45:17 +01:00
|
|
|
AC_DEFINE(HAVE_BZ2, 1, [Define to have bz2 archive support])
|
|
|
|
fi
|
2008-12-16 21:45:59 +01:00
|
|
|
|
2008-12-27 13:45:17 +01:00
|
|
|
dnl zip
|
2008-12-16 21:46:11 +01:00
|
|
|
AC_ARG_ENABLE(zip,
|
|
|
|
AS_HELP_STRING([--enable-zip],
|
2009-03-06 09:53:12 +01:00
|
|
|
[enable zip archive support (default: disabled)]),,
|
2008-12-16 21:46:11 +01:00
|
|
|
enable_zip=no)
|
|
|
|
|
2009-04-13 20:46:31 +02:00
|
|
|
MPD_AUTO_PKG(zip, ZZIP, [zziplib],
|
|
|
|
[libzzip archive library], [libzzip not found])
|
2008-12-27 13:45:17 +01:00
|
|
|
|
2008-12-16 21:46:11 +01:00
|
|
|
AM_CONDITIONAL(HAVE_ZIP, test x$enable_zip = xyes)
|
2008-12-27 13:45:17 +01:00
|
|
|
if test x$enable_zip = xyes; then
|
|
|
|
AC_DEFINE(HAVE_ZIP, 1, [Define to have zip archive support])
|
|
|
|
fi
|
2008-12-16 21:46:11 +01:00
|
|
|
|
2008-12-27 13:45:17 +01:00
|
|
|
dnl iso9660
|
2008-12-16 21:48:26 +01:00
|
|
|
AC_ARG_ENABLE(iso9660,
|
|
|
|
AS_HELP_STRING([--enable-iso9660],
|
2009-03-06 09:53:12 +01:00
|
|
|
[enable iso9660 archive support (default: disabled)]),,
|
2009-03-07 23:05:25 +01:00
|
|
|
enable_iso9660=no)
|
2008-12-16 21:48:26 +01:00
|
|
|
|
2009-04-13 20:47:28 +02:00
|
|
|
MPD_AUTO_PKG(iso9660, ISO9660, [libiso9660],
|
|
|
|
[libiso9660 archive library], [libiso9660 not found])
|
2008-12-27 13:45:17 +01:00
|
|
|
|
2009-03-07 23:05:25 +01:00
|
|
|
AM_CONDITIONAL(HAVE_ISO, test x$enable_iso9660 = xyes)
|
|
|
|
if test x$enable_iso9660 = xyes; then
|
2008-12-16 21:48:26 +01:00
|
|
|
AC_DEFINE(HAVE_ISO, 1, [Define to have iso archive support])
|
|
|
|
fi
|
|
|
|
|
2008-12-27 14:33:41 +01:00
|
|
|
dnl archive API
|
2009-03-06 17:16:37 +01:00
|
|
|
if
|
2009-03-07 23:05:25 +01:00
|
|
|
test x$enable_bzip2 = xyes ||
|
2009-03-06 17:16:37 +01:00
|
|
|
test x$enable_zip = xyes ||
|
2009-03-07 23:05:25 +01:00
|
|
|
test x$enable_iso9660 = xyes; then
|
2009-03-06 17:16:37 +01:00
|
|
|
enable_archive=yes
|
|
|
|
AC_DEFINE(ENABLE_ARCHIVE, 1, [The archive API is available])
|
2008-12-27 14:33:41 +01:00
|
|
|
else
|
|
|
|
enable_archive=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(ENABLE_ARCHIVE, test x$enable_archive = xyes)
|
|
|
|
|
2008-12-27 13:45:17 +01:00
|
|
|
|
2008-10-16 08:40:55 +02:00
|
|
|
dnl
|
2009-01-05 09:41:45 +01:00
|
|
|
dnl metadata
|
2008-10-16 08:40:55 +02:00
|
|
|
dnl
|
|
|
|
|
2009-01-05 09:41:45 +01:00
|
|
|
AC_ARG_ENABLE(id3,
|
|
|
|
AS_HELP_STRING([--disable-id3],
|
2009-03-06 09:53:12 +01:00
|
|
|
[disable id3 support (default: enable)]),,
|
2009-01-05 09:41:45 +01:00
|
|
|
enable_id3=yes)
|
2008-10-16 08:40:55 +02:00
|
|
|
|
|
|
|
|
2009-01-05 09:41:45 +01:00
|
|
|
dnl
|
|
|
|
dnl decoder plugins
|
|
|
|
dnl
|
2008-10-16 08:40:55 +02:00
|
|
|
|
|
|
|
|
2009-01-05 09:41:45 +01:00
|
|
|
|
2008-10-16 08:40:55 +02:00
|
|
|
AC_ARG_ENABLE(audiofile,
|
|
|
|
AS_HELP_STRING([--disable-audiofile],
|
2009-03-06 09:53:12 +01:00
|
|
|
[disable audiofile support, disables wave support (default: enable)]),,
|
2008-10-16 08:40:55 +02:00
|
|
|
enable_audiofile=yes)
|
|
|
|
|
2009-01-05 09:41:45 +01:00
|
|
|
AC_ARG_ENABLE(ffmpeg,
|
2009-07-14 14:23:49 +02:00
|
|
|
AS_HELP_STRING([--enable-ffmpeg],
|
|
|
|
[enable FFMPEG support]),,
|
|
|
|
enable_ffmpeg=auto)
|
2009-01-05 09:41:45 +01:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(flac,
|
|
|
|
AS_HELP_STRING([--disable-flac],
|
2009-03-06 09:53:12 +01:00
|
|
|
[disable flac support (default: enable)]),,
|
2009-01-05 09:41:45 +01:00
|
|
|
enable_flac=yes)
|
|
|
|
|
2009-03-06 10:29:11 +01:00
|
|
|
dnl ###
|
|
|
|
dnl MAD mp3 decoder
|
|
|
|
dnl ###
|
2009-03-06 11:05:20 +01:00
|
|
|
|
2009-03-06 10:29:11 +01:00
|
|
|
AC_ARG_ENABLE(mad,
|
2009-03-28 21:48:09 +01:00
|
|
|
AS_HELP_STRING([--enable-mad],
|
|
|
|
[enable libmad mp3 decoder plugin]),,
|
|
|
|
enable_mad=auto)
|
2009-03-06 10:29:11 +01:00
|
|
|
|
2009-03-28 21:48:09 +01:00
|
|
|
MPD_AUTO_PKG(mad, MAD, [mad],
|
|
|
|
[libmad MP3 decoder plugin], [libmad not found])
|
2009-03-06 10:29:11 +01:00
|
|
|
if test x$enable_mad = xyes; then
|
2009-03-28 21:48:09 +01:00
|
|
|
AC_DEFINE(HAVE_MAD, 1, [Define to use libmad])
|
2009-03-06 10:29:11 +01:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(HAVE_MAD, test x$enable_mad = xyes)
|
|
|
|
|
2009-04-01 22:48:06 +02:00
|
|
|
AC_ARG_ENABLE(mikmod,
|
|
|
|
AS_HELP_STRING([--enable-mikmod],
|
|
|
|
[enable the mikmod decoder (default: disable)]),,
|
2009-04-29 12:13:30 +02:00
|
|
|
enable_mikmod=no)
|
2008-10-16 08:40:55 +02:00
|
|
|
|
2009-04-01 22:50:21 +02:00
|
|
|
if test x$enable_mikmod = xyes; then
|
|
|
|
AC_PATH_PROG(LIBMIKMOD_CONFIG, libmikmod-config)
|
|
|
|
if test x$LIBMIKMOD_CONFIG != x ; then
|
|
|
|
AC_SUBST(LIBMIKMOD_CFLAGS, `$LIBMIKMOD_CONFIG --cflags`)
|
|
|
|
AC_SUBST(LIBMIKMOD_LIBS, `$LIBMIKMOD_CONFIG --libs`)
|
|
|
|
AC_DEFINE(ENABLE_MIKMOD_DECODER, 1, [Define for mikmod support])
|
|
|
|
else
|
|
|
|
enable_mikmod=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(ENABLE_MIKMOD_DECODER, test x$enable_mikmod = xyes)
|
|
|
|
|
2008-12-28 17:11:18 +01:00
|
|
|
AC_ARG_ENABLE(modplug,
|
|
|
|
AS_HELP_STRING([--enable-modplug],
|
2009-03-28 21:48:09 +01:00
|
|
|
[enable modplug decoder plugin]),,
|
|
|
|
enable_modplug=auto)
|
|
|
|
|
2009-04-15 22:29:16 +02:00
|
|
|
found_modplug=$HAVE_CXX
|
|
|
|
MPD_AUTO_PRE(modplug, [modplug decoder plugin], [No C++ compiler found])
|
|
|
|
|
2009-03-28 21:48:09 +01:00
|
|
|
MPD_AUTO_PKG(modplug, MODPLUG, [libmodplug],
|
|
|
|
[modplug decoder plugin], [libmodplug not found])
|
|
|
|
AM_CONDITIONAL(HAVE_MODPLUG, test x$enable_modplug = xyes)
|
|
|
|
if test x$enable_modplug = xyes; then
|
|
|
|
AC_DEFINE(HAVE_MODPLUG, 1, [Define for modplug support])
|
|
|
|
fi
|
2008-12-28 17:11:18 +01:00
|
|
|
|
2008-10-16 08:40:55 +02:00
|
|
|
AC_ARG_ENABLE(mpc,
|
|
|
|
AS_HELP_STRING([--disable-mpc],
|
2009-03-06 09:53:12 +01:00
|
|
|
[disable musepack (MPC) support (default: enable)]),,
|
2008-10-16 08:40:55 +02:00
|
|
|
enable_mpc=yes)
|
|
|
|
|
2009-01-05 09:41:45 +01:00
|
|
|
AC_ARG_ENABLE(oggflac,
|
|
|
|
AS_HELP_STRING([--disable-oggflac],
|
2009-03-06 09:53:12 +01:00
|
|
|
[disable OggFLAC support (default: enable)]),,
|
2009-01-05 09:41:45 +01:00
|
|
|
enable_oggflac=yes)
|
|
|
|
|
2009-04-01 22:45:17 +02:00
|
|
|
AC_ARG_ENABLE(vorbis,
|
|
|
|
AS_HELP_STRING([--disable-vorbis],
|
2009-03-06 09:53:12 +01:00
|
|
|
[disable Ogg Vorbis support (default: enable)]),,
|
2009-04-01 22:45:17 +02:00
|
|
|
enable_vorbis=yes)
|
2009-01-05 09:41:45 +01:00
|
|
|
|
2009-03-06 11:05:20 +01:00
|
|
|
dnl ###
|
|
|
|
dnl Ogg Tremor
|
|
|
|
dnl ###
|
|
|
|
AC_ARG_WITH(tremor,
|
|
|
|
AS_HELP_STRING([--with-tremor=PFX],
|
2009-05-26 16:16:53 +02:00
|
|
|
[use Tremor (vorbisidec) integer Ogg Vorbis decoder (with optional prefix)]),,
|
|
|
|
with_tremor=no)
|
|
|
|
|
|
|
|
if test x$with_tremor = xyes || test x$with_tremor = xno; then
|
|
|
|
use_tremor="$with_tremor"
|
|
|
|
else
|
|
|
|
tremor_prefix="$with_tremor"
|
|
|
|
use_tremor=yes
|
|
|
|
fi
|
2009-03-06 11:05:20 +01:00
|
|
|
|
|
|
|
AC_ARG_WITH(tremor-libraries,
|
|
|
|
AS_HELP_STRING([--with-tremor-libraries=DIR],
|
|
|
|
[directory where Tremor library is installed (optional)]),,
|
|
|
|
tremor_libraries="")
|
|
|
|
|
|
|
|
AC_ARG_WITH(tremor-includes,
|
|
|
|
AS_HELP_STRING([--with-tremor-includes=DIR],
|
|
|
|
[directory where Tremor header files are installed (optional)]),,
|
|
|
|
tremor_includes="")
|
2009-01-05 09:41:45 +01:00
|
|
|
|
2009-02-11 20:31:17 +01:00
|
|
|
AC_ARG_ENABLE(sidplay,
|
|
|
|
AS_HELP_STRING([--enable-sidplay],
|
2009-04-15 22:24:59 +02:00
|
|
|
[enable C64 SID support via libsidplay2]),,
|
|
|
|
enable_sidplay=auto)
|
2009-02-11 20:31:17 +01:00
|
|
|
|
2009-04-15 22:29:16 +02:00
|
|
|
found_sidplay=$HAVE_CXX
|
|
|
|
MPD_AUTO_PRE(sidplay, [sidplay decoder plugin], [No C++ compiler found])
|
|
|
|
|
2009-04-15 22:24:59 +02:00
|
|
|
if test x$enable_sidplay != xno; then
|
2009-04-15 22:24:19 +02:00
|
|
|
# we're not using pkg-config here
|
2009-04-15 22:23:50 +02:00
|
|
|
# because libsidplay2's .pc file requires libtool
|
2009-04-15 22:24:19 +02:00
|
|
|
AC_HAVE_LIBRARY(sidplay2, [found_sidplay=yes], [found_sidplay=no])
|
|
|
|
MPD_AUTO_PRE(sidplay, [sidplay decoder plugin],
|
|
|
|
[libsidplay2 not found])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$enable_sidplay != xno; then
|
|
|
|
# can't use AC_HAVE_LIBRARY here, because the dash in the
|
|
|
|
# library name triggers an autoconf bug
|
|
|
|
AC_CHECK_LIB(resid-builder, main,
|
|
|
|
[found_sidplay=yes], [found_sidplay=no])
|
|
|
|
MPD_AUTO_RESULT(sidplay, [sidplay decoder plugin],
|
|
|
|
[libresid-builder not found])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$enable_sidplay = xyes; then
|
2009-04-15 22:23:50 +02:00
|
|
|
AC_SUBST(SIDPLAY_LIBS,"-lsidplay2 -lresid-builder")
|
|
|
|
AC_SUBST(SIDPLAY_CFLAGS,)
|
|
|
|
|
|
|
|
AC_DEFINE(ENABLE_SIDPLAY, 1, [Define for libsidplay2 support])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(ENABLE_SIDPLAY, test x$enable_sidplay = xyes)
|
|
|
|
|
2009-02-12 08:43:26 +01:00
|
|
|
AC_ARG_ENABLE(fluidsynth,
|
|
|
|
AS_HELP_STRING([--enable-fluidsynth],
|
|
|
|
[enable MIDI support via fluidsynth (default: disable)]),,
|
|
|
|
enable_fluidsynth=no)
|
|
|
|
|
2009-02-12 16:43:18 +01:00
|
|
|
AC_ARG_ENABLE(wildmidi,
|
|
|
|
AS_HELP_STRING([--enable-wildmidi],
|
|
|
|
[enable MIDI support via wildmidi (default: disable)]),,
|
|
|
|
enable_wildmidi=no)
|
|
|
|
|
2008-10-16 08:40:55 +02:00
|
|
|
AC_ARG_ENABLE(wavpack,
|
|
|
|
AS_HELP_STRING([--disable-wavpack],
|
2009-03-06 09:53:12 +01:00
|
|
|
[disable WavPack support (default: enable)]),,
|
2008-10-16 08:40:55 +02:00
|
|
|
enable_wavpack=yes)
|
|
|
|
|
2008-10-17 22:27:33 +02:00
|
|
|
|
2009-01-05 09:41:45 +01:00
|
|
|
dnl
|
|
|
|
dnl converters
|
|
|
|
dnl
|
2008-10-16 08:40:55 +02:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(lsr,
|
2009-03-28 21:48:09 +01:00
|
|
|
AS_HELP_STRING([--enable-lsr],
|
|
|
|
[enable libsamplerate support]),,
|
|
|
|
enable_lsr=auto)
|
2008-10-16 08:40:55 +02:00
|
|
|
|
2009-03-28 21:48:09 +01:00
|
|
|
MPD_AUTO_PKG(lsr, SAMPLERATE, [samplerate >= 0.0.15],
|
|
|
|
[libsamplerate resampling], [libsamplerate not found])
|
2009-01-05 09:44:48 +01:00
|
|
|
if test x$enable_lsr = xyes; then
|
2009-03-28 21:48:09 +01:00
|
|
|
AC_DEFINE([HAVE_LIBSAMPLERATE], 1,
|
|
|
|
[Define to enable libsamplerate])
|
2009-01-05 09:44:48 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$enable_lsr = xyes; then
|
2009-03-06 17:16:37 +01:00
|
|
|
PKG_CHECK_MODULES([SAMPLERATE_013],
|
|
|
|
[samplerate >= 0.1.3],,
|
|
|
|
[AC_DEFINE([HAVE_LIBSAMPLERATE_NOINT], 1,
|
|
|
|
[libsamplerate doesn't provide src_int_to_float_array() (<0.1.3)])])
|
2009-01-05 09:44:48 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_LIBSAMPLERATE, test x$enable_lsr = xyes)
|
|
|
|
|
2006-07-22 03:48:36 +02:00
|
|
|
|
2009-01-05 09:41:45 +01:00
|
|
|
dnl
|
|
|
|
dnl encoder plugins
|
|
|
|
dnl
|
2006-07-22 03:48:36 +02:00
|
|
|
|
2009-04-01 22:44:45 +02:00
|
|
|
AC_ARG_ENABLE(vorbis-encoder,
|
|
|
|
AS_HELP_STRING([--enable-vorbis-encoder],
|
|
|
|
[enable the Ogg Vorbis encoder]),,
|
|
|
|
[enable_vorbis_encoder=auto])
|
2009-04-01 21:06:53 +02:00
|
|
|
|
2009-04-01 22:44:28 +02:00
|
|
|
AC_ARG_ENABLE(lame-encoder,
|
|
|
|
AS_HELP_STRING([--enable-lame-encoder],
|
|
|
|
[enable the LAME mp3 encoder]),,
|
|
|
|
enable_lame_encoder=auto)
|
2009-01-05 09:41:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl audio output plugins
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(alsa,
|
2009-07-17 17:50:55 +02:00
|
|
|
AS_HELP_STRING([--enable-alsa], [enable ALSA support]),,
|
2009-03-28 11:10:40 +01:00
|
|
|
enable_alsa=auto)
|
2009-01-05 09:41:45 +01:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(ao,
|
|
|
|
AS_HELP_STRING([--enable-ao],
|
2009-03-28 21:48:09 +01:00
|
|
|
[enable support for libao]),,
|
|
|
|
enable_ao=auto)
|
|
|
|
|
|
|
|
MPD_AUTO_PKG(ao, AO, [ao],
|
|
|
|
[libao output plugin], [libao not found])
|
|
|
|
if test x$enable_ao = xyes; then
|
|
|
|
AC_DEFINE(HAVE_AO, 1, [Define to play with ao])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_AO, test x$enable_ao = xyes)
|
2009-01-05 09:41:45 +01:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(fifo,
|
|
|
|
AS_HELP_STRING([--disable-fifo],
|
2009-03-06 09:53:12 +01:00
|
|
|
[disable support for writing audio to a FIFO (default: enable)]),,
|
2009-01-05 09:41:45 +01:00
|
|
|
enable_fifo=yes)
|
|
|
|
|
2009-02-28 16:11:59 +01:00
|
|
|
AC_ARG_ENABLE(pipe-output,
|
|
|
|
AS_HELP_STRING([--enable-pipe-output],
|
2009-02-28 16:41:05 +01:00
|
|
|
[enable support for writing audio to a pipe (default: disable)]),,
|
2009-02-28 16:11:59 +01:00
|
|
|
enable_pipe_output=no)
|
|
|
|
|
|
|
|
if test x$enable_pipe_output = xyes; then
|
2009-03-06 17:16:37 +01:00
|
|
|
AC_DEFINE([ENABLE_PIPE_OUTPUT], 1,
|
|
|
|
[Define to enable support for writing audio to a pipe])
|
2009-02-28 16:11:59 +01:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(ENABLE_PIPE_OUTPUT, test x$enable_pipe_output = xyes)
|
|
|
|
|
2009-01-05 09:41:45 +01:00
|
|
|
AC_ARG_ENABLE(jack,
|
2009-03-28 21:48:09 +01:00
|
|
|
AS_HELP_STRING([--enable-jack],
|
|
|
|
[enable jack support]),,
|
|
|
|
enable_jack=auto)
|
|
|
|
|
|
|
|
MPD_AUTO_PKG(jack, JACK, [jack >= 0.4],
|
|
|
|
[JACK output plugin], [libjack not found])
|
|
|
|
if test x$enable_jack = xyes; then
|
|
|
|
AC_DEFINE([HAVE_JACK], 1, [Define to enable JACK support])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$enable_jack = xyes; then
|
|
|
|
# check whether jack_set_info_function() is available
|
|
|
|
old_LIBS=$LIBS
|
|
|
|
LIBS="$LIBS $JACK_LIBS"
|
|
|
|
|
|
|
|
AC_CHECK_FUNCS(jack_set_info_function)
|
|
|
|
|
|
|
|
LIBS=$old_LIBS
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_JACK, test x$enable_jack = xyes)
|
2009-01-05 09:41:45 +01:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(mvp,
|
|
|
|
AS_HELP_STRING([--enable-mvp],
|
2009-03-06 09:53:12 +01:00
|
|
|
[enable support for Hauppauge Media MVP (default: disable)]),,
|
2009-01-05 09:41:45 +01:00
|
|
|
enable_mvp=no)
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(oss,
|
|
|
|
AS_HELP_STRING([--disable-oss],
|
2009-03-06 09:53:12 +01:00
|
|
|
[disable OSS support (default: enable)]),,
|
2009-01-05 09:41:45 +01:00
|
|
|
enable_oss=yes)
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(pulse,
|
2009-03-28 21:48:09 +01:00
|
|
|
AS_HELP_STRING([--enable-pulse],
|
|
|
|
[enable support for the PulseAudio sound server]),,
|
|
|
|
enable_pulse=auto)
|
|
|
|
|
|
|
|
MPD_AUTO_PKG(pulse, PULSE, [libpulse-simple],
|
|
|
|
[PulseAudio output plugin], [libpulse not found])
|
|
|
|
if test x$enable_pulse = xyes; then
|
|
|
|
AC_DEFINE([HAVE_PULSE], 1,
|
|
|
|
[Define to enable PulseAudio support])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_PULSE, test x$enable_pulse = xyes)
|
2009-01-05 09:41:45 +01:00
|
|
|
|
httpd: new output plugin to replace "shout"
Let's get rid of the "shout" plugin, and the awfully complicated
icecast daemon setup! MPD can do better if it's doing the HTTP server
stuff on its own. This new plugin has several advantages:
- easier to set up - only one daemon, no password settings, no mount
settings
- MPD controls the encoder and thus already knows the packet
boundaries - icecast has to parse them
- MPD doesn't bother to encode data while nobody is listening
This implementation is very experimental (no header parsing, ignores
request URI, no icy-metadata, ...). It should be able to suport
several encoders in parallel in the future (with different bit rates,
different codec, ...), to make MPD the perfect streaming server. Once
MPD gets multi-player support, we can even mount several different
radio stations on one server.
2009-03-15 03:32:34 +01:00
|
|
|
AC_ARG_ENABLE(httpd-output,
|
|
|
|
AS_HELP_STRING([--enable-httpd-output],
|
2009-04-01 21:59:58 +02:00
|
|
|
[enables the HTTP server output]),,
|
|
|
|
[enable_httpd_output=auto])
|
httpd: new output plugin to replace "shout"
Let's get rid of the "shout" plugin, and the awfully complicated
icecast daemon setup! MPD can do better if it's doing the HTTP server
stuff on its own. This new plugin has several advantages:
- easier to set up - only one daemon, no password settings, no mount
settings
- MPD controls the encoder and thus already knows the packet
boundaries - icecast has to parse them
- MPD doesn't bother to encode data while nobody is listening
This implementation is very experimental (no header parsing, ignores
request URI, no icy-metadata, ...). It should be able to suport
several encoders in parallel in the future (with different bit rates,
different codec, ...), to make MPD the perfect streaming server. Once
MPD gets multi-player support, we can even mount several different
radio stations on one server.
2009-03-15 03:32:34 +01:00
|
|
|
|
2005-03-13 20:23:09 +01:00
|
|
|
enable_osx=no
|
2009-02-18 23:07:13 +01:00
|
|
|
case "$host_os" in
|
|
|
|
darwin*)
|
2009-03-06 17:16:37 +01:00
|
|
|
AC_DEFINE(HAVE_OSX, 1, [Define for compiling OS X support])
|
2005-03-17 03:33:40 +01:00
|
|
|
MPD_LIBS="$MPD_LIBS -framework AudioUnit -framework CoreServices"
|
2005-03-13 20:23:09 +01:00
|
|
|
enable_osx=yes ;;
|
|
|
|
esac
|
|
|
|
|
2008-10-26 21:58:37 +01:00
|
|
|
AM_CONDITIONAL(HAVE_OSX, test x$enable_osx = xyes)
|
|
|
|
|
2009-03-15 20:37:24 +01:00
|
|
|
AC_ARG_ENABLE(shout,
|
|
|
|
AS_HELP_STRING([--enable-shout],
|
2009-04-01 21:58:38 +02:00
|
|
|
[enables the shoutcast streaming output]),,
|
|
|
|
[enable_shout=auto])
|
2009-03-15 20:37:24 +01:00
|
|
|
|
2009-04-01 21:58:38 +02:00
|
|
|
enable_shout2="$enable_shout"
|
|
|
|
MPD_AUTO_PKG(shout, SHOUT, [shout],
|
|
|
|
[shout output plugin], [libshout not found])
|
|
|
|
if test x$enable_shout = xyes && test x$enable_shout2 = xauto; then
|
|
|
|
enable_shout=auto
|
shout: introduce pluggable encoder API
I've perhaps gone a bit overboard, but here's the current rundown:
Both Ogg and MP3 use the "shout" audio output plugin. The shout audio
output plugin itself has two new plugins, one for the Ogg encoder,
and another for the MP3 (LAME) encoder.
Configuration for an Ogg stream doesn't change. For an MP3 stream,
configuration is the same as Ogg, with two exceptions. First, you must
specify the optional "encoding" parameter, which should be set to "mp3".
See mpd.conf(5) for more details. Second, the "quality" parameter is
reversed for LAME, such that 1 is high quality for LAME, whereas 10 is
high quality for Ogg.
I've decomposed the code so that all libshout related operations
are done in audioOutput_shout.c, all Ogg specific functions are in
audioOutput_shout_ogg.c, and of course then all LAME specific functions
are handled in audioOutput_shout_mp3.c.
To develop encoder plugins for the shout audio output plugin, I basically
just mimicked the plugin system used for audio outputs. This might be
overkill, but hopefully if anyone ever wants to support some other sort
of stream, like maybe AAC, FLAC, or WMA (hey it could happen), they will
hopefully be all set.
The Ogg encoder is slightly less optimal under this configuration.
It used to send shout data directly out of its ogg_page structures. Now,
in the interest of encapsulation, it copies the data from its ogg_page
structures into a buffer provided by the shout audio output plugin (see
audioOutput_shout_ogg.c, line 77.) I suspect the performance impact
is negligible.
As for metadata, I'm pretty sure they'll both work. I wrote up a test
scaffold that would create a fake tag, and tell the plugin to send it
out to the stream every few seconds. It seemed to work fine. Of course,
if something does break, I'll be glad to fix it.
Lastly, I've renamed lots of things into snake_case, in keeping with
normalperson's wishes in that regard.
[mk: moved the MP3 patch after this one. Splitted this patch into
several parts; the others were already applied before this one. Fixed
a bunch GCC warnings and wrong whitespace modifications. Made it
compile with mpd-mk by adapting to its prototypes]
2008-09-12 16:04:40 +02:00
|
|
|
fi
|
|
|
|
|
2009-03-16 09:55:10 +01:00
|
|
|
case "$host_os" in
|
|
|
|
solaris*)
|
|
|
|
AC_DEFINE(ENABLE_SOLARIS_OUTPUT, 1, [Define to enable Solaris /dev/audio support])
|
|
|
|
enable_solaris_output=yes
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
enable_solaris_output=no
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
AM_CONDITIONAL(ENABLE_SOLARIS_OUTPUT, test x$enable_solaris_output = xyes)
|
|
|
|
|
2005-02-02 11:27:24 +01:00
|
|
|
if test x$enable_oss = xyes; then
|
2009-03-06 17:16:37 +01:00
|
|
|
AC_CHECK_HEADER(sys/soundcard.h,
|
|
|
|
[enable_oss=yes;AC_DEFINE(HAVE_OSS,1,[Define to enable OSS])],
|
|
|
|
[AC_MSG_WARN(Soundcard headers not found -- disabling OSS support);
|
|
|
|
enable_oss=no])
|
2005-02-02 11:27:24 +01:00
|
|
|
fi
|
|
|
|
|
2008-10-26 21:58:37 +01:00
|
|
|
AM_CONDITIONAL(HAVE_OSS, test x$enable_oss = xyes)
|
|
|
|
|
2007-06-13 16:15:30 +02:00
|
|
|
if test x$enable_fifo = xyes; then
|
|
|
|
AC_CHECK_FUNC([mkfifo],
|
2009-03-06 17:16:37 +01:00
|
|
|
[enable_fifo=yes;AC_DEFINE([HAVE_FIFO], 1,
|
|
|
|
[Define to enable support for writing audio to a FIFO])],
|
|
|
|
[enable_fifo=no;AC_MSG_WARN([mkfifo not found -- disabling support for writing audio to a FIFO])])
|
2007-06-13 16:15:30 +02:00
|
|
|
fi
|
|
|
|
|
2008-10-26 21:58:37 +01:00
|
|
|
AM_CONDITIONAL(HAVE_FIFO, test x$enable_fifo = xyes)
|
|
|
|
|
2005-08-25 02:08:41 +02:00
|
|
|
if test x$enable_mvp = xyes; then
|
|
|
|
AC_DEFINE(HAVE_MVP,1,[Define to enable Hauppauge Media MVP support])
|
|
|
|
fi
|
|
|
|
|
2008-10-26 21:58:37 +01:00
|
|
|
AM_CONDITIONAL(HAVE_MVP, test x$enable_mvp = xyes)
|
|
|
|
|
2009-03-28 21:48:07 +01:00
|
|
|
MPD_AUTO_PKG(alsa, ALSA, [alsa >= 0.9.0],
|
|
|
|
[ALSA output plugin], [libasound not found])
|
2009-03-28 11:10:40 +01:00
|
|
|
|
|
|
|
if test x$enable_alsa = xyes; then
|
|
|
|
AC_DEFINE(HAVE_ALSA, 1, [Define to enable ALSA support])
|
2004-03-24 00:20:21 +01:00
|
|
|
fi
|
|
|
|
|
2008-10-26 21:58:37 +01:00
|
|
|
AM_CONDITIONAL(HAVE_ALSA, test x$enable_alsa = xyes)
|
|
|
|
|
2004-02-24 00:41:20 +01:00
|
|
|
if test x$enable_id3 = xyes; then
|
2009-01-04 15:31:06 +01:00
|
|
|
PKG_CHECK_MODULES([ID3TAG], [id3tag],,
|
|
|
|
AC_CHECK_LIB(id3tag, id3_file_open,
|
|
|
|
[ID3TAG_LIBS="-lid3tag -lz" ID3TAG_CFLAGS=""],
|
2009-01-05 08:04:43 +01:00
|
|
|
enable_id3=no))
|
2009-01-04 15:31:06 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$enable_id3 = xyes; then
|
|
|
|
AC_DEFINE(HAVE_ID3TAG, 1, [Define to use id3tag])
|
2004-02-24 00:41:20 +01:00
|
|
|
fi
|
|
|
|
|
2008-10-17 21:13:23 +02:00
|
|
|
AM_CONDITIONAL(HAVE_ID3TAG, test x$enable_id3 = xyes)
|
|
|
|
|
2005-02-01 05:15:41 +01:00
|
|
|
if test x$enable_mpc = xyes; then
|
2009-03-06 17:16:37 +01:00
|
|
|
if test "x$mpcdec_libraries" != "x" ; then
|
|
|
|
MPCDEC_LIBS="-L$mpcdec_libraries"
|
|
|
|
elif test "x$mpcdec_prefix" != "x" ; then
|
2006-09-06 11:29:06 +02:00
|
|
|
MPCDEC_LIBS="-L$mpcdec_prefix/lib"
|
2009-03-06 17:16:37 +01:00
|
|
|
fi
|
2005-02-01 05:15:41 +01:00
|
|
|
|
2009-03-06 17:16:37 +01:00
|
|
|
MPCDEC_LIBS="$MPCDEC_LIBS -lmpcdec"
|
2005-02-01 05:15:41 +01:00
|
|
|
|
2009-03-06 17:16:37 +01:00
|
|
|
if test "x$mpcdec_includes" != "x" ; then
|
|
|
|
MPCDEC_CFLAGS="-I$mpcdec_includes"
|
|
|
|
elif test "x$mpcdec_prefix" != "x" ; then
|
|
|
|
MPCDEC_CFLAGS="-I$mpcdec_prefix/include"
|
|
|
|
fi
|
2005-02-01 05:15:41 +01:00
|
|
|
|
|
|
|
oldcflags=$CFLAGS
|
|
|
|
oldlibs=$LIBS
|
|
|
|
oldcppflags=$CPPFLAGS
|
2005-07-30 12:28:43 +02:00
|
|
|
CFLAGS="$CFLAGS $MPD_CFLAGS $MPCDEC_CFLAGS -I."
|
|
|
|
LIBS="$LIBS $MPD_LIBS $MPCDEC_LIBS"
|
2005-02-01 05:15:41 +01:00
|
|
|
CPPFLAGS=$CFLAGS
|
2009-03-27 19:51:59 +01:00
|
|
|
AC_CHECK_HEADER(mpc/mpcdec.h,
|
|
|
|
old_mpcdec=no,
|
|
|
|
[AC_CHECK_HEADER(mpcdec/mpcdec.h,
|
|
|
|
old_mpcdec=yes,
|
|
|
|
enable_mpc=no)])
|
2005-02-01 05:15:41 +01:00
|
|
|
if test x$enable_mpc = xyes; then
|
2009-03-06 17:16:37 +01:00
|
|
|
AC_CHECK_LIB(mpcdec,main,
|
|
|
|
[MPD_LIBS="$MPD_LIBS $MPCDEC_LIBS";
|
|
|
|
MPD_CFLAGS="$MPD_CFLAGS $MPCDEC_CFLAGS";],
|
|
|
|
enable_mpc=no)
|
2005-02-01 05:15:41 +01:00
|
|
|
fi
|
|
|
|
if test x$enable_mpc = xyes; then
|
2009-03-06 17:16:37 +01:00
|
|
|
AC_DEFINE(HAVE_MPCDEC,1,
|
|
|
|
[Define to use libmpcdec for MPC decoding])
|
2009-03-27 19:51:59 +01:00
|
|
|
if test x$old_mpcdec = xyes; then
|
|
|
|
AC_DEFINE(MPC_IS_OLD_API, 1,
|
|
|
|
[Define if an old pre-SV8 libmpcdec is used])
|
|
|
|
fi
|
2005-02-01 05:15:41 +01:00
|
|
|
else
|
2005-07-30 12:28:43 +02:00
|
|
|
AC_MSG_WARN([mpcdec lib needed for MPC support -- disabling MPC support])
|
2005-02-01 05:15:41 +01:00
|
|
|
fi
|
|
|
|
CFLAGS=$oldcflags
|
|
|
|
LIBS=$oldlibs
|
|
|
|
CPPFLAGS=$oldcppflags
|
|
|
|
fi
|
|
|
|
|
2008-10-17 21:57:09 +02:00
|
|
|
AM_CONDITIONAL(HAVE_MPCDEC, test x$enable_mpc = xyes)
|
|
|
|
|
2007-06-24 22:40:04 +02:00
|
|
|
if test x$enable_wavpack = xyes; then
|
|
|
|
PKG_CHECK_MODULES([WAVPACK], [wavpack],
|
2009-03-06 17:16:37 +01:00
|
|
|
[enable_wavpack=yes;
|
|
|
|
AC_DEFINE([HAVE_WAVPACK], 1,
|
|
|
|
[Define to enable WavPack support])]
|
|
|
|
MPD_LIBS="$MPD_LIBS $WAVPACK_LIBS"
|
|
|
|
MPD_CFLAGS="$MPD_CFLAGS $WAVPACK_CFLAGS",
|
2009-03-16 08:44:46 +01:00
|
|
|
enable_wavpack=no)
|
2007-06-24 22:40:04 +02:00
|
|
|
fi
|
|
|
|
|
2008-10-17 21:57:09 +02:00
|
|
|
AM_CONDITIONAL(HAVE_WAVPACK, test x$enable_wavpack = xyes)
|
|
|
|
|
2009-03-06 16:36:08 +01:00
|
|
|
AM_PATH_FAAD()
|
2004-03-17 04:10:17 +01:00
|
|
|
|
2008-10-17 21:57:09 +02:00
|
|
|
AM_CONDITIONAL(HAVE_FAAD, test x$enable_aac = xyes)
|
|
|
|
|
2008-11-03 16:48:12 +01:00
|
|
|
AM_CONDITIONAL(HAVE_MP4, test x$enable_mp4 = xyes)
|
|
|
|
|
2005-08-25 10:07:28 +02:00
|
|
|
if test x$use_tremor = xyes; then
|
2006-07-19 17:54:53 +02:00
|
|
|
if test "x$tremor_libraries" != "x" ; then
|
|
|
|
TREMOR_LIBS="-L$tremor_libraries"
|
|
|
|
elif test "x$tremor_prefix" != "x" ; then
|
|
|
|
TREMOR_LIBS="-L$tremor_prefix/lib"
|
|
|
|
fi
|
|
|
|
TREMOR_LIBS="$TREMOR_LIBS -lvorbisidec"
|
|
|
|
if test "x$tremor_includes" != "x" ; then
|
|
|
|
TREMOR_CFLAGS="-I$tremor_includes"
|
|
|
|
elif test "x$tremor_prefix" != "x" ; then
|
|
|
|
TREMOR_CFLAGS="-I$tremor_prefix/include"
|
|
|
|
fi
|
2005-08-25 10:07:28 +02:00
|
|
|
ac_save_CFLAGS="$CFLAGS"
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
CFLAGS="$CFLAGS $TREMOR_CFLAGS"
|
|
|
|
LIBS="$LIBS $TREMOR_LIBS"
|
2009-04-01 22:45:17 +02:00
|
|
|
AC_CHECK_LIB(vorbisidec,ov_read,enable_vorbis=yes,enable_vorbis=no;
|
2009-03-06 17:16:37 +01:00
|
|
|
AC_MSG_WARN([vorbisidec lib needed for ogg support with tremor -- disabling ogg support]))
|
2009-04-01 22:45:00 +02:00
|
|
|
CFLAGS="$ac_save_CFLAGS"
|
|
|
|
LIBS="$ac_save_LIBS"
|
2009-04-01 22:45:17 +02:00
|
|
|
if test x$enable_vorbis = xyes; then
|
|
|
|
AC_DEFINE(ENABLE_VORBIS_DECODER, 1, [Define for Ogg Vorbis support])
|
2005-08-25 10:07:28 +02:00
|
|
|
fi
|
2009-04-01 22:45:17 +02:00
|
|
|
elif test x$enable_vorbis = xyes; then
|
|
|
|
PKG_CHECK_MODULES(VORBIS, [ogg vorbis vorbisfile],
|
|
|
|
AC_DEFINE(ENABLE_VORBIS_DECODER, 1, [Define for Ogg Vorbis support]),
|
|
|
|
enable_vorbis=no)
|
2004-02-24 00:41:20 +01:00
|
|
|
fi
|
|
|
|
|
2009-04-01 22:45:17 +02:00
|
|
|
AM_CONDITIONAL(ENABLE_VORBIS_DECODER, test x$enable_vorbis = xyes)
|
2008-10-17 21:57:09 +02:00
|
|
|
|
2005-08-25 10:07:28 +02:00
|
|
|
if test x$use_tremor = xyes; then
|
2009-03-06 17:16:37 +01:00
|
|
|
AC_DEFINE(HAVE_TREMOR,1,
|
|
|
|
[Define to use tremor (libvorbisidec) for ogg support])
|
2006-09-12 01:41:07 +02:00
|
|
|
if test x$enable_oggflac = xyes; then
|
|
|
|
AC_MSG_WARN([disabling OggFLAC support because it is incompatible with tremor])
|
|
|
|
enable_oggflac=no
|
|
|
|
fi
|
|
|
|
fi
|
2005-08-25 10:07:28 +02:00
|
|
|
|
2009-04-01 22:45:00 +02:00
|
|
|
AC_SUBST(TREMOR_CFLAGS)
|
|
|
|
AC_SUBST(TREMOR_LIBS)
|
|
|
|
|
2004-02-24 00:41:20 +01:00
|
|
|
if test x$enable_flac = xyes; then
|
2008-10-15 20:39:46 +02:00
|
|
|
PKG_CHECK_MODULES(FLAC, [flac >= 1.1],
|
|
|
|
AC_DEFINE(HAVE_FLAC, 1, [Define for FLAC support]),
|
|
|
|
enable_flac=no)
|
2006-03-16 07:52:46 +01:00
|
|
|
|
2004-02-24 00:41:20 +01:00
|
|
|
oldcflags="$CFLAGS"
|
|
|
|
oldlibs="$LIBS"
|
2008-10-15 20:39:46 +02:00
|
|
|
CFLAGS="$CFLAGS $FLAC_CFLAGS"
|
|
|
|
LIBS="$LIBS $FLAC_LIBS"
|
2008-11-03 17:35:16 +01:00
|
|
|
if test x$enable_flac = xyes && test x$enable_oggflac = xyes; then
|
2007-01-14 05:25:19 +01:00
|
|
|
AC_CHECK_DECL(FLAC_API_SUPPORTS_OGG_FLAC,
|
2009-03-06 17:16:37 +01:00
|
|
|
[enable_oggflac=flac], [],
|
|
|
|
[#include <FLAC/export.h>])
|
2004-02-24 00:41:20 +01:00
|
|
|
fi
|
|
|
|
CFLAGS="$oldcflags"
|
|
|
|
LIBS="$oldlibs"
|
|
|
|
fi
|
|
|
|
|
2008-10-17 21:57:09 +02:00
|
|
|
AM_CONDITIONAL(HAVE_FLAC, test x$enable_flac = xyes)
|
|
|
|
|
2006-03-16 07:52:46 +01:00
|
|
|
if test x$enable_oggflac = xyes; then
|
|
|
|
oldmpdcflags="$MPD_CFLAGS"
|
|
|
|
oldmpdlibs="$MPD_LIBS"
|
2009-03-06 17:16:37 +01:00
|
|
|
AM_PATH_LIBOGGFLAC(MPD_LIBS="$MPD_LIBS $LIBOGGFLAC_LIBS"
|
|
|
|
MPD_CFLAGS="$MPD_CFLAGS $LIBOGGFLAC_CFLAGS",
|
|
|
|
enable_oggflac=no)
|
2006-03-16 07:52:46 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$enable_oggflac = xyes; then
|
|
|
|
AC_DEFINE(HAVE_OGGFLAC,1,[Define for OggFLAC support])
|
|
|
|
fi
|
|
|
|
|
2008-10-17 21:57:09 +02:00
|
|
|
AM_CONDITIONAL(HAVE_OGGFLAC, test x$enable_oggflac = xyes)
|
|
|
|
|
2009-03-06 17:16:37 +01:00
|
|
|
AM_CONDITIONAL(HAVE_FLAC_COMMON,
|
|
|
|
test x$enable_flac = xyes || test x$enable_oggflac = xyes)
|
|
|
|
AM_CONDITIONAL(HAVE_OGG_COMMON,
|
2009-04-01 22:45:17 +02:00
|
|
|
test x$enable_vorbis = xyes || test x$enable_oggflac = xyes || test x$enable_flac = xyes)
|
2006-03-16 07:52:46 +01:00
|
|
|
|
2004-02-24 00:41:20 +01:00
|
|
|
if test x$enable_audiofile = xyes; then
|
2008-10-15 20:39:46 +02:00
|
|
|
PKG_CHECK_MODULES(AUDIOFILE, [audiofile >= 0.1.7],
|
|
|
|
AC_DEFINE(HAVE_AUDIOFILE, 1, [Define for audiofile support]),
|
|
|
|
enable_audiofile=no)
|
2004-03-18 04:29:25 +01:00
|
|
|
fi
|
|
|
|
|
2008-10-17 21:57:09 +02:00
|
|
|
AM_CONDITIONAL(HAVE_AUDIOFILE, test x$enable_audiofile = xyes)
|
|
|
|
|
2009-07-14 14:23:49 +02:00
|
|
|
MPD_AUTO_PKG(ffmpeg, FFMPEG, [libavformat libavcodec libavutil],
|
|
|
|
[ffmpeg decoder library], [libavformat+libavcodec+libavutil not found])
|
2008-10-17 22:27:33 +02:00
|
|
|
|
2008-11-04 17:42:37 +01:00
|
|
|
if test x$enable_ffmpeg = xyes; then
|
|
|
|
old_LIBS=$LIBS
|
|
|
|
LIBS="$LIBS $FFMPEG_LIBS"
|
|
|
|
AC_CHECK_LIB(avcodec, avcodec_decode_audio2,,
|
|
|
|
enable_ffmpeg=no)
|
|
|
|
LIBS=$old_LIBS
|
|
|
|
fi
|
|
|
|
|
2008-10-21 08:34:19 +02:00
|
|
|
if test x$enable_ffmpeg = xyes; then
|
|
|
|
# prior to ffmpeg svn12865, you had to specify include files
|
|
|
|
# without path prefix
|
|
|
|
old_CPPCFLAGS=$CPPFLAGS
|
|
|
|
CPPFLAGS="$CPPFLAGS $FFMPEG_CFLAGS"
|
|
|
|
AC_CHECK_HEADER(libavcodec/avcodec.h,,
|
|
|
|
AC_DEFINE(OLD_FFMPEG_INCLUDES, 1,
|
|
|
|
[Define if avcodec.h instead of libavcodec/avcodec.h should be included]))
|
|
|
|
CPPCFLAGS=$old_CPPFLAGS
|
|
|
|
fi
|
|
|
|
|
2009-02-09 22:22:06 +01:00
|
|
|
if test x$enable_ffmpeg = xyes; then
|
2009-02-11 19:58:53 +01:00
|
|
|
AC_DEFINE(HAVE_FFMPEG, 1, [Define for FFMPEG support])
|
2009-02-09 22:22:06 +01:00
|
|
|
fi
|
|
|
|
|
2008-10-17 22:27:33 +02:00
|
|
|
AM_CONDITIONAL(HAVE_FFMPEG, test x$enable_ffmpeg = xyes)
|
|
|
|
|
2009-02-12 08:43:26 +01:00
|
|
|
if test x$enable_fluidsynth = xyes; then
|
|
|
|
PKG_CHECK_MODULES(FLUIDSYNTH, [fluidsynth],
|
|
|
|
AC_DEFINE(ENABLE_FLUIDSYNTH, 1, [Define for fluidsynth support]),
|
|
|
|
enable_fluidsynth=no)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(ENABLE_FLUIDSYNTH, test x$enable_fluidsynth = xyes)
|
|
|
|
|
2009-02-12 16:43:18 +01:00
|
|
|
if test x$enable_wildmidi = xyes; then
|
|
|
|
oldcflags=$CFLAGS
|
|
|
|
oldlibs=$LIBS
|
|
|
|
oldcppflags=$CPPFLAGS
|
|
|
|
|
|
|
|
AC_CHECK_LIB(WildMidi, WildMidi_Init,,
|
|
|
|
AC_MSG_ERROR([libwildmidi not found]))
|
|
|
|
|
|
|
|
CFLAGS=$oldcflags
|
|
|
|
LIBS=$oldlibs
|
|
|
|
CPPFLAGS=$oldcppflags
|
|
|
|
|
|
|
|
AC_SUBST(WILDMIDI_LIBS,-lWildMidi)
|
|
|
|
AC_SUBST(WILDMIDI_CFLAGS,)
|
|
|
|
|
|
|
|
AC_DEFINE(ENABLE_WILDMIDI, 1, [Define for wildmidi support])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(ENABLE_WILDMIDI, test x$enable_wildmidi = xyes)
|
|
|
|
|
2008-10-14 17:21:51 +02:00
|
|
|
|
2009-04-01 21:06:53 +02:00
|
|
|
dnl
|
|
|
|
dnl Encoder API and shout/httpd output plugin
|
|
|
|
dnl
|
|
|
|
|
2009-04-01 22:03:37 +02:00
|
|
|
if test x$enable_shout = xyes || test x$enable_httpd_output = xyes; then
|
|
|
|
# at least one output using encoders is explicitly enabled
|
|
|
|
need_encoder=yes
|
|
|
|
elif test x$enable_shout = xauto || test x$enable_httpd_output = xauto; then
|
|
|
|
need_encoder=auto
|
|
|
|
else
|
|
|
|
# all outputs using encoders are disabled
|
|
|
|
need_encoder=no
|
|
|
|
|
|
|
|
# don't bother to check for encoder plugins
|
2009-04-01 22:44:45 +02:00
|
|
|
enable_vorbis_encoder=no
|
2009-04-01 22:44:28 +02:00
|
|
|
enable_lame_encoder=no
|
2009-04-01 22:03:37 +02:00
|
|
|
fi
|
|
|
|
|
2009-04-01 22:44:45 +02:00
|
|
|
MPD_AUTO_PKG(vorbis_encoder, VORBISENC, [vorbisenc],
|
2009-04-01 22:05:07 +02:00
|
|
|
[Ogg Vorbis encoder], [libvorbisenc not found])
|
2009-04-01 21:06:53 +02:00
|
|
|
|
2009-04-01 22:44:28 +02:00
|
|
|
if test x$enable_lame_encoder != xno; then
|
|
|
|
AM_PATH_LAME([found_lame_encoder=yes], [found_lame_encoder=no])
|
|
|
|
MPD_AUTO_RESULT(lame_encoder, [LAME encoder plugin],
|
2009-04-01 22:06:40 +02:00
|
|
|
[LAME not found])
|
2009-04-01 21:06:53 +02:00
|
|
|
fi
|
|
|
|
|
2009-04-01 22:05:53 +02:00
|
|
|
AC_SUBST(LAME_CFLAGS)
|
|
|
|
AC_SUBST(LAME_LIBS)
|
|
|
|
|
2009-04-01 22:44:45 +02:00
|
|
|
if test x$enable_vorbis_encoder != xno ||
|
2009-04-01 22:44:28 +02:00
|
|
|
test x$enable_lame_encoder != xno; then
|
2009-04-01 21:54:38 +02:00
|
|
|
# at least one encoder plugin is enabled
|
|
|
|
enable_encoder=yes
|
|
|
|
else
|
|
|
|
# no encoder plugin is enabled: disable the whole encoder API
|
|
|
|
enable_encoder=no
|
2009-04-01 22:03:37 +02:00
|
|
|
|
|
|
|
if test x$need_encoder = xyes; then
|
|
|
|
AC_MSG_ERROR([No encoder plugin found])
|
|
|
|
fi
|
2009-04-01 21:54:38 +02:00
|
|
|
fi
|
|
|
|
|
2009-04-01 22:03:37 +02:00
|
|
|
|
2009-04-01 21:58:38 +02:00
|
|
|
if test x$enable_shout = xauto; then
|
|
|
|
# handle shout auto-detection: disable if no encoder is
|
|
|
|
# available
|
|
|
|
if test x$enable_encoder = xyes; then
|
|
|
|
enable_shout=yes
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([No encoder plugin -- disabling the shout output plugin])
|
|
|
|
enable_shout=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2009-04-01 21:59:58 +02:00
|
|
|
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
|
|
|
|
|
2009-04-01 21:06:53 +02:00
|
|
|
AM_CONDITIONAL(HAVE_SHOUT, test x$enable_shout = xyes)
|
2009-04-05 06:31:54 +02:00
|
|
|
if test x$enable_shout = xyes; then
|
|
|
|
AC_DEFINE(HAVE_SHOUT, 1, [Define to enable the shoutcast output])
|
|
|
|
fi
|
2009-04-01 21:06:53 +02:00
|
|
|
|
|
|
|
AM_CONDITIONAL(ENABLE_HTTPD_OUTPUT, test x$enable_httpd_output = xyes)
|
|
|
|
if test x$enable_httpd_output = xyes; then
|
|
|
|
AC_DEFINE(ENABLE_HTTPD_OUTPUT, 1, [Define to enable the HTTP server output])
|
|
|
|
fi
|
|
|
|
|
2009-04-01 21:54:38 +02:00
|
|
|
AM_CONDITIONAL(ENABLE_ENCODER, test x$enable_encoder = xyes)
|
2009-04-01 21:06:53 +02:00
|
|
|
|
2009-04-01 22:44:45 +02:00
|
|
|
AM_CONDITIONAL(ENABLE_VORBIS_ENCODER, test x$enable_vorbis_encoder = xyes)
|
|
|
|
if test x$enable_vorbis_encoder = xyes; then
|
2009-04-01 21:06:53 +02:00
|
|
|
AC_DEFINE(ENABLE_VORBIS_ENCODER, 1,
|
|
|
|
[Define to enable the vorbis encoder plugin])
|
|
|
|
fi
|
|
|
|
|
2009-04-01 22:44:28 +02:00
|
|
|
AM_CONDITIONAL(ENABLE_LAME_ENCODER, test x$enable_lame_encoder = xyes)
|
|
|
|
if test x$enable_lame_encoder = xyes; then
|
2009-04-01 21:06:53 +02:00
|
|
|
AC_DEFINE(ENABLE_LAME_ENCODER, 1,
|
|
|
|
[Define to enable the lame encoder plugin])
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2008-11-20 08:59:55 +01:00
|
|
|
dnl
|
|
|
|
dnl Documentation
|
|
|
|
dnl
|
|
|
|
|
2009-02-04 15:25:57 +01:00
|
|
|
AC_ARG_ENABLE(documentation,
|
|
|
|
AS_HELP_STRING([--enable-documentation],
|
|
|
|
[build documentation (default: disable)]),,
|
|
|
|
[enable_documentation=no])
|
|
|
|
|
|
|
|
if test x$enable_documentation = xyes; then
|
|
|
|
AC_PATH_PROG(XMLTO, xmlto)
|
2008-11-20 08:59:55 +01:00
|
|
|
AC_SUBST(XMLTO)
|
2009-03-01 01:26:04 +01:00
|
|
|
AM_CONDITIONAL(HAVE_XMLTO, test x$XMLTO != x)
|
2009-02-13 09:11:22 +01:00
|
|
|
|
|
|
|
AC_PATH_PROG(DOXYGEN, doxygen)
|
|
|
|
if test x$DOXYGEN = x; then
|
|
|
|
AC_MSG_ERROR([doxygen not found])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(DOXYGEN)
|
2009-03-01 01:26:04 +01:00
|
|
|
else
|
|
|
|
AM_CONDITIONAL(HAVE_XMLTO, false)
|
2008-11-20 08:59:55 +01:00
|
|
|
fi
|
|
|
|
|
2009-02-04 15:25:57 +01:00
|
|
|
AM_CONDITIONAL(ENABLE_DOCUMENTATION, test x$enable_documentation = xyes)
|
2008-11-20 08:59:55 +01:00
|
|
|
|
|
|
|
|
2008-10-14 17:23:00 +02:00
|
|
|
dnl
|
|
|
|
dnl build options
|
|
|
|
dnl
|
|
|
|
|
2009-01-05 09:31:11 +01:00
|
|
|
AC_ARG_ENABLE(werror,
|
|
|
|
AS_HELP_STRING([--enable-werror],
|
2009-03-06 15:59:36 +01:00
|
|
|
[treat warnings as errors (default: disabled)]),,
|
2009-03-07 15:50:19 +01:00
|
|
|
enable_werror=no)
|
2009-01-05 09:31:11 +01:00
|
|
|
|
2009-03-07 15:50:19 +01:00
|
|
|
if test "x$enable_werror" = xyes; then
|
2009-02-25 16:46:07 +01:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -Werror -pedantic-errors"
|
2008-10-14 17:23:00 +02:00
|
|
|
fi
|
|
|
|
|
2009-01-05 09:31:11 +01:00
|
|
|
AC_ARG_ENABLE(debug,
|
|
|
|
AS_HELP_STRING([--enable-debug],
|
2009-03-06 15:59:36 +01:00
|
|
|
[enable debugging (default: disabled)]),,
|
2009-03-07 15:50:19 +01:00
|
|
|
enable_debug=no)
|
2009-01-05 09:31:11 +01:00
|
|
|
|
2009-03-07 15:50:19 +01:00
|
|
|
#if test "x$enable_debug" = xno; then
|
2008-10-14 17:23:00 +02:00
|
|
|
# don't set NDEBUG for now, until MPD is stable
|
2009-02-25 16:46:07 +01:00
|
|
|
#AM_CFLAGS="$AM_CFLAGS -DNDEBUG"
|
2008-10-14 17:23:00 +02:00
|
|
|
#fi
|
|
|
|
|
2009-01-05 09:31:11 +01:00
|
|
|
AC_ARG_ENABLE(gprof,
|
|
|
|
AS_HELP_STRING([--enable-gprof],
|
2009-03-06 15:59:36 +01:00
|
|
|
[enable profiling via gprof (default: disabled)]),,
|
2009-03-07 15:50:19 +01:00
|
|
|
enable_gprof=no)
|
2009-01-05 09:31:11 +01:00
|
|
|
|
2009-03-07 15:50:19 +01:00
|
|
|
if test "x$enable_gprof" = xyes; then
|
2008-10-14 17:23:00 +02:00
|
|
|
MPD_CFLAGS="$MPD_CFLAGS -pg"
|
2009-03-11 09:20:29 +01:00
|
|
|
MPD_LIBS="$MPD_LIBS -pg"
|
2008-10-14 17:23:00 +02:00
|
|
|
fi
|
|
|
|
|
2009-02-18 19:27:05 +01:00
|
|
|
AC_ARG_ENABLE(test,
|
|
|
|
AS_HELP_STRING([--enable-test],
|
2009-03-06 15:59:36 +01:00
|
|
|
[build the test programs (default: disabled)]),,
|
2009-02-18 19:27:05 +01:00
|
|
|
enable_test=no)
|
|
|
|
|
|
|
|
AM_CONDITIONAL(ENABLE_TEST, test "x$enable_test" = xyes)
|
|
|
|
|
2008-10-14 17:23:00 +02:00
|
|
|
|
2008-10-14 17:21:51 +02:00
|
|
|
dnl
|
|
|
|
dnl CFLAGS
|
|
|
|
dnl
|
|
|
|
|
|
|
|
if test x$GCC = xyes
|
|
|
|
then
|
|
|
|
MPD_CHECK_FLAG([-Wall])
|
|
|
|
MPD_CHECK_FLAG([-Wextra])
|
|
|
|
MPD_CHECK_FLAG([-Wno-deprecated-declarations])
|
|
|
|
MPD_CHECK_FLAG([-Wmissing-prototypes])
|
|
|
|
MPD_CHECK_FLAG([-Wdeclaration-after-statement])
|
|
|
|
MPD_CHECK_FLAG([-Wshadow])
|
|
|
|
MPD_CHECK_FLAG([-Wpointer-arith])
|
|
|
|
MPD_CHECK_FLAG([-Wstrict-prototypes])
|
|
|
|
MPD_CHECK_FLAG([-Wcast-qual])
|
|
|
|
MPD_CHECK_FLAG([-Wwrite-strings])
|
2008-10-14 17:21:58 +02:00
|
|
|
MPD_CHECK_FLAG([-pedantic])
|
2008-10-14 17:21:51 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl pretty-print result
|
|
|
|
dnl
|
|
|
|
|
2004-03-17 19:13:29 +01:00
|
|
|
echo ""
|
|
|
|
echo "########### MPD CONFIGURATION ############"
|
2004-03-24 00:20:21 +01:00
|
|
|
echo ""
|
|
|
|
|
2008-04-12 06:07:24 +02:00
|
|
|
echo " Client Support:"
|
2008-04-12 06:07:31 +02:00
|
|
|
if test x$enable_ipv6 = xyes; then
|
|
|
|
echo " IPv6 support ..................enabled"
|
|
|
|
else
|
|
|
|
echo " IPv6 support ..................disabled"
|
|
|
|
fi
|
|
|
|
|
2009-02-28 16:50:13 +01:00
|
|
|
if test x$enable_tcp = xyes; then
|
|
|
|
echo " TCP support ...................enabled"
|
|
|
|
else
|
|
|
|
echo " TCP support ...................disabled"
|
|
|
|
fi
|
|
|
|
|
2008-04-12 06:07:24 +02:00
|
|
|
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
|
|
|
|
|
2005-03-24 01:10:14 +01:00
|
|
|
echo " Playback Support:"
|
2005-03-05 13:29:00 +01:00
|
|
|
if test x$enable_alsa = xyes; then
|
2005-03-24 01:10:14 +01:00
|
|
|
echo " ALSA support ..................enabled"
|
2005-03-05 13:29:00 +01:00
|
|
|
else
|
2005-03-24 01:10:14 +01:00
|
|
|
echo " ALSA support ..................disabled"
|
2005-03-05 13:29:00 +01:00
|
|
|
fi
|
|
|
|
|
2009-02-28 16:50:13 +01:00
|
|
|
if test x$enable_fifo = xyes; then
|
|
|
|
echo " FIFO support ..................enabled"
|
|
|
|
else
|
|
|
|
echo " FIFO support ..................disabled"
|
|
|
|
fi
|
|
|
|
|
2009-03-15 20:02:43 +01:00
|
|
|
if test x$enable_httpd_output = xyes; then
|
|
|
|
echo " HTTP daemon support ...........enabled"
|
|
|
|
else
|
|
|
|
echo " HTTP daemon support ...........disabled"
|
|
|
|
fi
|
|
|
|
|
2006-10-18 04:49:13 +02:00
|
|
|
if test x$enable_jack = xyes; then
|
|
|
|
echo " JACK support ..................enabled"
|
|
|
|
else
|
|
|
|
echo " JACK support ..................disabled"
|
|
|
|
fi
|
|
|
|
|
2009-02-28 16:50:13 +01:00
|
|
|
if test x$enable_ao = xyes; then
|
|
|
|
echo " libao support .................enabled"
|
|
|
|
else
|
|
|
|
echo " libao support .................disabled"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$enable_oss = xyes; then
|
|
|
|
echo " OSS support ...................enabled"
|
|
|
|
else
|
|
|
|
echo " OSS support ...................disabled"
|
|
|
|
fi
|
|
|
|
|
2005-03-13 20:23:09 +01:00
|
|
|
if test x$enable_osx = xyes; then
|
2005-03-24 01:10:14 +01:00
|
|
|
echo " OS X support ..................enabled"
|
2005-03-13 20:23:09 +01:00
|
|
|
else
|
2005-03-24 01:10:14 +01:00
|
|
|
echo " OS X support ..................disabled"
|
2005-03-13 20:23:09 +01:00
|
|
|
fi
|
|
|
|
|
2009-02-28 16:41:05 +01:00
|
|
|
if test x$enable_pipe_output = xyes; then
|
|
|
|
echo " Pipeline output support .......enabled"
|
|
|
|
else
|
|
|
|
echo " Pipeline output support .......disabled"
|
|
|
|
fi
|
|
|
|
|
2006-07-13 21:03:49 +02:00
|
|
|
if test x$enable_pulse = xyes; then
|
|
|
|
echo " PulseAudio support ............enabled"
|
|
|
|
else
|
|
|
|
echo " PulseAudio support ............disabled"
|
|
|
|
fi
|
|
|
|
|
2005-08-25 02:08:41 +02:00
|
|
|
if test x$enable_mvp = xyes; then
|
|
|
|
echo " Media MVP support .............enabled"
|
|
|
|
else
|
|
|
|
echo " Media MVP support .............disabled"
|
|
|
|
fi
|
|
|
|
|
2009-03-06 08:25:50 +01:00
|
|
|
if test x$enable_shout = xyes; then
|
|
|
|
echo " SHOUTcast support .............enabled"
|
2008-09-12 16:05:23 +02:00
|
|
|
else
|
2009-03-06 08:25:50 +01:00
|
|
|
echo " SHOUTcast support .............disabled"
|
2008-09-12 16:05:23 +02:00
|
|
|
fi
|
|
|
|
|
2009-03-16 09:55:10 +01:00
|
|
|
if test x$enable_solaris_output = xyes; then
|
|
|
|
echo " Solaris /dev/audio support ....enabled"
|
|
|
|
else
|
|
|
|
echo " Solaris /dev/audio support ....disabled"
|
|
|
|
fi
|
|
|
|
|
2005-03-05 13:29:00 +01:00
|
|
|
echo ""
|
|
|
|
|
2009-03-06 17:16:37 +01:00
|
|
|
if
|
|
|
|
test x$enable_ao = xno &&
|
|
|
|
test x$enable_oss = xno &&
|
2009-03-16 08:44:44 +01:00
|
|
|
test x$enable_shout = xno &&
|
|
|
|
test x$enable_httpd_output = xno &&
|
2009-03-16 09:55:10 +01:00
|
|
|
test x$enable_solaris_output = xno &&
|
2009-03-06 17:16:37 +01:00
|
|
|
test x$enable_alsa = xno &&
|
|
|
|
test x$enable_osx = xno &&
|
|
|
|
test x$enable_pulse = xno &&
|
|
|
|
test x$enable_jack = xno &&
|
|
|
|
test x$enable_fifo = xno &&
|
|
|
|
test x$enable_pipe_output = xno &&
|
|
|
|
test x$enable_mvp = xno; then
|
|
|
|
AC_MSG_ERROR([No Audio Output types configured!])
|
2005-03-17 01:56:31 +01:00
|
|
|
fi
|
|
|
|
|
2009-03-15 20:02:43 +01:00
|
|
|
if
|
|
|
|
test x$enable_shout = xyes ||
|
|
|
|
test x$enable_httpd_output = xyes; then
|
|
|
|
echo " Streaming Encoder Support:"
|
2009-04-01 22:44:28 +02:00
|
|
|
if test x$enable_lame_encoder = xyes; then
|
2009-03-15 20:02:43 +01:00
|
|
|
echo " LAME mp3 encoder ..............enabled"
|
|
|
|
else
|
|
|
|
echo " LAME mp3 encoder ..............disabled"
|
|
|
|
fi
|
|
|
|
|
2009-04-01 22:44:45 +02:00
|
|
|
if test x$enable_vorbis_encoder = xyes; then
|
2009-03-15 20:02:43 +01:00
|
|
|
echo " Ogg Vorbis encoder ............enabled"
|
|
|
|
else
|
|
|
|
echo " Ogg Vorbis encoder ............disabled"
|
|
|
|
fi
|
|
|
|
echo ""
|
|
|
|
fi
|
|
|
|
|
2005-03-24 01:10:14 +01:00
|
|
|
echo " File Format Support:"
|
2005-03-05 13:29:00 +01:00
|
|
|
|
2009-02-28 16:50:13 +01:00
|
|
|
if test x$enable_aac = xyes; then
|
|
|
|
echo " AAC support ...................enabled"
|
2004-03-17 19:13:29 +01:00
|
|
|
else
|
2009-02-28 16:50:13 +01:00
|
|
|
echo " AAC support ...................disabled"
|
2004-03-17 19:13:29 +01:00
|
|
|
fi
|
|
|
|
|
2009-02-28 16:50:13 +01:00
|
|
|
if test x$enable_sidplay = xyes; then
|
|
|
|
echo " C64 SID support ...............enabled"
|
2008-09-12 16:05:23 +02:00
|
|
|
else
|
2009-02-28 16:50:13 +01:00
|
|
|
echo " C64 SID support ...............disabled"
|
2008-09-12 16:05:23 +02:00
|
|
|
fi
|
|
|
|
|
2009-02-28 16:50:13 +01:00
|
|
|
if test x$enable_ffmpeg = xyes; then
|
|
|
|
echo " FFMPEG support ................enabled"
|
2004-03-17 19:13:29 +01:00
|
|
|
else
|
2009-02-28 16:50:13 +01:00
|
|
|
echo " FFMPEG support ................disabled"
|
2004-03-17 19:13:29 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$enable_flac = xyes; then
|
2005-03-24 01:10:14 +01:00
|
|
|
echo " FLAC support ..................enabled"
|
2004-03-17 19:13:29 +01:00
|
|
|
else
|
2005-03-24 01:10:14 +01:00
|
|
|
echo " FLAC support ..................disabled"
|
2004-03-17 19:13:29 +01:00
|
|
|
fi
|
|
|
|
|
2009-02-28 16:50:13 +01:00
|
|
|
if test x$enable_fluidsynth = xyes; then
|
|
|
|
echo " fluidsynth MIDI support .......enabled"
|
|
|
|
else
|
|
|
|
echo " fluidsynth MIDI support .......disabled"
|
|
|
|
fi
|
2006-03-16 07:52:46 +01:00
|
|
|
|
2009-04-01 22:48:06 +02:00
|
|
|
if test x$enable_mikmod = xyes; then
|
|
|
|
echo " MikMod support ................enabled"
|
2009-02-28 16:50:13 +01:00
|
|
|
else
|
2009-04-01 22:48:06 +02:00
|
|
|
echo " MikMod support ................disabled"
|
2009-02-28 16:50:13 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$enable_modplug = xyes; then
|
|
|
|
echo " MODPLUG support ...............enabled"
|
|
|
|
else
|
|
|
|
echo " MODPLUG support ...............disabled"
|
|
|
|
fi
|
|
|
|
|
2009-03-06 10:29:11 +01:00
|
|
|
if test x$enable_mad = xyes; then
|
|
|
|
echo " MAD mp3 decoder support .......enabled"
|
2009-02-28 16:50:13 +01:00
|
|
|
else
|
2009-03-06 10:29:11 +01:00
|
|
|
echo " MAD mp3 decoder support .......disabled"
|
2008-11-03 16:48:12 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$enable_mp4 = xyes; then
|
|
|
|
echo " MP4 support ...................enabled"
|
2004-03-17 19:13:29 +01:00
|
|
|
else
|
2008-11-03 16:48:12 +01:00
|
|
|
echo " MP4 support ...................disabled"
|
2004-03-17 19:13:29 +01:00
|
|
|
fi
|
|
|
|
|
2005-02-01 05:15:41 +01:00
|
|
|
if test x$enable_mpc = xyes; then
|
2005-03-24 01:10:14 +01:00
|
|
|
echo " Musepack (MPC) support ........enabled"
|
2005-02-01 05:15:41 +01:00
|
|
|
else
|
2005-03-24 01:10:14 +01:00
|
|
|
echo " Musepack (MPC) support ........disabled"
|
2005-02-01 05:15:41 +01:00
|
|
|
fi
|
|
|
|
|
2009-02-28 16:50:13 +01:00
|
|
|
case $enable_oggflac in
|
|
|
|
yes)
|
|
|
|
echo " OggFLAC support ...............enabled"
|
|
|
|
;;
|
|
|
|
flac)
|
|
|
|
echo " OggFLAC support ...............enabled(FLAC 1.1.3)"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo " OggFLAC support ...............disabled"
|
|
|
|
;;
|
|
|
|
esac
|
2004-05-31 22:59:55 +02:00
|
|
|
|
2009-04-01 22:45:17 +02:00
|
|
|
if test x$enable_vorbis = xyes; then
|
2009-02-28 16:50:13 +01:00
|
|
|
echo " Ogg Vorbis support ............enabled"
|
|
|
|
if test x$use_tremor = xyes; then
|
|
|
|
echo " using tremor.................yes"
|
|
|
|
else
|
|
|
|
echo " using tremor.................no"
|
|
|
|
fi
|
2008-12-28 17:11:18 +01:00
|
|
|
else
|
2009-02-28 16:50:13 +01:00
|
|
|
echo " Ogg Vorbis support ............disabled"
|
2008-12-28 17:11:18 +01:00
|
|
|
fi
|
|
|
|
|
2009-02-28 16:50:13 +01:00
|
|
|
if test x$enable_audiofile = xyes; then
|
|
|
|
echo " Wave file support .............enabled"
|
2009-02-11 20:31:17 +01:00
|
|
|
else
|
2009-02-28 16:50:13 +01:00
|
|
|
echo " Wave file support .............disabled"
|
2009-02-11 20:31:17 +01:00
|
|
|
fi
|
|
|
|
|
2009-02-28 16:50:13 +01:00
|
|
|
if test x$enable_wavpack = xyes; then
|
|
|
|
echo " WavPack support ...............enabled"
|
2009-02-12 08:43:26 +01:00
|
|
|
else
|
2009-02-28 16:50:13 +01:00
|
|
|
echo " WavPack support ...............disabled"
|
2009-02-12 08:43:26 +01:00
|
|
|
fi
|
|
|
|
|
2009-02-12 16:43:18 +01:00
|
|
|
if test x$enable_wildmidi = xyes; then
|
|
|
|
echo " wildmidi MIDI support .........enabled"
|
|
|
|
else
|
|
|
|
echo " wildmidi MIDI support .........disabled"
|
|
|
|
fi
|
|
|
|
|
2009-02-28 16:50:13 +01:00
|
|
|
|
2008-10-17 22:27:33 +02:00
|
|
|
|
2006-07-16 23:58:52 +02:00
|
|
|
if
|
2009-03-06 10:29:11 +01:00
|
|
|
test x$enable_mad = xno &&
|
2009-04-01 22:45:17 +02:00
|
|
|
test x$enable_vorbis = xno &&
|
2006-07-16 23:58:52 +02:00
|
|
|
test x$enable_flac = xno &&
|
|
|
|
test x$enable_oggflac = xno &&
|
|
|
|
test x$enable_audiofile = xno &&
|
|
|
|
test x$enable_aac = xno &&
|
|
|
|
test x$enable_mpc = xno &&
|
2007-06-24 22:40:04 +02:00
|
|
|
test x$enable_wavpack = xno &&
|
2008-10-17 22:27:33 +02:00
|
|
|
test x$enable_ffmpeg = xno &&
|
2008-12-28 17:11:18 +01:00
|
|
|
test x$enable_modplug = xno &&
|
2009-02-11 20:31:17 +01:00
|
|
|
test x$enable_sidplay = xno &&
|
2009-02-12 08:43:26 +01:00
|
|
|
test x$enable_fluidsynth = xno &&
|
2009-02-12 16:43:18 +01:00
|
|
|
test x$enable_wildmidi = xno &&
|
2009-02-28 16:55:39 +01:00
|
|
|
test x$enable_mp4 = xno &&
|
2009-04-01 22:48:06 +02:00
|
|
|
test x$enable_mikmod = xno; then
|
2009-03-06 17:16:37 +01:00
|
|
|
AC_MSG_ERROR([No input plugins supported!])
|
2006-07-16 23:58:52 +02:00
|
|
|
fi
|
|
|
|
|
2008-12-27 18:54:00 +01:00
|
|
|
echo ""
|
|
|
|
echo " Archive support:"
|
|
|
|
|
2009-03-07 23:05:25 +01:00
|
|
|
if test x$enable_bzip2 = xyes; then
|
2008-12-27 18:54:00 +01:00
|
|
|
echo " BZ2 archives support ..........enabled"
|
|
|
|
else
|
|
|
|
echo " BZ2 archives support ..........disabled"
|
|
|
|
fi
|
|
|
|
|
2009-03-07 23:05:25 +01:00
|
|
|
if test x$enable_iso9660 = xyes; then
|
2008-12-27 18:54:00 +01:00
|
|
|
echo " ISO 9660 archives support .....enabled"
|
|
|
|
else
|
|
|
|
echo " ISO 9660 archives support .....disabled"
|
|
|
|
fi
|
|
|
|
|
2009-02-28 16:50:13 +01:00
|
|
|
if test x$enable_zip = xyes; then
|
|
|
|
echo " ZIP archives support ..........enabled"
|
2007-01-11 21:41:17 +01:00
|
|
|
else
|
2009-02-28 16:50:13 +01:00
|
|
|
echo " ZIP archives support ..........disabled"
|
2007-01-11 21:41:17 +01:00
|
|
|
fi
|
|
|
|
|
2009-02-28 16:50:13 +01:00
|
|
|
echo ""
|
2009-03-06 01:44:36 +01:00
|
|
|
echo " Streaming support:"
|
2008-12-14 22:05:06 +01:00
|
|
|
|
2009-03-06 01:44:36 +01:00
|
|
|
if test x$enable_lastfm = xyes; then
|
|
|
|
echo " last.fm radio support .........enabled"
|
2009-02-28 17:09:43 +01:00
|
|
|
else
|
2009-03-06 01:44:36 +01:00
|
|
|
echo " last.fm radio support .........disabled"
|
2009-02-28 17:09:43 +01:00
|
|
|
fi
|
|
|
|
|
2009-03-06 08:17:00 +01:00
|
|
|
if test x$enable_curl = xyes; then
|
2009-03-06 01:44:36 +01:00
|
|
|
echo " libcurl support (streaming) ...enabled"
|
2009-02-28 17:09:43 +01:00
|
|
|
else
|
2009-03-06 01:44:36 +01:00
|
|
|
echo " libcurl support (streaming) ...disabled"
|
2009-02-28 17:09:43 +01:00
|
|
|
fi
|
|
|
|
|
2009-03-06 08:17:00 +01:00
|
|
|
if test x$enable_mms = xyes; then
|
2009-03-06 01:44:36 +01:00
|
|
|
echo " libmms support ................enabled"
|
2009-03-06 01:28:11 +01:00
|
|
|
else
|
2009-03-06 01:44:36 +01:00
|
|
|
echo " libmms support ................disabled"
|
2009-03-06 01:28:11 +01:00
|
|
|
fi
|
|
|
|
|
2009-03-06 01:44:36 +01:00
|
|
|
echo ""
|
|
|
|
echo " Other features:"
|
|
|
|
|
|
|
|
if test x$enable_id3 = xyes; then
|
|
|
|
echo " ID3 tag support ...............enabled"
|
2009-02-28 16:50:13 +01:00
|
|
|
else
|
2009-03-06 01:44:36 +01:00
|
|
|
echo " ID3 tag support ...............disabled"
|
2009-02-28 16:50:13 +01:00
|
|
|
fi
|
|
|
|
|
2009-03-06 01:44:36 +01:00
|
|
|
if test x$enable_lsr = xyes; then
|
|
|
|
echo " libsamplerate support .........enabled"
|
2009-01-29 21:42:10 +01:00
|
|
|
else
|
2009-03-06 01:44:36 +01:00
|
|
|
echo " libsamplerate support .........disabled"
|
2009-01-29 21:42:10 +01:00
|
|
|
fi
|
|
|
|
|
2009-02-28 16:50:13 +01:00
|
|
|
if test x$with_zeroconf != xno; then
|
|
|
|
echo " Zeroconf support ..............$with_zeroconf"
|
|
|
|
else
|
|
|
|
echo " Zeroconf support ..............disabled"
|
|
|
|
fi
|
|
|
|
|
2009-03-31 21:48:04 +02:00
|
|
|
if test x$enable_cue = xyes; then
|
|
|
|
echo " libcue support ................enabled"
|
|
|
|
else
|
|
|
|
echo " libcue support ................disabled"
|
|
|
|
fi
|
|
|
|
|
2004-03-24 00:20:21 +01:00
|
|
|
echo ""
|
|
|
|
echo "##########################################"
|
2004-03-17 19:13:29 +01:00
|
|
|
echo ""
|
2008-12-22 12:02:12 +01:00
|
|
|
|
|
|
|
echo "Generating needed files for compilation"
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl generate files
|
|
|
|
dnl
|
|
|
|
|
2009-02-23 10:04:51 +01:00
|
|
|
AC_OUTPUT(Makefile)
|
2008-12-22 12:02:12 +01:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
|
2004-03-17 19:13:29 +01:00
|
|
|
echo "You are now ready to compile MPD"
|
|
|
|
echo "Type \"make\" to compile MPD"
|