172b4363aSmrg
272b4363aSmrgdnl  Copyright 2005 Red Hat, Inc.
372b4363aSmrgdnl 
472b4363aSmrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
572b4363aSmrgdnl  documentation for any purpose is hereby granted without fee, provided that
672b4363aSmrgdnl  the above copyright notice appear in all copies and that both that
772b4363aSmrgdnl  copyright notice and this permission notice appear in supporting
872b4363aSmrgdnl  documentation, and that the name of Red Hat not be used in
972b4363aSmrgdnl  advertising or publicity pertaining to distribution of the software without
1072b4363aSmrgdnl  specific, written prior permission.  Red Hat makes no
1172b4363aSmrgdnl  representations about the suitability of this software for any purpose.  It
1272b4363aSmrgdnl  is provided "as is" without express or implied warranty.
1372b4363aSmrgdnl 
1472b4363aSmrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1572b4363aSmrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1672b4363aSmrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1772b4363aSmrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1872b4363aSmrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1972b4363aSmrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2072b4363aSmrgdnl  PERFORMANCE OF THIS SOFTWARE.
2172b4363aSmrgdnl
2272b4363aSmrgdnl Process this file with autoconf to create configure.
2372b4363aSmrg
2408e312fdSmrg# Initialize Autoconf
2508e312fdSmrgAC_PREREQ([2.60])
267ed541caSmrgAC_INIT([xgamma], [1.0.7],
277ed541caSmrg        [https://gitlab.freedesktop.org/xorg/app/xgamma/-/issues], [xgamma])
2808e312fdSmrgAC_CONFIG_SRCDIR([Makefile.am])
2908e312fdSmrgAC_CONFIG_HEADERS([config.h])
3008e312fdSmrg
3108e312fdSmrg# Initialize Automake
327ed541caSmrgAM_INIT_AUTOMAKE([foreign dist-xz])
3372b4363aSmrg
3408e312fdSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
35dd77ae96Smrgm4_ifndef([XORG_MACROS_VERSION],
3608e312fdSmrg	  [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
3708e312fdSmrgXORG_MACROS_VERSION(1.8)
38dd77ae96SmrgXORG_DEFAULT_OPTIONS
39dd77ae96Smrg
407ed541caSmrgAC_CHECK_FUNCS([strtof])
417ed541caSmrg
4272b4363aSmrg# Checks for pkg-config packages
4333dddc75SmrgPKG_CHECK_MODULES(XGAMMA, [x11 xxf86vm xproto >= 7.0.17])
4472b4363aSmrg
45eea2e341SmrgAC_CONFIG_FILES([
46eea2e341Smrg	Makefile
47eea2e341Smrg	man/Makefile])
48eea2e341SmrgAC_OUTPUT
49