Skip to content

configure.ac: clarify --enable/--disable usage#566

Open
dilyanpalauzov wants to merge 1 commit intocyrusimap:masterfrom
dilyanpalauzov:configure_ac_fixes
Open

configure.ac: clarify --enable/--disable usage#566
dilyanpalauzov wants to merge 1 commit intocyrusimap:masterfrom
dilyanpalauzov:configure_ac_fixes

Conversation

@dilyanpalauzov
Copy link

If a feature is enabled by default ./configure --help should print '--disable-feature' and the called concludes from this output that the feature is enabled by default, even if the text after '--disable-feature' doesn't state this explicitly.

Likewise, if a feature is disabled by default ./configure --help should print '--enable-feature' without stating, that the default is no.

  • switch all calls of AC_ARG_ENABLE to use AC_HELP_STRING
  • siwth DIGEST from AC_ARG_ENABLE to AC_ARG_WITH, because it accepts a parameter, which is unusual for AC_ARG_WITH
  • exploit the fact that AC_ARG_ENABLE(x, text,,) sets $enable_x, when --enable-x is called, so don't set the variable explicitly
  • reduce the calls of AC_ARG_RESULT
  • make ./configure --disable-macos-framework do the right thing
  • Remove unnecessary quoting, like "yes" → yes.

If a feature is enabled by default `./configure --help` should
print '--disable-feature' and the called concludes from this output
that the feature is enabled by default, even if the text after
'--disable-feature' doesn't state this explicitly.

Likewise, if a feature is disabled by default `./configure --help`
should print '--enable-feature' without stating, that the default
is no.

-- switch all calls of AC_ARG_ENABLE to use AC_HELP_STRING
-- siwth DIGEST from AC_ARG_ENABLE to AC_ARG_WITH, because it
   accepts a parameter, which is unusual for AC_ARG_WITH

-- exploit the fact that AC_ARG_ENABLE(x, text,,) sets $enable_x, when
   --enable-x is called, so don't set the variable explicitly
-- reduce the calls of AC_ARG_RESULT
-- make ./configure --disable-macos-framework do the right thing
-- Remove unnecessary quoting, like "yes" → yes.
@quanah
Copy link
Contributor

quanah commented May 5, 2021

Please update your commit(s) to be signed off on in accordance with our DCO. Thanks!

It also needs to be updated since it now has conflicts.

@quanah quanah added the reviewed reviewed in triage label Oct 5, 2021
@quanah
Copy link
Contributor

quanah commented Oct 5, 2021

Requires DCO sign off still to be considered
Requires rebasing to work with current master

@Neustradamus
Copy link
Contributor

@dilyanpalauzov: Have you progressed on your PR?
Have you seen @quanah comments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed reviewed in triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants