configure.ac revision 6c3c2bce
17a0395d0Smrgdnl Copyright 2005 Red Hat, Inc. 296402570Smrgdnl 37a0395d0Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 47a0395d0Smrgdnl documentation for any purpose is hereby granted without fee, provided that 57a0395d0Smrgdnl the above copyright notice appear in all copies and that both that 67a0395d0Smrgdnl copyright notice and this permission notice appear in supporting 77a0395d0Smrgdnl documentation, and that the name of Red Hat not be used in 87a0395d0Smrgdnl advertising or publicity pertaining to distribution of the software without 97a0395d0Smrgdnl specific, written prior permission. Red Hat makes no 107a0395d0Smrgdnl representations about the suitability of this software for any purpose. It 117a0395d0Smrgdnl is provided "as is" without express or implied warranty. 1296402570Smrgdnl 137a0395d0Smrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 147a0395d0Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 157a0395d0Smrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 167a0395d0Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 177a0395d0Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 187a0395d0Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 197a0395d0Smrgdnl PERFORMANCE OF THIS SOFTWARE. 207a0395d0Smrgdnl 217a0395d0Smrgdnl Process this file with autoconf to create configure. 227a0395d0Smrg 232adc0320SmrgAC_PREREQ([2.60]) 242adc0320SmrgAC_INIT([xauth], 256c3c2bceSmrg [1.1], 266c3c2bceSmrg [https://gitlab.freedesktop.org/xorg/app/xauth/issues], 272adc0320Smrg [xauth]) 282adc0320SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 297a0395d0Smrg 302852888eSmrgAC_CONFIG_HEADERS([config.h]) 317a0395d0Smrg 329a011757Smrg# Set common system defines for POSIX extensions, such as _GNU_SOURCE 339a011757Smrg# Must be called before any macros that run the compiler (like 349a011757Smrg# AC_PROG_LIBTOOL) to avoid autoconf errors. 359a011757SmrgAC_USE_SYSTEM_EXTENSIONS 369a011757Smrg 372adc0320Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 382adc0320Smrgm4_ifndef([XORG_MACROS_VERSION], 392adc0320Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 402adc0320SmrgXORG_MACROS_VERSION(1.8) 417366012aSmrgXORG_DEFAULT_OPTIONS 427366012aSmrg 437a0395d0SmrgAC_CHECK_HEADERS([net/errno.h]) 447a0395d0Smrg 452adc0320SmrgAC_CHECK_FUNCS([strlcpy]) 462adc0320Smrg 477a0395d0Smrg# Checks for pkg-config packages 488abc0ccfSmrgPKG_CHECK_MODULES(XAUTH, x11 xau xext xmuu xproto >= 7.0.17) 497a0395d0Smrg 507a0395d0Smrg# Transport selection macro from xtrans.m4 5196402570Smrg# Needed to set *CONN defines for gethost.c & parsedpy.c 527a0395d0SmrgXTRANS_CONNECTION_FLAGS 537a0395d0Smrg 547a0395d0SmrgXORG_WITH_LINT 557a0395d0Smrg 562852888eSmrgAC_CONFIG_FILES([ 572852888eSmrg Makefile 588abc0ccfSmrg tests/Makefile 592852888eSmrg man/Makefile]) 602852888eSmrgAC_OUTPUT 61