configure.ac revision 5c10afb9
15c10afb9Smrg 25c10afb9Smrgdnl Copyright 2005 Red Hat, Inc. 35c10afb9Smrgdnl 45c10afb9Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 55c10afb9Smrgdnl documentation for any purpose is hereby granted without fee, provided that 65c10afb9Smrgdnl the above copyright notice appear in all copies and that both that 75c10afb9Smrgdnl copyright notice and this permission notice appear in supporting 85c10afb9Smrgdnl documentation, and that the name of Red Hat not be used in 95c10afb9Smrgdnl advertising or publicity pertaining to distribution of the software without 105c10afb9Smrgdnl specific, written prior permission. Red Hat makes no 115c10afb9Smrgdnl representations about the suitability of this software for any purpose. It 125c10afb9Smrgdnl is provided "as is" without express or implied warranty. 135c10afb9Smrgdnl 145c10afb9Smrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 155c10afb9Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 165c10afb9Smrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 175c10afb9Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 185c10afb9Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 195c10afb9Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 205c10afb9Smrgdnl PERFORMANCE OF THIS SOFTWARE. 215c10afb9Smrgdnl 225c10afb9Smrgdnl Process this file with autoconf to create configure. 235c10afb9Smrg 245c10afb9SmrgAC_PREREQ([2.57]) 255c10afb9SmrgAC_INIT(proxymngr,[1.0.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],proxymngr) 265c10afb9SmrgAM_INIT_AUTOMAKE([dist-bzip2]) 275c10afb9SmrgAM_MAINTAINER_MODE 285c10afb9Smrg 295c10afb9Smrg# The program itself has a header called config.h so 305c10afb9Smrg# we have to choose a different name 315c10afb9SmrgAM_CONFIG_HEADER(xconfig.h) 325c10afb9Smrg 335c10afb9SmrgAC_PROG_CPP 345c10afb9SmrgAC_PROG_CC 355c10afb9SmrgAC_PROG_INSTALL 365c10afb9Smrg 375c10afb9SmrgAC_PATH_PROG(LBXPROXY, lbxproxy) 385c10afb9Smrgif [[ -z $LBXPROXY ]] ; then 395c10afb9Smrg AC_MSG_ERROR([lbxproxy is needed]) 405c10afb9Smrgfi 415c10afb9Smrg 425c10afb9SmrgAC_PATH_PROG(SED, sed) 435c10afb9Smrgif [[ -z $SED ]] ; then 445c10afb9Smrg AC_MSG_ERROR([sed is needed]) 455c10afb9Smrgfi 465c10afb9Smrg 475c10afb9Smrg# Checks for pkg-config packages 485c10afb9SmrgPKG_CHECK_MODULES(PROXYMNGR, ice xt x11 xproxymngproto) 495c10afb9SmrgAC_SUBST(PROXYMNGR_CFLAGS) 505c10afb9SmrgAC_SUBST(PROXYMNGR_LIBS) 515c10afb9Smrg 525c10afb9SmrgAC_CHECK_FUNC(strcasecmp, [], 535c10afb9Smrg AC_DEFINE([NEED_STRCASECMP],1, 545c10afb9Smrg [Define to 1 if you do not have the `strcasecmp' function.])) 555c10afb9Smrg 565c10afb9Smrg# Needed to check for IPv6 support and set flags appropriately 575c10afb9SmrgXTRANS_TCP_FLAGS 585c10afb9Smrg 595c10afb9SmrgXORG_MANPAGE_SECTIONS 605c10afb9SmrgXORG_RELEASE_VERSION 615c10afb9Smrg 625c10afb9SmrgAC_OUTPUT([Makefile]) 63