configure.ac revision 521070a0
14456fccdSmrgdnl 
24456fccdSmrgdnl  Copyright © 2003 Keith Packard, Noah Levitt
34456fccdSmrgdnl 
44456fccdSmrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
54456fccdSmrgdnl  documentation for any purpose is hereby granted without fee, provided that
64456fccdSmrgdnl  the above copyright notice appear in all copies and that both that
74456fccdSmrgdnl  copyright notice and this permission notice appear in supporting
84456fccdSmrgdnl  documentation, and that the name of Keith Packard not be used in
94456fccdSmrgdnl  advertising or publicity pertaining to distribution of the software without
104456fccdSmrgdnl  specific, written prior permission.  Keith Packard makes no
114456fccdSmrgdnl  representations about the suitability of this software for any purpose.  It
124456fccdSmrgdnl  is provided "as is" without express or implied warranty.
134456fccdSmrgdnl 
144456fccdSmrgdnl  KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
154456fccdSmrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
164456fccdSmrgdnl  EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
174456fccdSmrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
184456fccdSmrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
194456fccdSmrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
204456fccdSmrgdnl  PERFORMANCE OF THIS SOFTWARE.
214456fccdSmrgdnl
224456fccdSmrgdnl Process this file with autoconf to create configure.
234456fccdSmrg
24521070a0SmrgAC_PREREQ([2.60])
254456fccdSmrg
264456fccdSmrgdnl
274456fccdSmrgdnl Version should match the current XFixes version. XFixesQueryVersion
284456fccdSmrgdnl returns the version from xfixeswire.h, NOT the version we set here. But we
294456fccdSmrgdnl try to keep these the same.  Note that the library has an extra
304456fccdSmrgdnl digit in the version number to track changes which don't affect the
314456fccdSmrgdnl protocol, so Xfixes version l.n.m corresponds to protocol version l.n,
324456fccdSmrgdnl that 'revision' number appears in Xfixes.h and has to be manually
334456fccdSmrgdnl synchronized.
344456fccdSmrgdnl
35521070a0SmrgAC_INIT(libXfixes,
36521070a0Smrg	4.0.5,
37521070a0Smrg	[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
38521070a0Smrg	libXfixes)
39521070a0SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
404456fccdSmrgAM_MAINTAINER_MODE
414456fccdSmrg
42521070a0Smrg# Require xorg-macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4342d69509Smrgm4_ifndef([XORG_MACROS_VERSION],
44521070a0Smrg	  [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
45521070a0SmrgXORG_MACROS_VERSION(1.8)
464456fccdSmrgAM_CONFIG_HEADER(config.h)
474456fccdSmrg
484456fccdSmrg# Check for progs
494456fccdSmrgAC_PROG_CC
504456fccdSmrgAC_PROG_LIBTOOL
514456fccdSmrg
5242d69509SmrgXORG_DEFAULT_OPTIONS
534456fccdSmrg		  
544456fccdSmrg# Check fixesext configuration, strip extra digits from package version to
554456fccdSmrg# find the required protocol version
564456fccdSmrg
574456fccdSmrgFIXESEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`]
584456fccdSmrgAC_SUBST(FIXESEXT_VERSION)
5942d69509SmrgPKG_CHECK_MODULES(FIXESEXT, xproto [fixesproto >= $FIXESEXT_VERSION] xextproto x11)
604456fccdSmrgAC_SUBST(FIXESEXT_CFLAGS)
614456fccdSmrgAC_SUBST(FIXESEXT_LIBS)
624456fccdSmrg
634456fccdSmrgAC_OUTPUT([Makefile
644456fccdSmrg	   src/Makefile
654456fccdSmrg	   man/Makefile
664456fccdSmrg           xfixes.pc])
674456fccdSmrg
68