Skip to content

[feature] Extend configure args for AutotoolsToolchain #18256

@uilianries

Description

@uilianries

What is your suggestion?

Hello!

The configuration tools.cmake.cmaketoolchain:extra_variables allows extending CMakeToolchain definitions without touching the conanfile.py. This option allows users to customize recipes without needing to open a PR and is equally beneficial to maintainers, as the recipe remains as simple as possible.

The same is not possible when the recipe uses autotools + configure to build a project; there is no mechanism to inject new configure_args without changing the Conan recipe.

It would be great if Conan could have a configuration dedicated to AutootoolsToolchain and Gnutoolchain that extends configure arguments as well. For instance:

tools.gnu:extra_configure_args: List with arguments to be passed to Autotools configure command

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions