129459361Smrg
229459361Smrgdnl  Copyright 2005 Red Hat, Inc.
329459361Smrgdnl 
429459361Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
529459361Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
629459361Smrgdnl  the above copyright notice appear in all copies and that both that
729459361Smrgdnl  copyright notice and this permission notice appear in supporting
829459361Smrgdnl  documentation, and that the name of Red Hat not be used in
929459361Smrgdnl  advertising or publicity pertaining to distribution of the software without
1029459361Smrgdnl  specific, written prior permission.  Red Hat makes no
1129459361Smrgdnl  representations about the suitability of this software for any purpose.  It
1229459361Smrgdnl  is provided "as is" without express or implied warranty.
1329459361Smrgdnl 
1429459361Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1529459361Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1629459361Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1729459361Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1829459361Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1929459361Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2029459361Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
2129459361Smrgdnl
2229459361Smrgdnl Process this file with autoconf to create configure.
2329459361Smrg
24c3c9b392Smrg# Initialize Autoconf
25c3c9b392SmrgAC_PREREQ([2.60])
269683b4e0SmrgAC_INIT([appres], [1.0.7],
27291ca6f5Smrg        [https://gitlab.freedesktop.org/xorg/app/appres/issues], [appres])
28c3c9b392SmrgAC_CONFIG_SRCDIR([Makefile.am])
29c3c9b392SmrgAC_CONFIG_HEADERS([config.h])
30c3c9b392Smrg
31c3c9b392Smrg# Initialize Automake
32291ca6f5SmrgAM_INIT_AUTOMAKE([foreign dist-xz])
3329459361Smrg
34c3c9b392Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
35c3c9b392Smrgm4_ifndef([XORG_MACROS_VERSION],
36c3c9b392Smrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
37c3c9b392SmrgXORG_MACROS_VERSION(1.8)
385715adc0SmrgXORG_DEFAULT_OPTIONS
395715adc0Smrg
4029459361Smrg# Checks for pkg-config packages
41f66e55a2SmrgPKG_CHECK_MODULES(APPRES, [x11 xt xproto >= 7.0.17])
4229459361Smrg
439683b4e0Smrg# Substitute config variables in man pages
449683b4e0SmrgAC_CONFIG_FILES([man/appres.1:man/appres.man])
459683b4e0Smrg
46f66e55a2SmrgAC_CONFIG_FILES([
47f66e55a2Smrg	Makefile
48f66e55a2Smrg	man/Makefile])
49f66e55a2SmrgAC_OUTPUT
50