4 AC_INIT([libXi], [1.6.1],
5 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXi])
6 AC_CONFIG_SRCDIR([Makefile.am])
7 AC_CONFIG_HEADERS([src/config.h])
10 AM_INIT_AUTOMAKE([foreign dist-bzip2])
16 # Require xorg-macros minimum of 1.12 for DocBook external references
17 m4_ifndef([XORG_MACROS_VERSION],
18 [m4_fatal([must install xorg-macros 1.12 or later before running autoconf/autogen])])
19 XORG_MACROS_VERSION(1.12)
23 XORG_WITH_XMLTO(0.0.22)
26 XORG_CHECK_SGML_DOCTOOLS(1.8)
27 XORG_WITH_ASCIIDOC(8.4.5)
28 XORG_CHECK_MALLOC_ZERO
30 # Obtain compiler/linker options for dependencies
31 PKG_CHECK_MODULES(XI, [xproto >= 7.0.13] [x11 >= 1.4.99.1] [xextproto >= 7.0.3] [xext >= 1.0.99.1] [inputproto >= 2.1.99.6])
33 # Check for xmlto and asciidoc for man page conversion
34 # (only needed by people building tarballs)
35 if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then
40 AM_CONDITIONAL([HAVE_DOCTOOLS], [test $have_doctools = yes])
41 if test $have_doctools = no; then
42 AC_MSG_WARN([xmlto or asciidoc not found - cannot create man pages without it])
45 # Determine if the source for man pages is available
46 # It may already be present (tarball) or can be generated using doctools
47 AM_CONDITIONAL([INSTALL_MANPAGES],
48 [test -f "$srcdir/man/XAllowDeviceEvents.man" || \
49 test $have_doctools = yes])
51 AC_CONFIG_FILES([Makefile