]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix configure issue with systemd runtime dir detection 10141/head
authorPieter Lexis <pieter.lexis@powerdns.com>
Thu, 4 Mar 2021 11:18:52 +0000 (12:18 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Thu, 4 Mar 2021 11:18:52 +0000 (12:18 +0100)
This issue was introduced in 7bbaae110abb53f43d0bf60c81efe3bb8630a925

m4/systemd.m4

index 26edf521343939e34d44d14fe839ee7ceaf39f83..3c8f196783737bdc7a7e40a2b0463e45b8bd6a52 100644 (file)
@@ -177,6 +177,9 @@ AC_DEFUN([AX_CHECK_SYSTEMD_FEATURES], [
               if test $_systemd_version -ge 239; then
                  systemd_private_mounts=y
               fi
+              if test $_systemd_version -ge 240; then
+                 systemd_with_runtime_dir_env=y
+              fi
               if test $_systemd_version -ge 242; then
                  systemd_protect_hostname=y
                  systemd_restrict_suidsgid=y
@@ -212,5 +215,5 @@ AC_DEFUN([AX_CHECK_SYSTEMD_FEATURES], [
         AM_CONDITIONAL([HAVE_SYSTEMD_RESTRICT_SUIDSGID], [ test x"$systemd_restrict_suidsgid" = "xy" ])
         AM_CONDITIONAL([HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES], [ test x"$systemd_system_call_architectures" = "xy" ])
         AM_CONDITIONAL([HAVE_SYSTEMD_SYSTEM_CALL_FILTER], [ test x"$systemd_system_call_filter" = "xy" ])
-        AM_CONDITIONAL([HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV], [ test $_systemd_version -ge 240 ])
+        AM_CONDITIONAL([HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV], [ test x"$systemd_with_runtime_dir_env" = "xy" ])
 ])