configure.ac revision b789ec8a
1 2# Initialize Autoconf 3AC_PREREQ([2.60]) 4AC_INIT([libXi], [1.4.3], 5 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXi]) 6AC_CONFIG_SRCDIR([Makefile.am]) 7AC_CONFIG_HEADERS([src/config.h]) 8 9# Initialize Automake 10AM_INIT_AUTOMAKE([foreign dist-bzip2]) 11AM_MAINTAINER_MODE 12 13# Initialize libtool 14AC_PROG_LIBTOOL 15 16# Require xorg-macros minimum of 1.10 for DocBook XML documentation 17m4_ifndef([XORG_MACROS_VERSION], 18 [m4_fatal([must install xorg-macros 1.10 or later before running autoconf/autogen])]) 19XORG_MACROS_VERSION(1.10) 20XORG_DEFAULT_OPTIONS 21XORG_ENABLE_SPECS 22XORG_WITH_XMLTO(0.0.20) 23XORG_WITH_FOP 24XORG_CHECK_SGML_DOCTOOLS(1.5) 25XORG_WITH_ASCIIDOC(8.4.5) 26XORG_CHECK_MALLOC_ZERO 27 28# Obtain compiler/linker options for depedencies 29PKG_CHECK_MODULES(XI, [xproto >= 7.0.13] [x11 >= 1.2.99.1] [xextproto >= 7.0.3] [xext >= 1.0.99.1] [inputproto >= 1.9.99.902]) 30 31# Check for xmlto and asciidoc for man page conversion 32# (only needed by people building tarballs) 33if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then 34 have_doctools=yes 35else 36 have_doctools=no 37fi 38AM_CONDITIONAL([HAVE_DOCTOOLS], [test $have_doctools = yes]) 39if test $have_doctools = no; then 40 AC_MSG_WARN([xmlto or asciidoc not found - cannot create man pages without it]) 41fi 42 43# Determine if the source for man pages is available 44# It may already be present (tarball) or can be generated using doctools 45AM_CONDITIONAL([INSTALL_MANPAGES], 46 [test -f "$srcdir/man/XAllowDeviceEvents.man" || \ 47 test $have_doctools = yes]) 48 49AC_CONFIG_FILES([Makefile 50 src/Makefile 51 man/Makefile 52 doc/Makefile 53 specs/Makefile 54 xi.pc]) 55AC_OUTPUT 56