configure.ac revision bd23fbfa
1bd23fbfaSmrg# 2bd23fbfaSmrg# Copyright © 2003 Keith Packard, Noah Levitt 3bd23fbfaSmrg# 4bd23fbfaSmrg# Permission to use, copy, modify, distribute, and sell this software and its 5bd23fbfaSmrg# documentation for any purpose is hereby granted without fee, provided that 6bd23fbfaSmrg# the above copyright notice appear in all copies and that both that 7bd23fbfaSmrg# copyright notice and this permission notice appear in supporting 8bd23fbfaSmrg# documentation, and that the name of Keith Packard not be used in 9bd23fbfaSmrg# advertising or publicity pertaining to distribution of the software without 10bd23fbfaSmrg# specific, written prior permission. Keith Packard makes no 11bd23fbfaSmrg# representations about the suitability of this software for any purpose. It 12bd23fbfaSmrg# is provided "as is" without express or implied warranty. 13bd23fbfaSmrg# 14bd23fbfaSmrg# KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15bd23fbfaSmrg# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16bd23fbfaSmrg# EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17bd23fbfaSmrg# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18bd23fbfaSmrg# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19bd23fbfaSmrg# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20bd23fbfaSmrg# PERFORMANCE OF THIS SOFTWARE. 21bd23fbfaSmrg# 22b042e37fSmrg 23bd23fbfaSmrg# Initialize Autoconf 24706b6b52SmrgAC_PREREQ([2.60]) 25bd23fbfaSmrg# 26bd23fbfaSmrg# Version should match the current Randr version. XRRQueryVersion 27bd23fbfaSmrg# returns the version from randr.h, NOT the version we set here. But we 28bd23fbfaSmrg# try to keep these the same. Note that the library has an extra 29bd23fbfaSmrg# digit in the version number to track changes which don't affect the 30bd23fbfaSmrg# protocol, so Xrandr version l.n.m corresponds to protocol version l.n 31bd23fbfaSmrg# 32bd23fbfaSmrgAC_INIT([libXrandr], [1.3.2], 33706b6b52Smrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXrandr]) 34bd23fbfaSmrgAC_CONFIG_SRCDIR([Makefile.am]) 35bd23fbfaSmrgAC_CONFIG_HEADERS([config.h]) 36bd23fbfaSmrg 37bd23fbfaSmrg# Initialize Automake 38706b6b52SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 39b042e37fSmrgAM_MAINTAINER_MODE 40b042e37fSmrg 41bd23fbfaSmrg# Initialize libtool 42bd23fbfaSmrgAC_PROG_LIBTOOL 43bd23fbfaSmrg 44706b6b52Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 45706b6b52Smrgm4_ifndef([XORG_MACROS_VERSION], 46706b6b52Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 47706b6b52SmrgXORG_MACROS_VERSION(1.8) 48706b6b52SmrgXORG_DEFAULT_OPTIONS 49bd23fbfaSmrgXORG_CHECK_MALLOC_ZERO 50b042e37fSmrg 51b042e37fSmrg# Check randr configuration, strip extra digits from package version to 52b042e37fSmrg# find the required protocol version 53b042e37fSmrgRANDR_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`] 54b042e37fSmrgAC_SUBST(RANDR_VERSION) 55b042e37fSmrg 56bd23fbfaSmrg# Obtain compiler/linker options for depedencies 57bd23fbfaSmrgPKG_CHECK_MODULES(RANDR, x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto) 58b042e37fSmrg 59bd23fbfaSmrgAC_CONFIG_FILES([Makefile 60bd23fbfaSmrg src/Makefile 61bd23fbfaSmrg man/Makefile 62bd23fbfaSmrg xrandr.pc]) 63bd23fbfaSmrgAC_OUTPUT 64