Componentizing configure.in?

Dave Peticolas dave@krondo.com
03 Dec 2001 14:20:40 -0800


--=-VjfOa6yTQ4kZHcqvevSF
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Mon, 2001-12-03 at 05:11, Bill Gribble wrote:
> I'm trying to build pieces of Gnucash on a platform that doesn't have
> Gnome installed at all (an iPaq running Linux).  I don't really need all
> that much of it... just the gnc-module system, really.  However, this is
> a big PITA because in order to get a Makefile I have to run 'autogen' at
> the top level and that requires all the Gnome stuff.=20
>=20
> There are a couple of different things I can do to get around this.  My
> temporary workaround is to put an configure.in in the gnc-module subdir
> which just has the stuff it needs.  That's fine, and if nobody else has
> a problem with the current setup I'll continue to do it.=20
>=20
> However, I'd like to throw out there the idea of a more component-based=20
> top-level configure.in.  I have worked on projects with multiple
> hierarchical configure scripts, and that's a non-starter ... it just
> takes too damn long to run configure.  I was thinking something more
> like having 'configure.include' components for subdirs of src/ which=20
> are fragments of configure.in.  We could modifying our autogen.sh to
> take arguments specifying which subdirs to include the configure.include
> fragments for and to add to SUBDIRS.  The default would be to include
> them all, but if I just want to build the non-gui components I can do
>=20
>   ./autogen.sh --with-components=3Dgnc-module,engine
>=20
> This would allow people to completely avoid tests for things that they
> don't need if they know what they're doing but not get people in trouble
> who don't care.=20

This seems like a reasonable solution to me.

dave


--=-VjfOa6yTQ4kZHcqvevSF
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA8C/q45effKKCmfpIRAjqrAKC7diXBMEMS88ljXIWXGZvXcgoNiQCfRb9P
HHQFQYy50I5Ey9uC0+6NmNw=
=Jk13
-----END PGP SIGNATURE-----

--=-VjfOa6yTQ4kZHcqvevSF--