GNU AutoTools makes 479 HAVE_xyz feature test macros in config.h for GNU Core Ut...

@JdeBP@mastodonapp.uk

GNU AutoTools makes 479 HAVE_xyz feature test macros in config.h for GNU Core Utilities 9.11. These are usually generated by compiling little internal test programs and checking the results.

428 of them are never used in the actual #coreutils program code.

The unused ones encompass such useless information as HAVE_IOCTL, HAVE_UNISTD_H, HAVE_STDLIB_H, HAVE_SETENV, HAVE_STDIO_H, and HAVE_FORK.

It takes over 2 minutes just to run ./configure on one of my machines. For comparison, it then takes just over 1 minute to proceed to build the whole of actual coreutils from distclean.

#autotools is 2/3 of the build time for stuff 8/11 of which is unused anyway.

#GNU