configure.ac revision 55acc8fc
1
2dnl  Copyright 2005 Red Hat, Inc.
3dnl 
4dnl  Permission to use, copy, modify, distribute, and sell this software and its
5dnl  documentation for any purpose is hereby granted without fee, provided that
6dnl  the above copyright notice appear in all copies and that both that
7dnl  copyright notice and this permission notice appear in supporting
8dnl  documentation, and that the name of Red Hat not be used in
9dnl  advertising or publicity pertaining to distribution of the software without
10dnl  specific, written prior permission.  Red Hat makes no
11dnl  representations about the suitability of this software for any purpose.  It
12dnl  is provided "as is" without express or implied warranty.
13dnl 
14dnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15dnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16dnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17dnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18dnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19dnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20dnl  PERFORMANCE OF THIS SOFTWARE.
21dnl
22dnl Process this file with autoconf to create configure.
23
24AC_PREREQ([2.60])
25
26AC_INIT([libfontenc], [1.1.0],
27        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
28        [libfontenc])
29AM_INIT_AUTOMAKE([foreign dist-bzip2])
30AM_MAINTAINER_MODE
31
32# Require xorg-macros: XORG_DEFAULT_OPTIONS
33m4_ifndef([XORG_MACROS_VERSION],
34          [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
35XORG_MACROS_VERSION(1.3)
36XORG_DEFAULT_OPTIONS
37AM_CONFIG_HEADER(config.h)
38
39# Check for progs
40AC_PROG_CC
41AC_PROG_LIBTOOL
42
43# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR
44m4_ifndef([XORG_FONT_MACROS_VERSION],
45	  [m4_fatal([must install X.Org font-util 1.1 or later before running autoconf/autogen])])
46XORG_FONT_MACROS_VERSION(1.1)
47
48XORG_FONTSUBDIR([ENCODINGSDIR], [encodingsdir], [encodings])
49
50# zlib
51
52AC_CHECK_LIB(z, gzclose) 
53
54# Check for dependencies
55PKG_CHECK_MODULES(FONTENC, xproto)
56
57dnl Allow checking code with lint, sparse, etc.
58XORG_WITH_LINT
59LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}"
60		  
61
62AC_OUTPUT([Makefile
63	   src/Makefile
64           fontenc.pc])
65