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