1
2# Initialize Autoconf
3AC_PREREQ([2.60])
4AC_INIT([libXxf86dga], [1.1.6],
5        [https://gitlab.freedesktop.org/xorg/lib/libxxf86dga/-/issues],
6        [libXxf86dga])
7AC_CONFIG_SRCDIR([Makefile.am])
8AC_CONFIG_HEADERS(src/config.h)
9
10# Initialize Automake
11AM_INIT_AUTOMAKE([foreign dist-xz])
12
13# Initialize libtool
14AC_PROG_LIBTOOL
15
16# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
17m4_ifndef([XORG_MACROS_VERSION],
18          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
19XORG_MACROS_VERSION(1.8)
20XORG_DEFAULT_OPTIONS
21XORG_CHECK_MALLOC_ZERO
22
23# Obtain compiler/linker options for dependencies
24PKG_CHECK_MODULES(XXF86DGA, xproto [x11 >= 1.6] xextproto xext [xf86dgaproto >= 2.0.99.2])
25
26AC_CONFIG_FILES([Makefile
27		src/Makefile
28		man/Makefile
29		xxf86dga.pc])
30AC_OUTPUT
31