summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2011-07-11 22:29:45 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-11 22:29:45 +0200
commit2fb1aedaf2493d9598693c123d5e9c168ca1b3c1 (patch)
tree5ad52918e17d8e894aa4943ba5622f5983d8167c /Makefile.am
parent4e7f8bc81c6422c59ab644fcea28b6f32be416e9 (diff)
logind: Fix compilation without ACL
Compilation fails if sys/acl.h is not available. The configure script already tests for sys/acl.h presence, but the result was so far unused. To compile without acl, stub implementations of the acl functions are used.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 4acdb2e7fb..ca2c43773a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -885,7 +885,6 @@ systemd_logind_SOURCES = \
src/logind-session-dbus.c \
src/logind-user.c \
src/logind-user-dbus.c \
- src/logind-acl.c \
src/dbus-common.c \
src/dbus-loop.c \
src/cgroup-util.c \
@@ -905,8 +904,15 @@ systemd_logind_LDADD = \
$(ACL_LIBS)
systemd_uaccess_SOURCES = \
- src/uaccess.c \
- src/logind-acl.c
+ src/uaccess.c
+
+if HAVE_ACL
+systemd_logind_SOURCES += \
+ src/logind-acl.c
+
+systemd_uaccess_SOURCES += \
+ src/logind-acl.c
+endif
systemd_uaccess_CFLAGS = \
$(AM_CFLAGS) \