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 24b8414663Smrg# Initialize Autoconf 25765486e8SmrgAC_PREREQ([2.60]) 26765486e8SmrgAC_INIT([setxkbmap], 277f6d8fe2Smrg [1.3.4], 2813e6bc1cSmrg [https://gitlab.freedesktop.org/xorg/app/setxkbmap/issues], 29765486e8Smrg [setxkbmap]) 30b8414663SmrgAC_CONFIG_SRCDIR([Makefile.am]) 31b8414663SmrgAC_CONFIG_HEADERS([config.h]) 32b8414663Smrg 33b8414663Smrg# Initialize Automake 345212f86fSmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 357d5e3a19Smrg 36765486e8Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 37765486e8Smrgm4_ifndef([XORG_MACROS_VERSION], 38765486e8Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 39765486e8SmrgXORG_MACROS_VERSION(1.8) 40765486e8SmrgXORG_DEFAULT_OPTIONS 411568b75bSmrg 427d5e3a19SmrgAC_ARG_WITH(xkb-config-root, 43bda5b58fSmrg AS_HELP_STRING([--with-xkb-config-root=<paths>], 447d5e3a19Smrg [Set default XKB config root (default: ${datadir}/X11/xkb)]), 457d5e3a19Smrg [XKBCONFIGROOT="$withval"], 467d5e3a19Smrg [XKBCONFIGROOT=${datadir}/X11/xkb]) 477d5e3a19SmrgAC_SUBST([XKBCONFIGROOT]) 487d5e3a19Smrg 497d5e3a19Smrg# Checks for pkg-config packages 505212f86fSmrg# xrandr is needed for the XWayland check 515212f86fSmrgPKG_CHECK_MODULES(SETXKBMAP, xkbfile x11 xrandr) 527d5e3a19Smrg 537d5e3a19Smrg# Allow checking code with lint, sparse, etc. 547d5e3a19SmrgXORG_WITH_LINT 557d5e3a19Smrg 56bda5b58fSmrgAC_CONFIG_FILES([ 57bda5b58fSmrg Makefile 58bda5b58fSmrg man/Makefile]) 59bda5b58fSmrgAC_OUTPUT 60