--- configure.ac_orig 2014-04-28 01:51:17.419311470 +0200 +++ configure.ac 2014-04-28 01:52:25.842088562 +0200 @@ -2458,7 +2458,8 @@ XWAYLAND_SYS_LIBS="$XWAYLANDMODULES_LIBS $GLX_SYS_LIBS" AC_SUBST([XWAYLAND_LIBS]) AC_SUBST([XWAYLAND_SYS_LIBS]) - WAYLAND_SCANNER_RULES(['$(top_srcdir)/hw/xwayland']) + m4_ifdef([WAYLAND_SCANNER_RULES], + [WAYLAND_SCANNER_RULES(['$(top_srcdir)/hw/xwayland'])]) fi