X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=Makefile.am;h=710eb7c98c16a3c9ad82b225ec322b9eb16ab95e;hp=8012620fd9e1fe37605f2dba0a64a09764faff94;hb=e2060a1f35d212ff8bf92f6d81bace190a6d15e9;hpb=4ef8c8a39392c25ae3fc5ac59583fb3361cf5663 diff --git a/Makefile.am b/Makefile.am index 8012620fd..710eb7c98 100644 --- a/Makefile.am +++ b/Makefile.am @@ -54,10 +54,14 @@ bashcompletiondir=@bashcompletiondir@ zshcompletiondir=@zshcompletiondir@ varlogdir=$(localstatedir)/log elogindstatedir=$(localstatedir)/lib/elogind +systemsleepdir=$(pkglibexecdir)/sleep.d +systemshutdowndir=$(pkglibexecdir)/shutdown.d udevrulesdir=@udevrulesdir@ udevbindir=@udevbindir@ +PKTTYAGENT=$(bindir)/pkttyagent + # Our own, non-special dirs pkgsysconfdir=$(sysconfdir)/elogind pkgincludedir=$(includedir)/elogind @@ -113,18 +117,19 @@ CLEANFILES = $(BUILT_SOURCES) \ $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \ $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS) -# FIXME a different pkttyagent path... - AM_CPPFLAGS = \ -include $(top_builddir)/config.h \ -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \ - -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \ + -DPOLKIT_AGENT_BINARY_PATH=\"$(PKTTYAGENT)\" \ -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \ -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \ -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \ -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \ -DROOTPREFIX=\"$(rootprefix)\" \ - -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \ + -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \ + -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \ + -DHALT=\"$(HALT)\" \ + -DREBOOT=\"$(REBOOT)\" \ -DKEXEC=\"$(KEXEC)\" \ -DLIBDIR=\"$(libdir)\" \ -DTEST_DIR=\"$(abs_top_srcdir)/test\" \ @@ -498,6 +503,9 @@ libelogind_shared_la_LIBADD = \ $(CAP_LIBS) \ -lm +libelogind_shared_la_LDFLAGS = \ + $(CAP_LDFLAGS) + # ------------------------------------------------------------------------------ if HAVE_ACL noinst_LTLIBRARIES += \