rfc:socketactivation:build.patch
diff --git a/sapi/fpm/config.m4 b/sapi/fpm/config.m4
index ad46717..51d7987 100644
--- a/sapi/fpm/config.m4
+++ b/sapi/fpm/config.m4
@@ -101,6 +101,22 @@ AC_DEFUN([AC_FPM_CLOCK],
fi
])
+AC_DEFUN([AC_FPM_SYSTEMD],
+[
+ AC_MSG_CHECKING([for systemd])
+
+ SAVED_LIBS="$LIBS"
+ LIBS="$LIBS -lsystemd-journal -lsystemd-daemon"
+
+ AC_TRY_LINK([ #include <systemd/sd-journal.h> ], [sd_journal_send("Testing linking to sd-journal.h.");], [
+ AC_DEFINE([HAVE_SYSTEMD], 1, [do we have systemd?])
+ AC_MSG_RESULT([yes])
+ ], [
+ LIBS="$SAVED_LIBS"
+ AC_MSG_RESULT([no])
+ ])
+])
+
AC_DEFUN([AC_FPM_TRACE],
[
have_ptrace=no
@@ -544,6 +560,7 @@ if test "$PHP_FPM" != "no"; then
AC_FPM_STDLIBS
AC_FPM_PRCTL
AC_FPM_CLOCK
+ AC_FPM_SYSTEMD
AC_FPM_TRACE
AC_FPM_BUILTIN_ATOMIC
AC_FPM_LQ
rfc/socketactivation/build.patch.txt · Last modified: by 127.0.0.1