httpd/SOURCES/httpd-2.4.53-detect-systemd.patch

46 lines
1.7 KiB
Diff
Raw Normal View History

2022-05-17 08:40:27 +00:00
diff --git a/Makefile.in b/Makefile.in
2022-11-15 06:35:06 +00:00
index a2e9c82..bd8045c 100644
2022-05-17 08:40:27 +00:00
--- a/Makefile.in
+++ b/Makefile.in
@@ -4,7 +4,7 @@ CLEAN_SUBDIRS = test
PROGRAM_NAME = $(progname)
PROGRAM_SOURCES = modules.c
-PROGRAM_LDADD = buildmark.o $(HTTPD_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(PCRE_LIBS) $(EXTRA_LIBS) $(AP_LIBS) $(LIBS)
+PROGRAM_LDADD = buildmark.o $(HTTPD_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(HTTPD_LIBS) $(EXTRA_LIBS) $(AP_LIBS) $(LIBS)
PROGRAM_PRELINK = $(COMPILE) -c $(top_srcdir)/server/buildmark.c
PROGRAM_DEPENDENCIES = \
server/libmain.la \
diff --git a/acinclude.m4 b/acinclude.m4
2022-11-15 06:35:06 +00:00
index 97484c9..05abe18 100644
2022-05-17 08:40:27 +00:00
--- a/acinclude.m4
+++ b/acinclude.m4
2022-11-15 06:35:06 +00:00
@@ -631,6 +631,7 @@ case $host in
2022-05-17 08:40:27 +00:00
if test "${ac_cv_header_systemd_sd_daemon_h}" = "no" || test -z "${SYSTEMD_LIBS}"; then
AC_MSG_WARN([Your system does not support systemd.])
else
+ APR_ADDTO(HTTPD_LIBS, [$SYSTEMD_LIBS])
AC_DEFINE(HAVE_SYSTEMD, 1, [Define if systemd is supported])
fi
fi
diff --git a/configure.in b/configure.in
2022-11-15 06:35:06 +00:00
index cf437fe..521fc45 100644
2022-05-17 08:40:27 +00:00
--- a/configure.in
+++ b/configure.in
2022-11-15 06:35:06 +00:00
@@ -239,6 +239,7 @@ if test "x$PCRE_CONFIG" != "x"; then
2022-05-17 08:40:27 +00:00
AC_MSG_NOTICE([Using external PCRE library from $PCRE_CONFIG])
APR_ADDTO(PCRE_INCLUDES, [`$PCRE_CONFIG --cflags`])
2022-11-15 06:35:06 +00:00
APR_ADDTO(PCRE_LIBS, [`$PCRE_CONFIG --libs8 2>/dev/null || $PCRE_CONFIG --libs`])
2022-05-17 08:40:27 +00:00
+ APR_ADDTO(HTTPD_LIBS, [\$(PCRE_LIBS)])
else
2022-11-15 06:35:06 +00:00
AC_MSG_ERROR([pcre(2)-config for libpcre not found. PCRE is required and available from http://pcre.org/])
2022-05-17 08:40:27 +00:00
fi
2022-11-15 06:35:06 +00:00
@@ -734,6 +735,7 @@ APACHE_SUBST(OS_DIR)
2022-05-17 08:40:27 +00:00
APACHE_SUBST(BUILTIN_LIBS)
APACHE_SUBST(SHLIBPATH_VAR)
APACHE_SUBST(OS_SPECIFIC_VARS)
+APACHE_SUBST(HTTPD_LIBS)
PRE_SHARED_CMDS='echo ""'
POST_SHARED_CMDS='echo ""'