configure.ac revision c12babeb
1dnl  Copyright 2005 Red Hat, Inc.
2dnl
3dnl  Permission to use, copy, modify, distribute, and sell this software
4dnl  and its documentation for any purpose is hereby granted without
5dnl  fee, provided that the above copyright notice appear in all copies
6dnl  and that both that copyright notice and this permission notice
7dnl  appear in supporting documentation, and that the name of Red Hat
8dnl  not be used in advertising or publicity pertaining to distribution
9dnl  of the software without specific, written prior permission.  Red
10dnl  Hat makes no representations about the suitability of this software
11dnl  for any purpose.  It is provided "as is" without express or implied
12dnl  warranty.
13dnl
14dnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15dnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
16dnl  NO EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17dnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
18dnl  OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
19dnl  NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
20dnl  CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21dnl
22dnl Process this file with autoconf to create configure.
23
24# Initialize Autoconf
25AC_PREREQ([2.60])
26AC_INIT([font-util], [1.4.0],
27	[https://gitlab.freedesktop.org/xorg/font/util/-/issues], [font-util])
28AC_CONFIG_SRCDIR([Makefile.am])
29AC_CONFIG_HEADERS([config.h])
30
31# Initialize Automake
32AM_INIT_AUTOMAKE([foreign dist-xz])
33
34# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
35m4_ifndef([XORG_MACROS_VERSION],
36	  [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
37XORG_MACROS_VERSION(1.8)
38XORG_DEFAULT_OPTIONS
39
40AC_MSG_CHECKING([for root directory for font files])
41fontrootdir='${datadir}/fonts/X11'
42AC_ARG_WITH(fontrootdir, [AS_HELP_STRING([--with-fontrootdir=DIR],
43	[Path to parent of font subdirectories [DATADIR/fonts/X11]])],
44	[fontrootdir="${withval}"])
45AC_SUBST(fontrootdir)
46AC_MSG_RESULT([${fontrootdir}])
47
48mapdir='${fontrootdir}/util'
49AC_ARG_WITH(mapdir, [AS_HELP_STRING([--with-mapdir=DIR],
50	[Path to install font maps [FONTROOTDIR/util]])],
51	[mapdir="${withval}"])
52MAPDIR="$mapdir"
53AC_SUBST(MAPDIR)
54
55AC_CONFIG_FILES([Makefile
56                 man/Makefile
57                 fontutil.m4
58                 fontutil.pc])
59
60AC_OUTPUT
61