configure.ac revision 1a650d1e
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 241a650d1eSmrgAC_PREREQ([2.60]) 251a650d1eSmrgAC_INIT([xsm], [1.0.2], 261a650d1eSmrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xsm]) 271a650d1eSmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 288108eb18SmrgAM_MAINTAINER_MODE 298108eb18Smrg 308108eb18SmrgAM_CONFIG_HEADER(config.h) 318108eb18Smrg 321a650d1eSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 331a650d1eSmrgm4_ifndef([XORG_MACROS_VERSION], 341a650d1eSmrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 351a650d1eSmrgXORG_MACROS_VERSION(1.8) 361a650d1eSmrgXORG_DEFAULT_OPTIONS 378108eb18Smrg 381a650d1eSmrgAC_ARG_WITH(rsh, AS_HELP_STRING([--with-rsh=PATH], 391a650d1eSmrg [Rsh command to use (default: $bindir/ssh)]), 401a650d1eSmrg [ rsh="$withval"], 411a650d1eSmrg [ rsh=${bindir}/ssh ]) 421a650d1eSmrgRSH=$rsh 431a650d1eSmrgAC_SUBST(RSH) 448108eb18Smrg 458108eb18SmrgAC_CHECK_FUNC([mkstemp], 461a650d1eSmrg AC_DEFINE(HAS_MKSTEMP,1,[Define to 1 if you have the 'mkstemp' function.])) 478108eb18SmrgAC_CHECK_FUNC([putenv], [], 481a650d1eSmrg AC_DEFINE(NOPUTENV,1,[Define to 1 if you DO NOT have the 'putenv' function.])) 498108eb18Smrg 508108eb18Smrg# Checks for pkg-config packages 511a650d1eSmrgPKG_CHECK_MODULES(XSM, x11 xt ice sm xaw7) 528108eb18Smrg 531a650d1eSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 541a650d1eSmrgAC_ARG_WITH(appdefaultdir, 551a650d1eSmrg AC_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 618108eb18SmrgAC_OUTPUT([Makefile]) 62