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]) 2510f94802SmrgAC_INIT([libXtst], [1.2.5], 26b41a30aaSmrg [https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues], [libXtst]) 2706f32fbeSmrgAC_CONFIG_SRCDIR([Makefile.am]) 2806f32fbeSmrgAC_CONFIG_HEADERS([config.h]) 2910f94802SmrgAC_CONFIG_MACRO_DIRS([m4]) 30a253d6aeSmrg 3106f32fbeSmrg# Initialize Automake 32b41a30aaSmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 33a253d6aeSmrg 3406f32fbeSmrg# Initialize libtool 3510f94802SmrgLT_INIT 3606f32fbeSmrg 3706f32fbeSmrg# Require xorg-macros minimum of 1.12 for DocBook external references 3825b89263Smrgm4_ifndef([XORG_MACROS_VERSION], 3906f32fbeSmrg [m4_fatal([must install xorg-macros 1.12 or later before running autoconf/autogen])]) 4006f32fbeSmrgXORG_MACROS_VERSION(1.12) 4125b89263SmrgXORG_DEFAULT_OPTIONS 4225b89263SmrgXORG_ENABLE_SPECS 4306f32fbeSmrgXORG_WITH_XMLTO(0.0.22) 4425b89263SmrgXORG_WITH_FOP 4506f32fbeSmrgXORG_WITH_XSLTPROC 4606f32fbeSmrgXORG_CHECK_SGML_DOCTOOLS(1.8) 47a253d6aeSmrg 48b41a30aaSmrg# Obtain compiler/linker options for dependencies 4931637056SmrgPKG_CHECK_MODULES(XTST, [x11 >= 1.6] [xext >= 1.0.99.4] xi [recordproto >= 1.13.99.1] [xextproto >= 7.0.99.3] inputproto) 5057ee1794Smrg 5125b89263Smrg# Determine if the source for man pages is available 5225b89263Smrg# It may already be present (tarball) or can be generated using xmlto 5325b89263SmrgAM_CONDITIONAL([INSTALL_MANPAGES], 5425b89263Smrg [test -f "$srcdir/man/XTestQueryExtension.man" || test "x$have_xmlto" = xyes]) 55a253d6aeSmrg 5606f32fbeSmrg# Allow checking code with lint, sparse, etc. 57a253d6aeSmrgXORG_WITH_LINT 58a253d6aeSmrgXORG_LINT_LIBRARY([Xtst]) 59a253d6aeSmrgLINT_FLAGS="${LINT_FLAGS} ${XTST_CFLAGS}" 60a253d6aeSmrg 6106f32fbeSmrgAC_CONFIG_FILES([Makefile 6206f32fbeSmrg man/Makefile 6306f32fbeSmrg src/Makefile 6406f32fbeSmrg specs/Makefile 6506f32fbeSmrg xtst.pc]) 6606f32fbeSmrgAC_OUTPUT 67