1 m4_define([weston_major_version], [1])
2 m4_define([weston_minor_version], [4])
3 m4_define([weston_micro_version], [93])
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])
22 AC_USE_SYSTEM_EXTENSIONS
25 AM_INIT_AUTOMAKE([1.11 parallel-tests foreign no-dist-gzip dist-xz color-tests subdir-objects])
27 AM_SILENT_RULES([yes])
35 LT_INIT([disable-static])
37 AC_ARG_VAR([WESTON_NATIVE_BACKEND],
38 [Set the native backend to use, if Weston is not running under Wayland nor X11. @<:@default=drm-backend.so@:>@])
39 AC_ARG_VAR([WESTON_SHELL_CLIENT],
40 [Set the default desktop shell client to load if none is specified in weston.ini. @<:@default=weston-desktop-shell@:>@])
44 AC_CHECK_FUNC([dlopen], [],
45 AC_CHECK_LIB([dl], [dlopen], DLOPEN_LIBS="-ldl"))
48 AC_CHECK_DECL(SFD_CLOEXEC,[],
49 [AC_MSG_ERROR("SFD_CLOEXEC is needed to compile weston")],
50 [[#include <sys/signalfd.h>]])
51 AC_CHECK_DECL(TFD_CLOEXEC,[],
52 [AC_MSG_ERROR("TFD_CLOEXEC is needed to compile weston")],
53 [[#include <sys/timerfd.h>]])
54 AC_CHECK_DECL(CLOCK_MONOTONIC,[],
55 [AC_MSG_ERROR("CLOCK_MONOTONIC is needed to compile weston")],
56 [[#include <time.h>]])
57 AC_CHECK_HEADERS([execinfo.h])
59 AC_CHECK_FUNCS([mkostemp strchrnul initgroups posix_fallocate])
61 COMPOSITOR_MODULES="wayland-server >= 1.3.90 pixman-1"
63 AC_ARG_ENABLE(egl, [ --disable-egl],,
65 AM_CONDITIONAL(ENABLE_EGL, test x$enable_egl = xyes)
66 if test x$enable_egl = xyes; then
67 AC_DEFINE([ENABLE_EGL], [1], [Build Weston with EGL support])
68 PKG_CHECK_MODULES(EGL, [egl >= 7.10 glesv2])
69 PKG_CHECK_MODULES([EGL_TESTS], [egl >= 7.10 glesv2 wayland-client wayland-egl])
72 AC_ARG_ENABLE(xkbcommon,
73 AS_HELP_STRING([--disable-xkbcommon], [Disable libxkbcommon
74 support: This is only useful in environments
75 where you do not have a hardware keyboard. If
76 libxkbcommon support is disabled clients will not
77 be sent a keymap and and must know how to
78 interpret the keycode sent for any key event.]),,
80 if test x$enable_xkbcommon = xyes; then
81 AC_DEFINE(ENABLE_XKBCOMMON, [1], [Build Weston with libxkbcommon support])
82 COMPOSITOR_MODULES="$COMPOSITOR_MODULES xkbcommon >= 0.3.0"
85 AC_ARG_ENABLE(setuid-install, [ --enable-setuid-install],,
86 enable_setuid_install=yes)
87 AM_CONDITIONAL(ENABLE_SETUID_INSTALL, test x$enable_setuid_install = xyes)
90 AC_ARG_ENABLE(xwayland, [ --enable-xwayland],,
92 AC_ARG_ENABLE(xwayland-test, [ --enable-xwayland-test],,
93 enable_xwayland_test=yes)
94 AM_CONDITIONAL(ENABLE_XWAYLAND, test x$enable_xwayland = xyes)
95 AM_CONDITIONAL(ENABLE_XWAYLAND_TEST, test x$enable_xwayland = xyes -a x$enable_xwayland_test = xyes)
96 if test x$enable_xwayland = xyes; then
97 PKG_CHECK_MODULES([XWAYLAND], xcb xcb-xfixes xcb-composite xcursor cairo-xcb)
98 AC_DEFINE([BUILD_XWAYLAND], [1], [Build the X server launcher])
100 AC_ARG_WITH(xserver-path, AS_HELP_STRING([--with-xserver-path=PATH],
101 [Path to X server]), [XSERVER_PATH="$withval"],
102 [XSERVER_PATH="$bindir/Xwayland"])
103 AC_SUBST([XSERVER_PATH])
104 if test x$enable_xwayland_test = xyes; then
105 PKG_CHECK_MODULES([XWAYLAND_TEST], xcb xcb-dri2 libdrm)
109 PKG_CHECK_MODULES(LIBDRM, [libdrm],
110 [AC_DEFINE(HAVE_LIBDRM, 1, [Define if libdrm is available]) have_libdrm=yes], have_libdrm=no)
112 AC_ARG_ENABLE(x11-compositor, [ --enable-x11-compositor],,
113 enable_x11_compositor=yes)
114 AM_CONDITIONAL(ENABLE_X11_COMPOSITOR, test x$enable_x11_compositor = xyes)
115 if test x$enable_x11_compositor = xyes; then
116 PKG_CHECK_MODULES([XCB], xcb)
118 xcb_save_CFLAGS=$CFLAGS
121 AC_CHECK_FUNCS([xcb_poll_for_queued_event])
123 CFLAGS=$xcb_save_CFLAGS
125 X11_COMPOSITOR_MODULES="x11 x11-xcb xcb-shm"
127 PKG_CHECK_MODULES(X11_COMPOSITOR_XKB, [xcb-xkb],
128 [have_xcb_xkb="yes"], [have_xcb_xkb="no"])
129 if test "x$have_xcb_xkb" = xyes; then
130 # Most versions of XCB have totally broken XKB bindings, where the
131 # events don't work. Make sure we can actually use them.
132 xcb_xkb_save_CFLAGS=$CFLAGS
133 CFLAGS=$X11_COMPOSITOR_XKB_CFLAGS
134 AC_CHECK_MEMBER([struct xcb_xkb_state_notify_event_t.xkbType],
135 [], [have_xcb_xkb=no], [[#include <xcb/xkb.h>]])
136 CFLAGS=$xcb_xkb_save_CFLAGS
138 if test "x$have_xcb_xkb" = xyes; then
139 X11_COMPOSITOR_MODULES="$X11_COMPOSITOR_MODULES xcb-xkb"
140 AC_DEFINE([HAVE_XCB_XKB], [1], [libxcb supports XKB protocol])
143 PKG_CHECK_MODULES(X11_COMPOSITOR, [$X11_COMPOSITOR_MODULES])
144 AC_DEFINE([BUILD_X11_COMPOSITOR], [1], [Build the X11 compositor])
148 AC_ARG_ENABLE(drm-compositor, [ --enable-drm-compositor],,
149 enable_drm_compositor=yes)
150 AM_CONDITIONAL(ENABLE_DRM_COMPOSITOR, test x$enable_drm_compositor = xyes)
151 if test x$enable_drm_compositor = xyes; then
152 AC_DEFINE([BUILD_DRM_COMPOSITOR], [1], [Build the DRM compositor])
153 PKG_CHECK_MODULES(DRM_COMPOSITOR, [libudev >= 136 libdrm >= 2.4.30 gbm mtdev >= 1.1.0])
157 AC_ARG_ENABLE(libinput-backend, [ --enable-libinput-backend],,
158 enable_libinput_backend=no)
159 AM_CONDITIONAL([ENABLE_LIBINPUT_BACKEND], [test x$enable_libinput_backend = xyes])
160 if test x$enable_libinput_backend = xyes; then
161 AC_DEFINE([BUILD_LIBINPUT_BACKEND], [1], [Build the libinput input device backend])
162 PKG_CHECK_MODULES(LIBINPUT_BACKEND, [libinput >= 0.1.0])
166 PKG_CHECK_MODULES(COMPOSITOR, [$COMPOSITOR_MODULES])
168 AC_ARG_ENABLE(wayland-compositor, [ --enable-wayland-compositor],,
169 enable_wayland_compositor=yes)
170 AM_CONDITIONAL(ENABLE_WAYLAND_COMPOSITOR,
171 test x$enable_wayland_compositor = xyes -a x$enable_egl = xyes)
172 if test x$enable_wayland_compositor = xyes -a x$enable_egl = xyes; then
173 AC_DEFINE([BUILD_WAYLAND_COMPOSITOR], [1],
174 [Build the Wayland (nested) compositor])
175 PKG_CHECK_MODULES(WAYLAND_COMPOSITOR, [wayland-client wayland-egl wayland-cursor])
179 AC_ARG_ENABLE(headless-compositor, [ --enable-headless-compositor],,
180 enable_headless_compositor=yes)
181 AM_CONDITIONAL(ENABLE_HEADLESS_COMPOSITOR,
182 test x$enable_headless_compositor = xyes)
185 AC_ARG_ENABLE(rpi-compositor,
186 AS_HELP_STRING([--disable-rpi-compositor],
187 [do not build the Raspberry Pi backend]),,
188 enable_rpi_compositor=yes)
189 AM_CONDITIONAL(ENABLE_RPI_COMPOSITOR, test "x$enable_rpi_compositor" = "xyes")
191 if test "x$enable_rpi_compositor" = "xyes"; then
192 AC_DEFINE([BUILD_RPI_COMPOSITOR], [1], [Build the compositor for Raspberry Pi])
193 PKG_CHECK_MODULES(RPI_COMPOSITOR, [libudev >= 136 mtdev >= 1.1.0])
194 PKG_CHECK_MODULES(RPI_BCM_HOST, [bcm_host],
196 AC_DEFINE([HAVE_BCM_HOST], [1], [have Raspberry Pi BCM headers])],
197 [AC_MSG_WARN([Raspberry Pi BCM host libraries not found, will use stubs instead.])])
199 AM_CONDITIONAL(INSTALL_RPI_COMPOSITOR, test "x$have_bcm_host" = "xyes")
202 AC_ARG_ENABLE([fbdev-compositor], [ --enable-fbdev-compositor],,
203 enable_fbdev_compositor=yes)
204 AM_CONDITIONAL([ENABLE_FBDEV_COMPOSITOR],
205 [test x$enable_fbdev_compositor = xyes])
206 AS_IF([test x$enable_fbdev_compositor = xyes], [
207 AC_DEFINE([BUILD_FBDEV_COMPOSITOR], [1], [Build the fbdev compositor])
208 PKG_CHECK_MODULES([FBDEV_COMPOSITOR], [libudev >= 136 mtdev >= 1.1.0])
211 AC_ARG_ENABLE([rdp-compositor], [ --enable-rdp-compositor],,
212 enable_rdp_compositor=no)
213 AM_CONDITIONAL([ENABLE_RDP_COMPOSITOR],
214 [test x$enable_rdp_compositor = xyes])
215 if test x$enable_rdp_compositor = xyes; then
216 AC_DEFINE([BUILD_RDP_COMPOSITOR], [1], [Build the RDP compositor])
217 PKG_CHECK_MODULES(RDP_COMPOSITOR, [freerdp >= 1.1.0])
219 SAVED_CPPFLAGS="$CPPFLAGS"
220 CPPFLAGS="$CPPFLAGS $RDP_COMPOSITOR_CFLAGS"
221 AC_CHECK_HEADERS([freerdp/version.h])
222 CPPFLAGS="$SAVED_CPPFLAGS"
225 AC_ARG_ENABLE([screen-sharing], [ --enable-screen-sharing],,
226 enable_screen_sharing=no)
227 AM_CONDITIONAL([ENABLE_SCREEN_SHARING],
228 [test x$enable_screen_sharing = xyes])
229 if test x$enable_screen_sharing = xyes; then
230 PKG_CHECK_MODULES(SCREEN_SHARE, [wayland-client])
232 if test x$enable_rdp_compositor != xyes; then
233 AC_MSG_WARN([The screen-share.so module requires the RDP backend.])
238 AS_HELP_STRING([--with-cairo=@<:@image|gl|glesv2@:>@]
239 [Which Cairo renderer to use for the clients]),
240 [],[with_cairo="image"])
242 if test "x$with_cairo" = "ximage"; then
243 cairo_modules="cairo"
245 if test "x$with_cairo" = "xgl"; then
246 cairo_modules="cairo-gl"
248 if test "x$with_cairo" = "xglesv2"; then
249 cairo_modules="cairo-glesv2"
251 AC_ERROR([Unknown cairo renderer requested])
256 # Included for legacy compat
257 AC_ARG_WITH(cairo-glesv2,
258 AS_HELP_STRING([--with-cairo-glesv2],
260 if test "x$with_cairo_glesv2" = "xyes"; then
261 cairo_modules="cairo-glesv2"
265 if test "x$cairo_modules" = "xcairo-glesv2"; then
266 AC_DEFINE([USE_CAIRO_GLESV2], [1], [Use the GLESv2 GL cairo backend])
269 PKG_CHECK_MODULES(PIXMAN, [pixman-1])
270 PKG_CHECK_MODULES(PNG, [libpng])
271 PKG_CHECK_MODULES(WEBP, [libwebp], [have_webp=yes], [have_webp=no])
272 AS_IF([test "x$have_webp" = "xyes"],
273 [AC_DEFINE([HAVE_WEBP], [1], [Have webp])])
275 AC_ARG_ENABLE(vaapi-recorder, [ --enable-vaapi-recorder],,
276 enable_vaapi_recorder=auto)
277 if test x$enable_vaapi_recorder != xno; then
278 PKG_CHECK_MODULES(LIBVA, [libva >= 0.34.0 libva-drm >= 0.34.0],
279 [have_libva=yes], [have_libva=no])
280 if test "x$have_libva" = "xno" -a "x$enable_vaapi_recorder" = "xyes"; then
281 AC_MSG_ERROR([vaapi-recorder explicitly enabled, but libva couldn't be found])
283 AS_IF([test "x$have_libva" = "xyes"],
284 [AC_DEFINE([BUILD_VAAPI_RECORDER], [1], [Build the vaapi recorder])])
286 AM_CONDITIONAL(ENABLE_VAAPI_RECORDER, test "x$have_libva" = xyes)
289 AC_CHECK_LIB([jpeg], [jpeg_CreateDecompress], have_jpeglib=yes)
290 if test x$have_jpeglib = xyes; then
293 AC_ERROR([libjpeg not found])
297 PKG_CHECK_MODULES(CAIRO, [cairo])
299 PKG_CHECK_MODULES(TEST_CLIENT, [wayland-client])
301 AC_ARG_ENABLE(simple-clients,
302 AS_HELP_STRING([--disable-simple-clients],
303 [do not build the simple wl_shm clients]),,
304 enable_simple_clients=yes)
305 AM_CONDITIONAL(BUILD_SIMPLE_CLIENTS, test "x$enable_simple_clients" = "xyes")
306 if test x$enable_simple_clients = xyes; then
307 PKG_CHECK_MODULES(SIMPLE_CLIENT, [wayland-client])
310 AC_ARG_ENABLE(simple-egl-clients,
311 AS_HELP_STRING([--disable-simple-egl-clients],
312 [do not build the simple EGL clients]),,
313 enable_simple_egl_clients="$enable_egl")
314 AM_CONDITIONAL(BUILD_SIMPLE_EGL_CLIENTS, test "x$enable_simple_egl_clients" = "xyes")
315 if test x$enable_simple_egl_clients = xyes; then
316 PKG_CHECK_MODULES(SIMPLE_EGL_CLIENT,
317 [egl >= 7.10 glesv2 wayland-client wayland-egl wayland-cursor])
320 AC_ARG_ENABLE(clients, [ --enable-clients],, enable_clients=yes)
321 AM_CONDITIONAL(BUILD_CLIENTS, test x$enable_clients = xyes)
322 if test x$enable_clients = xyes; then
323 AC_DEFINE([BUILD_CLIENTS], [1], [Build the Wayland clients])
325 PKG_CHECK_MODULES(CLIENT, [wayland-client cairo >= 1.10.0 xkbcommon wayland-cursor])
326 PKG_CHECK_MODULES(SERVER, [wayland-server])
327 PKG_CHECK_MODULES(WESTON_INFO, [wayland-client])
329 # Only check for cairo-egl if a GL or GLES renderer requested
330 AS_IF([test "x$cairo_modules" = "xcairo-gl" -o "x$cairo_modules" = "xcairo-glesv2"], [
331 PKG_CHECK_MODULES(CAIRO_EGL, [wayland-egl egl >= 7.10 cairo-egl >= 1.11.3 $cairo_modules],
332 [have_cairo_egl=yes], [have_cairo_egl=no])
333 AS_IF([test "x$have_cairo_egl" = "xyes"],
334 [AC_DEFINE([HAVE_CAIRO_EGL], [1], [Have cairo-egl])],
335 [AC_ERROR([cairo-egl not used because $CAIRO_EGL_PKG_ERRORS])])],
338 PKG_CHECK_MODULES(PANGO, [pangocairo], [have_pango=yes], [have_pango=no])
341 AC_ARG_ENABLE(resize-optimization,
342 AS_HELP_STRING([--disable-resize-optimization],
343 [disable resize optimization allocating a big buffer in toytoolkit]),,
344 enable_resize_optimization=yes)
345 AS_IF([test "x$enable_resize_optimization" = "xyes"],
346 [AC_DEFINE([USE_RESIZE_POOL], [1], [Use resize memory pool as a performance optimization])])
348 PKG_CHECK_MODULES(SYSTEMD_LOGIN, [libsystemd-login >= 198],
349 [have_systemd_login=yes], [have_systemd_login=no])
350 AS_IF([test "x$have_systemd_login" = "xyes"],
351 [AC_DEFINE([HAVE_SYSTEMD_LOGIN], [1], [Have systemd-login])])
352 AM_CONDITIONAL(HAVE_SYSTEMD_LOGIN, test "x$have_systemd_login" = "xyes")
354 PKG_CHECK_MODULES(SYSTEMD_LOGIN_209, [libsystemd-login >= 209],
355 [have_systemd_login_209=yes], [have_systemd_login_209=no])
356 AS_IF([test "x$have_systemd_login_209" = "xyes"],
357 [AC_DEFINE([HAVE_SYSTEMD_LOGIN_209], [1], [Have systemd-login >= 209])])
359 AC_ARG_ENABLE(weston-launch, [ --enable-weston-launch],, enable_weston_launch=yes)
360 AM_CONDITIONAL(BUILD_WESTON_LAUNCH, test x$enable_weston_launch == xyes)
361 if test x$enable_weston_launch == xyes; then
362 AC_CHECK_LIB([pam], [pam_open_session], [have_pam=yes], [have_pam=no])
363 if test x$have_pam == xno; then
364 AC_ERROR([weston-launch requires pam])
370 if test x$enable_egl = xyes; then
371 PKG_CHECK_MODULES(GLU, [glu], [have_glu=yes], [have_glu=no])
373 AM_CONDITIONAL(HAVE_GLU, test "x$have_glu" = "xyes")
375 AM_CONDITIONAL(HAVE_PANGO, test "x$have_pango" = "xyes")
377 AM_CONDITIONAL(HAVE_CAIRO_GLESV2,
378 [test "x$have_cairo_egl" = "xyes" -a "x$cairo_modules" = "xcairo-glesv2" -a "x$enable_egl" = "xyes"])
380 AM_CONDITIONAL(BUILD_FULL_GL_CLIENTS,
381 test x$cairo_modules = "xcairo-gl" -a "x$have_cairo_egl" = "xyes" -a "x$enable_egl" = "xyes")
383 AM_CONDITIONAL(BUILD_SUBSURFACES_CLIENT,
384 [test '(' "x$have_cairo_egl" != "xyes" -o "x$cairo_modules" = "xcairo-glesv2" ')' -a "x$enable_simple_egl_clients" = "xyes"])
386 AM_CONDITIONAL(ENABLE_DESKTOP_SHELL, true)
388 AC_ARG_ENABLE(fullscreen-shell,
389 AS_HELP_STRING([--disable-fullscreen-shell],
390 [do not build fullscreen-shell server plugin]),,
391 enable_fullscreen_shell=yes)
392 AM_CONDITIONAL(ENABLE_FULLSCREEN_SHELL,
393 test "x$enable_fullscreen_shell" = "xyes")
396 AC_ARG_ENABLE(colord,
397 AS_HELP_STRING([--disable-colord],
398 [do not build colord CMS support]),,
400 if test "x$enable_colord" != "xno"; then
401 PKG_CHECK_MODULES(COLORD,
405 if test "x$have_colord" = "xno" -a "x$enable_colord" = "xyes"; then
406 AC_MSG_ERROR([colord support explicitly requested, but colord couldn't be found])
408 if test "x$have_colord" = "xyes"; then
412 AM_CONDITIONAL(ENABLE_COLORD, test "x$enable_colord" = "xyes")
416 AS_HELP_STRING([--disable-dbus],
417 [do not build with dbus support]),,
419 if test "x$enable_dbus" != "xno"; then
420 PKG_CHECK_MODULES(DBUS,
424 if test "x$have_dbus" = "xno" -a "x$enable_dbus" = "xyes"; then
425 AC_MSG_ERROR([dbus support explicitly requested, but libdbus couldn't be found])
427 if test "x$have_dbus" = "xyes"; then
429 AC_DEFINE([HAVE_DBUS], [1], [Build with dbus support])
434 AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes")
436 AC_ARG_ENABLE(wcap-tools, [ --disable-wcap-tools],, enable_wcap_tools=yes)
437 AM_CONDITIONAL(BUILD_WCAP_TOOLS, test x$enable_wcap_tools = xyes)
438 if test x$enable_wcap_tools = xyes; then
439 AC_DEFINE([BUILD_WCAP_TOOLS], [1], [Build the wcap tools])
440 PKG_CHECK_MODULES(WCAP, [cairo])
441 WCAP_LIBS="$WCAP_LIBS -lm"
444 PKG_CHECK_MODULES(SETBACKLIGHT, [libudev libdrm], enable_setbacklight=yes, enable_setbacklight=no)
445 AM_CONDITIONAL(BUILD_SETBACKLIGHT, test "x$enable_setbacklight" = "xyes")
447 if test "x$GCC" = "xyes"; then
448 GCC_CFLAGS="-Wall -Wextra -Wno-unused-parameter \
449 -Wno-missing-field-initializers -g -fvisibility=hidden \
450 -Wstrict-prototypes -Wmissing-prototypes -Wsign-compare"
454 AC_ARG_ENABLE(libunwind,
455 AS_HELP_STRING([--disable-libunwind],
456 [Disable libunwind usage for backtraces]),,
457 enable_libunwind=auto)
458 AM_CONDITIONAL(HAVE_LIBUNWIND, [test "x$enable_libunwind" = xyes])
459 if test "x$enable_libunwind" != "xno"; then
460 PKG_CHECK_MODULES(LIBUNWIND,
464 if test "x$have_libunwind" = "xno" -a "x$enable_libunwind" = "xyes"; then
465 AC_MSG_ERROR([libunwind support explicitly requested, but libunwind couldn't be found])
467 if test "x$have_libunwind" = "xyes"; then
469 AC_DEFINE(HAVE_LIBUNWIND, 1, [Have libunwind support])
474 if test "x$WESTON_NATIVE_BACKEND" = "x"; then
475 WESTON_NATIVE_BACKEND="drm-backend.so"
477 AC_MSG_NOTICE([Weston's native backend: $WESTON_NATIVE_BACKEND])
478 AC_DEFINE_UNQUOTED([WESTON_NATIVE_BACKEND], ["$WESTON_NATIVE_BACKEND"],
479 [The default backend to load, if not wayland nor x11.])
481 if test "x$WESTON_SHELL_CLIENT" = "x"; then
482 WESTON_SHELL_CLIENT="weston-desktop-shell"
484 AC_MSG_NOTICE([Weston's default desktop shell client: $WESTON_SHELL_CLIENT])
485 AC_DEFINE_UNQUOTED([WESTON_SHELL_CLIENT], ["$WESTON_SHELL_CLIENT"],
486 [The default desktop shell client to load.])
488 AC_ARG_ENABLE(demo-clients-install,
489 AS_HELP_STRING([--enable-demo-clients-install],
490 [Install demo clients built with weston]),,
491 enable_demo_clients_install=no)
492 AM_CONDITIONAL(INSTALL_DEMO_CLIENTS, [test "x$enable_demo_clients_install" = "xyes"])
494 PKG_CHECK_MODULES(LCMS, lcms2,
495 [have_lcms=yes], [have_lcms=no])
496 if test "x$have_lcms" = xyes; then
497 AC_DEFINE(HAVE_LCMS, 1, [Have lcms support])
499 AM_CONDITIONAL(HAVE_LCMS, [test "x$have_lcms" = xyes])
501 AC_PATH_PROG([wayland_scanner], [wayland-scanner])
502 if test x$wayland_scanner = x; then
503 AC_MSG_ERROR([wayland-scanner is needed to compile weston])
506 PKG_CHECK_MODULES(WAYLAND_SCANNER, wayland-scanner)
508 AC_CONFIG_FILES([Makefile src/version.h src/weston.pc])
510 AM_CONDITIONAL([HAVE_GIT_REPO], [test -f $srcdir/.git/logs/HEAD])
515 Native Backend ${WESTON_NATIVE_BACKEND}
516 setuid Install ${enable_setuid_install}
518 Cairo Renderer ${with_cairo}
520 libxkbcommon ${enable_xkbcommon}
521 xcb_xkb ${have_xcb_xkb}
522 XWayland ${enable_xwayland}
525 Build wcap utility ${enable_wcap_tools}
526 Build Fullscreen Shell ${enable_fullscreen_shell}
528 weston-launch utility ${enable_weston_launch}
529 systemd-login support ${have_systemd_login}
531 DRM Compositor ${enable_drm_compositor}
532 X11 Compositor ${enable_x11_compositor}
533 Wayland Compositor ${enable_wayland_compositor}
534 Headless Compositor ${enable_headless_compositor}
535 RPI Compositor ${enable_rpi_compositor}
536 FBDEV Compositor ${enable_fbdev_compositor}
537 RDP Compositor ${enable_rdp_compositor}
538 Screen Sharing ${enable_screen_sharing}
540 libinput Backend ${enable_libinput_backend}
542 Raspberry Pi BCM headers ${have_bcm_host}
544 Build Clients ${enable_clients}
545 Build EGL Clients ${have_cairo_egl}
546 Build Simple Clients ${enable_simple_clients}
547 Build Simple EGL Clients ${enable_simple_egl_clients}
549 Install Demo Clients ${enable_demo_clients_install}
551 Colord Support ${have_colord}
552 GLU Support ${have_glu}
553 LCMS2 Support ${have_lcms}
554 libwebp Support ${have_webp}
555 libunwind Support ${have_libunwind}
556 VA H.264 encoding Support ${have_libva}