build: allow using a host-installed sysprofd

In case we are building in a flatpak, we might want to rely on a system
installed sysprofd. This means we might want to pretend we have sysprofd
support (to be found on the system), but not actually build sysprofd.
This commit is contained in:
Christian Hergert
2016-09-15 13:45:02 -07:00
parent fa25435388
commit c5ba20caeb
3 changed files with 19 additions and 18 deletions

View File

@ -107,9 +107,9 @@ libsysprof_@API_VERSION@_la_LIBADD = \
$(GIO_LIBS) \
$(NULL)
if ENABLE_SYSPROFD
if ENABLE_POLKIT
libsysprof_@API_VERSION@_la_LIBADD += $(POLKIT_LIBS)
libsysprof_@API_VERSION@_la_CFLAGS += $(POLKIT_CFLAGS) -DENABLE_SYSPROFD
libsysprof_@API_VERSION@_la_CFLAGS += $(POLKIT_CFLAGS) -DENABLE_POLKIT
endif
libsysprof_@API_VERSION@_la_LDFLAGS = \