From 9f43cb48aac9d27aa49fe955104f5cfd204703ed Mon Sep 17 00:00:00 2001 From: Quentin Glidic Date: Sat, 24 Aug 2013 20:36:10 +0200 Subject: [PATCH] autotools: Fix AC_PATH_PROG call Signed-off-by: Quentin Glidic --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 0129157af..43e5e5c37 100644 --- a/configure.ac +++ b/configure.ac @@ -424,8 +424,10 @@ if test "x$have_lcms" = xyes; then fi AM_CONDITIONAL(HAVE_LCMS, [test "x$have_lcms" = xyes]) -AC_PATH_PROG([wayland_scanner], [wayland-scanner], - [AC_MSG_ERROR("wayland-scanner is needed to compile weston")]) +AC_PATH_PROG([wayland_scanner], [wayland-scanner]) +if test x$wayland_scanner = x; then + AC_MSG_ERROR([wayland-scanner is needed to compile weston]) +fi AC_CONFIG_FILES([Makefile shared/Makefile