diff options
author | Robert Tari <robert@tari.in> | 2020-08-11 09:42:12 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2020-08-11 09:42:12 +0200 |
commit | 7d7dc1140c38c22a629bc58238dff5cec17c30e5 (patch) | |
tree | 9ef5dae755c81723082d8cca4c2b089904c8832f /configure.ac | |
parent | d9fced125c2a6e1cf44171370753df00c8d554ba (diff) | |
parent | d75eb5fd87fb752220050258a7b1f11cac7f6691 (diff) | |
download | ayatana-indicator-notifications-7d7dc1140c38c22a629bc58238dff5cec17c30e5.tar.gz ayatana-indicator-notifications-7d7dc1140c38c22a629bc58238dff5cec17c30e5.tar.bz2 ayatana-indicator-notifications-7d7dc1140c38c22a629bc58238dff5cec17c30e5.zip |
Merge branch 'pr/sytemd-service-file' of https://github.com/sunweaver/ayatana-indicator-notifications into sunweaver-pr/sytemd-service-file
Attributes GH PR #5: https://github.com/AyatanaIndicators/ayatana-indicator-notifications/pull/5
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index e9bc3bd..8b3b48b 100644 --- a/configure.ac +++ b/configure.ac @@ -65,6 +65,19 @@ PKG_CHECK_MODULES(SETTINGS, gtk+-3.0 >= GTK3_REQUIRED_VERSION) AC_SUBST(SETTINGS_CFLAGS) AC_SUBST(SETTINGS_LIBS) +######################### +# Check for systemd +######################### +PKG_CHECK_MODULES(SYSTEMD, systemd, + [has_systemd=yes], + [] +) +if test "x$has_systemd" = "xyes"; then + SYSTEMD_USERDIR=`$PKG_CONFIG --variable=systemduserunitdir systemd` + AC_SUBST(SYSTEMD_USERDIR) + AC_DEFINE(HAVE_SYSTEMD, 1, [create ayatana-indicator-application.service for systemd]) +fi + AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([ Makefile |