16dda92f9Smrg# 26dda92f9Smrg# Copyright © 2003 Keith Packard, Noah Levitt 36dda92f9Smrg# 46dda92f9Smrg# Permission to use, copy, modify, distribute, and sell this software and its 56dda92f9Smrg# documentation for any purpose is hereby granted without fee, provided that 66dda92f9Smrg# the above copyright notice appear in all copies and that both that 76dda92f9Smrg# copyright notice and this permission notice appear in supporting 86dda92f9Smrg# documentation, and that the name of Keith Packard not be used in 96dda92f9Smrg# advertising or publicity pertaining to distribution of the software without 106dda92f9Smrg# specific, written prior permission. Keith Packard makes no 116dda92f9Smrg# representations about the suitability of this software for any purpose. It 126dda92f9Smrg# is provided "as is" without express or implied warranty. 136dda92f9Smrg# 146dda92f9Smrg# KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 156dda92f9Smrg# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 166dda92f9Smrg# EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 176dda92f9Smrg# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 186dda92f9Smrg# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 196dda92f9Smrg# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 206dda92f9Smrg# PERFORMANCE OF THIS SOFTWARE. 216dda92f9Smrg# 226dda92f9Smrg 236dda92f9Smrg# Initialize Autoconf 24417cc7e8SmrgAC_PREREQ([2.60]) 256dda92f9Smrg# 266dda92f9Smrg# Version should match the current XDamage version. XDamageQueryVersion 276dda92f9Smrg# returns the version from damagewire.h, NOT the version we set here. But we 286dda92f9Smrg# try to keep these the same. Note that the library has an extra 296dda92f9Smrg# digit in the version number to track changes which don't affect the 306dda92f9Smrg# protocol, so Xdamage version l.n.m corresponds to protocol version l.n 316dda92f9Smrg# 326c9573adSmrgAC_INIT(libXdamage, [1.1.6], 336c9573adSmrg [https://gitlab.freedesktop.org/xorg/lib/libxdamage/-/issues], 346c9573adSmrg [libXdamage]) 356dda92f9SmrgAC_CONFIG_SRCDIR([Makefile.am]) 366dda92f9SmrgAC_CONFIG_HEADERS([config.h]) 376dda92f9Smrg 386dda92f9Smrg# Initialize Automake 396c9573adSmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 40af7c02bdSmrg 416dda92f9Smrg# Initialize libtool 426dda92f9SmrgAC_PROG_LIBTOOL 436dda92f9Smrg 446dda92f9Smrg# Require X.Org macros 1.8 or later 45417cc7e8Smrgm4_ifndef([XORG_MACROS_VERSION], 466dda92f9Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 476dda92f9SmrgXORG_MACROS_VERSION(1.8) 48417cc7e8SmrgXORG_DEFAULT_OPTIONS 49af7c02bdSmrg 50af7c02bdSmrg# Check damageext configuration, strip extra digits from package version to 51af7c02bdSmrg# find the required protocol version 52af7c02bdSmrgDAMAGEEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`] 53af7c02bdSmrgAC_SUBST(DAMAGEEXT_VERSION) 54af7c02bdSmrg 556c9573adSmrg# Obtain compiler/linker options for dependencies 566c9573adSmrgPKG_CHECK_MODULES(XDAMAGE, [damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22]) 57af7c02bdSmrg 586dda92f9SmrgAC_CONFIG_FILES([Makefile 596dda92f9Smrg src/Makefile 606dda92f9Smrg xdamage.pc]) 616dda92f9SmrgAC_OUTPUT 62