AC_ARG_VAR([WESTON_NATIVE_BACKEND],
[Set the native backend to use, if Weston is not running under Wayland nor X11. @<:@default=drm-backend.so@:>@])
+AC_ARG_VAR([WESTON_SHELL_CLIENT],
+ [Set the default desktop shell client to load if none is specified in weston.ini. @<:@default=weston-desktop-shell@:>@])
PKG_PROG_PKG_CONFIG()
AC_DEFINE_UNQUOTED([WESTON_NATIVE_BACKEND], ["$WESTON_NATIVE_BACKEND"],
[The default backend to load, if not wayland nor x11.])
+if test "x$WESTON_SHELL_CLIENT" = "x"; then
+ WESTON_SHELL_CLIENT="weston-desktop-shell"
+fi
+AC_MSG_NOTICE([Weston's default desktop shell client: $WESTON_SHELL_CLIENT])
+AC_DEFINE_UNQUOTED([WESTON_SHELL_CLIENT], ["$WESTON_SHELL_CLIENT"],
+ [The default desktop shell client to load.])
+
AC_ARG_ENABLE(demo-clients,
AS_HELP_STRING([--enable-demo-clients],
[install demo clients built with weston]),,
MAN_SUBSTS = \
-e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
-e 's|__weston_modules_dir__|$(pkglibdir)|g' \
+ -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
-e 's|__version__|$(PACKAGE_VERSION)|g'
SUFFIXES = .1 .5 .7 .man
.TP 7
.BI "client=" file
sets the path for the shell client to run. If not specified
-weston-desktop-shell is launched (string).
+.I __weston_shell_client__
+is launched (string).
.TP 7
.BI "background-image=" file
sets the path for the background image file (string).
section = weston_config_get_section(shell->compositor->config,
"shell", NULL, NULL);
weston_config_section_get_string(section,
- "client", &s, LIBEXECDIR "/weston-desktop-shell");
+ "client", &s, LIBEXECDIR "/" WESTON_SHELL_CLIENT);
shell->client = s;
weston_config_section_get_string(section,
"binding-modifier", &s, "super");