1 dnl Copyright 2007 Peter Hutterer <peter@cs.unisa.edu.au>
2 dnl Process this file with autoconf to create configure.
5 AC_INIT(xinput,[1.5.3], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xinput)
6 AM_INIT_AUTOMAKE([foreign dist-bzip2])
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)
15 AC_CONFIG_HEADERS([config.h])
19 # Checks for pkg-config packages
20 PKG_CHECK_MODULES(XINPUT, x11 xext [xi >= 1.2] [inputproto >= 1.5])
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]),
26 AM_CONDITIONAL(HAVE_XI2, [ test "$HAVE_XI2" = "yes" ])