mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-16 21:34:26 +03:00
build: do not accept --enable-libmagic when not having color support
When nano does not support any syntaxes, libmagic is irrelevant. This fixes https://savannah.gnu.org/bugs/?59070.
This commit is contained in:
parent
22fc10911a
commit
235f92ce09
10
configure.ac
10
configure.ac
@ -202,6 +202,16 @@ fi
|
||||
|
||||
AC_ARG_ENABLE(libmagic,
|
||||
AS_HELP_STRING([--disable-libmagic], [Disable detection of file types via libmagic]))
|
||||
if test "x$enable_libmagic" = xyes; then
|
||||
if test "x$enable_tiny" = xyes; then
|
||||
if test "x$enable_color" != xyes; then
|
||||
AC_MSG_ERROR([--enable-libmagic needs --enable-color and --enable-nanorc to work])
|
||||
fi
|
||||
fi
|
||||
if test "x$enable_color" = xno; then
|
||||
AC_MSG_ERROR([--enable-libmagic cannot work with --disable-color nor --disable-nanorc])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(linenumbers,
|
||||
AS_HELP_STRING([--disable-linenumbers], [Disable line numbering]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user