summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2015-06-23 10:07:26 -0400
committerRay Strode <rstrode@redhat.com>2015-06-23 10:07:26 -0400
commite0e7f2d92d8d26592c44dd12fe56c52414a6bb2a (patch)
tree491a0444e2523cdc149a0786edeceaf4bb2bded8
parent3cd08e752af014fc25846ccb86ba688c26c0cb21 (diff)
downloadgdm-e0e7f2d92d8d26592c44dd12fe56c52414a6bb2a.tar.gz
configure: get rid of more conditionalized systemd
Woops, 3.17.3 doesn't ship a unit file.
-rw-r--r--configure.ac25
-rw-r--r--data/Makefile.am4
2 files changed, 5 insertions, 24 deletions
diff --git a/configure.ac b/configure.ac
index 3af3cbea..ab843021 100644
--- a/configure.ac
+++ b/configure.ac
@@ -257,7 +257,7 @@ AC_ARG_ENABLE(wayland-support,
AS_HELP_STRING([--enable-wayland-support],
[Enable support for wayland sessions @<:@default=auto@:>@]),
[enable_wayland_support=$enableval],
- [enable_wayland_support=auto])
+ [enable_wayland_support=yes])
AC_ARG_WITH(plymouth,
AS_HELP_STRING([--with-plymouth],
@@ -884,14 +884,10 @@ PKG_CHECK_MODULES(JOURNALD,
[have_journald=yes], [have_journald=no])
if test "x$enable_systemd_journal" = "xauto" ; then
- if test x$use_systemd = xyes ; then
- if test x$have_journald = xno ; then
- use_journald=no
- else
- use_journald=yes
- fi
- else
+ if test x$have_journald = xno ; then
use_journald=no
+ else
+ use_journald=yes
fi
else
@@ -908,17 +904,7 @@ fi
AC_SUBST(JOURNALD_CFLAGS)
AC_SUBST(JOURNALD_LIBS)
-if test "x$enable_wayland_support" = "xauto" ; then
- use_wayland="$use_systemd";
-else
- use_wayland="$enable_wayland_support"
-fi
-
-if test "x$use_wayland" != "xno" ; then
- if test "x$have_systemd" = "xno"; then
- AC_MSG_ERROR([wayland support explicitly required, but logind not found])
- fi
-
+if test "x$enable_wayland_support" != "xno" ; then
AC_DEFINE(ENABLE_WAYLAND_SUPPORT, 1, [Define to enable wayland support])
fi
@@ -929,7 +915,6 @@ AC_DEFINE_UNQUOTED(SYSTEMD_X_SERVER,"$SYSTEMD_X_SERVER",[Path to systemd X serve
if test "x$with_systemdsystemunitdir" != xno; then
AC_SUBST(SYSTEMD_SYSTEM_UNIT_DIR, [$with_systemdsystemunitdir])
fi
-AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno -a "x$use_systemd" = "xyes" ])
dnl ---------------------------------------------------------------------------
dnl - Check for plymouth support
diff --git a/data/Makefile.am b/data/Makefile.am
index 1bc8d7dc..81cde22b 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -175,8 +175,6 @@ MAINTAINERCLEANFILES = \
systemdsystemunit =
-if HAVE_SYSTEMD
-
gdm.service: $(srcdir)/gdm.service.in
$(AM_V_GEN)sed \
-e 's,[@]sbindir[@],$(sbindir),g' \
@@ -188,8 +186,6 @@ gdm.service: $(srcdir)/gdm.service.in
systemdsystemunit += gdm.service
CLEANFILES += gdm.service
-endif
-
Xsession_files =
if ENABLE_GDM_XSESSION