When wayland support is disabled, but wayland libs are found on the system, it still links in wayland libs, causing an unnecessary and unwanted runtime dependency.
Signed-off-by: Enrico Weigelt, metux IT consult info@metux.net