Commit 83c3f951 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

make --enable-tiny disable the new enabled-by-default options as that's...

make --enable-tiny disable the new enabled-by-default options as that's presumably the expected behavior



git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4331 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 025548ad
Showing with 25 additions and 15 deletions
+25 -15
2008-09-30 Chris Allegretta <chrisa@asty.org> 2008-09-30 Chris Allegretta <chrisa@asty.org>
* configure.ac: Change extra, multibuffer, color and rcfile to default to enabled * configure.ac: Change extra, multibuffer, color and rcfile configure options to default to enabled
--enable-tiny will now disable these options as well
* python.nanorc, ruby.nanorc: Add header lines for python and ruby as well * python.nanorc, ruby.nanorc: Add header lines for python and ruby as well
2008-09-21 Chris Allegretta <chrisa@asty.org> 2008-09-21 Chris Allegretta <chrisa@asty.org>
* rcfile.c, color.c, nano.h: Add new capability for matching a syntax type by the "header" (1st line) * rcfile.c, color.c, nano.h: Add new capability for matching a syntax type by the "header" (1st line)
......
...@@ -64,13 +64,6 @@ if test x$debug_support != xyes; then ...@@ -64,13 +64,6 @@ if test x$debug_support != xyes; then
AC_DEFINE(NDEBUG, 1, [Shut up assert warnings :-)]) AC_DEFINE(NDEBUG, 1, [Shut up assert warnings :-)])
fi fi
AC_ARG_ENABLE(extra,
[ --disable-extra Disable extra features, currently only easter eggs],
[if test x$enableval != xno; then
AC_DEFINE(NANO_EXTRA, 1, [Define this to enable extra stuff.]) extra_support=yes
fi],
[AC_DEFINE(NANO_EXTRA, 1, [Define this to enable extra stuff.]) extra_support=yes])
AC_ARG_ENABLE(tiny, AC_ARG_ENABLE(tiny,
[ --enable-tiny Disable features for the sake of size], [ --enable-tiny Disable features for the sake of size],
[if test x$enableval = xyes; then [if test x$enableval = xyes; then
...@@ -85,6 +78,16 @@ AC_ARG_ENABLE(tiny, ...@@ -85,6 +78,16 @@ AC_ARG_ENABLE(tiny,
AC_DEFINE(DISABLE_WRAPPING, 1, [Define this to disable all text wrapping.]) AC_DEFINE(DISABLE_WRAPPING, 1, [Define this to disable all text wrapping.])
fi]) fi])
AC_ARG_ENABLE(extra,
[ --disable-extra Disable extra features, currently only easter eggs],
[if test x$enableval != xno; then
AC_DEFINE(NANO_EXTRA, 1, [Define this to enable extra stuff.]) extra_support=yes
fi],
[if test x$enable_tiny != xyes; then
AC_DEFINE(NANO_EXTRA, 1, [Define this to enable extra stuff.]) extra_support=yes
fi])
AC_ARG_ENABLE(browser, AC_ARG_ENABLE(browser,
[ --disable-browser Disable built-in file browser], [ --disable-browser Disable built-in file browser],
[if test x$enableval != xyes; then [if test x$enableval != xyes; then
...@@ -153,6 +156,7 @@ AC_ARG_ENABLE(color, ...@@ -153,6 +156,7 @@ AC_ARG_ENABLE(color,
*** script with --disable-color.]) *** script with --disable-color.])
fi fi
fi], [ fi], [
if test x$enable_tiny != xyes; then
if test x$ac_cv_header_regex_h = xyes; 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 AC_DEFINE(ENABLE_NANORC, 1, [Define this to use .nanorc files.]) nanorc_support=yes
AC_DEFINE(ENABLE_COLOR, 1, [Define this to have syntax highlighting, requires regex.h and ENABLE_NANORC too!]) color_support=yes AC_DEFINE(ENABLE_COLOR, 1, [Define this to have syntax highlighting, requires regex.h and ENABLE_NANORC too!]) color_support=yes
...@@ -163,6 +167,7 @@ fi], [ ...@@ -163,6 +167,7 @@ fi], [
*** libraries that include the regex.h file or call the configure *** libraries that include the regex.h file or call the configure
*** script with --disable-color.]) *** script with --disable-color.])
fi fi
fi
]) ])
AC_ARG_ENABLE(multibuffer, AC_ARG_ENABLE(multibuffer,
...@@ -170,14 +175,18 @@ AC_ARG_ENABLE(multibuffer, ...@@ -170,14 +175,18 @@ AC_ARG_ENABLE(multibuffer,
[if test x$enableval != xno; then [if test x$enableval != xno; then
AC_DEFINE(ENABLE_MULTIBUFFER, 1, [Define this to enable multiple file buffers.]) multibuffer_support=yes AC_DEFINE(ENABLE_MULTIBUFFER, 1, [Define this to enable multiple file buffers.]) multibuffer_support=yes
fi], fi],
[AC_DEFINE(ENABLE_MULTIBUFFER, 1, [Define this to enable multiple file buffers.]) multibuffer_support=yes]) [if test x$enable_tiny != xyes; then
AC_DEFINE(ENABLE_MULTIBUFFER, 1, [Define this to enable multiple file buffers.]) multibuffer_support=yes
fi])
AC_ARG_ENABLE(nanorc, AC_ARG_ENABLE(nanorc,
[ --disable-nanorc Disable use of .nanorc files], [ --disable-nanorc Disable use of .nanorc files],
[if test x$enableval != xno; then [if test x$enableval != xno; then
AC_DEFINE(ENABLE_NANORC, 1, [Define this to use .nanorc files.]) nanorc_support=yes AC_DEFINE(ENABLE_NANORC, 1, [Define this to use .nanorc files.]) nanorc_support=yes
fi], fi],
[AC_DEFINE(ENABLE_NANORC, 1, [Define this to use .nanorc files.]) nanorc_support=yes]) [if test x$enable_tiny != xyes; then
AC_DEFINE(ENABLE_NANORC, 1, [Define this to use .nanorc files.]) nanorc_support=yes
fi])
AC_ARG_ENABLE(all, AC_ARG_ENABLE(all,
[ --enable-all Enable ALL extra nano functionality (ignored for compatibility as all options default to on)], [ --enable-all Enable ALL extra nano functionality (ignored for compatibility as all options default to on)],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment