configure: rework wayland_scanner handling(fix make distcheck)
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 10 Feb 2015 14:14:16 +0000 (14:14 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 12 Feb 2015 13:19:20 +0000 (13:19 +0000)
commit153539bd9d4445b504110958306f00632222f840
treea04eb9737f2096f0e89ce158b0a3ec7b73db768e
parent72e602905dd9d86450a936d5a22bf21758844b38
configure: rework wayland_scanner handling(fix make distcheck)

Currently having the wayland-scanner is optional, which causes problems
when autotools parses through the makefiles, and tries to generate all
the BUILT_SOURCES.

As the config option --with-egl-platform=wayland is not the default, we
won't end up setting the WAYLAND_SCANNER variable, which in turn will
cause some files to not get generated.

There has been a wayland-scanner package as of wayland 1.2 which
provides a variable for the scanner binary, so let's use that one and
fall back to manually searching via AC_PATH_PROG when needed.

Cc: "10.5" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
configure.ac