RFR: 8344318: Enhance configure help for enabling/disabling single JVM features
Kim Barrett
kbarrett at openjdk.org
Tue Nov 19 19:12:55 UTC 2024
On Tue, 19 Nov 2024 17:35:55 GMT, Erik Joelsson <erikj at openjdk.org> wrote:
>> The current help of OpenJDK configure could be enhanced a bit regarding enabling/disabling JVM features.
>
> make/autoconf/help.m4 line 243:
>
>> 241: # Print available JVM features
>> 242: $PRINTF "The following JVM features are valid as arguments to --with-jvm-features.\n"
>> 243: $PRINTF "The flag --enable-jvm-feature-<name>=no can be used to disable a single JVM feature.\n"
>
> The canonical way to disable a feature in an autoconf script is `--disable-<foo>`, which is equivalent to `--enable-<foo>=no`. I also note that running `bash configure --help` already lists all the `--enable-jvm-feature-<foo>` options, so I'm unsure of the need for this additional documentation.
Even a relatively experienced developer might not know that much about configure. I think just having the
help text says something about using `--disable-<foo>` would be helpful.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22231#discussion_r1848915073
More information about the build-dev
mailing list