configure.ac revision 4b0ead49
14b0ead49Smrgdnl 24b0ead49Smrgdnl $Id: configure.ac,v 1.1.1.1 2008/07/30 02:45:38 mrg Exp $ 34b0ead49Smrgdnl 44b0ead49Smrgdnl Copyright © 2003 Keith Packard, Noah Levitt 54b0ead49Smrgdnl 64b0ead49Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 74b0ead49Smrgdnl documentation for any purpose is hereby granted without fee, provided that 84b0ead49Smrgdnl the above copyright notice appear in all copies and that both that 94b0ead49Smrgdnl copyright notice and this permission notice appear in supporting 104b0ead49Smrgdnl documentation, and that the name of Keith Packard not be used in 114b0ead49Smrgdnl advertising or publicity pertaining to distribution of the software without 124b0ead49Smrgdnl specific, written prior permission. Keith Packard makes no 134b0ead49Smrgdnl representations about the suitability of this software for any purpose. It 144b0ead49Smrgdnl is provided "as is" without express or implied warranty. 154b0ead49Smrgdnl 164b0ead49Smrgdnl KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 174b0ead49Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 184b0ead49Smrgdnl EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 194b0ead49Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 204b0ead49Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 214b0ead49Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 224b0ead49Smrgdnl PERFORMANCE OF THIS SOFTWARE. 234b0ead49Smrgdnl 244b0ead49Smrgdnl Process this file with autoconf to create configure. 254b0ead49Smrg 264b0ead49SmrgAC_PREREQ([2.57]) 274b0ead49Smrg 284b0ead49Smrgdnl 294b0ead49Smrgdnl Version should match the current XComposite version. XCompositeQueryVersion 304b0ead49Smrgdnl returns the version from xcompositewire.h, NOT the version we set here. But we 314b0ead49Smrgdnl try to keep these the same. Note that the library has an extra 324b0ead49Smrgdnl digit in the version number to track changes which don't affect the 334b0ead49Smrgdnl protocol, so Xcomposite version l.n.m corresponds to protocol version l.n 344b0ead49Smrgdnl that 'revision' number appears in Xcomposite.h and has to be manually 354b0ead49Smrgdnl synchronized. 364b0ead49Smrgdnl 374b0ead49SmrgAC_INIT(libXcomposite, 0.4.0, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXcomposite) 384b0ead49SmrgAM_INIT_AUTOMAKE([dist-bzip2]) 394b0ead49SmrgAM_MAINTAINER_MODE 404b0ead49Smrg 414b0ead49SmrgAM_CONFIG_HEADER(config.h) 424b0ead49Smrg 434b0ead49Smrg# Check for progs 444b0ead49SmrgAC_PROG_CC 454b0ead49SmrgAC_PROG_LIBTOOL 464b0ead49Smrg 474b0ead49SmrgAC_ARG_VAR([XMLTO], [Path to xmlto command]) 484b0ead49SmrgAC_PATH_PROG([XMLTO], [xmlto]) 494b0ead49SmrgAM_CONDITIONAL([HAVE_XMLTO], [test "x$XMLTO" != "x"]) 504b0ead49Smrgif test "x$XMLTO" = "x" -a ! -f $srcdir/man/Xcomposite.man ; then 514b0ead49Smrg AC_MSG_WARN([xmlto not found - cannot create man pages without it]) 524b0ead49Smrgfi 534b0ead49Smrg 544b0ead49Smrg# Check compositeext configuration, strip extra digits from package version to 554b0ead49Smrg# find the required protocol version 564b0ead49Smrg 574b0ead49Smrgif test "$VERSION" = "" ; then 584b0ead49Smrg VERSION=$PACKAGE_VERSION; 594b0ead49Smrgfi 604b0ead49SmrgCOMPOSITEEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`] 614b0ead49SmrgAC_SUBST(COMPOSITEEXT_VERSION) 624b0ead49SmrgPKG_CHECK_MODULES(XCOMPOSITE, [compositeproto >= $COMPOSITEEXT_VERSION] x11 xfixes xext fixesproto) 634b0ead49SmrgAC_SUBST(XCOMPOSITE_CFLAGS) 644b0ead49SmrgAC_SUBST(XCOMPOSITE_LIBS) 654b0ead49Smrg 664b0ead49SmrgXORG_MANPAGE_SECTIONS 674b0ead49SmrgXORG_RELEASE_VERSION 684b0ead49Smrg 694b0ead49SmrgAC_OUTPUT([Makefile 704b0ead49Smrg src/Makefile 714b0ead49Smrg man/Makefile 724b0ead49Smrg xcomposite.pc]) 734b0ead49Smrg 74