configure.ac revision 44dda7b2
1ff559fabSmrgdnl 2ff559fabSmrgdnl Copyright © 2003 Keith Packard, Noah Levitt 3ff559fabSmrgdnl 4ff559fabSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 5ff559fabSmrgdnl documentation for any purpose is hereby granted without fee, provided that 6ff559fabSmrgdnl the above copyright notice appear in all copies and that both that 7ff559fabSmrgdnl copyright notice and this permission notice appear in supporting 8ff559fabSmrgdnl documentation, and that the name of Keith Packard not be used in 9ff559fabSmrgdnl advertising or publicity pertaining to distribution of the software without 10ff559fabSmrgdnl specific, written prior permission. Keith Packard makes no 11ff559fabSmrgdnl representations about the suitability of this software for any purpose. It 12ff559fabSmrgdnl is provided "as is" without express or implied warranty. 13ff559fabSmrgdnl 14ff559fabSmrgdnl KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15ff559fabSmrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16ff559fabSmrgdnl EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17ff559fabSmrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18ff559fabSmrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19ff559fabSmrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20ff559fabSmrgdnl PERFORMANCE OF THIS SOFTWARE. 21ff559fabSmrgdnl 22ff559fabSmrgdnl Process this file with autoconf to create configure. 23ff559fabSmrg 2444dda7b2SmrgAC_PREREQ([2.60]) 2544dda7b2SmrgAC_INIT([libXdmcp], [1.1.0], 2644dda7b2Smrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXdmcp]) 2744dda7b2SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 28ff559fabSmrgAM_MAINTAINER_MODE 29ff559fabSmrg 30ff559fabSmrgAM_CONFIG_HEADER(config.h) 31ff559fabSmrg 3244dda7b2Smrg# Require xorg-macros minimum of 1.10 for HAVE_STYLESHEETS in XORG_CHECK_SGML_DOCTOOLS 3344dda7b2Smrgm4_ifndef([XORG_MACROS_VERSION], 3444dda7b2Smrg [m4_fatal([must install xorg-macros 1.10 or later before running autoconf/autogen])]) 3544dda7b2SmrgXORG_MACROS_VERSION(1.10) 3644dda7b2SmrgXORG_DEFAULT_OPTIONS 3744dda7b2SmrgXORG_ENABLE_DOCS 3844dda7b2SmrgXORG_WITH_XMLTO(0.0.20) 3944dda7b2SmrgXORG_WITH_FOP 4044dda7b2SmrgXORG_CHECK_SGML_DOCTOOLS(1.5) 41ff559fabSmrg 42ff559fabSmrgAC_PROG_LN_S 43ff559fabSmrgAC_LIBTOOL_WIN32_DLL 44ff559fabSmrgAM_PROG_LIBTOOL 45ff559fabSmrgAC_PROG_MAKE_SET 46ff559fabSmrg 47ff559fabSmrgAC_CHECK_FUNCS([srand48 lrand48]) 48ff559fabSmrg 49ff559fabSmrgAC_SEARCH_LIBS([recvfrom],[socket]) 50ff559fabSmrg 51ff559fabSmrgPKG_CHECK_MODULES(XDMCP, xproto) 52ff559fabSmrg 53ff559fabSmrgif test -f ${srcdir}/Wraphelp.c; then 54ff559fabSmrg AC_DEFINE(HASXDMAUTH,1,[Has Wraphelp.c needed for XDM AUTH protocols]) 55ff559fabSmrg HASXDMAUTH=yes 56ff559fabSmrgelse 57ff559fabSmrg HASXDMAUTH=no 58ff559fabSmrgfi 59ff559fabSmrg 60ff559fabSmrgAM_CONDITIONAL(HASXDMAUTH,test x$HASXDMAUTH = xyes) 61ff559fabSmrg 62ff559fabSmrgdnl Allow checking code with lint, sparse, etc. 63ff559fabSmrgXORG_WITH_LINT 64ff559fabSmrgXORG_LINT_LIBRARY([Xdmcp]) 65ff559fabSmrg 66ff559fabSmrgAC_OUTPUT([Makefile 6744dda7b2Smrg doc/Makefile 68ff559fabSmrg xdmcp.pc]) 69