From 6fb805e5006947372e4ad03889ab447cb857d125 Mon Sep 17 00:00:00 2001 From: chak Date: Tue, 7 Dec 1999 14:46:32 +0000 Subject: [PATCH] [project @ 1999-12-07 14:46:31 by chak] Package local configuration scripts allow to modularise the configuration (we start by having one for ghc): * Modularised configuration avoids unnecessary dependencies for individual packages. * Furthermore, package local configuration (such as entering version information into rpm .spec files) is possible. --- configure.in | 6 ++++++ ghc/configure.in | 24 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 ghc/configure.in diff --git a/configure.in b/configure.in index 3ea7098..862eb96 100644 --- a/configure.in +++ b/configure.in @@ -16,6 +16,12 @@ dnl # First off, a distrib sanity check.. AC_INIT(mk/config.mk.in) +dnl * Declare subdirectories that have a private configure script +dnl +dnl After the toplevel configuration is complete, the script will recurse into +dnl these subdirectories (the use of cache values makes repeated checks cheap) +AC_CONFIG_SUBDIRS(ghc) + # ------------------------------------------------------------------------- # Prepare to generate the following header files # diff --git a/ghc/configure.in b/ghc/configure.in new file mode 100644 index 0000000..ac52dc5 --- /dev/null +++ b/ghc/configure.in @@ -0,0 +1,24 @@ +dnl GHC-only part of fptools configuration +dnl +dnl Copyright (c) 1999 Manuel M. T. Chakravarty +dnl +dnl This file is subject to the same free software license as GHC. + +dnl ###################################################################### +dnl Process this file with autoconf to produce a configure script. +dnl ###################################################################### + + +dnl * Initialise and check sanity. +AC_INIT(ghc.spec.in) + +dnl * Compute the version number. +version=`sed -e 's/.*\([[0-9]]\)\.\([[0-9]]*\).*/\1.\2/' VERSION` +patchlevel=1 + +dnl These are needed by the .spec file. +AC_SUBST(version) +AC_SUBST(patchlevel) + +dnl * Write the results... +AC_OUTPUT(ghc.spec) -- 1.7.10.4