Skip to content

Commit c1eece0

Browse files
committed
Fail noisily if an unknown --enable or --disable flag is passed to configure
1 parent 763a369 commit c1eece0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

configure.ac

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,11 @@ AM_CONDITIONAL(USE_TCMALLOC, [test -n "$have_tcmalloc"])
495495
AC_SUBST(libtcmalloc_CFLAGS)
496496
AC_SUBST(libtcmalloc_LIBS)
497497

498+
# AC_CONFIG_SUBDIRS disables option checking so options can be forwarded to
499+
# recursive configures. Re-enable it for the top-level configure by default;
500+
# generated recursion still passes --disable-option-checking to sub-configures.
501+
m4_divert_text([DEFAULTS], [enable_option_checking=fatal])
502+
498503
AC_ARG_ENABLE(tests,
499504
AS_HELP_STRING([--disable-tests],
500505
[Disable building test suite]))

0 commit comments

Comments
 (0)