configure.ac revision ea133fd7
1a253d6aeSmrg
2a253d6aeSmrgdnl  Copyright 2005 Red Hat, Inc.
3a253d6aeSmrgdnl 
4a253d6aeSmrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
5a253d6aeSmrgdnl  documentation for any purpose is hereby granted without fee, provided that
6a253d6aeSmrgdnl  the above copyright notice appear in all copies and that both that
7a253d6aeSmrgdnl  copyright notice and this permission notice appear in supporting
8a253d6aeSmrgdnl  documentation, and that the name of Red Hat not be used in
9a253d6aeSmrgdnl  advertising or publicity pertaining to distribution of the software without
10a253d6aeSmrgdnl  specific, written prior permission.  Red Hat makes no
11a253d6aeSmrgdnl  representations about the suitability of this software for any purpose.  It
12a253d6aeSmrgdnl  is provided "as is" without express or implied warranty.
13a253d6aeSmrgdnl 
14a253d6aeSmrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15a253d6aeSmrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16a253d6aeSmrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17a253d6aeSmrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18a253d6aeSmrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19a253d6aeSmrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20a253d6aeSmrgdnl  PERFORMANCE OF THIS SOFTWARE.
21a253d6aeSmrgdnl
22a253d6aeSmrgdnl Process this file with autoconf to create configure.
23a253d6aeSmrg
24a253d6aeSmrgAC_PREREQ([2.57])
25a253d6aeSmrg
26ea133fd7SmrgAC_INIT(libXtst, 1.1.0, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXtst)
27a253d6aeSmrgAM_INIT_AUTOMAKE([dist-bzip2])
28a253d6aeSmrgAM_MAINTAINER_MODE
29a253d6aeSmrg
30ea133fd7Smrg# Require xorg-macros: XORG_DEFAULT_OPTIONS
31ea133fd7Smrgm4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.3 or later before running autoconf/autogen])])
32ea133fd7SmrgXORG_MACROS_VERSION(1.3)
33a253d6aeSmrgAM_CONFIG_HEADER(config.h)
34a253d6aeSmrg
35a253d6aeSmrg# Check for progs
36a253d6aeSmrgAC_PROG_CC
37a253d6aeSmrgAC_PROG_LIBTOOL
38ea133fd7SmrgXORG_DEFAULT_OPTIONS
39a253d6aeSmrg
40a253d6aeSmrg# Check for xmlto for man page conversion 
41a253d6aeSmrg# (only needed by people building tarballs)
42a253d6aeSmrgAC_ARG_VAR([XMLTO], [Path to xmlto command])
43a253d6aeSmrgAC_PATH_PROG([XMLTO], [xmlto])
44a253d6aeSmrgAM_CONDITIONAL([HAVE_XMLTO], [test "x$XMLTO" != "x"])
45a253d6aeSmrg
46a253d6aeSmrg# Check for dependencies
47ea133fd7SmrgPKG_CHECK_MODULES(XTST, x11 [xext >= 1.0.99.4] xi [recordproto >= 1.13.99.1] [xextproto >= 7.0.99.3] inputproto)
48ea133fd7SmrgXTST_CFLAGS="$CWARNFLAGS $XTST_CFLAGS"
49ea133fd7SmrgAC_SUBST(XTST_CFLAGS)
50ea133fd7SmrgAC_SUBST(XTST_LIBS)
51a253d6aeSmrg
52a253d6aeSmrgdnl Allow checking code with lint, sparse, etc.
53a253d6aeSmrgXORG_WITH_LINT
54a253d6aeSmrgXORG_LINT_LIBRARY([Xtst])
55a253d6aeSmrgLINT_FLAGS="${LINT_FLAGS} ${XTST_CFLAGS}"
56a253d6aeSmrg
57a253d6aeSmrgAC_OUTPUT([Makefile
58a253d6aeSmrg	   man/Makefile
59a253d6aeSmrg	   src/Makefile
60a253d6aeSmrg           xtst.pc])
61