]> git.wh0rd.org Git - nano.git/commitdiff
Making --disable-nanorc with --enable-color barf. Patch by Mike Frysinger.
authorBenno Schulenberg <bensberg@justemail.net>
Thu, 27 Mar 2014 10:15:43 +0000 (10:15 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Thu, 27 Mar 2014 10:15:43 +0000 (10:15 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4688 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
configure.ac

index a025073f371e41888781cfa0ae24e3be7f36ec32..bb4fbd10ca97f6b9bd7d000606b1e27edd889e7a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2014-03-27  Mike Frysinger  <vapier@gentoo.org>.
+       * configure.ac - Make --disable-nanorc with --enable-color barf.
+
 2014-03-26  Benno Schulenberg  <bensberg@justemail.net>
        * configure.ac - Word, tab, and comment tweaks.
        * src/global.c - Some comment tweaks, and whitespace trimmings.
index c692de3d5de922f59a67ac39abb1cc0a5163062f..c3d7f07e6b5c409bb1c1e3fc2564772a2317b582 100644 (file)
@@ -146,10 +146,16 @@ fi
 
 AC_ARG_ENABLE(color,
 AS_HELP_STRING([--disable-color], [Disable color and syntax highlighting]))
+if test "x$enable_nanorc" = xno; then
+    if test "x$enable_color" = xyes; then
+       AC_MSG_ERROR([--enable-color cannot work with --disable-nanorc])
+    else
+       enable_color=no
+    fi
+fi
 if test "x$enable_color" != xno; then
     if test x$ac_cv_header_regex_h = xyes; then
-       AC_DEFINE(ENABLE_NANORC, 1, [Define this to use .nanorc files.])
-       nanorc_support=yes
+       enable_nanorc=yes
        AC_DEFINE(ENABLE_COLOR, 1, [Define this to have syntax highlighting, requires regex.h and ENABLE_NANORC too!])
        color_support=yes
     elif test "x$enable_color" = xyes; then