#pixman
PKG_CHECK_MODULES([PIXMAN], [pixman-1])
+# Check for systemd
+want_systemd="yes"
+AC_ARG_ENABLE([systemd],
+ [AS_HELP_STRING([--disable-systemd], [disable systemd @<:@default=enabled@:>@])],
+ [
+ if test "x${enableval}" = "xyes"; then
+ want_systemd="yes"
+ else
+ want_systemd="no"
+ fi
+ ])
+AC_MSG_CHECKING([whether systemd is enabled])
+AC_MSG_RESULT([${want_systemd}])
+
+have_systemd="no"
+if test "x$want_systemd" = "xyes"; then
+ PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 209],
+ [
+ have_systemd="yes"
+ AC_DEFINE_UNQUOTED([HAVE_SYSTEMD], [1], [enable systemd support])
+ ])
+else
+ have_systemd="no"
+fi
+
+AM_CONDITIONAL([HAVE_SYSTEMD], [test "x${have_systemd}" = "xyes"])
+
+
#capi-system-device
PKG_CHECK_MODULES([CAPI_SYSTEM_DEVICE],
[capi-system-device])
BuildRequires: pkgconfig(cynara-creds-socket)
BuildRequires: pkgconfig(libsmack)
BuildRequires: pkgconfig(pixman-1)
+BuildRequires: systemd-devel
Requires: libwayland-extension-server
%if "%{LIBGOMP}" == "use"
Requires: libgomp
if HAVE_HWC
src_bin_enlightenment_CPPFLAGS += @HWC_CFLAGS@
endif
+if HAVE_SYSTEMD
+src_bin_enlightenment_CPPFLAGS += @SYSTEMD_CFLAGS@
+endif
src_bin_enlightenment_SOURCES = \
src/bin/e_main.c \
if HAVE_HWC
src_bin_enlightenment_LDADD += @HWC_LIBS@
endif
+if HAVE_SYSTEMD
+src_bin_enlightenment_LDFLAGS += @SYSTEMD_LIBS@
+endif
src_bin_enlightenment_info_SOURCES = \
src/bin/e.h \
#ifdef __linux__
# include <sys/prctl.h>
#endif
+#ifdef HAVE_SYSTEMD
+# include <systemd/sd-daemon.h>
+#endif
#define MAX_LEVEL 80
TRACE_DS_END();
+#ifdef HAVE_SYSTEMD
+ TS("[WM] Send start-up completion");
+ sd_notify(0, "READY=1");
+#else
+ TS("[WM] Skip sending start-up completion. (no systemd)");
+#endif
ecore_main_loop_begin();
inloop = EINA_FALSE;