]> diplodocus.org Git - xorg-xinput/blobdiff - configure.ac
Add Peter and Red Hat's copyright notices and licenses to COPYING
[xorg-xinput] / configure.ac
index d6a19ba522d93081eaa024df110b77ed77771b0a..c80d653ad406c2f203b300379da9635fd2ec60ec 100644 (file)
@@ -2,23 +2,30 @@ dnl  Copyright 2007 Peter Hutterer <peter@cs.unisa.edu.au>
 dnl Process this file with autoconf to create configure.
 
 AC_PREREQ([2.57])
-AC_INIT(xinput,[1.3.0], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xinput)
-AM_INIT_AUTOMAKE([dist-bzip2])
+AC_INIT(xinput,[1.5.0], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xinput)
+AM_INIT_AUTOMAKE([foreign dist-bzip2])
 AM_MAINTAINER_MODE
 
+# Require xorg-macros: XORG_DEFAULT_OPTIONS
+m4_ifndef([XORG_MACROS_VERSION],
+          [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
+XORG_MACROS_VERSION(1.3)
+XORG_DEFAULT_OPTIONS
+
 AM_CONFIG_HEADER(config.h)
 
 AC_PROG_CC
 AC_PROG_INSTALL
 
+
 # Checks for pkg-config packages
-PKG_CHECK_MODULES(XINPUT, x11 xext xi [inputproto >= 1.4])
+PKG_CHECK_MODULES(XINPUT, x11 xext [xi >= 1.2] [inputproto >= 1.5])
 
-LIBS="$XINPUT_LIBS $LIBS"
-AC_CHECK_LIB(Xi, XSetClientPointer,
-             have_xi2=yes AC_DEFINE(HAVE_XI2, 1, [Enabling XI 2 calls]),
-             have_xi2=no)
-AM_CONDITIONAL(HAVE_XI2, [test "x$have_xi2" = "xyes"])
+# XI2 support
+PKG_CHECK_MODULES(XI2, [xi >= 1.2.99.2] [inputproto >= 1.9.99.15],
+                  HAVE_XI2="yes"; AC_DEFINE(HAVE_XI2, 1, [XI2 available]),
+                  HAVE_XI2="no");
+AM_CONDITIONAL(HAVE_XI2, [ test "$HAVE_XI2" = "yes" ])
 
 AC_SUBST(XINPUT_CFLAGS)
 AC_SUBST(XINPUT_LIBS)
@@ -26,9 +33,6 @@ AC_SUBST(HAVE_XI2)
 
 AC_SUBST(VERSION)
 
-XORG_MANPAGE_SECTIONS
-XORG_RELEASE_VERSION
-
 AC_OUTPUT([Makefile
            src/Makefile
            man/Makefile])