configure.ac revision 4456fccd
14456fccdSmrgdnl 24456fccdSmrgdnl $Id: configure.ac,v 1.1.1.1 2008/07/30 02:48:17 mrg Exp $ 34456fccdSmrgdnl 44456fccdSmrgdnl Copyright © 2003 Keith Packard, Noah Levitt 54456fccdSmrgdnl 64456fccdSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 74456fccdSmrgdnl documentation for any purpose is hereby granted without fee, provided that 84456fccdSmrgdnl the above copyright notice appear in all copies and that both that 94456fccdSmrgdnl copyright notice and this permission notice appear in supporting 104456fccdSmrgdnl documentation, and that the name of Keith Packard not be used in 114456fccdSmrgdnl advertising or publicity pertaining to distribution of the software without 124456fccdSmrgdnl specific, written prior permission. Keith Packard makes no 134456fccdSmrgdnl representations about the suitability of this software for any purpose. It 144456fccdSmrgdnl is provided "as is" without express or implied warranty. 154456fccdSmrgdnl 164456fccdSmrgdnl KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 174456fccdSmrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 184456fccdSmrgdnl EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 194456fccdSmrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 204456fccdSmrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 214456fccdSmrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 224456fccdSmrgdnl PERFORMANCE OF THIS SOFTWARE. 234456fccdSmrgdnl 244456fccdSmrgdnl Process this file with autoconf to create configure. 254456fccdSmrg 264456fccdSmrgAC_PREREQ([2.57]) 274456fccdSmrg 284456fccdSmrgdnl 294456fccdSmrgdnl Version should match the current XFixes version. XFixesQueryVersion 304456fccdSmrgdnl returns the version from xfixeswire.h, NOT the version we set here. But we 314456fccdSmrgdnl try to keep these the same. Note that the library has an extra 324456fccdSmrgdnl digit in the version number to track changes which don't affect the 334456fccdSmrgdnl protocol, so Xfixes version l.n.m corresponds to protocol version l.n, 344456fccdSmrgdnl that 'revision' number appears in Xfixes.h and has to be manually 354456fccdSmrgdnl synchronized. 364456fccdSmrgdnl 374456fccdSmrgAC_INIT(libXfixes, 4.0.3, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXfixes) 384456fccdSmrgAM_INIT_AUTOMAKE([dist-bzip2]) 394456fccdSmrgAM_MAINTAINER_MODE 404456fccdSmrg 414456fccdSmrgAM_CONFIG_HEADER(config.h) 424456fccdSmrg 434456fccdSmrg# Check for progs 444456fccdSmrgAC_PROG_CC 454456fccdSmrgAC_PROG_LIBTOOL 464456fccdSmrg 474456fccdSmrg# Check for X 484456fccdSmrgPKG_CHECK_MODULES(X, x11) 494456fccdSmrg 504456fccdSmrgAC_SUBST(X_CFLAGS) 514456fccdSmrgAC_SUBST(X_LIBS) 524456fccdSmrg 534456fccdSmrg# Check fixesext configuration, strip extra digits from package version to 544456fccdSmrg# find the required protocol version 554456fccdSmrg 564456fccdSmrgFIXESEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`] 574456fccdSmrgAC_SUBST(FIXESEXT_VERSION) 584456fccdSmrgPKG_CHECK_MODULES(FIXESEXT, xproto [fixesproto >= $FIXESEXT_VERSION] xextproto) 594456fccdSmrgAC_SUBST(FIXESEXT_CFLAGS) 604456fccdSmrgAC_SUBST(FIXESEXT_LIBS) 614456fccdSmrg 624456fccdSmrgXORG_MANPAGE_SECTIONS 634456fccdSmrgXORG_RELEASE_VERSION 644456fccdSmrg 654456fccdSmrgAC_OUTPUT([Makefile 664456fccdSmrg src/Makefile 674456fccdSmrg man/Makefile 684456fccdSmrg xfixes.pc]) 694456fccdSmrg 70