mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 05:12:15 +00:00
build: Don't fail immediately when logind is missing
We require logind for the native backend, but the backend itself is optional. However since commit06c357d78
, we will always throw an error if neither logind nor elogind are available, even when the backend is disabled. As we still support "auto" - that is, whether the native backend is enabled depends on whether its dependencies are available - the easiest option is to make sure we always include either elogind or libsystemd in the dependency check rather than erring out explicitly if neither is found. https://gitlab.gnome.org/GNOME/mutter/merge_requests/96 (cherry picked from commit82564772dc
)
This commit is contained in:
parent
2872bb1f2a
commit
43d6c0ea61
@ -270,13 +270,10 @@ fi
|
||||
|
||||
PKG_CHECK_MODULES(SYSTEMD, [libsystemd], [have_systemd=yes], [have_systemd=no])
|
||||
|
||||
if test x$have_systemd = xyes; then
|
||||
if test x$have_systemd = xyes -o -z "$logind_provider"; then
|
||||
logind_provider="libsystemd"
|
||||
fi
|
||||
|
||||
AS_IF([test -z "$logind_provider"],
|
||||
AC_MSG_ERROR([Could not find either systemd or elogind as logind provider])])
|
||||
|
||||
MUTTER_NATIVE_BACKEND_MODULES="libdrm $logind_provider libinput >= 1.4 gudev-1.0 gbm >= 10.3"
|
||||
|
||||
AC_ARG_ENABLE(native-backend,
|
||||
|
Loading…
Reference in New Issue
Block a user