configure.ac revision ea6ae205
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 fee,
5dnl  provided that the above copyright notice appear in all copies and
6dnl  that both that copyright notice and this permission notice appear in
7dnl  supporting documentation, and that the name of Red Hat not be used in
8dnl  advertising or publicity pertaining to distribution of the software
9dnl  without specific, written prior permission.  Red Hat makes no
10dnl  representations about the suitability of this software for any
11dnl  purpose.  It is provided "as is" without express or implied warranty.
12dnl 
13dnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
14dnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
15dnl  NO EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
16dnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
17dnl  OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
18dnl  OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
19dnl  USE OR PERFORMANCE OF THIS SOFTWARE.
20dnl
21dnl Process this file with autoconf to create configure.
22
23AC_PREREQ([2.57])
24AC_INIT(mkfontscale, [1.0.5], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], mkfontscale)
25AM_INIT_AUTOMAKE([dist-bzip2 foreign])
26AM_MAINTAINER_MODE
27
28AM_CONFIG_HEADER(config.h)
29
30AC_PROG_CC
31AC_PROG_INSTALL
32
33AC_CHECK_LIB(z, gzopen, [], 
34	[AC_MSG_ERROR([zlib is required, but was not found.])])
35
36# Checks for pkg-config packages
37PKG_CHECK_MODULES(MKFONTSCALE, fontenc freetype2)
38AC_SUBST(MKFONTSCALE_CFLAGS)
39AC_SUBST(MKFONTSCALE_LIBS)
40
41PKG_CHECK_MODULES(X11, xproto)
42AC_SUBST(X11_CFLAGS)
43
44XORG_MANPAGE_SECTIONS
45XORG_RELEASE_VERSION
46
47AC_OUTPUT([Makefile])
48