RFC: Deprecate the Autotools-based build system #2012

issue hebasto opened this issue on November 27, 2026
  1. hebasto commented at 4:15 PM on November 27, 2026: member

    CMake support was introduced as experimental in #1113 (v0.3.0) and promoted to a standard build procedure in #1680 (v0.7.0). Since then, every build system change has had to be implemented, reviewed and tested twice.

    That cost keeps coming up in review. From #2008 (comment):

    We'd need to test both Autotools and CMake. (This sound a bit like a good reason to start thinking about a deprecation of Autotools?!)

    And from #1332#pullrequestreview-6060234395:

    What's your opinion on dropping Autotools? I tend to say I'd like to get rid of it, but it's hard to know what ours users actually need.

    Also from #1332#pullrequestreview-6060234395:

    These old Autotools test programs violate modern best practices heavily...

    This issue is meant to answer that open question before any PR is opened.

    Proposal

    1. Announce the deprecation in the changelog and print a notice at the end of ./configure.
    2. Remove the Autotools-based build system once the items in the lists below are resolved.

    Autotools features and workflows not yet supported by CMake

    • Regenerating the precomputed tables (make clean-precomp && make precomp). Being addressed in #1791.
    • Regenerating the test vectors (make clean-testvectors && make testvectors).
    • Shared library versioning on exotic platforms. cmake/SetLibtoolAbiVersion.cmake handles Linux, FreeBSD, NetBSD, OpenBSD, macOS and Windows. Elsewhere, CMake produces an unversioned libsecp256k1.so.
    • The -dev version suffix for non-release builds (_PKG_VERSION_IS_RELEASE). CMake reports 0.8.1 where Autotools reports 0.8.1-dev.
    • make uninstall.
    • make dist and make distcheck.

    Note: Downstream projects that find libsecp256k1 via pkg-config are not affected. The CMake build installs libsecp256k1.pc as well, generated from the same libsecp256k1.pc.in template.

    Other prerequisites

    • Port CI to CMake. ci/ci.sh drives all Linux, macOS and MinGW jobs through Autotools. CMake is exercised only in the MSVC and clang-cl jobs and in an install check.
    • Update the documentation that mentions ./configure flags (README.md, CONTRIBUTING.md, doc/release-process.md).

    Is anything missing from these lists?

  2. fanquake commented at 4:54 PM on November 27, 2026: member

    Downstream projects that find libsecp256k1 via pkg-config are not affected Is anything missing from these lists?

    A good starting point might be to go to all the downstream packagers and either port them to CMake, or figure out the additional blockers. Currently the vast majority of secp256k packaging is done via Autotools. Here's a rough (not fully vetted) list:

    Autotools:

    • Debian (also used by Ubuntu, Kali, deepin, PureOS, Raspbian, Devuan, Parrot)
    • Arch (also used by Artix, Manjaro, Parabola), AUR -git
    • Fedora
    • openSUSE
    • Alpine
    • Void
    • Homebrew
    • nixpkgs
    • Guix
    • FreeBSD
    • pkgsrc
    • SlackBuilds
    • Termux
    • HaikuPorts
    • YACP (Cygwin)

    CMake:

    • Gentoo (also used by LiGurOS). It still uses make to build precompute_ecmult{,_gen}, because table generation isn't in CMake.
    • vcpkg
    • conda-forge
    • meta-satobox (third-party Yocto layer)

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-12-02 10:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me