configure.ac revision 48af84fa
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
24AC_PREREQ([2.60])
25AC_INIT([font-util], [1.2.0],
26	[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [font-util])
27AM_INIT_AUTOMAKE([foreign dist-bzip2])
28AM_MAINTAINER_MODE
29
30# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
31m4_ifndef([XORG_MACROS_VERSION],
32	  [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
33XORG_MACROS_VERSION(1.8)
34AM_CONFIG_HEADER(config.h)
35
36XORG_DEFAULT_OPTIONS
37
38AC_PROG_CC
39AC_PROG_INSTALL
40
41AC_MSG_CHECKING([for root directory for font files])
42fontrootdir='${datadir}/fonts/X11'
43AC_ARG_WITH(fontrootdir, [AC_HELP_STRING([--with-fontrootdir=DIR],
44	[Path to parent of font subdirectories [DATADIR/fonts/X11]])],
45	[fontrootdir="${withval}"])
46AC_SUBST(fontrootdir)
47AC_MSG_RESULT([${fontrootdir}])
48
49mapdir='${fontrootdir}/util'
50AC_ARG_WITH(mapdir, [AC_HELP_STRING([--with-mapdir=DIR],
51	[Path to install font maps [FONTROOTDIR/util]])],
52	[mapdir="${withval}"])
53MAPDIR="$mapdir"
54AC_SUBST(MAPDIR)
55
56AC_CONFIG_FILES([Makefile
57                 man/Makefile
58                 fontutil.m4
59                 fontutil.pc])
60
61AC_OUTPUT
62