Skip to content

Conversation

@emanuele6
Copy link
Contributor

@emanuele6 emanuele6 commented May 18, 2023

AC_ARG_ENABLE seems to only trim off whitespace from the start and end of its help-string argument, while prepending two spaces of indentation to all lines.

This means that the two spaces of indentation between the --enable-rtsp and the --disable-rtsp line were not removed causing ./configure --help to print:

Optional Features:
  [...]
  --enable-rtsp           Enable RTSP support
    --disable-rtsp          Disable RTSP support

I removed the indentation to fix the issue, now it prints:

Optional Features:
  [...]
  --enable-rtsp           Enable RTSP support
  --disable-rtsp          Disable RTSP support

@github-actions github-actions bot added the build label May 18, 2023
@emanuele6 emanuele6 force-pushed the confhelp branch 2 times, most recently from ce62b34 to ebe8296 Compare May 18, 2023 19:29
@bagder
Copy link
Member

bagder commented May 18, 2023

--disable-hsts seems to have the same problem, can you maybe address that one as well?

AC_ARG_ENABLE seems to only trim off whitespace from the start and end
of its help-string argument, while prepending two spaces of indentation
to all lines.

This means that the two spaces of indentation between the --enable-rtsp
and the --disable-rtsp line were not removed causing ./configure --help
to print:

  Optional Features:
    [...]
    --enable-rtsp           Enable RTSP support
      --disable-rtsp          Disable RTSP support

I removed the indentation to fix the issue, now it prints:

  Optional Features:
    [...]
    --enable-rtsp           Enable RTSP support
    --disable-rtsp          Disable RTSP support

The --enable-hsts and --disable-hsts lines had the same problems, and
have been fixed too.
@bagder
Copy link
Member

bagder commented May 18, 2023

Thanks!

@bagder bagder closed this in 81f3c4b May 18, 2023
@emanuele6 emanuele6 deleted the confhelp branch May 18, 2023 21:50
bch pushed a commit to bch/curl that referenced this pull request Jul 19, 2023
AC_ARG_ENABLE seems to only trim off whitespace from the start and end
of its help-string argument, while prepending two spaces of indentation
to all lines.

This means that the two spaces of indentation between the --enable-rtsp
and the --disable-rtsp line were not removed causing ./configure --help
to print:

  Optional Features:
    [...]
    --enable-rtsp           Enable RTSP support
      --disable-rtsp          Disable RTSP support

I removed the indentation to fix the issue, now it prints:

  Optional Features:
    [...]
    --enable-rtsp           Enable RTSP support
    --disable-rtsp          Disable RTSP support

The --enable-hsts and --disable-hsts lines had the same problems, and
have been fixed too.

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

Labels

Development

Successfully merging this pull request may close these issues.

2 participants