configure.ac revision 56957a04
1ef981d24Smrg
2ef981d24Smrgdnl  Copyright 2005 Red Hat, Inc.
3ef981d24Smrgdnl 
4ef981d24Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
5ef981d24Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
6ef981d24Smrgdnl  the above copyright notice appear in all copies and that both that
7ef981d24Smrgdnl  copyright notice and this permission notice appear in supporting
8ef981d24Smrgdnl  documentation, and that the name of Red Hat not be used in
9ef981d24Smrgdnl  advertising or publicity pertaining to distribution of the software without
10ef981d24Smrgdnl  specific, written prior permission.  Red Hat makes no
11ef981d24Smrgdnl  representations about the suitability of this software for any purpose.  It
12ef981d24Smrgdnl  is provided "as is" without express or implied warranty.
13ef981d24Smrgdnl 
14ef981d24Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15ef981d24Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16ef981d24Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17ef981d24Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18ef981d24Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19ef981d24Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20ef981d24Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
21ef981d24Smrgdnl
22ef981d24Smrgdnl Process this file with autoconf to create configure.
23ef981d24Smrg
2456957a04SmrgAC_PREREQ([2.60])
25ef981d24Smrg
2656957a04SmrgAC_INIT([libXScrnSaver], [1.2.1],
2756957a04Smrg        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
2856957a04Smrg        [libXScrnSaver])
2956957a04SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
30ef981d24SmrgAM_MAINTAINER_MODE
31ef981d24Smrg
32ef981d24SmrgAM_CONFIG_HEADER(config.h)
33ef981d24Smrg
3456957a04Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3556957a04Smrgm4_ifndef([XORG_MACROS_VERSION],
3656957a04Smrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
3756957a04SmrgXORG_MACROS_VERSION(1.8)
3856957a04SmrgXORG_DEFAULT_OPTIONS
39ef981d24Smrg
40ef981d24Smrg# Check for progs
41ef981d24SmrgAC_PROG_CC
42ef981d24SmrgAC_PROG_LIBTOOL
43ef981d24Smrg
44ef981d24Smrg# Check for dependencies
4565eef222SmrgPKG_CHECK_MODULES(XSCRNSAVER, x11 xext xextproto [scrnsaverproto >= 1.2])
46ef981d24Smrg
47ef981d24Smrgdnl Allow checking code with lint, sparse, etc.
48ef981d24SmrgXORG_WITH_LINT
49ef981d24SmrgXORG_LINT_LIBRARY([Xss])
50ef981d24Smrg		  
51ef981d24SmrgXORG_CHECK_MALLOC_ZERO
52ef981d24Smrg
53ef981d24SmrgAC_OUTPUT([Makefile
54ef981d24Smrg	   src/Makefile
55ef981d24Smrg	   man/Makefile
56ef981d24Smrg           xscrnsaver.pc])
57