summaryrefslogtreecommitdiff
path: root/hack
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-12-16 17:55:58 +0100
committerGitHub <noreply@github.com>2019-12-16 17:55:58 +0100
commitb2f05e0e84411f985fea66e9edff1fec8f26d28d (patch)
tree1cf4b9efbb72b8ecc5a02a77fc3060634f896868 /hack
parent19064e51175e7832ba6180173be1a3841ab3f23d (diff)
parentb54c350a0771579444bccbc0dc7795d0bd176413 (diff)
downloadpodman-b2f05e0e84411f985fea66e9edff1fec8f26d28d.tar.gz
podman-b2f05e0e84411f985fea66e9edff1fec8f26d28d.tar.bz2
podman-b2f05e0e84411f985fea66e9edff1fec8f26d28d.zip
Merge pull request #4710 from raukadah/systemdfix
Use systemd/sd-daemon.h headers for systemd presence
Diffstat (limited to 'hack')
-rwxr-xr-xhack/systemd_tag.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/hack/systemd_tag.sh b/hack/systemd_tag.sh
index c59cad559..19a7bf6a6 100755
--- a/hack/systemd_tag.sh
+++ b/hack/systemd_tag.sh
@@ -1,4 +1,7 @@
#!/usr/bin/env bash
-if pkg-config --exists libsystemd; then
- echo systemd
+cc -E - > /dev/null 2> /dev/null << EOF
+#include <systemd/sd-daemon.h>
+EOF
+if test $? -eq 0 ; then
+ echo systemd
fi