configure.ac revision 5977a007
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 245977a007Smrg# Initialize Autoconf 251a650d1eSmrgAC_PREREQ([2.60]) 265977a007SmrgAC_INIT([xsm], [1.0.3], 271a650d1eSmrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xsm]) 285977a007SmrgAC_CONFIG_SRCDIR([Makefile.am]) 295977a007SmrgAC_CONFIG_HEADERS([config.h]) 305977a007Smrg 315977a007Smrg# Initialize Automake 321a650d1eSmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 338108eb18SmrgAM_MAINTAINER_MODE 348108eb18Smrg 351a650d1eSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 361a650d1eSmrgm4_ifndef([XORG_MACROS_VERSION], 371a650d1eSmrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 381a650d1eSmrgXORG_MACROS_VERSION(1.8) 391a650d1eSmrgXORG_DEFAULT_OPTIONS 408108eb18Smrg 411a650d1eSmrgAC_ARG_WITH(rsh, AS_HELP_STRING([--with-rsh=PATH], 421a650d1eSmrg [Rsh command to use (default: $bindir/ssh)]), 431a650d1eSmrg [ rsh="$withval"], 441a650d1eSmrg [ rsh=${bindir}/ssh ]) 451a650d1eSmrgRSH=$rsh 461a650d1eSmrgAC_SUBST(RSH) 478108eb18Smrg 485977a007SmrgAC_CHECK_FUNCS([mkstemp putenv]) 498108eb18Smrg 508108eb18Smrg# Checks for pkg-config packages 515977a007SmrgPKG_CHECK_MODULES(XSM, [x11 xt > 1.0.99 ice sm xaw7]) 528108eb18Smrg 531a650d1eSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 541a650d1eSmrgAC_ARG_WITH(appdefaultdir, 555977a007Smrg AS_HELP_STRING([--with-appdefaultdir=<pathname>], 561a650d1eSmrg [specify directory for app-defaults files (default is autodetected)]), 571a650d1eSmrg [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"]) 588108eb18SmrgAC_SUBST(appdefaultdir) 598108eb18Smrg 608108eb18Smrg 615977a007SmrgAC_CONFIG_FILES([ 625977a007Smrg Makefile 635977a007Smrg man/Makefile]) 645977a007SmrgAC_OUTPUT 65