configure.ac revision 7dff02fe
1a850946eSmrg
2a850946eSmrgdnl  Copyright 2005 Red Hat, Inc.
3a850946eSmrgdnl 
4a850946eSmrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
5a850946eSmrgdnl  documentation for any purpose is hereby granted without fee, provided that
6a850946eSmrgdnl  the above copyright notice appear in all copies and that both that
7a850946eSmrgdnl  copyright notice and this permission notice appear in supporting
8a850946eSmrgdnl  documentation, and that the name of Red Hat not be used in
9a850946eSmrgdnl  advertising or publicity pertaining to distribution of the software without
10a850946eSmrgdnl  specific, written prior permission.  Red Hat makes no
11a850946eSmrgdnl  representations about the suitability of this software for any purpose.  It
12a850946eSmrgdnl  is provided "as is" without express or implied warranty.
13a850946eSmrgdnl 
14a850946eSmrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15a850946eSmrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16a850946eSmrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17a850946eSmrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18a850946eSmrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19a850946eSmrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20a850946eSmrgdnl  PERFORMANCE OF THIS SOFTWARE.
21a850946eSmrgdnl
22a850946eSmrgdnl Process this file with autoconf to create configure.
23a850946eSmrg
24a850946eSmrgAC_PREREQ([2.57])
257dff02feSmrgAC_INIT(xlsclients, [1.1.0],
267dff02feSmrg	[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
277dff02feSmrg	xlsclients)
287dff02feSmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
29a850946eSmrgAM_MAINTAINER_MODE
30a850946eSmrg
3170f7c90cSmrg# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS
3270f7c90cSmrgm4_ifndef([XORG_MACROS_VERSION],
3370f7c90cSmrg	  [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
3470f7c90cSmrgXORG_MACROS_VERSION(1.3)
3570f7c90cSmrg
36a850946eSmrgAM_CONFIG_HEADER(config.h)
37a850946eSmrg
38a850946eSmrgAC_PROG_CC
39a850946eSmrgAC_PROG_INSTALL
40a850946eSmrg
417dff02feSmrg# Check for functional strnlen
427dff02feSmrgAC_USE_SYSTEM_EXTENSIONS
437dff02feSmrgAC_FUNC_STRNLEN
447dff02feSmrgif test "x$ac_cv_func_strnlen_working" = xyes; then
457dff02feSmrg  AC_DEFINE(HAVE_STRNLEN, 1, [Define to 1 if you have a working strnlen function.])
467dff02feSmrgfi
477dff02feSmrg
4870f7c90cSmrgXORG_DEFAULT_OPTIONS
4970f7c90cSmrg
50a850946eSmrg# Checks for pkg-config packages
517dff02feSmrgPKG_CHECK_MODULES(XLSCLIENTS, xcb xcb-atom)
52a850946eSmrgAC_SUBST(XLSCLIENTS_CFLAGS)
53a850946eSmrgAC_SUBST(XLSCLIENTS_LIBS)
54a850946eSmrg
55a850946eSmrgAC_OUTPUT([Makefile])
56