zsh-workers
 help / color / mirror / code / Atom feed
* Modules build framework/autoconf-2.13
@ 2002-05-08 10:41 Borsenkow Andrej
  2002-05-08 11:41 ` Peter Stephenson
  0 siblings, 1 reply; 7+ messages in thread
From: Borsenkow Andrej @ 2002-05-08 10:41 UTC (permalink / raw)
  To: 'zsh-workers@sunsite.dk'

Here is suggested change in modules build procedure. It does not strictly
speaking require autoconf-2.5x but it makes it much more easier and
consistent.

Every module is locate in own subdirectory. .mdd file specifies

- usual stuff (dependencies, file, etc)
- Makefile.in fragment
- configure.in fragment

preconfig script walks source directory and in every directory with *.mdd
creates

- Makefile.in (using standard template and adding fragment from .mdd)
- configure.in ( -"- )

preconfig also collects names of all subdirectories and adds them (via
inclusion) to top-level configure.in that is then using it to recursivly
call generated module's configure. Then it runs autoconf to create configure
in all subdirectories.

preconfig may optionally generate config.modules in source directory so
users have some example; config.modules in build directory overrides
(augments) it. To skip some modules at configure time it is possible to
generate dummy entry in Makefile (by configure.in fragment) that would just
print a warning without doing anything.

The main goal is to make adding new modules as non-intrusive as possible.
Modules come with own configure if needed so there is no need to modify
top-level configure every time; still (owing to autoconf 2.5x) you can list
help from all modules and pass needed parameters. This also (theretically)
allows you to have modules in separate tress from Zsh tree.

It does requires you to rerun preconfig it is all that is needed (autoconf
etc will be run automatically). It also should hopefully simplify makefiles.


Comments?

-andrej


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-05-08 17:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-08 10:41 Modules build framework/autoconf-2.13 Borsenkow Andrej
2002-05-08 11:41 ` Peter Stephenson
2002-05-08 11:56   ` Borsenkow Andrej
2002-05-08 12:42     ` Peter Stephenson
2002-05-08 15:45     ` Bart Schaefer
2002-05-08 16:01       ` Borsenkow Andrej
2002-05-08 16:21         ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).