diff --git a/Makefile.in b/Makefile.in index 97378e5..bee81c2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -16,7 +16,7 @@ ifneq ("@systemdsystemunitdir@", "") install -m 644 systemd/fcgiwrap.service $(DESTDIR)@systemdsystemunitdir@ endif -LDLIBS = -lfcgi @systemd_LIBS@ +LDLIBS = @LIBS@ @systemd_LIBS@ CFLAGS = @AM_CFLAGS@ fcgiwrap: fcgiwrap.c diff --git a/configure.ac b/configure.ac index bb3674e..2b02ef4 100644 --- a/configure.ac +++ b/configure.ac @@ -28,7 +28,7 @@ AC_ARG_WITH([systemd], [], [with_systemd=check]) have_systemd=no if test "x$with_systemd" != "xno"; then - PKG_CHECK_MODULES(systemd, [libsystemd-daemon], + PKG_CHECK_MODULES(systemd, [libsystemd], [AC_DEFINE(HAVE_SYSTEMD, 1, [Define if systemd is available]) have_systemd=yes], have_systemd=no)