AX_LIB_NETTLE(auto)
AC_CHECK_HEADER([systemd/sd-daemon.h], [
AC_CHECK_LIB([systemd-daemon], [sd_listen_fds],
- [AC_DEFINE([HAVE_SYSTEMD], [1], [systemd-daemon is available])
+ [AC_DEFINE([HAVE_SYSTEMD], [1], [sd_listen_fds is available])
AC_SUBST([SYSTEMD_LIBS], [-lsystemd-daemon])
+ ],
+ AC_CHECK_LIB([systemd], [sd_listen_fds],
+ [AC_DEFINE([HAVE_SYSTEMD], [1], [sd_listen_fds is available])
+ AC_SUBST([SYSTEMD_LIBS], [-lsystemd])
])
+ )
])
dnl We should always have these backends available.
Priority: optional
Maintainer: Jonathan McDowell <noodles@earth.li>
Uploaders: Ross Burton <ross@debian.org>
-Build-Depends: debhelper (>= 9), dh-autoreconf, dh-systemd, libdb-dev, nettle-dev, libcurl4-gnutls-dev | libcurl-dev, libsystemd-daemon-dev
+Build-Depends: debhelper (>= 9), dh-autoreconf, dh-systemd, libdb-dev, nettle-dev, libcurl4-gnutls-dev | libcurl-dev, libsystemd-dev (>= 214) | libsystemd-daemon-dev
Standards-Version: 3.9.6.0
Homepage: http://www.earth.li/projectpurple/progs/onak.html
Vcs-Browser: http://the.earth.li/gitweb/?p=onak.git;a=summary