autotools: Fix AC_PATH_PROG call
authorQuentin Glidic <sardemff7+git@sardemff7.net>
Sat, 24 Aug 2013 18:36:10 +0000 (20:36 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 30 Aug 2013 20:01:15 +0000 (13:01 -0700)
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
configure.ac

index 0129157..43e5e5c 100644 (file)
@@ -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