mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 04:22:34 +03:00
Ticket #3029: configure.ac: warning about unknown '--with-' / '--enable-' options.
As we use 'AC_CONFIG_SUBDIRS' macro for samba sources option checking is disabled for us. Before the patch: $ ./configure --with-i-have-misspelled-editor-for-edit ... # no warnings The patch enables warnings back only for top-level ./configure: $ ./configure --with-i-have-misspelled-editor-for-edit ... configure: WARNING: unrecognized options: --with-i-have-misspelled-editor-for-edit Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
parent
cbb44f4d75
commit
d362fc964e
@ -655,3 +655,12 @@ Configuration:
|
||||
Support for charset: ${charset_msg}
|
||||
Search type: ${SEARCH_TYPE}
|
||||
])
|
||||
|
||||
dnl option checking is disable by default due to AC_CONFIG_SUBDIRS
|
||||
dnl we enable it back for top-level ./configure
|
||||
if test -n "$ac_unrecognized_opts"; then
|
||||
case $enable_option_checking in
|
||||
fatal) AC_MSG_ERROR([unrecognized options: $ac_unrecognized_opts]) ;;
|
||||
*) AC_MSG_WARN( [unrecognized options: $ac_unrecognized_opts]) ;;
|
||||
esac
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user