1fd7d9bd3Smrgdnl  Copyright 2005 Red Hat, Inc.
2e53c48bfSmrgdnl
3fd7d9bd3Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
4fd7d9bd3Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
5fd7d9bd3Smrgdnl  the above copyright notice appear in all copies and that both that
6fd7d9bd3Smrgdnl  copyright notice and this permission notice appear in supporting
7fd7d9bd3Smrgdnl  documentation, and that the name of Red Hat not be used in
8fd7d9bd3Smrgdnl  advertising or publicity pertaining to distribution of the software without
9fd7d9bd3Smrgdnl  specific, written prior permission.  Red Hat makes no
10fd7d9bd3Smrgdnl  representations about the suitability of this software for any purpose.  It
11fd7d9bd3Smrgdnl  is provided "as is" without express or implied warranty.
12e53c48bfSmrgdnl
13fd7d9bd3Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
14fd7d9bd3Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
15fd7d9bd3Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
16fd7d9bd3Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
17fd7d9bd3Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18fd7d9bd3Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19fd7d9bd3Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
20fd7d9bd3Smrgdnl
21fd7d9bd3Smrgdnl Process this file with autoconf to create configure.
22fd7d9bd3Smrg
23a85aecdfSmrg# Initialize Autoconf
249aa2a2b5SmrgAC_PREREQ([2.60])
25e53c48bfSmrgAC_INIT([xgc], [1.0.6],
26e53c48bfSmrg        [https://gitlab.freedesktop.org/xorg/app/xgc/-/issues], [xgc])
27a85aecdfSmrgAC_CONFIG_SRCDIR([Makefile.am])
28a85aecdfSmrgAC_CONFIG_HEADERS([config.h])
29a85aecdfSmrg
30a85aecdfSmrg# Initialize Automake
31e53c48bfSmrgAM_INIT_AUTOMAKE([foreign dist-xz])
32fd7d9bd3Smrg
339aa2a2b5Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
34350952b9Smrgm4_ifndef([XORG_MACROS_VERSION],
359aa2a2b5Smrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
369aa2a2b5SmrgXORG_MACROS_VERSION(1.8)
37350952b9SmrgXORG_DEFAULT_OPTIONS
38350952b9Smrg
39fd7d9bd3SmrgAC_PROG_LEX
40fd7d9bd3SmrgAC_PROG_YACC
419aa2a2b5SmrgAC_PATH_PROG([YACC_INST], $YACC)
42a9ba4257Smrgif ! test -f "$srcdir/gram.c"; then
43a85aecdfSmrg   if test -z "$YACC_INST"; then
44a85aecdfSmrg      AC_MSG_ERROR([yacc not found - unable to compile gram.y])
45a85aecdfSmrg   fi
46a85aecdfSmrgfi
47fd7d9bd3Smrg
489aa2a2b5SmrgPKG_CHECK_MODULES(XGC, xaw7 xt)
499aa2a2b5Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
50350952b9SmrgAC_ARG_WITH(appdefaultdir,
51a85aecdfSmrg	AS_HELP_STRING([--with-appdefaultdir=<pathname>],
52350952b9Smrg	  [specify directory for app-defaults files (default is autodetected)]),
53350952b9Smrg	[appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"])
54fd7d9bd3SmrgAC_SUBST(appdefaultdir)
55fd7d9bd3Smrg
56a85aecdfSmrgAC_CONFIG_FILES([
57a85aecdfSmrg	Makefile
58a85aecdfSmrg	man/Makefile])
59a85aecdfSmrgAC_OUTPUT
60