configure.ac revision 8f65982a
19aa228fdSmrg 29aa228fdSmrgdnl Copyright 2005 Red Hat, Inc. 39aa228fdSmrgdnl 49aa228fdSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 59aa228fdSmrgdnl documentation for any purpose is hereby granted without fee, provided that 69aa228fdSmrgdnl the above copyright notice appear in all copies and that both that 79aa228fdSmrgdnl copyright notice and this permission notice appear in supporting 89aa228fdSmrgdnl documentation, and that the name of Red Hat not be used in 99aa228fdSmrgdnl advertising or publicity pertaining to distribution of the software without 109aa228fdSmrgdnl specific, written prior permission. Red Hat makes no 119aa228fdSmrgdnl representations about the suitability of this software for any purpose. It 129aa228fdSmrgdnl is provided "as is" without express or implied warranty. 139aa228fdSmrgdnl 149aa228fdSmrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 159aa228fdSmrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 169aa228fdSmrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 179aa228fdSmrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 189aa228fdSmrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 199aa228fdSmrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 209aa228fdSmrgdnl PERFORMANCE OF THIS SOFTWARE. 219aa228fdSmrgdnl 229aa228fdSmrgdnl Process this file with autoconf to create configure. 239aa228fdSmrg 248f65982aSmrgAC_PREREQ([2.60]) 258f65982aSmrgAC_INIT([xmag], [1.0.4], 268f65982aSmrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xmag]) 278f65982aSmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 289aa228fdSmrgAM_MAINTAINER_MODE 299aa228fdSmrg 308f65982aSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 318f65982aSmrgm4_ifndef([XORG_MACROS_VERSION], 328f65982aSmrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 338f65982aSmrgXORG_MACROS_VERSION(1.8) 348f65982aSmrgXORG_DEFAULT_OPTIONS 3583d7c197Smrg 369aa228fdSmrgAM_CONFIG_HEADER(config.h) 379aa228fdSmrg 389aa228fdSmrgAC_CHECK_FUNCS([nanosleep poll select]) 399aa228fdSmrg 409aa228fdSmrg# Checks for pkg-config packages 418f65982aSmrgPKG_CHECK_MODULES(XMAG, xaw7 xmu xt x11) 429aa228fdSmrg 438f65982aSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 4483d7c197SmrgAC_ARG_WITH(appdefaultdir, 4583d7c197Smrg AC_HELP_STRING([--with-appdefaultdir=<pathname>], 4683d7c197Smrg [specify directory for app-defaults files (default is autodetected)]), 4783d7c197Smrg [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"]) 489aa228fdSmrgAC_SUBST(appdefaultdir) 499aa228fdSmrg 509aa228fdSmrg 519aa228fdSmrgAC_OUTPUT([Makefile]) 52