configure.ac revision a85aecdf
1fd7d9bd3Smrgdnl Copyright 2005 Red Hat, Inc. 2fd7d9bd3Smrgdnl 3fd7d9bd3Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 4fd7d9bd3Smrgdnl documentation for any purpose is hereby granted without fee, provided that 5fd7d9bd3Smrgdnl the above copyright notice appear in all copies and that both that 6fd7d9bd3Smrgdnl copyright notice and this permission notice appear in supporting 7fd7d9bd3Smrgdnl documentation, and that the name of Red Hat not be used in 8fd7d9bd3Smrgdnl advertising or publicity pertaining to distribution of the software without 9fd7d9bd3Smrgdnl specific, written prior permission. Red Hat makes no 10fd7d9bd3Smrgdnl representations about the suitability of this software for any purpose. It 11fd7d9bd3Smrgdnl is provided "as is" without express or implied warranty. 12fd7d9bd3Smrgdnl 13fd7d9bd3Smrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 14fd7d9bd3Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 15fd7d9bd3Smrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 16fd7d9bd3Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 17fd7d9bd3Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 18fd7d9bd3Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 19fd7d9bd3Smrgdnl PERFORMANCE OF THIS SOFTWARE. 20fd7d9bd3Smrgdnl 21fd7d9bd3Smrgdnl Process this file with autoconf to create configure. 22fd7d9bd3Smrg 23a85aecdfSmrg# Initialize Autoconf 249aa2a2b5SmrgAC_PREREQ([2.60]) 25a85aecdfSmrgAC_INIT([xgc], [1.0.4], 269aa2a2b5Smrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xgc]) 27a85aecdfSmrgAC_CONFIG_SRCDIR([Makefile.am]) 28a85aecdfSmrgAC_CONFIG_HEADERS([config.h]) 29a85aecdfSmrg 30a85aecdfSmrg# Initialize Automake 319aa2a2b5SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 32fd7d9bd3SmrgAM_MAINTAINER_MODE 33fd7d9bd3Smrg 349aa2a2b5Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 35350952b9Smrgm4_ifndef([XORG_MACROS_VERSION], 369aa2a2b5Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 379aa2a2b5SmrgXORG_MACROS_VERSION(1.8) 38350952b9SmrgXORG_DEFAULT_OPTIONS 39350952b9Smrg 40fd7d9bd3SmrgAC_PROG_LEX 41fd7d9bd3SmrgAC_PROG_YACC 429aa2a2b5SmrgAC_PATH_PROG([YACC_INST], $YACC) 43a85aecdfSmrgif test ! -f "gram.c"; then 44a85aecdfSmrg if test -z "$YACC_INST"; then 45a85aecdfSmrg AC_MSG_ERROR([yacc not found - unable to compile gram.y]) 46a85aecdfSmrg fi 47a85aecdfSmrgfi 48fd7d9bd3Smrg 499aa2a2b5SmrgPKG_CHECK_MODULES(XGC, xaw7 xt) 509aa2a2b5Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 51350952b9SmrgAC_ARG_WITH(appdefaultdir, 52a85aecdfSmrg AS_HELP_STRING([--with-appdefaultdir=<pathname>], 53350952b9Smrg [specify directory for app-defaults files (default is autodetected)]), 54350952b9Smrg [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"]) 55fd7d9bd3SmrgAC_SUBST(appdefaultdir) 56fd7d9bd3Smrg 57a85aecdfSmrgAC_CONFIG_FILES([ 58a85aecdfSmrg Makefile 59a85aecdfSmrg man/Makefile]) 60a85aecdfSmrgAC_OUTPUT 61