configure.ac revision c27c18e8
1c43cc173Smrgdnl Process this file with autoconf to create configure. 2c43cc173Smrg 3c43cc173SmrgAC_PREREQ([2.57]) 4c43cc173Smrg 5c27c18e8SmrgAC_INIT(libXi, 1.3, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXi) 6c27c18e8SmrgAM_INIT_AUTOMAKE([dist-bzip2 foreign]) 7c43cc173SmrgAM_MAINTAINER_MODE 8c43cc173Smrg 9c27c18e8Smrg# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG 10c27c18e8Smrgm4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.3 or later before running autoconf/autogen])]) 11c27c18e8SmrgXORG_MACROS_VERSION(1.3) 12c43cc173SmrgAM_CONFIG_HEADER(src/config.h) 13c43cc173Smrg 14c43cc173Smrg# Check for progs 15c43cc173SmrgAC_PROG_CC 16c43cc173SmrgAC_PROG_LIBTOOL 17c27c18e8SmrgAC_PROG_SED 18c27c18e8SmrgXORG_DEFAULT_OPTIONS 19c43cc173Smrg 20c43cc173Smrg# Checks for pkg-config packages 21c27c18e8SmrgPKG_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]) 22c27c18e8SmrgXI_CFLAGS="$CWARNFLAGS $XI_CFLAGS" 23c43cc173SmrgAC_SUBST(XI_CFLAGS) 24c43cc173SmrgAC_SUBST(XI_LIBS) 25c43cc173Smrg 26c27c18e8Smrg# Check for xmlto and asciidoc for man page conversion 27c27c18e8Smrg# (only needed by people building tarballs) 28c27c18e8SmrgAC_ARG_VAR([XMLTO], [Path to xmlto command]) 29c27c18e8SmrgAC_PATH_PROG([XMLTO], [xmlto]) 30c27c18e8SmrgAC_ARG_VAR([ASCIIDOC], [Path to asciidoc command]) 31c27c18e8SmrgAC_PATH_PROG([ASCIIDOC], [asciidoc]) 32c27c18e8SmrgAM_CONDITIONAL([HAVE_DOCTOOLS], [test "x$XMLTO" != "x" && test "x$ASCIIDOC" != "x"]) 33c27c18e8Smrgif test "x$XMLTO" = "x" || test "x$ASCIIDOC" = "x"; then 34c27c18e8Smrg AC_MSG_WARN([xmlto or asciidoc not found - cannot create man pages without it]) 35c27c18e8Smrgfi 36c27c18e8Smrg 37c43cc173SmrgXORG_CHECK_MALLOC_ZERO 38c43cc173Smrg 39c43cc173SmrgAC_OUTPUT([Makefile 40c43cc173Smrg src/Makefile 41c43cc173Smrg man/Makefile 42c43cc173Smrg xi.pc]) 43c43cc173Smrg 44