configure.ac revision bda5b58f
17d5e3a19Smrg
27d5e3a19Smrgdnl  Copyright 2005 Red Hat, Inc.
37d5e3a19Smrgdnl 
47d5e3a19Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
57d5e3a19Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
67d5e3a19Smrgdnl  the above copyright notice appear in all copies and that both that
77d5e3a19Smrgdnl  copyright notice and this permission notice appear in supporting
87d5e3a19Smrgdnl  documentation, and that the name of Red Hat not be used in
97d5e3a19Smrgdnl  advertising or publicity pertaining to distribution of the software without
107d5e3a19Smrgdnl  specific, written prior permission.  Red Hat makes no
117d5e3a19Smrgdnl  representations about the suitability of this software for any purpose.  It
127d5e3a19Smrgdnl  is provided "as is" without express or implied warranty.
137d5e3a19Smrgdnl 
147d5e3a19Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
157d5e3a19Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
167d5e3a19Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
177d5e3a19Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
187d5e3a19Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
197d5e3a19Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
207d5e3a19Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
217d5e3a19Smrgdnl
227d5e3a19Smrgdnl Process this file with autoconf to create configure.
237d5e3a19Smrg
24765486e8SmrgAC_PREREQ([2.60])
25765486e8SmrgAC_INIT([setxkbmap],
26bda5b58fSmrg	[1.3.0],
27765486e8Smrg	[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
28765486e8Smrg	[setxkbmap])
29765486e8SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
307d5e3a19SmrgAM_MAINTAINER_MODE
317d5e3a19Smrg
32765486e8Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
33765486e8Smrgm4_ifndef([XORG_MACROS_VERSION],
34765486e8Smrg	  [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
35765486e8SmrgXORG_MACROS_VERSION(1.8)
361568b75bSmrg
37bda5b58fSmrgAC_CONFIG_HEADERS([config.h])
387d5e3a19Smrg
39765486e8SmrgXORG_DEFAULT_OPTIONS
401568b75bSmrg
417d5e3a19SmrgAC_ARG_WITH(xkb-config-root,
42bda5b58fSmrg        AS_HELP_STRING([--with-xkb-config-root=<paths>],
437d5e3a19Smrg                       [Set default XKB config root (default: ${datadir}/X11/xkb)]),
447d5e3a19Smrg        [XKBCONFIGROOT="$withval"],
457d5e3a19Smrg        [XKBCONFIGROOT=${datadir}/X11/xkb])
467d5e3a19SmrgAC_SUBST([XKBCONFIGROOT])
477d5e3a19Smrg
487d5e3a19Smrg# Checks for pkg-config packages
497d5e3a19SmrgPKG_CHECK_MODULES(SETXKBMAP, xkbfile x11)
507d5e3a19Smrg
517d5e3a19Smrg# Allow checking code with lint, sparse, etc.
527d5e3a19SmrgXORG_WITH_LINT
537d5e3a19Smrg
54bda5b58fSmrgAC_CONFIG_FILES([
55bda5b58fSmrg	Makefile
56bda5b58fSmrg	man/Makefile])
57bda5b58fSmrgAC_OUTPUT
58