]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45723: Add helper macros and more caching to configure.ac (GH-29429)
authorChristian Heimes <christian@python.org>
Mon, 8 Nov 2021 07:06:31 +0000 (09:06 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Nov 2021 07:06:31 +0000 (08:06 +0100)
commit57c50c9c7c701a8301c5a89b2b2d050550f62022
tree7b4592e8df1d9362aad4167e779281f460488bae
parent19b107e9b52dbd73f4c52adcb91e8185a53b45ae
bpo-45723: Add helper macros and more caching to configure.ac (GH-29429)

Almost all checks are now cached by AC_CACHE_CHECK().

Common patterns are replaced by helper macros.

Variable names now use naming scheme ``ac_cv_func_$funcname``,
``ac_cv_lib_$library_$funcname``, or ``ac_cv_header_$headername_h``.

``SYS_SELECT_WITH_SYS_TIME`` is no longer used.

``uuid_create`` and ``uuid_enc_be`` are provided by libc on BSD. It is
safe to use ``AC_CHECK_FUNCS`` here.

Caching speeds up ./configure -C from ~ 4s to 2.6s on my system.

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Misc/NEWS.d/next/Build/2021-11-05-15-09-49.bpo-45723.gfSxur.rst [new file with mode: 0644]
configure
configure.ac
pyconfig.h.in