Repository navigation
Fail noisily if an unknown --enable or --disable flag is passed to configure - #5395
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Makes top-level configuration fail on misspelled or unknown feature flags while preserving permissive recursive configuration.
Changes:
- Sets Autoconf option checking to
fatal. - Documents why recursive sub-configures remain unaffected.
dmkozh
approved these changes
Jul 29, 2026
dmkozh
left a comment
Contributor
There was a problem hiding this comment.
That's very much appreciated, thanks!
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 27, 2026
pull Bot
pushed a commit
to DIGIIX-Ltd/stellar-core
that referenced
this pull request
Sep 21, 2026
…configure (stellar#5462) In PR stellar#5395 I modified `configure` to notice and complain if you pass an unknown `--enable-foo` command. Unfortunately this revealed a quirk in the way our configure.ac was already working that was previously being ignored, that breaks the build: configure modified its own `ac_configure_args` when invoking gperftools sub-configure (recursively) to contain flags known to gperftools configure, but not the outer configure. This modified `ac_configure_args` then got written into the config.status file that re-runs configure automatically when autotools files change, re-invoking the top-level configure with the arguments for gperftools configure. Before stellar#5395 that was fine, they were silently ignored. But after they cause the self-auto-reconfiguration steps of already-configured builds to break. The symptom is that you type `make` in an already-configured build, and you get a complaint about some unknown weird `--enable-foo` commands you never even passed to configure. Not great! The "fix" for this (if you can stand to call it that) is to only update `ac_configure_args` _after_ config.status has been emitted, but before we start launching recursive sub-configures. Disgusting. I feel ashamed even posting this, but here we are.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If, like me, you regularly mis-spell a configure --enable-foo or --disable-foo flag and it gets silently ignored, you might enjoy this PR: it enables a thing in autoconf that catches and complains about such misspellings rather than silently ignoring them!
(Apparently this is normally the default until you have sub-configures like we have, in which case it switches. But you can switch it back. Thanks robot for discovering this!)
Fixes #2635