Blame configure.ac

Packit Service ec5c06
#
Packit Service ec5c06
#  Copyright © 2003 Keith Packard, Noah Levitt
Packit Service ec5c06
#
Packit Service ec5c06
#  Permission to use, copy, modify, distribute, and sell this software and its
Packit Service ec5c06
#  documentation for any purpose is hereby granted without fee, provided that
Packit Service ec5c06
#  the above copyright notice appear in all copies and that both that
Packit Service ec5c06
#  copyright notice and this permission notice appear in supporting
Packit Service ec5c06
#  documentation, and that the name of Keith Packard not be used in
Packit Service ec5c06
#  advertising or publicity pertaining to distribution of the software without
Packit Service ec5c06
#  specific, written prior permission.  Keith Packard makes no
Packit Service ec5c06
#  representations about the suitability of this software for any purpose.  It
Packit Service ec5c06
#  is provided "as is" without express or implied warranty.
Packit Service ec5c06
#
Packit Service ec5c06
#  KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit Service ec5c06
#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit Service ec5c06
#  EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit Service ec5c06
#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit Service ec5c06
#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit Service ec5c06
#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit Service ec5c06
#  PERFORMANCE OF THIS SOFTWARE.
Packit Service ec5c06
#
Packit Service ec5c06
Packit Service ec5c06
# Initialize Autoconf
Packit Service ec5c06
AC_PREREQ([2.60])
Packit Service ec5c06
#
Packit Service ec5c06
# Version should match the current Randr version. XRRQueryVersion
Packit Service ec5c06
# returns the version from randr.h, NOT the version we set here. But we
Packit Service ec5c06
# try to keep these the same.  Note that the library has an extra
Packit Service ec5c06
# digit in the version number to track changes which don't affect the
Packit Service ec5c06
# protocol, so Xrandr version l.n.m corresponds to protocol version l.n
Packit Service ec5c06
#
Packit Service ec5c06
AC_INIT([libXrandr], [1.5.2],
Packit Service ec5c06
        [https://gitlab.freedesktop.org/xorg/lib/libXrandr/issues], [libXrandr])
Packit Service ec5c06
AC_CONFIG_SRCDIR([Makefile.am])
Packit Service ec5c06
AC_CONFIG_HEADERS([config.h])
Packit Service ec5c06
Packit Service ec5c06
# Initialize Automake
Packit Service ec5c06
AM_INIT_AUTOMAKE([foreign dist-bzip2])
Packit Service ec5c06
Packit Service ec5c06
# Initialize libtool
Packit Service ec5c06
AC_PROG_LIBTOOL
Packit Service ec5c06
Packit Service ec5c06
# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
Packit Service ec5c06
m4_ifndef([XORG_MACROS_VERSION],
Packit Service ec5c06
          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
Packit Service ec5c06
XORG_MACROS_VERSION(1.8)
Packit Service ec5c06
XORG_DEFAULT_OPTIONS
Packit Service ec5c06
XORG_CHECK_MALLOC_ZERO
Packit Service ec5c06
Packit Service ec5c06
# Check randr configuration, strip extra digits from package version to
Packit Service ec5c06
# find the required protocol version
Packit Service ec5c06
RANDR_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`]
Packit Service ec5c06
AC_SUBST(RANDR_VERSION)
Packit Service ec5c06
Packit Service ec5c06
# Obtain compiler/linker options for depedencies
Packit Service ec5c06
PKG_CHECK_MODULES(RANDR, [x11 >= 1.6] randrproto >= $RANDR_VERSION xext xextproto xrender renderproto)
Packit Service ec5c06
Packit Service ec5c06
AC_CONFIG_FILES([Makefile
Packit Service ec5c06
		src/Makefile
Packit Service ec5c06
		man/Makefile
Packit Service ec5c06
		xrandr.pc])
Packit Service ec5c06
AC_OUTPUT