Skip to content
Snippets Groups Projects
Commit c60ac052 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

configure: detect libsystemd-daemon

issue #213
parent b1cce2ea
No related branches found
No related tags found
1 merge request!181Systemd
......@@ -85,6 +85,23 @@ AS_CASE([$enable_fastparser],
AM_CONDITIONAL([G2_PARSER], test "$enable_fastparser" = "yes")
AM_CONDITIONAL([T0_PARSER], test "$enable_fastparser" = "no")
# Systemd integration
AC_ARG_ENABLE([systemd],
AS_HELP_STRING([--enable-systemd=auto|yes|no], [enable systemd notification mechanism [default=auto]]),
[enable_systemd="$enableval"], [enable_systemd=auto])
use_systemd=no
case "$enable_systemd" in
auto) PKG_CHECK_MODULES([systemd_daemon], [libsystemd-daemon], [enable_systemd=yes], [true]) ;;
yes) PKG_CHECK_MODULES([systemd_daemon], [libsystemd-daemon]) ;;
no) ;;
*) AC_MSG_ERROR([Invalid value of --enable-systemd.]) ;;
esac
if test "$enable_systemd" = yes; then
AC_DEFINE([ENABLE_SYSTEMD_NOTIFY], [1], [Use systemd notifications.])
fi
# Debug modules
AC_ARG_ENABLE([debug],
AS_HELP_STRING([--enable-debug=server,zones,xfr,packet,rr,ns,loader,dnssec],
......@@ -371,5 +388,6 @@ echo "
Libs: ${LIBS}
Ragel: ${RAGEL} ${FSM_TYPE}
Utils with IDN: ${libidn}
Use systemd notification: ${enable_systemd}
Continue with 'make' command"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment