configure.ac revision 1f0ac6a5
11f0ac6a5Smrgdnl 21f0ac6a5Smrgdnl $Id: configure.ac,v 1.1.1.1 2008/07/30 02:55:59 mrg Exp $ 31f0ac6a5Smrgdnl 41f0ac6a5Smrgdnl Copyright © 2003 Keith Packard, Noah Levitt 51f0ac6a5Smrgdnl 61f0ac6a5Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 71f0ac6a5Smrgdnl documentation for any purpose is hereby granted without fee, provided that 81f0ac6a5Smrgdnl the above copyright notice appear in all copies and that both that 91f0ac6a5Smrgdnl copyright notice and this permission notice appear in supporting 101f0ac6a5Smrgdnl documentation, and that the name of Keith Packard not be used in 111f0ac6a5Smrgdnl advertising or publicity pertaining to distribution of the software without 121f0ac6a5Smrgdnl specific, written prior permission. Keith Packard makes no 131f0ac6a5Smrgdnl representations about the suitability of this software for any purpose. It 141f0ac6a5Smrgdnl is provided "as is" without express or implied warranty. 151f0ac6a5Smrgdnl 161f0ac6a5Smrgdnl KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 171f0ac6a5Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 181f0ac6a5Smrgdnl EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 191f0ac6a5Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 201f0ac6a5Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 211f0ac6a5Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 221f0ac6a5Smrgdnl PERFORMANCE OF THIS SOFTWARE. 231f0ac6a5Smrgdnl 241f0ac6a5Smrgdnl Process this file with autoconf to create configure. 251f0ac6a5Smrg 261f0ac6a5SmrgAC_PREREQ([2.57]) 271f0ac6a5Smrg 281f0ac6a5Smrgdnl 291f0ac6a5Smrgdnl Version should match the current Render version. XRenderQueryVersion 301f0ac6a5Smrgdnl returns the version from render.h, NOT the version we set here. But we 311f0ac6a5Smrgdnl try to keep these the same. Note that the library has an extra 321f0ac6a5Smrgdnl digit in the version number to track changes which don't affect the 331f0ac6a5Smrgdnl protocol, so Xrender version l.n.m corresponds to protocol version l.n 341f0ac6a5Smrgdnl 351f0ac6a5SmrgAC_INIT(libXrender, 0.9.4, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXrender) 361f0ac6a5SmrgAM_INIT_AUTOMAKE([dist-bzip2]) 371f0ac6a5SmrgAM_MAINTAINER_MODE 381f0ac6a5Smrg 391f0ac6a5SmrgAM_CONFIG_HEADER(config.h) 401f0ac6a5Smrg 411f0ac6a5Smrg# Check for progs 421f0ac6a5SmrgAC_PROG_CC 431f0ac6a5SmrgAC_PROG_LIBTOOL 441f0ac6a5Smrg 451f0ac6a5Smrg# Check for X 461f0ac6a5SmrgPKG_CHECK_MODULES(X, x11) 471f0ac6a5Smrg 481f0ac6a5SmrgX_REQUIRES="x11" 491f0ac6a5SmrgX_NON_PKG_CFLAGS="" 501f0ac6a5SmrgX_NON_PKG_LIBS="" 511f0ac6a5Smrg 521f0ac6a5SmrgAC_SUBST(X_REQUIRES) 531f0ac6a5SmrgAC_SUBST(X_NON_PKG_CFLAGS) 541f0ac6a5SmrgAC_SUBST(X_NON_PKG_LIBS) 551f0ac6a5Smrg 561f0ac6a5Smrg# Check render configuration, strip extra digits from package version to 571f0ac6a5Smrg# find the required protocol version 581f0ac6a5Smrg 591f0ac6a5Smrgif test "$VERSION" = "" ; then 601f0ac6a5Smrg VERSION=$PACKAGE_VERSION; 611f0ac6a5Smrgfi 621f0ac6a5SmrgRENDER_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`] 631f0ac6a5SmrgAC_SUBST(RENDER_VERSION) 641f0ac6a5SmrgPKG_CHECK_MODULES(RENDER, renderproto >= $RENDER_VERSION) 651f0ac6a5Smrg 661f0ac6a5SmrgAC_SUBST(RENDER_CFLAGS) 671f0ac6a5Smrg 681f0ac6a5SmrgXORG_CHECK_MALLOC_ZERO 691f0ac6a5SmrgXORG_RELEASE_VERSION 701f0ac6a5Smrg 711f0ac6a5SmrgAC_OUTPUT([Makefile 721f0ac6a5Smrg src/Makefile 731f0ac6a5Smrg xrender.pc]) 741f0ac6a5Smrg 75