configure.ac revision 49dc963f
1dnl 2dnl Copyright © 2003 Keith Packard, Noah Levitt 3dnl 4dnl Permission to use, copy, modify, distribute, and sell this software and its 5dnl documentation for any purpose is hereby granted without fee, provided that 6dnl the above copyright notice appear in all copies and that both that 7dnl copyright notice and this permission notice appear in supporting 8dnl documentation, and that the name of Keith Packard not be used in 9dnl advertising or publicity pertaining to distribution of the software without 10dnl specific, written prior permission. Keith Packard makes no 11dnl representations about the suitability of this software for any purpose. It 12dnl is provided "as is" without express or implied warranty. 13dnl 14dnl KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16dnl EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20dnl PERFORMANCE OF THIS SOFTWARE. 21dnl 22dnl Process this file with autoconf to create configure. 23 24AC_PREREQ([2.60]) 25 26dnl 27dnl Version should match the current XComposite version. XCompositeQueryVersion 28dnl returns the version from xcompositewire.h, NOT the version we set here. 29dnl But we try to keep these the same. Note that the library has an extra 30dnl digit in the version number to track changes which don't affect the 31dnl protocol, so Xcomposite version l.n.m corresponds to protocol version l.n 32dnl that 'revision' number appears in Xcomposite.h and has to be manually 33dnl synchronized. 34dnl 35AC_INIT(libXcomposite, 36 0.4.2, 37 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 38 libXcomposite) 39AM_INIT_AUTOMAKE([foreign dist-bzip2]) 40AM_MAINTAINER_MODE 41 42# Require xorg-macros: XORG_DEFAULT_OPTIONS 43m4_ifndef([XORG_MACROS_VERSION], 44 [m4_fatal([must install xorg-macros 1.6 or later before running autoconf/autogen])]) 45XORG_MACROS_VERSION(1.6) 46AM_CONFIG_HEADER(config.h) 47 48# Check for progs 49AC_PROG_CC 50AC_PROG_LIBTOOL 51 52XORG_DEFAULT_OPTIONS 53XORG_WITH_XMLTO(0.0.20) 54 55# Determine if the source for man pages is available 56# It may already be present (tarball) or can be generated using xmlto 57AM_CONDITIONAL([INSTALL_MANPAGES], 58 [test -f "$srcdir/man/Xcomposite.man" || test "x$have_xmlto" = xyes]) 59 60# Check compositeext configuration, strip extra digits from package version to 61# find the required protocol version 62 63if test "$VERSION" = "" ; then 64 VERSION=$PACKAGE_VERSION; 65fi 66COMPOSITEEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`] 67AC_SUBST(COMPOSITEEXT_VERSION) 68PKG_CHECK_MODULES(XCOMPOSITE, [compositeproto >= $COMPOSITEEXT_VERSION] x11 xfixes xext fixesproto) 69AC_SUBST(XCOMPOSITE_CFLAGS) 70AC_SUBST(XCOMPOSITE_LIBS) 71 72AC_OUTPUT([Makefile 73 src/Makefile 74 man/Makefile 75 xcomposite.pc]) 76 77