1AC_DEFUN([WAYLAND_SCANNER_RULES], [ 2 PKG_PROG_PKG_CONFIG 3 4 PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner >= 1.14.0]) 5 6 wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner` 7 AC_SUBST([wayland_scanner]) 8 9 wayland_scanner_rules=`$PKG_CONFIG --variable=pkgdatadir wayland-scanner`/wayland-scanner.mk 10 AC_SUBST_FILE([wayland_scanner_rules]) 11 12 AC_SUBST([wayland_protocoldir], [$1]) 13]) 14