Clean up spec file for packaging.
[profile/ivi/xorg-app-xinput.git] / 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.57])
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 xorg-macros: XORG_DEFAULT_OPTIONS
10 m4_ifndef([XORG_MACROS_VERSION],
11           [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
12 XORG_MACROS_VERSION(1.3)
13 XORG_DEFAULT_OPTIONS
14
15 AM_CONFIG_HEADER(config.h)
16
17 AC_PROG_CC
18 AC_PROG_INSTALL
19 AC_PROG_SED
20
21
22 # Checks for pkg-config packages
23 PKG_CHECK_MODULES(XINPUT, x11 xext [xi >= 1.2] [inputproto >= 1.5])
24
25 # XI2 support
26 PKG_CHECK_MODULES(XI2, [xi >= 1.2.99.2] [inputproto >= 1.9.99.15],
27                   HAVE_XI2="yes"; AC_DEFINE(HAVE_XI2, 1, [XI2 available]),
28                   HAVE_XI2="no");
29 AM_CONDITIONAL(HAVE_XI2, [ test "$HAVE_XI2" = "yes" ])
30
31 AC_SUBST(XINPUT_CFLAGS)
32 AC_SUBST(XINPUT_LIBS)
33 AC_SUBST(HAVE_XI2)
34
35 AC_SUBST(VERSION)
36
37 AC_OUTPUT([Makefile
38            src/Makefile
39            man/Makefile])