autotools: add support for wayland