1c9e2be55Smrg
2c9e2be55Smrgdnl  Copyright 2005 Red Hat, Inc.
3d859ff80Smrgdnl
4c9e2be55Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
5c9e2be55Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
6c9e2be55Smrgdnl  the above copyright notice appear in all copies and that both that
7c9e2be55Smrgdnl  copyright notice and this permission notice appear in supporting
8c9e2be55Smrgdnl  documentation, and that the name of Red Hat not be used in
9c9e2be55Smrgdnl  advertising or publicity pertaining to distribution of the software without
10c9e2be55Smrgdnl  specific, written prior permission.  Red Hat makes no
11c9e2be55Smrgdnl  representations about the suitability of this software for any purpose.  It
12c9e2be55Smrgdnl  is provided "as is" without express or implied warranty.
13d859ff80Smrgdnl
14c9e2be55Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15c9e2be55Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16c9e2be55Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17c9e2be55Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18c9e2be55Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19c9e2be55Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20c9e2be55Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
21c9e2be55Smrgdnl
22c9e2be55Smrgdnl Process this file with autoconf to create configure.
23c9e2be55Smrg
24aef24d58Smrg# Initialize Autoconf
25e2264b6dSmrgAC_PREREQ([2.60])
2666d665a3SmrgAC_INIT([xmh], [1.0.5],
27d859ff80Smrg        [https://gitlab.freedesktop.org/xorg/app/xmh/-/issues], [xmh])
28aef24d58SmrgAC_CONFIG_SRCDIR([Makefile.am])
29aef24d58SmrgAC_CONFIG_HEADERS([config.h])
30aef24d58Smrg
31aef24d58Smrg# Initialize Automake
32d859ff80SmrgAM_INIT_AUTOMAKE([foreign dist-xz])
33c9e2be55Smrg
34e2264b6dSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
35e2264b6dSmrgm4_ifndef([XORG_MACROS_VERSION],
36e2264b6dSmrg	  [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
37e2264b6dSmrgXORG_MACROS_VERSION(1.8)
38e2264b6dSmrgXORG_DEFAULT_OPTIONS
39c9e2be55Smrg
40c9e2be55Smrg# Checks for pkg-config packages
4166d665a3SmrgPKG_CHECK_MODULES(XMH, xaw7 xmu xt >= 1.3 x11 xbitmaps >= 1.1.0 xproto >= 7.0.17)
42c9e2be55Smrg
43c9e2be55SmrgPKG_CHECK_MODULES(APPDEFS, xt)
44e2264b6dSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
45e2264b6dSmrgAC_ARG_WITH(appdefaultdir,
46aef24d58Smrg	AS_HELP_STRING([--with-appdefaultdir=<pathname>],
47e2264b6dSmrg	  [specify directory for app-defaults files (default is autodetected)]),
48e2264b6dSmrg	[appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"])
49c9e2be55SmrgAC_SUBST(appdefaultdir)
50c9e2be55Smrg
5166d665a3Smrg# Checks for typedefs, structures, and compiler characteristics.
5266d665a3SmrgAC_SYS_LARGEFILE
5366d665a3Smrg
54d859ff80Smrg# Checks for library functions.
55d859ff80SmrgAC_FUNC_FORK
56d859ff80Smrg
57aef24d58SmrgAC_CONFIG_FILES([
58aef24d58Smrg	Makefile
59aef24d58Smrg	man/Makefile])
60aef24d58SmrgAC_OUTPUT
61