configure.ac revision bd1da9d7
1dnl 2dnl $Id: configure.ac,v 1.1.1.1 2008/07/30 02:56:09 mrg Exp $ 3dnl 4dnl Copyright © 2003 Keith Packard, Noah Levitt 5dnl 6dnl Permission to use, copy, modify, distribute, and sell this software and its 7dnl documentation for any purpose is hereby granted without fee, provided that 8dnl the above copyright notice appear in all copies and that both that 9dnl copyright notice and this permission notice appear in supporting 10dnl documentation, and that the name of Keith Packard not be used in 11dnl advertising or publicity pertaining to distribution of the software without 12dnl specific, written prior permission. Keith Packard makes no 13dnl representations about the suitability of this software for any purpose. It 14dnl is provided "as is" without express or implied warranty. 15dnl 16dnl KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 17dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 18dnl EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 19dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 20dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 21dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 22dnl PERFORMANCE OF THIS SOFTWARE. 23dnl 24dnl Process this file with autoconf to create configure. 25 26AC_PREREQ([2.57]) 27 28dnl 29dnl Version should match the current XRes version. XResQueryVersion 30dnl returns the version from XResproto.h, NOT the version we set here. But we 31dnl try to keep these the same. Note that the library has an extra 32dnl digit in the version number to track changes which don't affect the 33dnl protocol, so XRes version l.n.m corresponds to protocol version l.n 34dnl 35AC_INIT(libXres, 1.0.3, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXres) 36AC_CONFIG_AUX_DIR(.) 37AM_INIT_AUTOMAKE([dist-bzip2]) 38AM_CONFIG_HEADER(config.h) 39 40# Check for progs 41AC_PROG_CC 42AC_PROG_LIBTOOL 43 44# get modules 45PKG_CHECK_MODULES(XRES, x11 xext xextproto) 46 47AC_SUBST(XRES_CFLAGS) 48AC_SUBST(XRES_LIBS) 49 50# Check xres configuration, strip extra digits from package version to 51# find the required protocol version 52 53RES_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`] 54PKG_CHECK_MODULES(RESOURCEEXT, resourceproto >= $RES_VERSION) 55 56AC_SUBST(RESOURCEEXT_CFLAGS) 57AC_SUBST(RESOURCEEXT_LIBS) 58 59if test "x$GCC" = "xyes"; then 60 GCC_WARNINGS="-Wall -Wpointer-arith -Wstrict-prototypes \ 61 -Wmissing-prototypes -Wmissing-declarations \ 62 -Wnested-externs -fno-strict-aliasing" 63 CFLAGS="$GCC_WARNINGS $CFLAGS" 64fi 65 66XORG_CHECK_MALLOC_ZERO 67XORG_MANPAGE_SECTIONS 68XORG_RELEASE_VERSION 69 70AC_OUTPUT([Makefile 71 src/Makefile 72 man/Makefile 73 xres.pc]) 74 75