Subject: System-wide cache files for configure
To: None <tech-pkg@NetBSD.org>
From: Julio M. Merino Vidal <jmmv@menta.net>
List: tech-pkg
Date: 02/21/2004 17:42:27
Hi all,

recently, there was a discussion here in tech-pkg about how to cache default
values for configure scripts, specially because some of them take a very lo=
ng
time to execute (i.e., "maximum length of command line").

This is somewhat tricky, and a PITA to do manually.  So I've written a small
utility, autoswc, to simplify and automate this process.  (if you are
wondering where the name comes from, "automatic system-wide cache").
=46rom the DESCR:

    autoswc is an utility that automatically generates system wide cache fi=
les
    for use with configure scripts created by GNU autoconf, and specially by
    those executed within pkgsrc.

I've put a preliminar package in the URL shown below, that I'll commit
probably tomorrow (or maybe tonight, if I have enough time to clean up some
details and do more testing).

    ftp://ftp.netbsd.org/pub/NetBSD/misc/jmmv/autoswc.tar.gz

It should be really easy to use.  Just install, add a line in mk.conf and
execute the utility (after, maybe, having added/removed checks from the
default configure.ac file).

Any comments about it will be welcome.  Testing could be good too! ;-)

Thanks.

=2D-=20
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/