commit 093d500e150ae1d516728634cf06b25e957a3a4a
parent 93bef536f76c8fbd0b965c48969909599f0ca35e
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Fri, 2 Sep 2005 19:09:36 +0000
if we don't have regex.h and hence regex support, disable color support,
as it depends on the use of regexes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3011 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -265,6 +265,8 @@ CVS code -
as every source file needs them. (DLR)
- Rename the updown enum scroll_dir and the centernone enum
update_type for clarity, and add an append_type enum. (DLR)
+ - If we don't have regex.h and hence regex support, disable
+ color support, as it depends on the use of regexes. (DLR)
- rcfile.c:
nregcomp()
- Return TRUE when the compilation succeeds and FALSE otherwise,
diff --git a/src/nano.h b/src/nano.h
@@ -135,6 +135,12 @@
#define VERMSG "GNU nano " VERSION
+/* If we don't have regex support, turn the color support off, as it
+ * depends on the use of regexes. */
+#ifndef HAVE_REGEX_H
+#undef ENABLE_COLOR
+#endif
+
/* If we aren't using ncurses, turn the mouse support off, as it's
* ncurses-specific. */
#ifndef NCURSES_MOUSE_VERSION