1 m4_define([weston_major_version], [1])
2 m4_define([weston_minor_version], [6])
3 m4_define([weston_micro_version], [0])
4 m4_define([weston_version],
5 [weston_major_version.weston_minor_version.weston_micro_version])
10 [https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=weston_version],
12 [http://wayland.freedesktop.org/])
14 AC_SUBST([WESTON_VERSION_MAJOR], [weston_major_version])
15 AC_SUBST([WESTON_VERSION_MINOR], [weston_minor_version])
16 AC_SUBST([WESTON_VERSION_MICRO], [weston_micro_version])
17 AC_SUBST([WESTON_VERSION], [weston_version])
19 AC_CONFIG_AUX_DIR([build-aux])
20 AC_CONFIG_HEADERS([config.h])
21 AC_CONFIG_MACRO_DIR([m4])
23 AC_USE_SYSTEM_EXTENSIONS
26 AM_INIT_AUTOMAKE([1.11 parallel-tests foreign no-dist-gzip dist-xz color-tests subdir-objects])
28 AM_SILENT_RULES([yes])
36 LT_INIT([disable-static])
38 AC_ARG_VAR([WESTON_NATIVE_BACKEND],
39 [Set the native backend to use, if Weston is not running under Wayland nor X11. @<:@default=drm-backend.so@:>@])
40 AC_ARG_VAR([WESTON_SHELL_CLIENT],
41 [Set the default desktop shell client to load if none is specified in weston.ini. @<:@default=weston-desktop-shell@:>@])
45 AC_CHECK_FUNC([dlopen], [],
46 AC_CHECK_LIB([dl], [dlopen], DLOPEN_LIBS="-ldl"))
49 AC_CHECK_DECL(SFD_CLOEXEC,[],
50 [AC_MSG_ERROR("SFD_CLOEXEC is needed to compile weston")],
51 [[#include <sys/signalfd.h>]])
52 AC_CHECK_DECL(TFD_CLOEXEC,[],
53 [AC_MSG_ERROR("TFD_CLOEXEC is needed to compile weston")],
54 [[#include <sys/timerfd.h>]])
55 AC_CHECK_DECL(CLOCK_MONOTONIC,[],
56 [AC_MSG_ERROR("CLOCK_MONOTONIC is needed to compile weston")],
57 [[#include <time.h>]])
58 AC_CHECK_HEADERS([execinfo.h])
60 AC_CHECK_FUNCS([mkostemp strchrnul initgroups posix_fallocate])
62 COMPOSITOR_MODULES="wayland-server >= 1.5.91 pixman-1 >= 0.25.2"
64 AC_ARG_ENABLE(egl, [ --disable-egl],,
66 AM_CONDITIONAL(ENABLE_EGL, test x$enable_egl = xyes)
67 if test x$enable_egl = xyes; then
68 AC_DEFINE([ENABLE_EGL], [1], [Build Weston with EGL support])
69 PKG_CHECK_MODULES(EGL, [egl >= 7.10 glesv2])
70 PKG_CHECK_MODULES([EGL_TESTS], [egl >= 7.10 glesv2 wayland-client wayland-egl])
73 AC_ARG_ENABLE(xkbcommon,
74 AS_HELP_STRING([--disable-xkbcommon], [Disable libxkbcommon
75 support: This is only useful in environments
76 where you do not have a hardware keyboard. If
77 libxkbcommon support is disabled clients will not
78 be sent a keymap and and must know how to
79 interpret the keycode sent for any key event.]),,
81 if test x$enable_xkbcommon = xyes; then
82 AC_DEFINE(ENABLE_XKBCOMMON, [1], [Build Weston with libxkbcommon support])
83 COMPOSITOR_MODULES="$COMPOSITOR_MODULES xkbcommon >= 0.3.0"
86 AC_ARG_ENABLE(sys-uid, [ --enable-sys-uid],,
88 if test x$enable_sys_uid = xyes; then
89 AC_DEFINE(ENABLE_SYS_UID, [1], [Allow regular users to launch Weston])
92 AC_ARG_ENABLE(setuid-install, [ --enable-setuid-install],,
93 enable_setuid_install=yes)
94 AM_CONDITIONAL(ENABLE_SETUID_INSTALL, test x$enable_setuid_install = xyes)
97 AC_ARG_ENABLE(xwayland, [ --enable-xwayland],,
99 AC_ARG_ENABLE(xwayland-test, [ --enable-xwayland-test],,
100 enable_xwayland_test=yes)
101 AM_CONDITIONAL(ENABLE_XWAYLAND, test x$enable_xwayland = xyes)
102 AM_CONDITIONAL(ENABLE_XWAYLAND_TEST, test x$enable_xwayland = xyes -a x$enable_xwayland_test = xyes)
103 if test x$enable_xwayland = xyes; then
104 PKG_CHECK_MODULES([XWAYLAND], xcb xcb-xfixes xcb-composite xcursor cairo-xcb)
105 AC_DEFINE([BUILD_XWAYLAND], [1], [Build the X server launcher])
107 AC_ARG_WITH(xserver-path, AS_HELP_STRING([--with-xserver-path=PATH],
108 [Path to X server]), [XSERVER_PATH="$withval"],
109 [XSERVER_PATH="$bindir/Xwayland"])
110 AC_SUBST([XSERVER_PATH])
111 if test x$enable_xwayland_test = xyes; then
112 PKG_CHECK_MODULES([XWAYLAND_TEST], xcb xcb-dri2 libdrm)
116 PKG_CHECK_MODULES(LIBDRM, [libdrm],
117 [AC_DEFINE(HAVE_LIBDRM, 1, [Define if libdrm is available]) have_libdrm=yes], have_libdrm=no)
119 AC_ARG_ENABLE(x11-compositor, [ --enable-x11-compositor],,
120 enable_x11_compositor=yes)
121 AM_CONDITIONAL(ENABLE_X11_COMPOSITOR, test x$enable_x11_compositor = xyes)
122 if test x$enable_x11_compositor = xyes; then
123 PKG_CHECK_MODULES([XCB], xcb)
125 xcb_save_CFLAGS=$CFLAGS
128 AC_CHECK_FUNCS([xcb_poll_for_queued_event])
130 CFLAGS=$xcb_save_CFLAGS
132 X11_COMPOSITOR_MODULES="x11 x11-xcb xcb-shm"
134 PKG_CHECK_MODULES(X11_COMPOSITOR_XKB, [xcb-xkb],
135 [have_xcb_xkb="yes"], [have_xcb_xkb="no"])
136 if test "x$have_xcb_xkb" = xyes; then
137 # Most versions of XCB have totally broken XKB bindings, where the
138 # events don't work. Make sure we can actually use them.
139 xcb_xkb_save_CFLAGS=$CFLAGS
140 CFLAGS=$X11_COMPOSITOR_XKB_CFLAGS
141 AC_CHECK_MEMBER([struct xcb_xkb_state_notify_event_t.xkbType],
142 [], [have_xcb_xkb=no], [[#include <xcb/xkb.h>]])
143 CFLAGS=$xcb_xkb_save_CFLAGS
145 if test "x$have_xcb_xkb" = xyes; then
146 X11_COMPOSITOR_MODULES="$X11_COMPOSITOR_MODULES xcb-xkb"
147 AC_DEFINE([HAVE_XCB_XKB], [1], [libxcb supports XKB protocol])
150 PKG_CHECK_MODULES(X11_COMPOSITOR, [$X11_COMPOSITOR_MODULES])
151 AC_DEFINE([BUILD_X11_COMPOSITOR], [1], [Build the X11 compositor])
155 AC_ARG_ENABLE(drm-compositor, [ --enable-drm-compositor],,
156 enable_drm_compositor=yes)
157 AM_CONDITIONAL(ENABLE_DRM_COMPOSITOR, test x$enable_drm_compositor = xyes)
158 if test x$enable_drm_compositor = xyes; then
159 AC_DEFINE([BUILD_DRM_COMPOSITOR], [1], [Build the DRM compositor])
160 PKG_CHECK_MODULES(DRM_COMPOSITOR, [libudev >= 136 libdrm >= 2.4.30 gbm mtdev >= 1.1.0])
164 AC_ARG_ENABLE(libinput-backend, [ --disable-libinput-backend],,
165 enable_libinput_backend=yes)
166 AM_CONDITIONAL([ENABLE_LIBINPUT_BACKEND], [test x$enable_libinput_backend = xyes])
167 if test x$enable_libinput_backend = xyes; then
168 AC_DEFINE([BUILD_LIBINPUT_BACKEND], [1], [Build the libinput input device backend])
169 PKG_CHECK_MODULES(LIBINPUT_BACKEND, [libinput >= 0.6.0])
173 PKG_CHECK_MODULES(COMPOSITOR, [$COMPOSITOR_MODULES])
175 AC_ARG_ENABLE(wayland-compositor, [ --enable-wayland-compositor],,
176 enable_wayland_compositor=yes)
177 AM_CONDITIONAL(ENABLE_WAYLAND_COMPOSITOR,
178 test x$enable_wayland_compositor = xyes -a x$enable_egl = xyes)
179 if test x$enable_wayland_compositor = xyes -a x$enable_egl = xyes; then
180 AC_DEFINE([BUILD_WAYLAND_COMPOSITOR], [1],
181 [Build the Wayland (nested) compositor])
182 PKG_CHECK_MODULES(WAYLAND_COMPOSITOR, [wayland-client >= 1.5.91 wayland-egl wayland-cursor])
186 AC_ARG_ENABLE(headless-compositor, [ --enable-headless-compositor],,
187 enable_headless_compositor=yes)
188 AM_CONDITIONAL(ENABLE_HEADLESS_COMPOSITOR,
189 test x$enable_headless_compositor = xyes)
192 AC_ARG_ENABLE(rpi-compositor,
193 AS_HELP_STRING([--disable-rpi-compositor],
194 [do not build the Raspberry Pi backend]),,
195 enable_rpi_compositor=yes)
196 AM_CONDITIONAL(ENABLE_RPI_COMPOSITOR, test "x$enable_rpi_compositor" = "xyes")
198 if test "x$enable_rpi_compositor" = "xyes"; then
199 AC_DEFINE([BUILD_RPI_COMPOSITOR], [1], [Build the compositor for Raspberry Pi])
200 PKG_CHECK_MODULES(RPI_COMPOSITOR, [libudev >= 136 mtdev >= 1.1.0])
201 PKG_CHECK_MODULES(RPI_BCM_HOST, [bcm_host],
203 AC_DEFINE([HAVE_BCM_HOST], [1], [have Raspberry Pi BCM headers])],
204 [AC_MSG_WARN([Raspberry Pi BCM host libraries not found, will use stubs instead.])])
206 AM_CONDITIONAL(INSTALL_RPI_COMPOSITOR, test "x$have_bcm_host" = "xyes")
209 AC_ARG_ENABLE([fbdev-compositor], [ --enable-fbdev-compositor],,
210 enable_fbdev_compositor=yes)
211 AM_CONDITIONAL([ENABLE_FBDEV_COMPOSITOR],
212 [test x$enable_fbdev_compositor = xyes])
213 AS_IF([test x$enable_fbdev_compositor = xyes], [
214 AC_DEFINE([BUILD_FBDEV_COMPOSITOR], [1], [Build the fbdev compositor])
215 PKG_CHECK_MODULES([FBDEV_COMPOSITOR], [libudev >= 136 mtdev >= 1.1.0])
218 AC_ARG_ENABLE([rdp-compositor], [ --enable-rdp-compositor],,
219 enable_rdp_compositor=no)
220 AM_CONDITIONAL([ENABLE_RDP_COMPOSITOR],
221 [test x$enable_rdp_compositor = xyes])
222 if test x$enable_rdp_compositor = xyes; then
223 AC_DEFINE([BUILD_RDP_COMPOSITOR], [1], [Build the RDP compositor])
224 PKG_CHECK_MODULES(RDP_COMPOSITOR, [freerdp >= 1.1.0])
226 SAVED_CPPFLAGS="$CPPFLAGS"
227 CPPFLAGS="$CPPFLAGS $RDP_COMPOSITOR_CFLAGS"
228 AC_CHECK_HEADERS([freerdp/version.h])
229 CPPFLAGS="$SAVED_CPPFLAGS"
232 AC_ARG_ENABLE([screen-sharing], [ --enable-screen-sharing],,
233 enable_screen_sharing=no)
234 AM_CONDITIONAL([ENABLE_SCREEN_SHARING],
235 [test x$enable_screen_sharing = xyes])
236 if test x$enable_screen_sharing = xyes; then
237 PKG_CHECK_MODULES(SCREEN_SHARE, [wayland-client])
239 if test x$enable_rdp_compositor != xyes; then
240 AC_MSG_WARN([The screen-share.so module requires the RDP backend.])
245 AS_HELP_STRING([--with-cairo=@<:@image|gl|glesv2@:>@]
246 [Which Cairo renderer to use for the clients]),
247 [],[with_cairo="image"])
249 if test "x$with_cairo" = "ximage"; then
250 cairo_modules="cairo"
252 if test "x$with_cairo" = "xgl"; then
253 cairo_modules="cairo-gl"
255 if test "x$with_cairo" = "xglesv2"; then
256 cairo_modules="cairo-glesv2"
258 AC_ERROR([Unknown cairo renderer requested])
263 # Included for legacy compat
264 AC_ARG_WITH(cairo-glesv2,
265 AS_HELP_STRING([--with-cairo-glesv2],
267 if test "x$with_cairo_glesv2" = "xyes"; then
268 cairo_modules="cairo-glesv2"
272 if test "x$cairo_modules" = "xcairo-glesv2"; then
273 AC_DEFINE([USE_CAIRO_GLESV2], [1], [Use the GLESv2 GL cairo backend])
276 PKG_CHECK_MODULES(PIXMAN, [pixman-1])
277 PKG_CHECK_MODULES(PNG, [libpng])
278 PKG_CHECK_MODULES(WEBP, [libwebp], [have_webp=yes], [have_webp=no])
279 AS_IF([test "x$have_webp" = "xyes"],
280 [AC_DEFINE([HAVE_WEBP], [1], [Have webp])])
282 AC_ARG_ENABLE(vaapi-recorder, [ --enable-vaapi-recorder],,
283 enable_vaapi_recorder=auto)
284 if test x$enable_vaapi_recorder != xno; then
285 PKG_CHECK_MODULES(LIBVA, [libva >= 0.34.0 libva-drm >= 0.34.0],
286 [have_libva=yes], [have_libva=no])
287 if test "x$have_libva" = "xno" -a "x$enable_vaapi_recorder" = "xyes"; then
288 AC_MSG_ERROR([vaapi-recorder explicitly enabled, but libva couldn't be found])
290 AS_IF([test "x$have_libva" = "xyes"],
291 [AC_DEFINE([BUILD_VAAPI_RECORDER], [1], [Build the vaapi recorder])])
293 AM_CONDITIONAL(ENABLE_VAAPI_RECORDER, test "x$have_libva" = xyes)
296 AC_CHECK_LIB([jpeg], [jpeg_CreateDecompress], have_jpeglib=yes)
297 if test x$have_jpeglib = xyes; then
300 AC_ERROR([libjpeg not found])
304 PKG_CHECK_MODULES(CAIRO, [cairo])
306 PKG_CHECK_MODULES(TEST_CLIENT, [wayland-client])
308 AC_ARG_ENABLE(simple-clients,
309 AS_HELP_STRING([--disable-simple-clients],
310 [do not build the simple wl_shm clients]),,
311 enable_simple_clients=yes)
312 AM_CONDITIONAL(BUILD_SIMPLE_CLIENTS, test "x$enable_simple_clients" = "xyes")
313 if test x$enable_simple_clients = xyes; then
314 PKG_CHECK_MODULES(SIMPLE_CLIENT, [wayland-client])
317 AC_ARG_ENABLE(simple-egl-clients,
318 AS_HELP_STRING([--disable-simple-egl-clients],
319 [do not build the simple EGL clients]),,
320 enable_simple_egl_clients="$enable_egl")
321 AM_CONDITIONAL(BUILD_SIMPLE_EGL_CLIENTS, test "x$enable_simple_egl_clients" = "xyes")
322 if test x$enable_simple_egl_clients = xyes; then
323 PKG_CHECK_MODULES(SIMPLE_EGL_CLIENT,
324 [egl >= 7.10 glesv2 wayland-client wayland-egl wayland-cursor])
327 AC_ARG_ENABLE(clients, [ --enable-clients],, enable_clients=yes)
328 AM_CONDITIONAL(BUILD_CLIENTS, test x$enable_clients = xyes)
329 if test x$enable_clients = xyes; then
330 AC_DEFINE([BUILD_CLIENTS], [1], [Build the Wayland clients])
332 PKG_CHECK_MODULES(CLIENT, [wayland-client >= 1.5.91 cairo >= 1.10.0 xkbcommon wayland-cursor])
333 PKG_CHECK_MODULES(SERVER, [wayland-server])
334 PKG_CHECK_MODULES(WESTON_INFO, [wayland-client >= 1.5.91])
336 # Only check for cairo-egl if a GL or GLES renderer requested
337 AS_IF([test "x$cairo_modules" = "xcairo-gl" -o "x$cairo_modules" = "xcairo-glesv2"], [
338 PKG_CHECK_MODULES(CAIRO_EGL, [wayland-egl egl >= 7.10 cairo-egl >= 1.11.3 $cairo_modules],
339 [have_cairo_egl=yes], [have_cairo_egl=no])
340 AS_IF([test "x$have_cairo_egl" = "xyes"],
341 [AC_DEFINE([HAVE_CAIRO_EGL], [1], [Have cairo-egl])],
342 [AC_ERROR([cairo-egl not used because $CAIRO_EGL_PKG_ERRORS])])],
345 PKG_CHECK_MODULES(PANGO, [pangocairo], [have_pango=yes], [have_pango=no])
348 AC_ARG_ENABLE(resize-optimization,
349 AS_HELP_STRING([--disable-resize-optimization],
350 [disable resize optimization allocating a big buffer in toytoolkit]),,
351 enable_resize_optimization=yes)
352 AS_IF([test "x$enable_resize_optimization" = "xyes"],
353 [AC_DEFINE([USE_RESIZE_POOL], [1], [Use resize memory pool as a performance optimization])])
355 PKG_CHECK_MODULES(SYSTEMD_LOGIN, [libsystemd-login >= 198],
356 [have_systemd_login=yes], [have_systemd_login=no])
357 AS_IF([test "x$have_systemd_login" = "xyes"],
358 [AC_DEFINE([HAVE_SYSTEMD_LOGIN], [1], [Have systemd-login])])
359 AM_CONDITIONAL(HAVE_SYSTEMD_LOGIN, test "x$have_systemd_login" = "xyes")
361 PKG_CHECK_MODULES(SYSTEMD_LOGIN_209, [libsystemd-login >= 209],
362 [have_systemd_login_209=yes], [have_systemd_login_209=no])
363 AS_IF([test "x$have_systemd_login_209" = "xyes"],
364 [AC_DEFINE([HAVE_SYSTEMD_LOGIN_209], [1], [Have systemd-login >= 209])])
366 AC_ARG_ENABLE(weston-launch, [ --enable-weston-launch],, enable_weston_launch=yes)
367 AM_CONDITIONAL(BUILD_WESTON_LAUNCH, test x$enable_weston_launch == xyes)
368 if test x$enable_weston_launch == xyes; then
369 AC_CHECK_LIB([pam], [pam_open_session], [have_pam=yes], [have_pam=no])
370 if test x$have_pam == xno; then
371 AC_ERROR([weston-launch requires pam])
377 if test x$enable_egl = xyes; then
378 PKG_CHECK_MODULES(GLU, [glu], [have_glu=yes], [have_glu=no])
380 AM_CONDITIONAL(HAVE_GLU, test "x$have_glu" = "xyes")
382 AM_CONDITIONAL(HAVE_PANGO, test "x$have_pango" = "xyes")
384 AM_CONDITIONAL(HAVE_CAIRO_GLESV2,
385 [test "x$have_cairo_egl" = "xyes" -a "x$cairo_modules" = "xcairo-glesv2" -a "x$enable_egl" = "xyes"])
387 AM_CONDITIONAL(BUILD_FULL_GL_CLIENTS,
388 test x$cairo_modules = "xcairo-gl" -a "x$have_cairo_egl" = "xyes" -a "x$enable_egl" = "xyes")
390 AM_CONDITIONAL(BUILD_SUBSURFACES_CLIENT,
391 [test '(' "x$have_cairo_egl" != "xyes" -o "x$cairo_modules" = "xcairo-glesv2" ')' -a "x$enable_simple_egl_clients" = "xyes"])
393 AM_CONDITIONAL(ENABLE_DESKTOP_SHELL, true)
395 AC_ARG_ENABLE(fullscreen-shell,
396 AS_HELP_STRING([--disable-fullscreen-shell],
397 [do not build fullscreen-shell server plugin]),,
398 enable_fullscreen_shell=yes)
399 AM_CONDITIONAL(ENABLE_FULLSCREEN_SHELL,
400 test "x$enable_fullscreen_shell" = "xyes")
403 AC_ARG_ENABLE(colord,
404 AS_HELP_STRING([--disable-colord],
405 [do not build colord CMS support]),,
407 if test "x$enable_colord" != "xno"; then
408 PKG_CHECK_MODULES(COLORD,
412 if test "x$have_colord" = "xno" -a "x$enable_colord" = "xyes"; then
413 AC_MSG_ERROR([colord support explicitly requested, but colord couldn't be found])
415 if test "x$have_colord" = "xyes"; then
419 AM_CONDITIONAL(ENABLE_COLORD, test "x$enable_colord" = "xyes")
423 AS_HELP_STRING([--disable-dbus],
424 [do not build with dbus support]),,
426 if test "x$enable_dbus" != "xno"; then
427 PKG_CHECK_MODULES(DBUS,
431 if test "x$have_dbus" = "xno" -a "x$enable_dbus" = "xyes"; then
432 AC_MSG_ERROR([dbus support explicitly requested, but libdbus couldn't be found])
434 if test "x$have_dbus" = "xyes"; then
436 AC_DEFINE([HAVE_DBUS], [1], [Build with dbus support])
441 AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes")
443 AC_ARG_ENABLE(wcap-tools, [ --disable-wcap-tools],, enable_wcap_tools=yes)
444 AM_CONDITIONAL(BUILD_WCAP_TOOLS, test x$enable_wcap_tools = xyes)
445 if test x$enable_wcap_tools = xyes; then
446 AC_DEFINE([BUILD_WCAP_TOOLS], [1], [Build the wcap tools])
447 PKG_CHECK_MODULES(WCAP, [cairo])
448 WCAP_LIBS="$WCAP_LIBS -lm"
451 PKG_CHECK_MODULES(SETBACKLIGHT, [libudev libdrm], enable_setbacklight=yes, enable_setbacklight=no)
452 AM_CONDITIONAL(BUILD_SETBACKLIGHT, test "x$enable_setbacklight" = "xyes")
454 if test "x$GCC" = "xyes"; then
455 GCC_CFLAGS="-Wall -Wextra -Wno-unused-parameter \
456 -Wno-missing-field-initializers -g -fvisibility=hidden \
457 -Wstrict-prototypes -Wmissing-prototypes -Wsign-compare"
461 AC_ARG_ENABLE(libunwind,
462 AS_HELP_STRING([--disable-libunwind],
463 [Disable libunwind usage for backtraces]),,
464 enable_libunwind=auto)
465 AM_CONDITIONAL(HAVE_LIBUNWIND, [test "x$enable_libunwind" = xyes])
466 if test "x$enable_libunwind" != "xno"; then
467 PKG_CHECK_MODULES(LIBUNWIND,
471 if test "x$have_libunwind" = "xno" -a "x$enable_libunwind" = "xyes"; then
472 AC_MSG_ERROR([libunwind support explicitly requested, but libunwind couldn't be found])
474 if test "x$have_libunwind" = "xyes"; then
476 AC_DEFINE(HAVE_LIBUNWIND, 1, [Have libunwind support])
481 if test "x$WESTON_NATIVE_BACKEND" = "x"; then
482 WESTON_NATIVE_BACKEND="drm-backend.so"
484 AC_MSG_NOTICE([Weston's native backend: $WESTON_NATIVE_BACKEND])
485 AC_DEFINE_UNQUOTED([WESTON_NATIVE_BACKEND], ["$WESTON_NATIVE_BACKEND"],
486 [The default backend to load, if not wayland nor x11.])
488 if test "x$WESTON_SHELL_CLIENT" = "x"; then
489 WESTON_SHELL_CLIENT="weston-desktop-shell"
491 AC_MSG_NOTICE([Weston's default desktop shell client: $WESTON_SHELL_CLIENT])
492 AC_DEFINE_UNQUOTED([WESTON_SHELL_CLIENT], ["$WESTON_SHELL_CLIENT"],
493 [The default desktop shell client to load.])
495 AC_ARG_ENABLE(demo-clients-install,
496 AS_HELP_STRING([--enable-demo-clients-install],
497 [Install demo clients built with weston]),,
498 enable_demo_clients_install=no)
499 AM_CONDITIONAL(INSTALL_DEMO_CLIENTS, [test "x$enable_demo_clients_install" = "xyes"])
501 PKG_CHECK_MODULES(LCMS, lcms2,
502 [have_lcms=yes], [have_lcms=no])
503 if test "x$have_lcms" = xyes; then
504 AC_DEFINE(HAVE_LCMS, 1, [Have lcms support])
506 AM_CONDITIONAL(HAVE_LCMS, [test "x$have_lcms" = xyes])
508 AC_PATH_PROG([wayland_scanner], [wayland-scanner])
509 if test x$wayland_scanner = x; then
510 AC_MSG_ERROR([wayland-scanner is needed to compile weston])
513 PKG_CHECK_MODULES(WAYLAND_SCANNER, wayland-scanner)
515 AC_CONFIG_FILES([Makefile src/version.h src/weston.pc])
517 AM_CONDITIONAL([HAVE_GIT_REPO], [test -f $srcdir/.git/logs/HEAD])
522 Native Backend ${WESTON_NATIVE_BACKEND}
523 setuid Install ${enable_setuid_install}
525 Cairo Renderer ${with_cairo}
527 libxkbcommon ${enable_xkbcommon}
528 xcb_xkb ${have_xcb_xkb}
529 XWayland ${enable_xwayland}
532 Build wcap utility ${enable_wcap_tools}
533 Build Fullscreen Shell ${enable_fullscreen_shell}
535 weston-launch utility ${enable_weston_launch}
536 systemd-login support ${have_systemd_login}
538 DRM Compositor ${enable_drm_compositor}
539 X11 Compositor ${enable_x11_compositor}
540 Wayland Compositor ${enable_wayland_compositor}
541 Headless Compositor ${enable_headless_compositor}
542 RPI Compositor ${enable_rpi_compositor}
543 FBDEV Compositor ${enable_fbdev_compositor}
544 RDP Compositor ${enable_rdp_compositor}
545 Screen Sharing ${enable_screen_sharing}
547 libinput Backend ${enable_libinput_backend}
549 Raspberry Pi BCM headers ${have_bcm_host}
551 Build Clients ${enable_clients}
552 Build EGL Clients ${have_cairo_egl}
553 Build Simple Clients ${enable_simple_clients}
554 Build Simple EGL Clients ${enable_simple_egl_clients}
556 Install Demo Clients ${enable_demo_clients_install}
558 Colord Support ${have_colord}
559 GLU Support ${have_glu}
560 LCMS2 Support ${have_lcms}
561 libwebp Support ${have_webp}
562 libunwind Support ${have_libunwind}
563 VA H.264 encoding Support ${have_libva}