aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2015-10-09 12:08:30 +0800
committerJonas Ådahl <jadahl@gmail.com>2015-10-09 13:12:37 +0800
commitf548e992662ccb0d5e14b5167b4693102f31ce7f (patch)
tree5843df79f4787df2a5cdcc0873921eb7e7c3777d /configure.ac
parenta24f0ff63e55027637d81b28486dd4e6884b11f0 (diff)
Add autotools installation files
Currently installs unstable protocols under an unstable/ subdirectory in $prefix/share/wayland-protocols/. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac34
1 files changed, 34 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..b97f411
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,34 @@
+AC_PREREQ([2.64])
+
+m4_define([wayland_protocols_major_version], [0])
+m4_define([wayland_protocols_minor_version], [1])
+m4_define([wayland_protocols_micro_version], [0])
+m4_define([wayland_protocols_version],
+ [wayland_protocols_major_version.wayland_protocols_minor_version.wayland_protocols_micro_version])
+
+AC_INIT([wayland-protocols],
+ [wayland_protocols_version],
+ [https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=protocols&version=wayland-protocols_version],
+ [wayland-protocols],
+ [http://wayland.freedesktop.org/])
+
+AC_SUBST([WAYLAND_PROTOCOLS_VERSION_MAJOR], [wayland_protocols_major_version])
+AC_SUBST([WAYLAND_PROTOCOLS_VERSION_MINOR], [wayland_protocols_minor_version])
+AC_SUBST([WAYLAND_PROTOCOLS_VERSION_MICRO], [wayland_protocols_micro_version])
+AC_SUBST([WAYLAND_PROTOCOLS_VERSION], [wayland_protocols_version])
+
+AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])
+
+AM_SILENT_RULES([yes])
+
+PKG_PROG_PKG_CONFIG()
+
+AC_CONFIG_FILES([
+ Makefile
+ wayland-protocols.pc
+ ])
+AC_OUTPUT
+
+AC_MSG_RESULT([
+ Prefix ${prefix}
+ ])