10e20ee16Smrg 20e20ee16Smrgdnl Copyright 2005 Red Hat, Inc. 30e20ee16Smrgdnl 40e20ee16Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 50e20ee16Smrgdnl documentation for any purpose is hereby granted without fee, provided that 60e20ee16Smrgdnl the above copyright notice appear in all copies and that both that 70e20ee16Smrgdnl copyright notice and this permission notice appear in supporting 80e20ee16Smrgdnl documentation, and that the name of Red Hat not be used in 90e20ee16Smrgdnl advertising or publicity pertaining to distribution of the software without 100e20ee16Smrgdnl specific, written prior permission. Red Hat makes no 110e20ee16Smrgdnl representations about the suitability of this software for any purpose. It 120e20ee16Smrgdnl is provided "as is" without express or implied warranty. 130e20ee16Smrgdnl 140e20ee16Smrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 150e20ee16Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 160e20ee16Smrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 170e20ee16Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 180e20ee16Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 190e20ee16Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 200e20ee16Smrgdnl PERFORMANCE OF THIS SOFTWARE. 210e20ee16Smrgdnl 220e20ee16Smrgdnl Process this file with autoconf to create configure. 230e20ee16Smrg 24c75e344aSmrg# Initialize Autoconf 25c75e344aSmrgAC_PREREQ([2.60]) 268b648e79SmrgAC_INIT([xkbprint], [1.0.7], 27e6bced22Smrg [https://gitlab.freedesktop.org/xorg/app/xkbprint/-/issues], [xkbprint]) 28c75e344aSmrgAC_CONFIG_SRCDIR([Makefile.am]) 29c75e344aSmrgAC_CONFIG_HEADERS([config.h]) 302f167a42Smrg# Needed for asprintf on GNU libc 312f167a42SmrgAC_USE_SYSTEM_EXTENSIONS 32c75e344aSmrg 33c75e344aSmrg# Initialize Automake 34e6bced22SmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 350e20ee16Smrg 36c75e344aSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 373e6697d4Smrgm4_ifndef([XORG_MACROS_VERSION], 38c75e344aSmrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 39c75e344aSmrgXORG_MACROS_VERSION(1.8) 403e6697d4SmrgXORG_DEFAULT_OPTIONS 413e6697d4Smrg 428b648e79Smrg# Checks for library functions. 432f167a42SmrgAC_CHECK_FUNCS([asprintf]) 442f167a42Smrg 458b648e79Smrg# Checks for typedefs, structures, and compiler characteristics. 468b648e79SmrgAC_SYS_LARGEFILE 478b648e79Smrg 480e20ee16Smrg# Checks for pkg-config packages 492f167a42SmrgPKG_CHECK_MODULES(XKBPRINT, [xkbfile x11 xproto >= 7.0.17]) 500e20ee16Smrg 512f167a42SmrgAC_CONFIG_FILES([ 522f167a42Smrg Makefile 532f167a42Smrg man/Makefile]) 542f167a42SmrgAC_OUTPUT 55