summaryrefslogtreecommitdiff
path: root/wayland-scanner.m4.in
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-02-14 22:17:41 -0500
committerKristian Høgsberg <krh@bitplanet.net>2011-02-14 22:21:13 -0500
commitfcfb4e30a47a4cd2416dac210521594b489c8bfd (patch)
treee940236740627c99898ad726246226977c9d7af8 /wayland-scanner.m4.in
parent525e4c0beae832afc2c098c1368a19ad164e1b2b (diff)
Split into a core repository that only holds the core Wayland libraries
Diffstat (limited to 'wayland-scanner.m4.in')
-rw-r--r--wayland-scanner.m4.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/wayland-scanner.m4.in b/wayland-scanner.m4.in
new file mode 100644
index 0000000..29bc788
--- /dev/null
+++ b/wayland-scanner.m4.in
@@ -0,0 +1,16 @@
+AC_DEFUN([WAYLAND_SCANNER_RULES], [
+ wayland__prefix=${prefix}
+ wayland__exec_prefix=${exec_prefix}
+
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+
+ AC_PATH_PROG([wayland_scanner], [wayland-scanner], [/bin/false],
+ [@bindir@$PATH_SEPARATOR$PATH])
+ AC_SUBST_FILE([wayland_scanner_rules])
+ AC_SUBST([wayland_protocoldir], [$1])
+ wayland_scanner_rules=@datarootdir@/aclocal/wayland-scanner.mk
+
+ prefix=${wayland__prefix}
+ exec_prefix=${wayland__exec_prefix}
+])