configure.ac revision 8108eb18
18108eb18Smrg 28108eb18Smrgdnl Copyright 2005 Red Hat, Inc. 38108eb18Smrgdnl 48108eb18Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 58108eb18Smrgdnl documentation for any purpose is hereby granted without fee, provided that 68108eb18Smrgdnl the above copyright notice appear in all copies and that both that 78108eb18Smrgdnl copyright notice and this permission notice appear in supporting 88108eb18Smrgdnl documentation, and that the name of Red Hat not be used in 98108eb18Smrgdnl advertising or publicity pertaining to distribution of the software without 108108eb18Smrgdnl specific, written prior permission. Red Hat makes no 118108eb18Smrgdnl representations about the suitability of this software for any purpose. It 128108eb18Smrgdnl is provided "as is" without express or implied warranty. 138108eb18Smrgdnl 148108eb18Smrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 158108eb18Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 168108eb18Smrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 178108eb18Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 188108eb18Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 198108eb18Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 208108eb18Smrgdnl PERFORMANCE OF THIS SOFTWARE. 218108eb18Smrgdnl 228108eb18Smrgdnl Process this file with autoconf to create configure. 238108eb18Smrg 248108eb18SmrgAC_PREREQ([2.57]) 258108eb18SmrgAC_INIT(xsm,[1.0.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xsm) 268108eb18SmrgAM_INIT_AUTOMAKE([dist-bzip2]) 278108eb18SmrgAM_MAINTAINER_MODE 288108eb18Smrg 298108eb18SmrgAM_CONFIG_HEADER(config.h) 308108eb18Smrg 318108eb18SmrgAC_PROG_CC 328108eb18SmrgAC_PROG_INSTALL 338108eb18Smrg 348108eb18SmrgRSH= 358108eb18Smrgif [[ -z $RSH ]] ; then 368108eb18Smrg AC_PATH_PROG(RSH,rsh) 378108eb18Smrgfi 388108eb18Smrgif [[ -z $RSH ]] ; then 398108eb18Smrg AC_PATH_PROG(RSH,rcmd) 408108eb18Smrgfi 418108eb18Smrgif [[ -z $RSH ]] ; then 428108eb18Smrg AC_PATH_PROG(RSH,remsh) 438108eb18Smrgfi 448108eb18Smrgif [[ -z $RSH ]] ; then 458108eb18Smrg AC_MSG_ERROR(No rsh like program found) 468108eb18Smrgfi 478108eb18Smrg 488108eb18Smrg#if !defined(RshCmd) 498108eb18Smrg#if SystemV 508108eb18Smrg#ifdef HPArchitecture 518108eb18Smrg#define RshCmd remsh 528108eb18Smrg#else 538108eb18Smrg#define RshCmd rcmd 548108eb18Smrg#endif 558108eb18Smrg#else 568108eb18Smrg#define RshCmd rsh 578108eb18Smrg#endif 588108eb18Smrg#endif 598108eb18Smrg 608108eb18SmrgAC_CHECK_FUNC([mkstemp], 618108eb18Smrg AC_DEFINE(HAS_MKSTEMP,1,[Define to 1 if you have the `mkstemp' function.])) 628108eb18SmrgAC_CHECK_FUNC([putenv], [], 638108eb18Smrg AC_DEFINE(NOPUTENV,1,[Define to 1 if you DO NOT have the `putenv' function.])) 648108eb18Smrg 658108eb18Smrg# Checks for pkg-config packages 668108eb18SmrgXAW_CHECK_XPRINT_SUPPORT(XSM) 678108eb18Smrg 688108eb18SmrgAC_SUBST(XSM_CFLAGS) 698108eb18SmrgAC_SUBST(XSM_LIBS) 708108eb18Smrg 718108eb18SmrgPKG_CHECK_MODULES(APPDEFS, xt) 728108eb18Smrgappdefaultdir=$(pkg-config --variable=appdefaultdir xt) 738108eb18SmrgAC_SUBST(appdefaultdir) 748108eb18Smrg 758108eb18SmrgXORG_MANPAGE_SECTIONS 768108eb18SmrgXORG_RELEASE_VERSION 778108eb18Smrg 788108eb18SmrgAC_OUTPUT([Makefile]) 79