configure.ac revision 3e6c936a
1ff63a143Smrg# 2ff63a143Smrg# Copyright © 2003 Keith Packard, Noah Levitt 3ff63a143Smrg# 4ff63a143Smrg# Permission to use, copy, modify, distribute, and sell this software and its 5ff63a143Smrg# documentation for any purpose is hereby granted without fee, provided that 6ff63a143Smrg# the above copyright notice appear in all copies and that both that 7ff63a143Smrg# copyright notice and this permission notice appear in supporting 8ff63a143Smrg# documentation, and that the name of Keith Packard not be used in 9ff63a143Smrg# advertising or publicity pertaining to distribution of the software without 10ff63a143Smrg# specific, written prior permission. Keith Packard makes no 11ff63a143Smrg# representations about the suitability of this software for any purpose. It 12ff63a143Smrg# is provided "as is" without express or implied warranty. 13ff63a143Smrg# 14ff63a143Smrg# KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15ff63a143Smrg# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16ff63a143Smrg# EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17ff63a143Smrg# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18ff63a143Smrg# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19ff63a143Smrg# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20ff63a143Smrg# PERFORMANCE OF THIS SOFTWARE. 21ff63a143Smrg# 224456fccdSmrg 23ff63a143Smrg# Initialize Autoconf 24521070a0SmrgAC_PREREQ([2.60]) 254456fccdSmrg 26ff63a143Smrg# 27ff63a143Smrg# Version should match the current XFixes version. XFixesQueryVersion 28ff63a143Smrg# returns the version from xfixeswire.h, NOT the version we set here. But we 29ff63a143Smrg# try to keep these the same. Note that the library has an extra 30ff63a143Smrg# digit in the version number to track changes which don't affect the 31ff63a143Smrg# protocol, so Xfixes version l.n.m corresponds to protocol version l.n, 32ff63a143Smrg# that 'revision' number appears in Xfixes.h and has to be manually 33ff63a143Smrg# synchronized. 34ff63a143Smrg# 353e6c936aSmrgAC_INIT(libXfixes, [5.0.1], 36ff63a143Smrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXfixes]) 37ff63a143SmrgAC_CONFIG_SRCDIR([Makefile.am]) 38ff63a143SmrgAC_CONFIG_HEADERS([config.h]) 39ff63a143Smrg 40ff63a143Smrg# Initialize Automake 41521070a0SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 424456fccdSmrg 43ff63a143Smrg# Initialize libtool 44ff63a143SmrgAC_PROG_LIBTOOL 45ff63a143Smrg 46521070a0Smrg# Require xorg-macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4742d69509Smrgm4_ifndef([XORG_MACROS_VERSION], 48521070a0Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 49521070a0SmrgXORG_MACROS_VERSION(1.8) 5042d69509SmrgXORG_DEFAULT_OPTIONS 51ff63a143Smrg 524456fccdSmrg# Check fixesext configuration, strip extra digits from package version to 534456fccdSmrg# find the required protocol version 544456fccdSmrgFIXESEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`] 554456fccdSmrgAC_SUBST(FIXESEXT_VERSION) 564456fccdSmrg 57ff63a143Smrg# Obtain compiler/linker options for depedencies 58ff63a143SmrgPKG_CHECK_MODULES(FIXESEXT, xproto [fixesproto >= $FIXESEXT_VERSION] xextproto x11) 594456fccdSmrg 603e6c936aSmrg# Check for _XEatDataWords function that may be patched into older Xlib releases 613e6c936aSmrgSAVE_LIBS="$LIBS" 623e6c936aSmrgLIBS="$FIXESEXT_LIBS" 633e6c936aSmrgAC_CHECK_FUNCS([_XEatDataWords]) 643e6c936aSmrgLIBS="$SAVE_LIBS" 653e6c936aSmrg 663e6c936aSmrg 67ff63a143SmrgAC_CONFIG_FILES([Makefile 68ff63a143Smrg src/Makefile 69ff63a143Smrg man/Makefile 70ff63a143Smrg xfixes.pc]) 71ff63a143SmrgAC_OUTPUT 72