mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 14:17:20 +00:00
configure: Ensure systemd development is present
If a users specifies that they should use systemd then ensure that the systemd can be compiled against it. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Conflicts: configure.ac
This commit is contained in:
parent
8c05b72b5a
commit
97da92655c
14
configure.ac
14
configure.ac
@ -328,10 +328,16 @@ if test x"${enable_time_check}" != x"no" ; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "${enable_systemd}" = "yes" ; then
|
||||
AC_DEFINE(HAVE_SYSTEMD,,Compile systemd support in)
|
||||
LIBS="$LIBS -lsystemd "
|
||||
fi
|
||||
case "${enable_systemd}" in
|
||||
"no") ;;
|
||||
"yes")
|
||||
AC_CHECK_LIB(systemd, sd_notify, LIBS="$LIBS -lsystemd")
|
||||
if test $ac_cv_lib_systemd_sd_notify = no; then
|
||||
AC_MSG_ERROR([enable systemd has been specified but systemd development env not found on your system])
|
||||
fi
|
||||
;;
|
||||
"*") ;;
|
||||
esac
|
||||
|
||||
if test "${enable_poll}" = "yes" ; then
|
||||
AC_DEFINE(HAVE_POLL,,Compile systemd support in)
|
||||
|
Loading…
Reference in New Issue
Block a user