Cleanup: configure.ac: remove redundant `AC_ARG_ENABLE` parameters
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 27 Feb 2020 21:51:38 +0000 (16:51 -0500)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Sat, 29 Feb 2020 23:30:48 +0000 (18:30 -0500)
commit0f3224e9b4b9de7ccdca674038b6ed0f50cbe5b9
treec0d2f231057cebc43b3e8080d0f61d6fd3940c37
parentf75e50ab847437b72502d27484aeb38cbcd3c793
Cleanup: configure.ac: remove redundant `AC_ARG_ENABLE` parameters

According to the documentation [1], the last parameter of the
`AC_ARG_ENABLE()` macro (`action-if-not-given`) is executed only if
neither `--enable-foo` nor `--disable-foo` is provided.

So in cases where the feature is disabled by default, there is no need
to turn if off explicitly in the `action-if-not-given` parameter as
the macro will simply not set the `enable_foo` to `yes`.

Also, I fixed up the comment for the `enable_man_pages` variable.

[1] https://www.gnu.org/software/autoconf/manual/autoconf-2.66/html_node/Package-Options.html

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I7416bed88ed1e719ef896f0ca0117b382d99f68f
Reviewed-on: https://review.lttng.org/c/babeltrace/+/3151
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Michael Jeanson <mjeanson@efficios.com>
configure.ac
This page took 0.024918 seconds and 4 git commands to generate.