176910425Smrgdnl  Copyright 2005 Red Hat, Inc.
29ff100acSmrgdnl
376910425Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
476910425Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
576910425Smrgdnl  the above copyright notice appear in all copies and that both that
676910425Smrgdnl  copyright notice and this permission notice appear in supporting
776910425Smrgdnl  documentation, and that the name of Red Hat not be used in
876910425Smrgdnl  advertising or publicity pertaining to distribution of the software without
976910425Smrgdnl  specific, written prior permission.  Red Hat makes no
1076910425Smrgdnl  representations about the suitability of this software for any purpose.  It
1176910425Smrgdnl  is provided "as is" without express or implied warranty.
129ff100acSmrgdnl
1376910425Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1476910425Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1576910425Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1676910425Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1776910425Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1876910425Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1976910425Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
2076910425Smrgdnl
2176910425Smrgdnl Process this file with autoconf to create configure.
2276910425Smrg
239ff100acSmrg# Initialize Autoconf
24482df631SmrgAC_PREREQ([2.60])
258bfe6addSmrgAC_INIT([xkbevd], [1.1.6],
26a67f45c3Smrg        [https://gitlab.freedesktop.org/xorg/app/xkbevd/-/issues], [xkbevd])
279ff100acSmrgAC_CONFIG_SRCDIR([Makefile.am])
289ff100acSmrgAC_CONFIG_HEADERS([config.h])
299ff100acSmrg
309ff100acSmrg# Initialize Automake
31a67f45c3SmrgAM_INIT_AUTOMAKE([foreign dist-xz])
3276910425Smrg
33482df631Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
34db17cd6dSmrgm4_ifndef([XORG_MACROS_VERSION],
35482df631Smrg	  [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
36482df631SmrgXORG_MACROS_VERSION(1.8)
379ff100acSmrgXORG_DEFAULT_OPTIONS
3876910425Smrg
3976910425SmrgAC_PROG_YACC
40482df631SmrgAC_PATH_PROG([YACC_INST], $YACC)
419ff100acSmrgif test ! -f "cfgparse.c"; then
429ff100acSmrg   if test -z "$YACC_INST"; then
439ff100acSmrg      AC_MSG_ERROR([yacc not found - unable to compile cfgparse.y])
449ff100acSmrg   fi
459ff100acSmrgfi
4676910425Smrg
4776910425Smrg# Checks for pkg-config packages
4876910425SmrgPKG_CHECK_MODULES(XKBEVD, xkbfile x11)
4976910425Smrg
509ff100acSmrgAC_CONFIG_FILES([
519ff100acSmrg	Makefile
529ff100acSmrg	man/Makefile])
539ff100acSmrgAC_OUTPUT
54