diff options
author | Max Kellermann <max@duempel.org> | 2012-02-13 20:48:51 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-02-13 21:32:42 +0100 |
commit | 7338b16c180a879745ecf6dcd6a7d490081dbb01 (patch) | |
tree | 9fe1882d415d5bbb3693f94f2b7150f0b675f2d4 /configure.ac | |
parent | f5294414004c258236a9d31ae3d3ee00ccb26717 (diff) | |
download | mpd-7338b16c180a879745ecf6dcd6a7d490081dbb01.tar.gz mpd-7338b16c180a879745ecf6dcd6a7d490081dbb01.tar.xz mpd-7338b16c180a879745ecf6dcd6a7d490081dbb01.zip |
listen: implement systemd socket activation
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 3a1bc465a..f1de64575 100644 --- a/configure.ac +++ b/configure.ac @@ -353,6 +353,11 @@ AC_ARG_ENABLE(sqlite, [enable support for the SQLite database]),, [enable_sqlite=auto]) +AC_ARG_ENABLE(systemd-daemon, + AS_HELP_STRING([--enable-systemd-daemon], + [use the systemd daemon library (default=auto)]),, + [enable_systemd_daemon=auto]) + AC_ARG_ENABLE(tcp, AS_HELP_STRING([--disable-tcp], [disable support for clients connecting via TCP (default: enable)]),, @@ -495,6 +500,13 @@ if AC_MSG_ERROR([No client interfaces configured!]) fi +MPD_AUTO_PKG(systemd_daemon, SYSTEMD_DAEMON, libsystemd-daemon, + [systemd activation], [libsystemd-daemon not found]) +AM_CONDITIONAL(ENABLE_SYSTEMD_DAEMON, test x$enable_systemd_daemon = xyes) +if test x$enable_systemd_daemon = xyes; then + AC_DEFINE([ENABLE_SYSTEMD_DAEMON], 1, [Define to use the systemd daemon library]) +fi + dnl --------------------------------------------------------------------------- dnl LIBC Features dnl --------------------------------------------------------------------------- |