configure.ac revision 42d69509
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
244456fccdSmrgAC_PREREQ([2.57])
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
3542d69509SmrgAC_INIT(libXfixes, 4.0.4, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXfixes)
364456fccdSmrgAM_INIT_AUTOMAKE([dist-bzip2])
374456fccdSmrgAM_MAINTAINER_MODE
384456fccdSmrg
3942d69509Smrg# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS
4042d69509Smrgm4_ifndef([XORG_MACROS_VERSION],
4142d69509Smrg	  [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
4242d69509SmrgXORG_MACROS_VERSION(1.3)
434456fccdSmrgAM_CONFIG_HEADER(config.h)
444456fccdSmrg
454456fccdSmrg# Check for progs
464456fccdSmrgAC_PROG_CC
474456fccdSmrgAC_PROG_LIBTOOL
484456fccdSmrg
4942d69509SmrgXORG_DEFAULT_OPTIONS
504456fccdSmrg		  
514456fccdSmrg# Check fixesext configuration, strip extra digits from package version to
524456fccdSmrg# find the required protocol version
534456fccdSmrg
544456fccdSmrgFIXESEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`]
554456fccdSmrgAC_SUBST(FIXESEXT_VERSION)
5642d69509SmrgPKG_CHECK_MODULES(FIXESEXT, xproto [fixesproto >= $FIXESEXT_VERSION] xextproto x11)
574456fccdSmrgAC_SUBST(FIXESEXT_CFLAGS)
584456fccdSmrgAC_SUBST(FIXESEXT_LIBS)
594456fccdSmrg
604456fccdSmrgAC_OUTPUT([Makefile
614456fccdSmrg	   src/Makefile
624456fccdSmrg	   man/Makefile
634456fccdSmrg           xfixes.pc])
644456fccdSmrg
65