meson - systemd - fix check to systemd209+ checks that were not done
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 8 Dec 2018 04:47:06 +0000 (04:47 +0000)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 18 Dec 2018 04:20:08 +0000 (13:20 +0900)
autofoo did these and set defines code relied on. meson did not. this
fixes that and makes meson do the same checks with the same defines.

src/lib/eina/meson.build

index a814673..8a445f4 100644 (file)
@@ -264,6 +264,9 @@ if get_option('systemd') == true
   systemd = dependency('libsystemd')
   eina_deps += systemd
   config_h.set('HAVE_SYSTEMD', '1')
+  if systemd.version().version_compare('>=209')
+    config_h.set('HAVE_SYSTEMD_LOGIN_209', '1')
+  endif
 else
   systemd = []
 endif