configure.ac revision 57ee1794
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]) 2557ee1794SmrgAC_INIT([libXtst], [1.2.2], 2606f32fbeSmrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXtst]) 2706f32fbeSmrgAC_CONFIG_SRCDIR([Makefile.am]) 2806f32fbeSmrgAC_CONFIG_HEADERS([config.h]) 29a253d6aeSmrg 3006f32fbeSmrg# Initialize Automake 3125b89263SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 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 4706f32fbeSmrg# Obtain compiler/linker options for depedencies 48ea133fd7SmrgPKG_CHECK_MODULES(XTST, x11 [xext >= 1.0.99.4] xi [recordproto >= 1.13.99.1] [xextproto >= 7.0.99.3] inputproto) 4925b89263Smrg 5057ee1794Smrg# Check for _XEatDataWords function that may be patched into older Xlib release 5157ee1794SmrgSAVE_LIBS="$LIBS" 5257ee1794SmrgLIBS="$XTST_LIBS" 5357ee1794SmrgAC_CHECK_FUNCS([_XEatDataWords]) 5457ee1794SmrgLIBS="$SAVE_LIBS" 5557ee1794Smrg 5625b89263Smrg# Determine if the source for man pages is available 5725b89263Smrg# It may already be present (tarball) or can be generated using xmlto 5825b89263SmrgAM_CONDITIONAL([INSTALL_MANPAGES], 5925b89263Smrg [test -f "$srcdir/man/XTestQueryExtension.man" || test "x$have_xmlto" = xyes]) 60a253d6aeSmrg 6106f32fbeSmrg# Allow checking code with lint, sparse, etc. 62a253d6aeSmrgXORG_WITH_LINT 63a253d6aeSmrgXORG_LINT_LIBRARY([Xtst]) 64a253d6aeSmrgLINT_FLAGS="${LINT_FLAGS} ${XTST_CFLAGS}" 65a253d6aeSmrg 6606f32fbeSmrgAC_CONFIG_FILES([Makefile 6706f32fbeSmrg man/Makefile 6806f32fbeSmrg src/Makefile 6906f32fbeSmrg specs/Makefile 7006f32fbeSmrg xtst.pc]) 7106f32fbeSmrgAC_OUTPUT 72