configure.ac revision a8fdb4bc
1a8fdb4bcSmrg
2a8fdb4bcSmrgdnl  Copyright 2005 Red Hat, Inc.
3a8fdb4bcSmrgdnl 
4a8fdb4bcSmrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
5a8fdb4bcSmrgdnl  documentation for any purpose is hereby granted without fee, provided that
6a8fdb4bcSmrgdnl  the above copyright notice appear in all copies and that both that
7a8fdb4bcSmrgdnl  copyright notice and this permission notice appear in supporting
8a8fdb4bcSmrgdnl  documentation, and that the name of Red Hat not be used in
9a8fdb4bcSmrgdnl  advertising or publicity pertaining to distribution of the software without
10a8fdb4bcSmrgdnl  specific, written prior permission.  Red Hat makes no
11a8fdb4bcSmrgdnl  representations about the suitability of this software for any purpose.  It
12a8fdb4bcSmrgdnl  is provided "as is" without express or implied warranty.
13a8fdb4bcSmrgdnl 
14a8fdb4bcSmrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15a8fdb4bcSmrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16a8fdb4bcSmrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17a8fdb4bcSmrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18a8fdb4bcSmrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19a8fdb4bcSmrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20a8fdb4bcSmrgdnl  PERFORMANCE OF THIS SOFTWARE.
21a8fdb4bcSmrgdnl
22a8fdb4bcSmrgdnl Process this file with autoconf to create configure.
23a8fdb4bcSmrg
24a8fdb4bcSmrgAC_PREREQ([2.57])
25a8fdb4bcSmrgAC_INIT(luit,[1.0.3], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],luit)
26a8fdb4bcSmrgAM_INIT_AUTOMAKE([dist-bzip2])
27a8fdb4bcSmrgAM_MAINTAINER_MODE
28a8fdb4bcSmrg
29a8fdb4bcSmrgAM_CONFIG_HEADER(config.h)
30a8fdb4bcSmrg
31a8fdb4bcSmrgAC_PROG_CC
32a8fdb4bcSmrgAC_PROG_INSTALL
33a8fdb4bcSmrgAC_CANONICAL_HOST
34a8fdb4bcSmrg
35a8fdb4bcSmrgAC_CHECK_LIB(z, gzopen,, AC_MSG_ERROR([zlib not found]))
36a8fdb4bcSmrg
37a8fdb4bcSmrgAC_ARG_WITH(localealiasfile,
38a8fdb4bcSmrg        AC_HELP_STRING([--with-localealiasfile=<path>],
39a8fdb4bcSmrg                       [The locale alias file (default: ${datadir}/X11/locale/locale.alias)]),
40a8fdb4bcSmrg        [LOCALEALIASFILE="$withval"],
41a8fdb4bcSmrg        [LOCALEALIASFILE=${datadir}/X11/locale/locale.alias])
42a8fdb4bcSmrgAC_SUBST([LOCALEALIASFILE])
43a8fdb4bcSmrg
44a8fdb4bcSmrg# Checks for pkg-config packages
45a8fdb4bcSmrgPKG_CHECK_MODULES(LUIT, x11 fontenc)
46a8fdb4bcSmrg
47a8fdb4bcSmrgcase $host_os in
48a8fdb4bcSmrg    linux*)
49a8fdb4bcSmrg        OS_CFLAGS="-D_XOPEN_SOURCE=500"
50a8fdb4bcSmrg        ;;
51a8fdb4bcSmrg    *)
52a8fdb4bcSmrg        OS_CFLAGS=
53a8fdb4bcSmrg        ;;
54a8fdb4bcSmrgesac
55a8fdb4bcSmrg
56a8fdb4bcSmrgLUIT_CFLAGS="$LUIT_CFLAGS $OS_CFLAGS"
57a8fdb4bcSmrgAC_SUBST(LUIT_CFLAGS)
58a8fdb4bcSmrgAC_SUBST(LUIT_LIBS)
59a8fdb4bcSmrg
60a8fdb4bcSmrgXORG_MANPAGE_SECTIONS
61a8fdb4bcSmrgXORG_RELEASE_VERSION
62a8fdb4bcSmrg
63a8fdb4bcSmrgAC_OUTPUT([Makefile])
64