Speed ​​up autoconfiguration / set up a large project

I have a large autoconf / automake project broken down into components using AC_CONFIG_SUBDIRS. Is there a way to speed up autoconf / configure? Perhaps parallel to sub-dir or reusable output caching?

I could easily write an assembly script that will build components in parallel, but would prefer not to add a secondary support point for the assembly structure.

+8
autoconf automake
source share
2 answers

You can show the results of caching between several configure (several runs of the same configure or recursive sub configure ) by setting the cache function . Just run

 ./configure -C 

However, you should not forget to delete the cache when changing the system configuration (for example, after installing new packages that were not found during the previous configure run). If you use third-party macros, you may also need to fix some of them and cache their results appropriately (a common mistake is to make some configuration decisions during the test, which may be skipped if the result of caching this test).

If you want to share the cache between several projects, you can configure it in config.site .

+7
source share

I'm thinking of setting up parallel , which does checks in parallel, making the best use of multicore hosts. Probably autoconf should generate a bash script that can be vectorized / piped to make this possible.

+3
source share

All Articles