Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.7.21.83]) by krbdev.mit.edu (8.9.3) with ESMTP id SAA13587; Thu, 19 Sep 2002 18:35:54 -0400 (EDT) Received: from central-city-carrier-station.mit.edu (CENTRAL-CITY-CARRIER-STATION.MIT.EDU [18.7.7.72]) by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id SAA07279; Thu, 19 Sep 2002 18:35:53 -0400 (EDT) Received: from manawatu-mail-centre.mit.edu (MANAWATU-MAIL-CENTRE.MIT.EDU [18.7.7.71]) by central-city-carrier-station.mit.edu (8.9.2/8.9.2) with ESMTP id SAA14899; Thu, 19 Sep 2002 18:35:53 -0400 (EDT) Received: from all-in-one.mit.edu (ALL-IN-ONE.MIT.EDU [18.18.1.71]) by manawatu-mail-centre.mit.edu (8.9.2/8.9.2) with ESMTP id SAA10818; Thu, 19 Sep 2002 18:35:52 -0400 (EDT) Received: (from raeburn@localhost) by all-in-one.mit.edu (8.9.3) id SAA21275; Thu, 19 Sep 2002 18:35:52 -0400 To: rt@krbdev.mit.edu Cc: krb5-prs@MIT.EDU Subject: Re: [krbdev.mit.edu #1188] aclocal.m4 should use AC_CONFIG_FILES References: From: Ken Raeburn Date: Thu, 19 Sep 2002 18:35:52 -0400 In-Reply-To: ("Ezra Peisach via RT"'s message of "Wed, 18 Sep 2002 14:55:51 -0400 (EDT)") Message-Id: Lines: 38 User-Agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2 (i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii RT-Send-Cc: X-RT-Original-Encoding: us-ascii Content-Length: 1461 Ezra writes: > The added benefit, is that eventually, we will be able to > do something like "./config.status lib/Makefile" and have it > generate the proper Makefile. Looks like a win. Much better than trying to get the right collection of environment variables to feed to config.status. > The only problem is that for the code to generate a single Makefile, > krb5_pre_in and krb5_post_in cannot be shell variables and must be > expanded when the configure script is made. I am working on this now. Here's an idea I've been mulling over recently: - Use AC_SUBST_FILE and @foo@ markers in Makefile.in to insert lib.in and libobj.in. (Is the ordering of definitions relative to post.in still going to be okay?) - Move the configure-substituted definitions from lib.in and libobj.in into pre.in or post.in. I believe that, if we do those, the pre- and post-fragments specified by the configure script then become constant -- they'd always be pre.in and post.in and nothing else. It would also eliminate one of the obstacles to further combining some of the configure scripts so we can reduce their number, which is why I was thinking about it in the first place. I don't know how difficult your current change is going to be, but if it's a lot of work, you could consider this as an alternative. > Initially - this change reduces the size of configure by 20-40K depending > on the number of subdirs having Makefiles output. Nice!