nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 235f92ce093099cd81f14827ab842bd331132790
parent 22fc10911a8d5222cae00436d7661e78aaa961c2
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 16 Sep 2020 12:03:11 +0200

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.

Diffstat:
Mconfigure.ac | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/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]))