From d957f5903e3b1ad0bd68bfde5404460403fc4d08 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Fri, 17 Jan 2003 00:17:45 +0000 Subject: [PATCH] configure.ac: - Added --enable-all option to compile in all the extra stuff we'd normally need extra flags for git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1367 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 2 ++ configure.ac | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/ChangeLog b/ChangeLog index dfa0cf28..5bb1471e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -73,6 +73,8 @@ Changes - Small cleanups. Add copyright header, add autopoint support and define bug report address and full package name in AC_INIT. Move ALL_LINGUAS to po/LINGUAS, recommended place for gettext 0.11. + - Added --enable-all option to compile in all the extra stuff + we'd normally need extra flags for. - color.c: update_color(): - Remove an unneeded edit_refresh() call after do_colorinit(). diff --git a/configure.ac b/configure.ac index a40535fc..a0194113 100644 --- a/configure.ac +++ b/configure.ac @@ -125,6 +125,7 @@ AC_ARG_ENABLE(wrapping-as-root, AC_DEFINE(DISABLE_ROOTWRAP, 1, [Define this to disable wrapping as root by default.]) fi]) + AC_ARG_ENABLE(color, [ --enable-color Enable color and syntax highlighting], [if test x$enableval = xyes; then @@ -151,6 +152,22 @@ AC_ARG_ENABLE(nanorc, AC_DEFINE(ENABLE_NANORC, 1, [Define this to use the .nanorc file.]) nanorc_support=yes fi]) +AC_ARG_ENABLE(all, +[ --enable-all Enable ALL extra nano functionality (kitchen sink option)], +[if test x$enableval = xyes; then + AC_DEFINE(ENABLE_NANORC, 1, [Define this to use the .nanorc file.]) nanorc_support=yes + AC_DEFINE(ENABLE_COLOR, 1, [Define this to have syntax highlighting, requires ENABLE_NANORC too!]) color_support=yes + AC_DEFINE(ENABLE_MULTIBUFFER, 1, [Define this to enable multiple file buffers.]) multibuffer_support=yes + AC_DEFINE(NANO_EXTRA, 1, [Define this to enable the extra stuff.]) extra_support=yes + AC_MSG_WARN([ + +*********************************************************************** +*** WARNING: Color support is far from perfect, but functional. *** +*** Be careful with syntax in your .nanorc or nano may malfunction. *** +*********************************************************************** +]) +fi]) + AC_MSG_CHECKING([whether to use slang]) CURSES_LIB_NAME="" AC_ARG_WITH(slang,