xref: /aosp_15_r20/external/wayland-protocols/freedesktop.org/configure.ac (revision 6c119a463dd5c45dd05bbe67429293292dde15ee)
1AC_PREREQ([2.64])
2
3m4_define([wayland_protocols_major_version], [1])
4m4_define([wayland_protocols_minor_version], [22])
5m4_define([wayland_protocols_version],
6          [wayland_protocols_major_version.wayland_protocols_minor_version])
7
8AC_INIT([wayland-protocols],
9        [wayland_protocols_version],
10        [https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=wayland&version=unspecified],
11        [wayland-protocols],
12        [http://wayland.freedesktop.org/])
13
14AC_CONFIG_MACRO_DIR([m4])
15
16AC_SUBST([WAYLAND_PROTOCOLS_VERSION], [wayland_protocols_version])
17
18AC_ARG_VAR([wayland_scanner], [The wayland-scanner executable])
19AC_PATH_PROG([wayland_scanner], [wayland-scanner])
20if test x$wayland_scanner = x; then
21        if test "x$cross_compiling" != "xyes"; then
22                PKG_CHECK_MODULES(WAYLAND_SCANNER, [wayland-scanner])
23                wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
24        else
25                AC_MSG_WARN([You are cross compiling without wayland-scanner in your path.  make check will fail.])
26        fi
27fi
28
29AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz tar-ustar])
30
31AM_SILENT_RULES([yes])
32
33PKG_NOARCH_INSTALLDIR
34
35AC_CONFIG_FILES([
36	Makefile
37	wayland-protocols.pc
38	wayland-protocols-uninstalled.pc
39	])
40AC_OUTPUT
41
42AC_MSG_RESULT([
43	Version			${WAYLAND_PROTOCOLS_VERSION}
44	Prefix			${prefix}
45	])
46