configure.ac revision b41a30aa
1a253d6aeSmrg 206f32fbeSmrg# Copyright 2005 Red Hat, Inc. 306f32fbeSmrg# 406f32fbeSmrg# Permission to use, copy, modify, distribute, and sell this software and its 506f32fbeSmrg# documentation for any purpose is hereby granted without fee, provided that 606f32fbeSmrg# the above copyright notice appear in all copies and that both that 706f32fbeSmrg# copyright notice and this permission notice appear in supporting 806f32fbeSmrg# documentation, and that the name of Red Hat not be used in 906f32fbeSmrg# advertising or publicity pertaining to distribution of the software without 1006f32fbeSmrg# specific, written prior permission. Red Hat makes no 1106f32fbeSmrg# representations about the suitability of this software for any purpose. It 1206f32fbeSmrg# is provided "as is" without express or implied warranty. 1306f32fbeSmrg# 1406f32fbeSmrg# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 1506f32fbeSmrg# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 1606f32fbeSmrg# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 1706f32fbeSmrg# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 1806f32fbeSmrg# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 1906f32fbeSmrg# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 2006f32fbeSmrg# PERFORMANCE OF THIS SOFTWARE. 2106f32fbeSmrg# 22a253d6aeSmrg 2306f32fbeSmrg# Initialize Autoconf 2425b89263SmrgAC_PREREQ([2.60]) 25b41a30aaSmrgAC_INIT([libXtst], [1.2.4], 26b41a30aaSmrg [https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues], [libXtst]) 2706f32fbeSmrgAC_CONFIG_SRCDIR([Makefile.am]) 2806f32fbeSmrgAC_CONFIG_HEADERS([config.h]) 29a253d6aeSmrg 3006f32fbeSmrg# Initialize Automake 31b41a30aaSmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 32a253d6aeSmrg 3306f32fbeSmrg# Initialize libtool 3406f32fbeSmrgAC_PROG_LIBTOOL 3506f32fbeSmrg 3606f32fbeSmrg# Require xorg-macros minimum of 1.12 for DocBook external references 3725b89263Smrgm4_ifndef([XORG_MACROS_VERSION], 3806f32fbeSmrg [m4_fatal([must install xorg-macros 1.12 or later before running autoconf/autogen])]) 3906f32fbeSmrgXORG_MACROS_VERSION(1.12) 4025b89263SmrgXORG_DEFAULT_OPTIONS 4125b89263SmrgXORG_ENABLE_SPECS 4206f32fbeSmrgXORG_WITH_XMLTO(0.0.22) 4325b89263SmrgXORG_WITH_FOP 4406f32fbeSmrgXORG_WITH_XSLTPROC 4506f32fbeSmrgXORG_CHECK_SGML_DOCTOOLS(1.8) 46a253d6aeSmrg 47b41a30aaSmrg# Obtain compiler/linker options for dependencies 4831637056SmrgPKG_CHECK_MODULES(XTST, [x11 >= 1.6] [xext >= 1.0.99.4] xi [recordproto >= 1.13.99.1] [xextproto >= 7.0.99.3] inputproto) 4957ee1794Smrg 5025b89263Smrg# Determine if the source for man pages is available 5125b89263Smrg# It may already be present (tarball) or can be generated using xmlto 5225b89263SmrgAM_CONDITIONAL([INSTALL_MANPAGES], 5325b89263Smrg [test -f "$srcdir/man/XTestQueryExtension.man" || test "x$have_xmlto" = xyes]) 54a253d6aeSmrg 5506f32fbeSmrg# Allow checking code with lint, sparse, etc. 56a253d6aeSmrgXORG_WITH_LINT 57a253d6aeSmrgXORG_LINT_LIBRARY([Xtst]) 58a253d6aeSmrgLINT_FLAGS="${LINT_FLAGS} ${XTST_CFLAGS}" 59a253d6aeSmrg 6006f32fbeSmrgAC_CONFIG_FILES([Makefile 6106f32fbeSmrg man/Makefile 6206f32fbeSmrg src/Makefile 6306f32fbeSmrg specs/Makefile 6406f32fbeSmrg xtst.pc]) 6506f32fbeSmrgAC_OUTPUT 66