[PATCH] configure.ac: Change in build system to use the path from pkg-config for wayland-scanner.

Srivardhan Hebbar sri.hebbar at samsung.com
Wed May 14 03:31:14 PDT 2014


This is a fix to the bug https://bugs.freedesktop.org/show_bug.cgi?id=78688.

Signed-off-by: Srivardhan Hebbar <sri.hebbar at samsung.com>
---
 configure.ac |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 031a26f..89965e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -498,7 +498,9 @@ if test "x$have_lcms" = xyes; then
 fi
 AM_CONDITIONAL(HAVE_LCMS, [test "x$have_lcms" = xyes])
 
-AC_PATH_PROG([wayland_scanner], [wayland-scanner])
+WAYLAND_SCANNER_PREFIX=`$PKG_CONFIG --variable=prefix wayland-scanner`
+AC_PATH_PROG([wayland_scanner], [wayland-scanner],,
+		[${WAYLAND_SCANNER_PREFIX}/bin$PATH_SEPARATOR$PATH])
 if test x$wayland_scanner = x; then
 	AC_MSG_ERROR([wayland-scanner is needed to compile weston])
 fi
-- 
1.7.9.5



More information about the wayland-devel mailing list