configure.ac revision 25b89263
1a253d6aeSmrg 2a253d6aeSmrgdnl Copyright 2005 Red Hat, Inc. 3a253d6aeSmrgdnl 4a253d6aeSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 5a253d6aeSmrgdnl documentation for any purpose is hereby granted without fee, provided that 6a253d6aeSmrgdnl the above copyright notice appear in all copies and that both that 7a253d6aeSmrgdnl copyright notice and this permission notice appear in supporting 8a253d6aeSmrgdnl documentation, and that the name of Red Hat not be used in 9a253d6aeSmrgdnl advertising or publicity pertaining to distribution of the software without 10a253d6aeSmrgdnl specific, written prior permission. Red Hat makes no 11a253d6aeSmrgdnl representations about the suitability of this software for any purpose. It 12a253d6aeSmrgdnl is provided "as is" without express or implied warranty. 13a253d6aeSmrgdnl 14a253d6aeSmrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15a253d6aeSmrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16a253d6aeSmrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17a253d6aeSmrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18a253d6aeSmrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19a253d6aeSmrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20a253d6aeSmrgdnl PERFORMANCE OF THIS SOFTWARE. 21a253d6aeSmrgdnl 22a253d6aeSmrgdnl Process this file with autoconf to create configure. 23a253d6aeSmrg 2425b89263SmrgAC_PREREQ([2.60]) 25a253d6aeSmrg 2625b89263SmrgAC_INIT([libXtst], [1.2.0], 2725b89263Smrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXtst]) 2825b89263SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 29a253d6aeSmrgAM_MAINTAINER_MODE 30a253d6aeSmrg 3125b89263Smrg# Require xorg-macros minimum of 1.10 for DocBook XML documentation 3225b89263Smrgm4_ifndef([XORG_MACROS_VERSION], 3325b89263Smrg [m4_fatal([must install xorg-macros 1.10 or later before running autoconf/autogen])]) 3425b89263SmrgXORG_MACROS_VERSION(1.10) 3525b89263SmrgXORG_DEFAULT_OPTIONS 3625b89263SmrgXORG_ENABLE_SPECS 3725b89263SmrgXORG_WITH_XMLTO(0.0.20) 3825b89263SmrgXORG_WITH_FOP 3925b89263SmrgXORG_CHECK_SGML_DOCTOOLS(1.5) 40a253d6aeSmrgAM_CONFIG_HEADER(config.h) 41a253d6aeSmrg 42a253d6aeSmrg# Check for progs 43a253d6aeSmrgAC_PROG_CC 44a253d6aeSmrgAC_PROG_LIBTOOL 45a253d6aeSmrg 46a253d6aeSmrg# Check for dependencies 47ea133fd7SmrgPKG_CHECK_MODULES(XTST, x11 [xext >= 1.0.99.4] xi [recordproto >= 1.13.99.1] [xextproto >= 7.0.99.3] inputproto) 4825b89263Smrg 4925b89263Smrg# Determine if the source for man pages is available 5025b89263Smrg# It may already be present (tarball) or can be generated using xmlto 5125b89263SmrgAM_CONDITIONAL([INSTALL_MANPAGES], 5225b89263Smrg [test -f "$srcdir/man/XTestQueryExtension.man" || test "x$have_xmlto" = xyes]) 53a253d6aeSmrg 54a253d6aeSmrgdnl Allow checking code with lint, sparse, etc. 55a253d6aeSmrgXORG_WITH_LINT 56a253d6aeSmrgXORG_LINT_LIBRARY([Xtst]) 57a253d6aeSmrgLINT_FLAGS="${LINT_FLAGS} ${XTST_CFLAGS}" 58a253d6aeSmrg 59a253d6aeSmrgAC_OUTPUT([Makefile 60a253d6aeSmrg man/Makefile 61a253d6aeSmrg src/Makefile 6225b89263Smrg specs/Makefile 6325b89263Smrg xtst.pc]) 64