configure.ac revision 9a011757
1dnl  Copyright 2005 Red Hat, Inc.
2dnl
3dnl  Permission to use, copy, modify, distribute, and sell this software and its
4dnl  documentation for any purpose is hereby granted without fee, provided that
5dnl  the above copyright notice appear in all copies and that both that
6dnl  copyright notice and this permission notice appear in supporting
7dnl  documentation, and that the name of Red Hat not be used in
8dnl  advertising or publicity pertaining to distribution of the software without
9dnl  specific, written prior permission.  Red Hat makes no
10dnl  representations about the suitability of this software for any purpose.  It
11dnl  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 NO
15dnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
16dnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
17dnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18dnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19dnl  PERFORMANCE OF THIS SOFTWARE.
20dnl
21dnl Process this file with autoconf to create configure.
22
23AC_PREREQ([2.60])
24AC_INIT([xauth],
25	[1.0.9],
26	[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
27	[xauth])
28AM_INIT_AUTOMAKE([foreign dist-bzip2])
29AM_MAINTAINER_MODE
30
31AC_CONFIG_HEADERS([config.h])
32
33# Set common system defines for POSIX extensions, such as _GNU_SOURCE
34# Must be called before any macros that run the compiler (like
35# AC_PROG_LIBTOOL) to avoid autoconf errors.
36AC_USE_SYSTEM_EXTENSIONS
37
38# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
39m4_ifndef([XORG_MACROS_VERSION],
40          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
41XORG_MACROS_VERSION(1.8)
42XORG_DEFAULT_OPTIONS
43
44AC_CHECK_HEADERS([net/errno.h])
45
46AC_CHECK_FUNCS([strlcpy])
47
48# Checks for pkg-config packages
49PKG_CHECK_MODULES(XAUTH, x11 xau xext xmuu xproto >= 7.0.17)
50
51# Transport selection macro from xtrans.m4
52# Needed to set *CONN defines for gethost.c & parsedpy.c
53XTRANS_CONNECTION_FLAGS
54
55XORG_WITH_LINT
56
57AC_CONFIG_FILES([
58	Makefile
59	tests/Makefile
60	man/Makefile])
61AC_OUTPUT
62