]> diplodocus.org Git - xorg-xinput/blob - configure.ac
915d55f7955d063bbd7bbc3fcf07ae8359ded0b4
[xorg-xinput] / configure.ac
1 dnl Copyright 2007 Peter Hutterer <peter@cs.unisa.edu.au>
2 dnl Process this file with autoconf to create configure.
3
4 AC_PREREQ([2.60])
5 AC_INIT(xinput,[1.5.3], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xinput)
6 AM_INIT_AUTOMAKE([foreign dist-bzip2])
7 AM_MAINTAINER_MODE
8
9 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
10 m4_ifndef([XORG_MACROS_VERSION],
11 [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
12 XORG_MACROS_VERSION(1.8)
13 XORG_DEFAULT_OPTIONS
14
15 AC_CONFIG_HEADERS([config.h])
16
17
18
19 # Checks for pkg-config packages
20 PKG_CHECK_MODULES(XINPUT, x11 xext [xi >= 1.2] [inputproto >= 1.5])
21
22 # XI2 support
23 PKG_CHECK_MODULES(XI2, [xi >= 1.2.99.2] [inputproto >= 1.9.99.15],
24 HAVE_XI2="yes"; AC_DEFINE(HAVE_XI2, 1, [XI2 available]),
25 HAVE_XI2="no");
26 AM_CONDITIONAL(HAVE_XI2, [ test "$HAVE_XI2" = "yes" ])
27
28 AC_SUBST(HAVE_XI2)
29
30 AC_SUBST(VERSION)
31
32 AC_OUTPUT([Makefile
33 src/Makefile
34 man/Makefile])