From 8b74abeb02c01ddc768c465a826360cf33cec063 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Mon, 22 Nov 2010 11:34:29 +0000 Subject: Imported from /home/lorry/working-area/delta_nano-tarball/nano-2.2.6.tar.gz. --- ABOUT-NLS | 435 ++ AUTHORS | 43 + BUGS | 161 + COPYING | 676 +++ COPYING.DOC | 397 ++ ChangeLog | 1046 +++++ ChangeLog.pre-2.1 | 8369 +++++++++++++++++++++++++++++++++++++ INSTALL | 365 ++ Makefile.am | 11 + Makefile.in | 729 ++++ NEWS | 1318 ++++++ README | 72 + README.SVN | 87 + THANKS | 62 + TODO | 99 + UPGRADE | 111 + aclocal.m4 | 960 +++++ config.guess | 1501 +++++++ config.h.in | 282 ++ config.rpath | 513 +++ config.sub | 1705 ++++++++ configure | 9911 ++++++++++++++++++++++++++++++++++++++++++++ configure.ac | 616 +++ depcomp | 630 +++ doc/Makefile.am | 7 + doc/Makefile.in | 562 +++ doc/faq.html | 331 ++ doc/man/Makefile.am | 35 + doc/man/Makefile.in | 725 ++++ doc/man/fr/Makefile.am | 33 + doc/man/fr/Makefile.in | 521 +++ doc/man/fr/nano.1 | 326 ++ doc/man/fr/nano.1.html | 560 +++ doc/man/fr/nanorc.5 | 376 ++ doc/man/fr/nanorc.5.html | 590 +++ doc/man/fr/rnano.1 | 154 + doc/man/fr/rnano.1.html | 278 ++ doc/man/nano.1 | 262 ++ doc/man/nano.1.html | 468 +++ doc/man/nanorc.5 | 567 +++ doc/man/nanorc.5.html | 959 +++++ doc/man/rnano.1 | 98 + doc/man/rnano.1.html | 219 + doc/nanorc.sample.in | 312 ++ doc/syntax/Makefile.am | 30 + doc/syntax/Makefile.in | 432 ++ doc/syntax/asm.nanorc | 17 + doc/syntax/awk.nanorc | 38 + doc/syntax/c.nanorc | 30 + doc/syntax/cmake.nanorc | 19 + doc/syntax/css.nanorc | 9 + doc/syntax/debian.nanorc | 20 + doc/syntax/fortran.nanorc | 41 + doc/syntax/gentoo.nanorc | 55 + doc/syntax/groff.nanorc | 24 + doc/syntax/html.nanorc | 5 + doc/syntax/java.nanorc | 12 + doc/syntax/makefile.nanorc | 8 + doc/syntax/man.nanorc | 9 + doc/syntax/mgp.nanorc | 8 + doc/syntax/mutt.nanorc | 4 + doc/syntax/nanorc.nanorc | 16 + doc/syntax/objc.nanorc | 41 + doc/syntax/ocaml.nanorc | 27 + doc/syntax/patch.nanorc | 10 + doc/syntax/perl.nanorc | 12 + doc/syntax/php.nanorc | 30 + doc/syntax/pov.nanorc | 15 + doc/syntax/python.nanorc | 10 + doc/syntax/ruby.nanorc | 31 + doc/syntax/sh.nanorc | 14 + doc/syntax/tcl.nanorc | 16 + doc/syntax/tex.nanorc | 6 + doc/syntax/xml.nanorc | 9 + doc/texinfo/Makefile.am | 10 + doc/texinfo/Makefile.in | 632 +++ doc/texinfo/nano.html | 867 ++++ doc/texinfo/nano.info | 884 ++++ doc/texinfo/nano.texi | 885 ++++ doc/texinfo/texinfo.tex | 9291 +++++++++++++++++++++++++++++++++++++++++ install-sh | 520 +++ m4/ChangeLog | 29 + m4/Makefile.am | 5 + m4/Makefile.in | 360 ++ m4/ac_define_dir.m4 | 34 + m4/codeset.m4 | 23 + m4/gettext.m4 | 587 +++ m4/glib-2.0.m4 | 215 + m4/glibc21.m4 | 32 + m4/iconv.m4 | 103 + m4/intdiv0.m4 | 72 + m4/inttypes-pri.m4 | 32 + m4/inttypes.m4 | 27 + m4/inttypes_h.m4 | 28 + m4/isc-posix.m4 | 26 + m4/lcmessage.m4 | 32 + m4/lib-ld.m4 | 97 + m4/lib-link.m4 | 554 +++ m4/lib-prefix.m4 | 148 + m4/progtest.m4 | 59 + m4/stdint_h.m4 | 28 + m4/uintmax_t.m4 | 29 + m4/ulonglong.m4 | 23 + missing | 376 ++ mkinstalldirs | 162 + nano.spec | 39 + nano.spec.in | 39 + po/ChangeLog | 976 +++++ po/LINGUAS | 2 + po/Makefile.in.in | 317 ++ po/Makevars | 25 + po/POTFILES.in | 14 + po/Rules-quot | 42 + po/bg.gmo | Bin 0 -> 44632 bytes po/bg.po | 2186 ++++++++++ po/boldquot.sed | 10 + po/ca.gmo | Bin 0 -> 42795 bytes po/ca.po | 2509 +++++++++++ po/cs.gmo | Bin 0 -> 45169 bytes po/cs.po | 2114 ++++++++++ po/da.gmo | Bin 0 -> 40869 bytes po/da.po | 2497 +++++++++++ po/de.gmo | Bin 0 -> 43502 bytes po/de.po | 2473 +++++++++++ po/en@boldquot.header | 25 + po/en@quot.header | 22 + po/es.gmo | Bin 0 -> 34857 bytes po/es.po | 2149 ++++++++++ po/eu.gmo | Bin 0 -> 30378 bytes po/eu.po | 2575 ++++++++++++ po/fi.gmo | Bin 0 -> 42295 bytes po/fi.po | 2614 ++++++++++++ po/fr.gmo | Bin 0 -> 44120 bytes po/fr.po | 3425 +++++++++++++++ po/ga.gmo | Bin 0 -> 40900 bytes po/ga.po | 2213 ++++++++++ po/gl.gmo | Bin 0 -> 39445 bytes po/gl.po | 2099 ++++++++++ po/hu.gmo | Bin 0 -> 43398 bytes po/hu.po | 2120 ++++++++++ po/id.gmo | Bin 0 -> 11978 bytes po/id.po | 2552 ++++++++++++ po/insert-header.sin | 23 + po/it.gmo | Bin 0 -> 41599 bytes po/it.po | 2163 ++++++++++ po/ms.gmo | Bin 0 -> 38121 bytes po/ms.po | 2075 ++++++++++ po/nano.pot | 1929 +++++++++ po/nb.gmo | Bin 0 -> 33080 bytes po/nb.po | 2175 ++++++++++ po/nl.gmo | Bin 0 -> 41816 bytes po/nl.po | 2099 ++++++++++ po/nn.gmo | Bin 0 -> 6374 bytes po/nn.po | 2520 +++++++++++ po/pl.gmo | Bin 0 -> 42406 bytes po/pl.po | 2108 ++++++++++ po/pt_BR.gmo | Bin 0 -> 42621 bytes po/pt_BR.po | 2113 ++++++++++ po/quot.sed | 6 + po/remove-potcdate.sin | 19 + po/ro.gmo | Bin 0 -> 21194 bytes po/ro.po | 2256 ++++++++++ po/ru.gmo | Bin 0 -> 55436 bytes po/ru.po | 2108 ++++++++++ po/rw.gmo | Bin 0 -> 1445 bytes po/rw.po | 2454 +++++++++++ po/sr.gmo | Bin 0 -> 15315 bytes po/sr.po | 2397 +++++++++++ po/sv.gmo | Bin 0 -> 33794 bytes po/sv.po | 2403 +++++++++++ po/tr.gmo | Bin 0 -> 12504 bytes po/tr.po | 2495 +++++++++++ po/uk.gmo | Bin 0 -> 12307 bytes po/uk.po | 2719 ++++++++++++ po/vi.gmo | Bin 0 -> 45491 bytes po/vi.po | 2080 ++++++++++ po/zh_CN.gmo | Bin 0 -> 38488 bytes po/zh_CN.po | 2039 +++++++++ po/zh_TW.gmo | Bin 0 -> 22504 bytes po/zh_TW.po | 2178 ++++++++++ src/Makefile.am | 30 + src/Makefile.in | 536 +++ src/browser.c | 1078 +++++ src/chars.c | 963 +++++ src/color.c | 360 ++ src/cut.c | 291 ++ src/files.c | 2782 +++++++++++++ src/global.c | 1800 ++++++++ src/help.c | 563 +++ src/move.c | 670 +++ src/nano.c | 2684 ++++++++++++ src/nano.h | 936 +++++ src/prompt.c | 1363 ++++++ src/proto.h | 835 ++++ src/rcfile.c | 1230 ++++++ src/search.c | 1489 +++++++ src/text.c | 3074 ++++++++++++++ src/utils.c | 674 +++ src/winio.c | 3587 ++++++++++++++++ 199 files changed, 152991 insertions(+) create mode 100644 ABOUT-NLS create mode 100644 AUTHORS create mode 100644 BUGS create mode 100644 COPYING create mode 100644 COPYING.DOC create mode 100644 ChangeLog create mode 100644 ChangeLog.pre-2.1 create mode 100644 INSTALL create mode 100644 Makefile.am create mode 100644 Makefile.in create mode 100644 NEWS create mode 100644 README create mode 100644 README.SVN create mode 100644 THANKS create mode 100644 TODO create mode 100644 UPGRADE create mode 100644 aclocal.m4 create mode 100755 config.guess create mode 100644 config.h.in create mode 100755 config.rpath create mode 100755 config.sub create mode 100755 configure create mode 100644 configure.ac create mode 100755 depcomp create mode 100644 doc/Makefile.am create mode 100644 doc/Makefile.in create mode 100644 doc/faq.html create mode 100644 doc/man/Makefile.am create mode 100644 doc/man/Makefile.in create mode 100644 doc/man/fr/Makefile.am create mode 100644 doc/man/fr/Makefile.in create mode 100644 doc/man/fr/nano.1 create mode 100644 doc/man/fr/nano.1.html create mode 100644 doc/man/fr/nanorc.5 create mode 100644 doc/man/fr/nanorc.5.html create mode 100644 doc/man/fr/rnano.1 create mode 100644 doc/man/fr/rnano.1.html create mode 100644 doc/man/nano.1 create mode 100644 doc/man/nano.1.html create mode 100644 doc/man/nanorc.5 create mode 100644 doc/man/nanorc.5.html create mode 100644 doc/man/rnano.1 create mode 100644 doc/man/rnano.1.html create mode 100644 doc/nanorc.sample.in create mode 100644 doc/syntax/Makefile.am create mode 100644 doc/syntax/Makefile.in create mode 100644 doc/syntax/asm.nanorc create mode 100644 doc/syntax/awk.nanorc create mode 100644 doc/syntax/c.nanorc create mode 100644 doc/syntax/cmake.nanorc create mode 100644 doc/syntax/css.nanorc create mode 100644 doc/syntax/debian.nanorc create mode 100644 doc/syntax/fortran.nanorc create mode 100644 doc/syntax/gentoo.nanorc create mode 100644 doc/syntax/groff.nanorc create mode 100644 doc/syntax/html.nanorc create mode 100644 doc/syntax/java.nanorc create mode 100644 doc/syntax/makefile.nanorc create mode 100644 doc/syntax/man.nanorc create mode 100644 doc/syntax/mgp.nanorc create mode 100644 doc/syntax/mutt.nanorc create mode 100644 doc/syntax/nanorc.nanorc create mode 100644 doc/syntax/objc.nanorc create mode 100644 doc/syntax/ocaml.nanorc create mode 100644 doc/syntax/patch.nanorc create mode 100644 doc/syntax/perl.nanorc create mode 100644 doc/syntax/php.nanorc create mode 100644 doc/syntax/pov.nanorc create mode 100644 doc/syntax/python.nanorc create mode 100644 doc/syntax/ruby.nanorc create mode 100644 doc/syntax/sh.nanorc create mode 100644 doc/syntax/tcl.nanorc create mode 100644 doc/syntax/tex.nanorc create mode 100644 doc/syntax/xml.nanorc create mode 100644 doc/texinfo/Makefile.am create mode 100644 doc/texinfo/Makefile.in create mode 100644 doc/texinfo/nano.html create mode 100644 doc/texinfo/nano.info create mode 100644 doc/texinfo/nano.texi create mode 100644 doc/texinfo/texinfo.tex create mode 100755 install-sh create mode 100644 m4/ChangeLog create mode 100644 m4/Makefile.am create mode 100644 m4/Makefile.in create mode 100644 m4/ac_define_dir.m4 create mode 100644 m4/codeset.m4 create mode 100644 m4/gettext.m4 create mode 100644 m4/glib-2.0.m4 create mode 100644 m4/glibc21.m4 create mode 100644 m4/iconv.m4 create mode 100644 m4/intdiv0.m4 create mode 100644 m4/inttypes-pri.m4 create mode 100644 m4/inttypes.m4 create mode 100644 m4/inttypes_h.m4 create mode 100644 m4/isc-posix.m4 create mode 100644 m4/lcmessage.m4 create mode 100644 m4/lib-ld.m4 create mode 100644 m4/lib-link.m4 create mode 100644 m4/lib-prefix.m4 create mode 100644 m4/progtest.m4 create mode 100644 m4/stdint_h.m4 create mode 100644 m4/uintmax_t.m4 create mode 100644 m4/ulonglong.m4 create mode 100755 missing create mode 100755 mkinstalldirs create mode 100644 nano.spec create mode 100644 nano.spec.in create mode 100644 po/ChangeLog create mode 100644 po/LINGUAS create mode 100644 po/Makefile.in.in create mode 100644 po/Makevars create mode 100644 po/POTFILES.in create mode 100644 po/Rules-quot create mode 100644 po/bg.gmo create mode 100644 po/bg.po create mode 100644 po/boldquot.sed create mode 100644 po/ca.gmo create mode 100644 po/ca.po create mode 100644 po/cs.gmo create mode 100644 po/cs.po create mode 100644 po/da.gmo create mode 100644 po/da.po create mode 100644 po/de.gmo create mode 100644 po/de.po create mode 100644 po/en@boldquot.header create mode 100644 po/en@quot.header create mode 100644 po/es.gmo create mode 100644 po/es.po create mode 100644 po/eu.gmo create mode 100644 po/eu.po create mode 100644 po/fi.gmo create mode 100644 po/fi.po create mode 100644 po/fr.gmo create mode 100644 po/fr.po create mode 100644 po/ga.gmo create mode 100644 po/ga.po create mode 100644 po/gl.gmo create mode 100644 po/gl.po create mode 100644 po/hu.gmo create mode 100644 po/hu.po create mode 100644 po/id.gmo create mode 100644 po/id.po create mode 100644 po/insert-header.sin create mode 100644 po/it.gmo create mode 100644 po/it.po create mode 100644 po/ms.gmo create mode 100644 po/ms.po create mode 100644 po/nano.pot create mode 100644 po/nb.gmo create mode 100644 po/nb.po create mode 100644 po/nl.gmo create mode 100644 po/nl.po create mode 100644 po/nn.gmo create mode 100644 po/nn.po create mode 100644 po/pl.gmo create mode 100644 po/pl.po create mode 100644 po/pt_BR.gmo create mode 100644 po/pt_BR.po create mode 100644 po/quot.sed create mode 100644 po/remove-potcdate.sin create mode 100644 po/ro.gmo create mode 100644 po/ro.po create mode 100644 po/ru.gmo create mode 100644 po/ru.po create mode 100644 po/rw.gmo create mode 100644 po/rw.po create mode 100644 po/sr.gmo create mode 100644 po/sr.po create mode 100644 po/sv.gmo create mode 100644 po/sv.po create mode 100644 po/tr.gmo create mode 100644 po/tr.po create mode 100644 po/uk.gmo create mode 100644 po/uk.po create mode 100644 po/vi.gmo create mode 100644 po/vi.po create mode 100644 po/zh_CN.gmo create mode 100644 po/zh_CN.po create mode 100644 po/zh_TW.gmo create mode 100644 po/zh_TW.po create mode 100644 src/Makefile.am create mode 100644 src/Makefile.in create mode 100644 src/browser.c create mode 100644 src/chars.c create mode 100644 src/color.c create mode 100644 src/cut.c create mode 100644 src/files.c create mode 100644 src/global.c create mode 100644 src/help.c create mode 100644 src/move.c create mode 100644 src/nano.c create mode 100644 src/nano.h create mode 100644 src/prompt.c create mode 100644 src/proto.h create mode 100644 src/rcfile.c create mode 100644 src/search.c create mode 100644 src/text.c create mode 100644 src/utils.c create mode 100644 src/winio.c diff --git a/ABOUT-NLS b/ABOUT-NLS new file mode 100644 index 0000000..d528f9c --- /dev/null +++ b/ABOUT-NLS @@ -0,0 +1,435 @@ +Notes on the Free Translation Project +************************************* + + Free software is going international! The Free Translation Project +is a way to get maintainers of free software, translators, and users all +together, so that will gradually become able to speak many languages. +A few packages already provide translations for their messages. + + If you found this `ABOUT-NLS' file inside a distribution, you may +assume that the distributed package does use GNU `gettext' internally, +itself available at your nearest GNU archive site. But you do _not_ +need to install GNU `gettext' prior to configuring, installing or using +this package with messages translated. + + Installers will find here some useful hints. These notes also +explain how users should proceed for getting the programs to use the +available translations. They tell how people wanting to contribute and +work at translations should contact the appropriate team. + + When reporting bugs in the `intl/' directory or bugs which may be +related to internationalization, you should tell about the version of +`gettext' which is used. The information can be found in the +`intl/VERSION' file, in internationalized packages. + +Quick configuration advice +========================== + + If you want to exploit the full power of internationalization, you +should configure it using + + ./configure --with-included-gettext + +to force usage of internationalizing routines provided within this +package, despite the existence of internationalizing capabilities in the +operating system where this package is being installed. So far, only +the `gettext' implementation in the GNU C library version 2 provides as +many features (such as locale alias, message inheritance, automatic +charset conversion or plural form handling) as the implementation here. +It is also not possible to offer this additional functionality on top +of a `catgets' implementation. Future versions of GNU `gettext' will +very likely convey even more functionality. So it might be a good idea +to change to GNU `gettext' as soon as possible. + + So you need _not_ provide this option if you are using GNU libc 2 or +you have installed a recent copy of the GNU gettext package with the +included `libintl'. + +INSTALL Matters +=============== + + Some packages are "localizable" when properly installed; the +programs they contain can be made to speak your own native language. +Most such packages use GNU `gettext'. Other packages have their own +ways to internationalization, predating GNU `gettext'. + + By default, this package will be installed to allow translation of +messages. It will automatically detect whether the system already +provides the GNU `gettext' functions. If not, the GNU `gettext' own +library will be used. This library is wholly contained within this +package, usually in the `intl/' subdirectory, so prior installation of +the GNU `gettext' package is _not_ required. Installers may use +special options at configuration time for changing the default +behaviour. The commands: + + ./configure --with-included-gettext + ./configure --disable-nls + +will respectively bypass any pre-existing `gettext' to use the +internationalizing routines provided within this package, or else, +_totally_ disable translation of messages. + + When you already have GNU `gettext' installed on your system and run +configure without an option for your new package, `configure' will +probably detect the previously built and installed `libintl.a' file and +will decide to use this. This might be not what is desirable. You +should use the more recent version of the GNU `gettext' library. I.e. +if the file `intl/VERSION' shows that the library which comes with this +package is more recent, you should use + + ./configure --with-included-gettext + +to prevent auto-detection. + + The configuration process will not test for the `catgets' function +and therefore it will not be used. The reason is that even an +emulation of `gettext' on top of `catgets' could not provide all the +extensions of the GNU `gettext' library. + + Internationalized packages have usually many `po/LL.po' files, where +LL gives an ISO 639 two-letter code identifying the language. Unless +translations have been forbidden at `configure' time by using the +`--disable-nls' switch, all available translations are installed +together with the package. However, the environment variable `LINGUAS' +may be set, prior to configuration, to limit the installed set. +`LINGUAS' should then contain a space separated list of two-letter +codes, stating which languages are allowed. + +Using This Package +================== + + As a user, if your language has been installed for this package, you +only have to set the `LANG' environment variable to the appropriate +`LL_CC' combination. Here `LL' is an ISO 639 two-letter language code, +and `CC' is an ISO 3166 two-letter country code. For example, let's +suppose that you speak German and live in Germany. At the shell +prompt, merely execute `setenv LANG de_DE' (in `csh'), +`export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). +This can be done from your `.login' or `.profile' file, once and for +all. + + You might think that the country code specification is redundant. +But in fact, some languages have dialects in different countries. For +example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The +country code serves to distinguish the dialects. + + The locale naming convention of `LL_CC', with `LL' denoting the +language and `CC' denoting the country, is the one use on systems based +on GNU libc. On other systems, some variations of this scheme are +used, such as `LL' or `LL_CC.ENCODING'. You can get the list of +locales supported by your system for your country by running the command +`locale -a | grep '^LL''. + + Not all programs have translations for all languages. By default, an +English message is shown in place of a nonexistent translation. If you +understand other languages, you can set up a priority list of languages. +This is done through a different environment variable, called +`LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' +for the purpose of message handling, but you still need to have `LANG' +set to the primary language; this is required by other parts of the +system libraries. For example, some Swedish users who would rather +read translations in German than English for when Swedish is not +available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. + + In the `LANGUAGE' environment variable, but not in the `LANG' +environment variable, `LL_CC' combinations can be abbreviated as `LL' +to denote the language's main dialect. For example, `de' is equivalent +to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' +(Portuguese as spoken in Portugal) in this context. + +Translating Teams +================= + + For the Free Translation Project to be a success, we need interested +people who like their own language and write it well, and who are also +able to synergize with other translators speaking the same language. +Each translation team has its own mailing list. The up-to-date list of +teams can be found at the Free Translation Project's homepage, +`http://www.iro.umontreal.ca/contrib/po/HTML/', in the "National teams" +area. + + If you'd like to volunteer to _work_ at translating messages, you +should become a member of the translating team for your own language. +The subscribing address is _not_ the same as the list itself, it has +`-request' appended. For example, speakers of Swedish can send a +message to `sv-request@li.org', having this message body: + + subscribe + + Keep in mind that team members are expected to participate +_actively_ in translations, or at solving translational difficulties, +rather than merely lurking around. If your team does not exist yet and +you want to start one, or if you are unsure about what to do or how to +get started, please write to `translation@iro.umontreal.ca' to reach the +coordinator for all translator teams. + + The English team is special. It works at improving and uniformizing +the terminology in use. Proven linguistic skill are praised more than +programming skill, here. + +Available Packages +================== + + Languages are not equally supported in all packages. The following +matrix shows the current state of internationalization, as of August +2002. The matrix shows, in regard of each package, for which languages +PO files have been submitted to translation coordination, with a +translation percentage of at least 50%. + + Ready PO files be bg ca cs da de el en eo es et fi fr + +----------------------------------------+ + a2ps | [] [] [] [] | + ap-utils | | + bash | [] [] [] [] | + bfd | [] [] | + binutils | [] [] | + bison | [] [] [] [] | + clisp | | + clisp | [] [] [] [] | + clisplow | | + cpio | [] [] [] [] | + darkstat | () | + diffutils | [] [] [] [] [] [] | + enscript | [] [] | + error | [] [] [] | + fetchmail | [] () [] [] [] () | + fileutils | [] [] [] [] [] | + findutils | [] [] [] [] [] [] | + flex | [] [] [] [] [] | + gas | [] [] | + gawk | [] [] [] | + gcal | [] [] | + gcc | [] [] | + gettext | [] [] [] [] [] | + gnupg | [] [] [] [] [] [] [] | + gprof | [] [] | + gpsdrive | () () () () () | + grep | [] [] [] [] [] [] [] [] | + gretl | [] | + gthumb | () () () | + hello | [] [] [] [] [] [] [] [] [] | + id-utils | [] [] [] | + indent | [] [] [] [] [] | + jpilot | () [] [] [] | + jwhois | [] [] | + kbd | [] [] [] | + ld | [] [] | + libc | [] [] [] [] [] [] [] [] | + libiconv | [] [] [] [] | + lifelines | () () | + lilypond | [] [] | + lingoteach | [] [] | + lingoteach_lessons| () () | + lynx | [] [] [] [] [] | + m4 | [] [] [] [] [] | + make | [] [] [] [] | + man-db | [] () () [] () () | + mysecretdiary | [] [] [] | + nano | [] () [] [] [] [] | + nano_1_0 | [] () [] [] [] [] | + opcodes | [] [] [] | + parted | [] [] [] [] [] | + ptx | [] [] [] [] [] [] [] | + python | | + recode | [] [] [] [] [] [] | + sed | [] [] [] [] [] [] [] [] [] [] | + sh-utils | [] [] [] [] | + sharutils | [] [] [] [] [] [] [] | + sketch | () [] () | + soundtracker | [] [] [] | + sp | [] | + tar | [] [] [] [] [] [] | + texinfo | [] [] [] [] [] | + textutils | [] [] [] [] [] | + util-linux | [] [] [] [] [] [] | + vorbis-tools | [] | + wastesedge | | + wdiff | [] [] [] [] [] [] | + wget | [] [] [] [] [] [] [] [] [] [] | + +----------------------------------------+ + be bg ca cs da de el en eo es et fi fr + 0 2 19 10 30 44 9 1 12 44 17 6 53 + + gl he hr hu id it ja ko lv nb nl nn + +-------------------------------------+ + a2ps | () () [] | + ap-utils | | + bash | [] | + bfd | [] | + binutils | [] | + bison | [] [] [] [] | + clisp | | + clisp | [] | + clisplow | | + cpio | [] [] [] [] | + darkstat | | + diffutils | [] [] [] [] [] | + enscript | [] [] | + error | [] | + fetchmail | [] | + fileutils | [] [] [] | + findutils | [] [] [] [] [] [] [] [] | + flex | [] | + gas | | + gawk | [] | + gcal | | + gcc | [] | + gettext | [] [] | + gnupg | [] [] [] [] | + gprof | [] | + gpsdrive | [] () () | + grep | [] [] [] [] [] [] [] | + gretl | | + gthumb | () () | + hello | [] [] [] [] [] [] [] [] [] [] [] [] | + id-utils | [] [] | + indent | [] [] [] [] | + jpilot | () () | + jwhois | [] [] | + kbd | | + ld | | + libc | [] [] [] [] | + libiconv | [] [] [] | + lifelines | | + lilypond | [] | + lingoteach | [] | + lingoteach_lessons| | + lynx | [] [] [] [] | + m4 | [] [] [] [] | + make | [] [] [] [] [] [] | + man-db | () () | + mysecretdiary | [] | + nano | [] [] [] [] | + nano_1_0 | [] [] [] [] [] | + opcodes | [] [] | + parted | [] [] [] | + ptx | [] [] [] [] [] | + python | | + recode | [] [] [] | + sed | [] [] [] [] [] [] [] [] | + sh-utils | [] [] [] | + sharutils | [] [] [] | + sketch | () | + soundtracker | [] [] | + sp | | + tar | [] [] [] [] [] [] | + texinfo | [] [] [] | + textutils | [] [] [] [] | + util-linux | () [] | + vorbis-tools | [] | + wastesedge | | + wdiff | [] [] [] | + wget | [] [] [] [] [] [] | + +-------------------------------------+ + gl he hr hu id it ja ko lv nb nl nn + 23 9 12 19 16 13 26 9 1 7 19 3 + + no pl pt pt_BR ru sk sl sv tr uk zh_CN zh_TW + +----------------------------------------------+ + a2ps | () () () [] [] [] [] [] | 10 + ap-utils | () | 0 + bash | [] | 6 + bfd | [] [] | 5 + binutils | [] [] | 5 + bison | [] [] [] [] | 12 + clisp | | 0 + clisp | | 5 + clisplow | | 0 + cpio | [] [] [] [] | 12 + darkstat | [] [] () () | 2 + diffutils | [] [] [] [] [] [] | 17 + enscript | [] [] [] [] | 8 + error | [] [] [] | 7 + fetchmail | () () [] | 6 + fileutils | [] [] [] [] [] [] | 14 + findutils | [] [] [] [] [] [] [] | 21 + flex | [] [] [] | 9 + gas | [] | 3 + gawk | [] [] | 6 + gcal | [] [] | 4 + gcc | [] | 4 + gettext | [] [] [] [] [] [] | 13 + gnupg | [] [] [] | 14 + gprof | [] [] | 5 + gpsdrive | [] [] | 3 + grep | [] [] [] [] [] | 20 + gretl | | 1 + gthumb | () () [] | 1 + hello | [] [] [] [] [] [] [] | 28 + id-utils | [] [] [] [] | 9 + indent | [] [] [] [] [] | 14 + jpilot | () () [] [] | 5 + jwhois | [] () () [] [] | 7 + kbd | [] [] | 5 + ld | [] [] | 4 + libc | [] [] [] [] [] [] | 18 + libiconv | [] [] [] [] [] | 12 + lifelines | [] | 1 + lilypond | [] | 4 + lingoteach | [] [] | 5 + lingoteach_lessons| () | 0 + lynx | [] [] [] [] | 13 + m4 | [] [] [] [] | 13 + make | [] [] [] [] [] | 15 + man-db | | 3 + mysecretdiary | [] [] [] | 7 + nano | [] [] [] [] | 13 + nano_1_0 | [] [] [] [] | 14 + opcodes | [] [] [] | 8 + parted | [] [] [] [] | 12 + ptx | [] [] [] [] [] [] [] | 19 + python | | 0 + recode | [] [] [] [] [] [] | 15 + sed | [] [] [] [] [] [] | 24 + sh-utils | [] [] | 9 + sharutils | [] [] [] [] | 14 + sketch | [] () [] | 4 + soundtracker | [] | 6 + sp | | 1 + tar | [] [] [] [] [] [] [] | 19 + texinfo | [] [] | 10 + textutils | [] [] [] [] [] | 14 + util-linux | [] [] [] | 10 + vorbis-tools | [] | 3 + wastesedge | | 0 + wdiff | [] [] [] [] [] | 14 + wget | [] [] [] [] [] [] [] [] | 24 + +----------------------------------------------+ + 37 teams no pl pt pt_BR ru sk sl sv tr uk zh_CN zh_TW + 68 domains 4 15 2 28 28 12 10 49 43 4 1 9 609 + + Some counters in the preceding matrix are higher than the number of +visible blocks let us expect. This is because a few extra PO files are +used for implementing regional variants of languages, or language +dialects. + + For a PO file in the matrix above to be effective, the package to +which it applies should also have been internationalized and +distributed as such by its maintainer. There might be an observable +lag between the mere existence a PO file and its wide availability in a +distribution. + + If August 2002 seems to be old, you may fetch a more recent copy of +this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date +matrix with full percentage details can be found at +`http://www.iro.umontreal.ca/contrib/po/HTML/matrix.html'. + +Using `gettext' in new packages +=============================== + + If you are writing a freely available program and want to +internationalize it you are welcome to use GNU `gettext' in your +package. Of course you have to respect the GNU Library General Public +License which covers the use of the GNU `gettext' library. This means +in particular that even non-free programs can use `libintl' as a shared +library, whereas only free software can use `libintl' as a static +library or use modified versions of `libintl'. + + Once the sources are changed appropriately and the setup can handle +to use of `gettext' the only thing missing are the translations. The +Free Translation Project is also available for packages which are not +developed inside the GNU project. Therefore the information given above +applies also for every other Free Software Project. Contact +`translation@iro.umontreal.ca' to make the `.pot' files available to +the translation teams. + diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..1a6a0a3 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,43 @@ +$Id: AUTHORS 4210 2007-12-20 18:41:04Z dolorous $ +This file lists people who have made significant contribution to the +nano editor. Please see the ChangeLog for specific changes by author. +------------------------------------------------------------------------- + +Chris Allegretta + * Original program author, former stable series maintainer. + +David Lawrence Ramsey + * Former stable series maintainer. Multiple buffer support, + operating dir (-o) option, bug fixes for display routines, + wrapping code, spelling fixes, const mode, parts of the UTF-8 + support, and various other fixes. + +Jordi Mallach + * Debian package maintainer, fellow bug squasher. + * Internationalization support head, ca.po maintainer. + +Adam Rogoyski + * New write_file() function, read_file() optimization, mouse + support, resize support, nohelp (-x) option, justify function, + follow symlink option and bugfixes, and much more. + +Robert Siemborski + * Miscellaneous cut, display, replace, and other bug fixes, + original and new "magic line" code, read_line() function, new + edit display routines. + +Rocco Corsi + * Internal spelling code, many optimizations and bug fixes for + findnextstr() and search-related functions, various display + and file handling fixes. + +David Benbennick + * Wrap and justify bugfixes/enhancements, new color syntax + code, memleak fixes, parts of the UTF-8 support, and other + miscellaneous fixes. + +Mike Frysinger + * Gentoo package maintainer. Whitespace display mode, + --enable-utf8/--disable-utf8 configure options for ncurses, + many new color regexes and improvements to existing color + regexes for nanorc.sample, and miscellaneous bug fixes. diff --git a/BUGS b/BUGS new file mode 100644 index 0000000..509fa84 --- /dev/null +++ b/BUGS @@ -0,0 +1,161 @@ +** Open BUGS ** + +** Fixed BUGS ** +- Marked cutting sometimes leaves a newline in the file unintelligently, + such as when all of a line is selected but the mark doesn't proceed to + the new line. (8) [FIXED/IRRELEVANT] +- Certains are not lined up properly when there are tabs in them at + certain col values. (9) [FIXED] +- edit_refresh() and update_line() do not handle selecting text when the + cursor is beyond COLS (10) [FIXED] +- No way to do a replace with the empty string (11) [FIXED, yay!] +- Spelling support is not elegant like Pico's integration of the 'spell' + program. nano only uses ispell (for now) (12) [FIXED] +- Moving to the end of a line when close to a multiple of COLS and at + least COLS * 2 does not make the screen jump early like it would for + if we were around COLS (bugs in edit_refresh, update_line) (13) + [FIXED, mostly] +- When at the very bottom of the edit window, do_wrap() goes berserk and + puts the cursor somewhere bad; subsequent keystrokes crash the program + (14) [FIXED, mostly] +- Doing a replacement of a substring of the replace string (e.g. + replacing "ed" with "fred" causes an infinite loop). (15) [FIXED] +- Cutting a file with marked text and both marker ends on the same line + causes a random segfault (16) [FIXED] +- Cutting more than one line resets the KEEP_CUTBUFFER flag in 0.9.3. + Error is in bitwise assignment (nano.h). (17) [FIXED] +- The wrapping code does not work right for lines like the following: + * * + Error is in do_wrap, must be rewritten. (18) [FIXED] +- nano fails to follow symlinks, even though -l isn't being used (20). + [Bug in global flag init, FIXED] +- When using --help or --version, the SIGINT character gets lost. (21) + [FIXED] +- edit_refresh() and update_line() (and related functions) have + trouble when a tab is the character that is the boundary at COLS (23) + [FIXED] +- There is an off-by-one error in keeping track of totsize. It is + caused by the fact that we count the newline at the end when we read + in a file but we do not, in fact, display this newline. This should + go away implicitly when the "Magic Line" returns, but it is noted here + for documentation's sake. (24) [FIXED] +- In replace with completely adjacent strings, every other search string + will be missed (try replace ':' in a string like ':::::::::') (28) + [FIXED] +- If nano opens a read-only file with the --tempfile option, and a + change is made to the buffer, and a write is attempted, nano will not + give you a dialog about not being able to write the file, and it will + not let the user exit (29, discovered by Joshua Jensen) [FIXED] +- Using nano -k, marked text is not cut properly. (31) [FIXED] +- Invoking -t or -k has the effect of invoking both options. (32) + [FIXED] +- totsize becomes incorrect after word-wrapping (25) [FIXED] +- Wrapping a line with autoindent mode sometimes causes a segfault (19) + [FIXED] +- When inserting files, the display sometimes fails to display properly + until a pageup/down occurs (22) [FIXED] +- In search/replace code, there is too much refreshing in bottomwin (26) + [FIXED] +- In replace, there is no way to accept the default replace string. (27) + [FIXED] +- Using nano -t, user can not exit until a filename is given via ^O. + (30) [FIXED] +- totsize problems still abound in do_justify (33) [FIXED] +- Using -k, cut text is not pasted properly. (34) [FIXED]. +- Using -k, pasted text is not updated properly if it goes beyond + editbot. (35) [FIXED] +- Doing a cut with -k can screw up the filestruct; fault is in cutting + code. (36) [FIXED] +- Hitting enter on the magic line makes new lines, but they are not + written out to disk when saved..... (37). [FIXED] +- Page up and page down do not work the same way as in Pico (# of + lines). (38) [FIXED] +- When doing a search and the marker is set, the screen does not always + properly update the inverted text (39). [FIXED] +- Searches for a string that only exists on one line multiple times will + fail after finding the last occurrence (discovered by Ken Tyler) (40). + [FIXED] +- Meta-Z is currently broken to toggle suspend. I guess I still don't + know signals very well =-) (41) [FIXED]. +- Unable to cut the entire file using the marker (discovered by Ken + Tyler) (42). [FIXED] +- The keypad does not work when nano runs in the Gnome terminal (43). + [FIXED] +- When reading in a file, if the file is a directory, the contents of + the file being edited are blown away (discovered by Chris Pimlot) + (44). [FIXED] +- In certain terms, nano will leave a "ghost" of screen upon exit when + called from inside mutt (among other settings) (45). [FIXED] +- In replace, hitting the Goto line shortcut key does nothing after a + search string is entered (discovered by Rocco Corsi) (46) [FIXED]. +- When typing in a string in search or replace and hitting + CASE_SENSITIVE or the other search string, the current string edit is + blown away in favor of the last stored search (47) [FIXED] +- If nano fails to open a file when it starts up, doing almost anything + causes a segfault (discovered by Ben Roberts) (48). [FIXED] +- In certain terminals, nano would not work properly with keypad(). + Turned out to be the silly timeout(0) call, which is completely + unneeded, anyway. (49) [FIXED] +- With less than a page of text, doing a page down will move the current + line to the top of the screen, which it shouldn't do. (50) [FIXED] +- With PDCurses, running Meta-X turns off the keypad. (51) [FIXED] +- Resizing the window completely screws up the display if in any other + mode than normal editing (help screen, search and replace, file + browser...) (52) [FIXED] +- Alt speller argument (-s, --speller) does not take a string argument + of more than one word. (53) [FIXED]. +- Cut to end cutting (-k) causes segfaults (try cutting "- Backup making + (filename~)?" line in TODO file) (discovered by + higuita@cadernoverde.com) (54) [FIXED]. +- When using autoindent (-i), wrapped text does not get autoindented + (55, discovered by Mark Senior) [FIXED]. +- When using -R (regex) and -p (Pico mode), subsequent searches after + the first fail if no string is entered (56) [FIXED]. +- Page down on a file of editwinrows fails (again). Reported by Ryan + Krebs (57) [FIXED]. +- File browser aborts on Solaris in qsort() call. (Reported by Matthias + Andree) (58) [FIXED]. +- Can modify the current file in view mode with ^W^R (discovered by + Rocco Corsi) (58) [FIXED]. +- When page up is used after two page downs, the screen doesn't update + properly (discovered by David Lawrence Ramsey) (59) [FIXED]. +- On BSD systems, marked cutting and paste often screws up the last line + in the cutbuffer (discovered by Barry Pederson) (60) [FIXED] +- Blank lines are not kept when cutting with -k (discovered by Rocco) + (61) [FIXED]. +- nano will not suspend properly inside of mutt (62) [FIXED]. +- When switching from Pico mode to normal mode, the previous search is + not displayed until cancelling the search (63) [FIXED]. +- If you change search options but don't change the search string in + normal mode, hitting Enter causes the search/replace to abort (64) + (Jordi Mallach) [FIXED]. +- Cutting one line of text causes the screen to recenter the line + (reported and fixed by David Lawrence Ramsey) (65) [FIXED]. +- When cutting marked text including the bottom of the file, a new + "magic line" is not created" (reported by David Lawrence Ramsey, fixed + by David Lawrence Ramsey & Chris) (66) [FIXED]. +- ^C does not work after a suspend in tcsh (discovered by Trevor Cordes) + (68) [FIXED]. +- Home and End control keys (^A, ^E) do not always work in filename + prompt (bug found by Ian Turner) (69) [1.0 series only] [FIXED]. +- Trying to insert a file of 0 bytes will hang nano (70) [FIXED]. +- Meta-space and ^Space are not yet handled in new backend code (77) [FIXED] +- F-keys do not work with new shortcut backend (72) [FIXED] +- Many menu items are probably missing from the new backend (73) [FIXED] +- Need a 'check-vitals-mapped' function to check that the end used didn't + unbind all the keys for exit or cancel before starting up the editor (74) [FIXED] +- Browser and prompt code still implement old switch on raw key input instead + of new if block for subnfunc values (75) [FIXED] +- New backend code probably does not compile under anything but default options, + if that (76) [FIXED] +- -enable-tiny does not work with new code (78) [FIXED] +- If a user only binds meta sequences to a function like left, right + page up/down, insert, and unbinds all other control and F keys for it, + nano will do the wrong thing when reading the key which is normally + assigned to it (79 - may not be worth fixing) [FIXED] +- Segfault editing at COLS presumably due to new color syntax + highlighting (80) [FIXED] +- Cutting the line at the top of the screen recenters to center (71) [FIXED] + + +$Id: BUGS 4439 2009-11-22 21:35:56Z astyanax $ diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..4432540 --- /dev/null +++ b/COPYING @@ -0,0 +1,676 @@ + + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + diff --git a/COPYING.DOC b/COPYING.DOC new file mode 100644 index 0000000..4a0fe1c --- /dev/null +++ b/COPYING.DOC @@ -0,0 +1,397 @@ + GNU Free Documentation License + Version 1.2, November 2002 + + + Copyright (C) 2000,2001,2002 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + +0. PREAMBLE + +The purpose of this License is to make a manual, textbook, or other +functional and useful document "free" in the sense of freedom: to +assure everyone the effective freedom to copy and redistribute it, +with or without modifying it, either commercially or noncommercially. +Secondarily, this License preserves for the author and publisher a way +to get credit for their work, while not being considered responsible +for modifications made by others. + +This License is a kind of "copyleft", which means that derivative +works of the document must themselves be free in the same sense. It +complements the GNU General Public License, which is a copyleft +license designed for free software. + +We have designed this License in order to use it for manuals for free +software, because free software needs free documentation: a free +program should come with manuals providing the same freedoms that the +software does. But this License is not limited to software manuals; +it can be used for any textual work, regardless of subject matter or +whether it is published as a printed book. We recommend this License +principally for works whose purpose is instruction or reference. + + +1. APPLICABILITY AND DEFINITIONS + +This License applies to any manual or other work, in any medium, that +contains a notice placed by the copyright holder saying it can be +distributed under the terms of this License. Such a notice grants a +world-wide, royalty-free license, unlimited in duration, to use that +work under the conditions stated herein. The "Document", below, +refers to any such manual or work. Any member of the public is a +licensee, and is addressed as "you". You accept the license if you +copy, modify or distribute the work in a way requiring permission +under copyright law. + +A "Modified Version" of the Document means any work containing the +Document or a portion of it, either copied verbatim, or with +modifications and/or translated into another language. + +A "Secondary Section" is a named appendix or a front-matter section of +the Document that deals exclusively with the relationship of the +publishers or authors of the Document to the Document's overall subject +(or to related matters) and contains nothing that could fall directly +within that overall subject. (Thus, if the Document is in part a +textbook of mathematics, a Secondary Section may not explain any +mathematics.) The relationship could be a matter of historical +connection with the subject or with related matters, or of legal, +commercial, philosophical, ethical or political position regarding +them. + +The "Invariant Sections" are certain Secondary Sections whose titles +are designated, as being those of Invariant Sections, in the notice +that says that the Document is released under this License. If a +section does not fit the above definition of Secondary then it is not +allowed to be designated as Invariant. The Document may contain zero +Invariant Sections. If the Document does not identify any Invariant +Sections then there are none. + +The "Cover Texts" are certain short passages of text that are listed, +as Front-Cover Texts or Back-Cover Texts, in the notice that says that +the Document is released under this License. A Front-Cover Text may +be at most 5 words, and a Back-Cover Text may be at most 25 words. + +A "Transparent" copy of the Document means a machine-readable copy, +represented in a format whose specification is available to the +general public, that is suitable for revising the document +straightforwardly with generic text editors or (for images composed of +pixels) generic paint programs or (for drawings) some widely available +drawing editor, and that is suitable for input to text formatters or +for automatic translation to a variety of formats suitable for input +to text formatters. A copy made in an otherwise Transparent file +format whose markup, or absence of markup, has been arranged to thwart +or discourage subsequent modification by readers is not Transparent. +An image format is not Transparent if used for any substantial amount +of text. A copy that is not "Transparent" is called "Opaque". + +Examples of suitable formats for Transparent copies include plain +ASCII without markup, Texinfo input format, LaTeX input format, SGML +or XML using a publicly available DTD, and standard-conforming simple +HTML, PostScript or PDF designed for human modification. Examples of +transparent image formats include PNG, XCF and JPG. Opaque formats +include proprietary formats that can be read and edited only by +proprietary word processors, SGML or XML for which the DTD and/or +processing tools are not generally available, and the +machine-generated HTML, PostScript or PDF produced by some word +processors for output purposes only. + +The "Title Page" means, for a printed book, the title page itself, +plus such following pages as are needed to hold, legibly, the material +this License requires to appear in the title page. For works in +formats which do not have any title page as such, "Title Page" means +the text near the most prominent appearance of the work's title, +preceding the beginning of the body of the text. + +A section "Entitled XYZ" means a named subunit of the Document whose +title either is precisely XYZ or contains XYZ in parentheses following +text that translates XYZ in another language. (Here XYZ stands for a +specific section name mentioned below, such as "Acknowledgements", +"Dedications", "Endorsements", or "History".) To "Preserve the Title" +of such a section when you modify the Document means that it remains a +section "Entitled XYZ" according to this definition. + +The Document may include Warranty Disclaimers next to the notice which +states that this License applies to the Document. These Warranty +Disclaimers are considered to be included by reference in this +License, but only as regards disclaiming warranties: any other +implication that these Warranty Disclaimers may have is void and has +no effect on the meaning of this License. + + +2. VERBATIM COPYING + +You may copy and distribute the Document in any medium, either +commercially or noncommercially, provided that this License, the +copyright notices, and the license notice saying this License applies +to the Document are reproduced in all copies, and that you add no other +conditions whatsoever to those of this License. You may not use +technical measures to obstruct or control the reading or further +copying of the copies you make or distribute. However, you may accept +compensation in exchange for copies. If you distribute a large enough +number of copies you must also follow the conditions in section 3. + +You may also lend copies, under the same conditions stated above, and +you may publicly display copies. + + +3. COPYING IN QUANTITY + +If you publish printed copies (or copies in media that commonly have +printed covers) of the Document, numbering more than 100, and the +Document's license notice requires Cover Texts, you must enclose the +copies in covers that carry, clearly and legibly, all these Cover +Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on +the back cover. Both covers must also clearly and legibly identify +you as the publisher of these copies. The front cover must present +the full title with all words of the title equally prominent and +visible. You may add other material on the covers in addition. +Copying with changes limited to the covers, as long as they preserve +the title of the Document and satisfy these conditions, can be treated +as verbatim copying in other respects. + +If the required texts for either cover are too voluminous to fit +legibly, you should put the first ones listed (as many as fit +reasonably) on the actual cover, and continue the rest onto adjacent +pages. + +If you publish or distribute Opaque copies of the Document numbering +more than 100, you must either include a machine-readable Transparent +copy along with each Opaque copy, or state in or with each Opaque copy +a computer-network location from which the general network-using +public has access to download using public-standard network protocols +a complete Transparent copy of the Document, free of added material. +If you use the latter option, you must take reasonably prudent steps, +when you begin distribution of Opaque copies in quantity, to ensure +that this Transparent copy will remain thus accessible at the stated +location until at least one year after the last time you distribute an +Opaque copy (directly or through your agents or retailers) of that +edition to the public. + +It is requested, but not required, that you contact the authors of the +Document well before redistributing any large number of copies, to give +them a chance to provide you with an updated version of the Document. + + +4. MODIFICATIONS + +You may copy and distribute a Modified Version of the Document under +the conditions of sections 2 and 3 above, provided that you release +the Modified Version under precisely this License, with the Modified +Version filling the role of the Document, thus licensing distribution +and modification of the Modified Version to whoever possesses a copy +of it. In addition, you must do these things in the Modified Version: + +A. Use in the Title Page (and on the covers, if any) a title distinct + from that of the Document, and from those of previous versions + (which should, if there were any, be listed in the History section + of the Document). You may use the same title as a previous version + if the original publisher of that version gives permission. +B. List on the Title Page, as authors, one or more persons or entities + responsible for authorship of the modifications in the Modified + Version, together with at least five of the principal authors of the + Document (all of its principal authors, if it has fewer than five), + unless they release you from this requirement. +C. State on the Title page the name of the publisher of the + Modified Version, as the publisher. +D. Preserve all the copyright notices of the Document. +E. Add an appropriate copyright notice for your modifications + adjacent to the other copyright notices. +F. Include, immediately after the copyright notices, a license notice + giving the public permission to use the Modified Version under the + terms of this License, in the form shown in the Addendum below. +G. Preserve in that license notice the full lists of Invariant Sections + and required Cover Texts given in the Document's license notice. +H. Include an unaltered copy of this License. +I. Preserve the section Entitled "History", Preserve its Title, and add + to it an item stating at least the title, year, new authors, and + publisher of the Modified Version as given on the Title Page. If + there is no section Entitled "History" in the Document, create one + stating the title, year, authors, and publisher of the Document as + given on its Title Page, then add an item describing the Modified + Version as stated in the previous sentence. +J. Preserve the network location, if any, given in the Document for + public access to a Transparent copy of the Document, and likewise + the network locations given in the Document for previous versions + it was based on. These may be placed in the "History" section. + You may omit a network location for a work that was published at + least four years before the Document itself, or if the original + publisher of the version it refers to gives permission. +K. For any section Entitled "Acknowledgements" or "Dedications", + Preserve the Title of the section, and preserve in the section all + the substance and tone of each of the contributor acknowledgements + and/or dedications given therein. +L. Preserve all the Invariant Sections of the Document, + unaltered in their text and in their titles. Section numbers + or the equivalent are not considered part of the section titles. +M. Delete any section Entitled "Endorsements". Such a section + may not be included in the Modified Version. +N. Do not retitle any existing section to be Entitled "Endorsements" + or to conflict in title with any Invariant Section. +O. Preserve any Warranty Disclaimers. + +If the Modified Version includes new front-matter sections or +appendices that qualify as Secondary Sections and contain no material +copied from the Document, you may at your option designate some or all +of these sections as invariant. To do this, add their titles to the +list of Invariant Sections in the Modified Version's license notice. +These titles must be distinct from any other section titles. + +You may add a section Entitled "Endorsements", provided it contains +nothing but endorsements of your Modified Version by various +parties--for example, statements of peer review or that the text has +been approved by an organization as the authoritative definition of a +standard. + +You may add a passage of up to five words as a Front-Cover Text, and a +passage of up to 25 words as a Back-Cover Text, to the end of the list +of Cover Texts in the Modified Version. Only one passage of +Front-Cover Text and one of Back-Cover Text may be added by (or +through arrangements made by) any one entity. If the Document already +includes a cover text for the same cover, previously added by you or +by arrangement made by the same entity you are acting on behalf of, +you may not add another; but you may replace the old one, on explicit +permission from the previous publisher that added the old one. + +The author(s) and publisher(s) of the Document do not by this License +give permission to use their names for publicity for or to assert or +imply endorsement of any Modified Version. + + +5. COMBINING DOCUMENTS + +You may combine the Document with other documents released under this +License, under the terms defined in section 4 above for modified +versions, provided that you include in the combination all of the +Invariant Sections of all of the original documents, unmodified, and +list them all as Invariant Sections of your combined work in its +license notice, and that you preserve all their Warranty Disclaimers. + +The combined work need only contain one copy of this License, and +multiple identical Invariant Sections may be replaced with a single +copy. If there are multiple Invariant Sections with the same name but +different contents, make the title of each such section unique by +adding at the end of it, in parentheses, the name of the original +author or publisher of that section if known, or else a unique number. +Make the same adjustment to the section titles in the list of +Invariant Sections in the license notice of the combined work. + +In the combination, you must combine any sections Entitled "History" +in the various original documents, forming one section Entitled +"History"; likewise combine any sections Entitled "Acknowledgements", +and any sections Entitled "Dedications". You must delete all sections +Entitled "Endorsements". + + +6. COLLECTIONS OF DOCUMENTS + +You may make a collection consisting of the Document and other documents +released under this License, and replace the individual copies of this +License in the various documents with a single copy that is included in +the collection, provided that you follow the rules of this License for +verbatim copying of each of the documents in all other respects. + +You may extract a single document from such a collection, and distribute +it individually under this License, provided you insert a copy of this +License into the extracted document, and follow this License in all +other respects regarding verbatim copying of that document. + + +7. AGGREGATION WITH INDEPENDENT WORKS + +A compilation of the Document or its derivatives with other separate +and independent documents or works, in or on a volume of a storage or +distribution medium, is called an "aggregate" if the copyright +resulting from the compilation is not used to limit the legal rights +of the compilation's users beyond what the individual works permit. +When the Document is included in an aggregate, this License does not +apply to the other works in the aggregate which are not themselves +derivative works of the Document. + +If the Cover Text requirement of section 3 is applicable to these +copies of the Document, then if the Document is less than one half of +the entire aggregate, the Document's Cover Texts may be placed on +covers that bracket the Document within the aggregate, or the +electronic equivalent of covers if the Document is in electronic form. +Otherwise they must appear on printed covers that bracket the whole +aggregate. + + +8. TRANSLATION + +Translation is considered a kind of modification, so you may +distribute translations of the Document under the terms of section 4. +Replacing Invariant Sections with translations requires special +permission from their copyright holders, but you may include +translations of some or all Invariant Sections in addition to the +original versions of these Invariant Sections. You may include a +translation of this License, and all the license notices in the +Document, and any Warranty Disclaimers, provided that you also include +the original English version of this License and the original versions +of those notices and disclaimers. In case of a disagreement between +the translation and the original version of this License or a notice +or disclaimer, the original version will prevail. + +If a section in the Document is Entitled "Acknowledgements", +"Dedications", or "History", the requirement (section 4) to Preserve +its Title (section 1) will typically require changing the actual +title. + + +9. TERMINATION + +You may not copy, modify, sublicense, or distribute the Document except +as expressly provided for under this License. Any other attempt to +copy, modify, sublicense or distribute the Document is void, and will +automatically terminate your rights under this License. However, +parties who have received copies, or rights, from you under this +License will not have their licenses terminated so long as such +parties remain in full compliance. + + +10. FUTURE REVISIONS OF THIS LICENSE + +The Free Software Foundation may publish new, revised versions +of the GNU Free Documentation License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. See +http://www.gnu.org/copyleft/. + +Each version of the License is given a distinguishing version number. +If the Document specifies that a particular numbered version of this +License "or any later version" applies to it, you have the option of +following the terms and conditions either of that specified version or +of any later version that has been published (not as a draft) by the +Free Software Foundation. If the Document does not specify a version +number of this License, you may choose any version ever published (not +as a draft) by the Free Software Foundation. + + +ADDENDUM: How to use this License for your documents + +To use this License in a document you have written, include a copy of +the License in the document and put the following copyright and +license notices just after the title page: + + Copyright (c) YEAR YOUR NAME. + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.2 + or any later version published by the Free Software Foundation; + with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. + A copy of the license is included in the section entitled "GNU + Free Documentation License". + +If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, +replace the "with...Texts." line with this: + + with the Invariant Sections being LIST THEIR TITLES, with the + Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. + +If you have Invariant Sections without Cover Texts, or some other +combination of the three, merge those two alternatives to suit the +situation. + +If your document contains nontrivial examples of program code, we +recommend releasing these examples in parallel under your choice of +free software license, such as the GNU General Public License, +to permit their use in free software. diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..28e14ea --- /dev/null +++ b/ChangeLog @@ -0,0 +1,1046 @@ +2010-11-15 Chris Allegretta + * Add a section to the FAQ about using nanorc on Win32 systems. + +2010-11-12 Chris Allegretta + * Add check for RESTRICTED mode back to speller, suspend and insert file + routines, since adding key bindings broke the fact that they should be + disabled in restricted mode. Fixes Savannah bug 31625 reported by + Charlie Somerville. + +2010-08-10 - nano 2.2 branch cut here + +GNU nano 2.2.5 - 2010.08.05 +2010-08-04 Lauri Kasanen + * doc/syntax/mgp.nanorc: New Magicpoint syntax highlighting definition + +2010-08-04 Peter + * doc/syntax/tex.nanorc: No longer highlight escaped comments + +2010-06-20 Chris Allegretta + * New rc file option allow_insecure_backup, allows the previous security + fixes for backup files to be overridden if you're really positive + you want to. Fixes Savannah bug 29732 by Brian Szymanski . + +2010-05-23 Chris Allegretta + * files.c (write_file): Don't even try to chown() the backup + file unless we're root, since it's probably going to fail if + we're editing a file we don't own. Fixes Savannah bug + 29514: [nano 2.2.2] backup should ignore chown errors. + +GNU nano 2.2.4 - 2010.04.15 +2010-04-07 Chris Allegretta + * doc/man/nano.1,nanorc.5: Remove the backup file warnings now + that a sufficient security fix exists for the backup file code. + +2010-04-14 Chris Allegretta + * text.c (do_alt_speller): Skip invoking the alt speller if the file size + is 0 bytes. Fixes Savannah bug 29393 reported by Mike Frysinger. + * files.c (wirte_file): Don't set current_stat when tmp == TRUE, check + whether current_stat is set when trying to use it, and don't do the + modification check if the filename changed, since we have no way + of knowing about it in that case. Fixes Savannah bug 29392, reported + by Mike Frysinger. [CVE-2010-1160] + +2010-04-13 Felipe Bugno + * doc/syntax/cmake.nanorc: Added cmake syntax highlighting file. + +2010-04-09 Chris Allegretta + * files.c (do_writeout): Better security fixes for backup file writing, + mangled from submission by Dan Rosenberg + [CVE-2010-1161] + +2010-04-08 Chris Allegretta + * files.c (do_writeout): Previous fixes should not cause a crash + when saving a new file. Discovered by Mike Frysinger . + +2010-04-07 Chris Allegretta + * doc/man/nano.1,nanorc.5: Add warnings about using backup + mode as root due to the Dan Rosenberg security analysis. + +2010-04-02 Chris Allegretta + * files.c (do_writeout): Expand modification check to include both the + original file's device ID and inode number as reasons to warn the + user that the file has been modified. Also abort on writing a backup + file when its owner doesn't match the edited file. Based on security + analysis on nano by Dan Rosenberg. [CVE-2010-1160] + + +2010-03-21 Chris Allegretta + * nano.c (page_stdin et al): Don't attempt to reset/reopen the terminal + settings when reading stdin if it was aborted with SIGINT. May fix Savannah + bug 29114 reported by Mike Frysinger. + +2010-03-21 Mike Frysinger + * doc/syntax/c.nanorc: Add additional support for #include_next and #pragma + +2010-03-21 Chris Allegretta + * move.c (do_page_up, do_page_down()): Explicitly set current_y to 0 when paging + up when not in smooth scroll mode, as previous fixes would otherwise cause + the cursor to not really be moved to the stop of the screen. + +2010-03-07 Chris Allegretta + * configure.ac, nano.c (handle_sigwinch): Create check for whether LINES and + COLS can safely be redefined. Fixes compilation issues with cygwin, and likely + with newer versions of ncurses, fixes Savannah bug 28984 repoted by Andy Koppe + and Eric Oliver via mailing list. + * winio.c (get_mouseinput) - fix stray semicolon in code, also reported in + bug 28984. + +GNU nano 2.2.3 - 2010.02.11 +2010-01-28 Chris Allegretta + * move.c (do_page_up, do_page_down): Fix for smooth mode not preserving cusor + position. Part one of fix for Savannah bug 21178 by Mike Frysinger. + +GNU nano 2.2.2 - 2010.01.17 +2010-01-17 Chris Allegretta + * nano.c (main), prompt.c (do_statusbar_input): Handle problems with an unmapped + function due to key rebinding, fixes crashes on FreeBSD repoted by Eitan + Adler . + +2010-01-14 Chris Allegretta + * files.c (do_writeout): Fix for crash / incorrect external modification warning + due to earlier fix in r4467. + +2010-01-12 Chris Allegretta + * move.c (do_page_up, do_page_down): Fix issues with not enough scrolling down/up + and cursor centering. + * winio.c (edit_scroll): Remove lots of needless checking of line length for + soft wrapping code. + * winio.c (edit_update) - Remove extra code for when updating with old_current outside + of the new buffer boundary and centering issues. + +2010-01-05 Tito + * search.c (update_history): Fix bad length check causing search crash on armel platform. + +2010-01-04 Chris Allegretta + * winio.c: edit_update, edit_redraw: Fix search not scrolling to the middle of the screen + (reported by alpha@qzx.com) and places where we rely on maxrows but should not. + +2009-12-26 Jordi Mallach + * doc/man/nano.1: Avoid a groff warning by prepending a zero-width + space to a line starting with '. + +2009-12-22 Chris Allegretta + * files.c (write_file): Fix compatibility with previous stat fix and tiny mode. + +2009-12-22 David Lawrence Ramsey + * global.c: Add new strings for forward/back in the file browser. New variables + nano_forwardfile_msg and nano_backfile_msg. + +2009-12-20 Chris Allegretta + * files.c (is_file_writable): remove assert check for f, since it's not + initialized at the time. Fixes Savannah bug 28309, reported by Zoltan Kovacs. + +2009-12-20 Brian Szymanski + * src/files.c (write_file): Check stat struct exists, and if not use just obtained stat data. + Fixes Ubuntu bug 471568, "reproducible crash in nano on trying to save to a file + different than the one specified on the command line". + +2009-12-15 Chris Allegretta + * doc/nanorc.sample.in - Remove erroneous 'set suspendenable' as it's actually a + key binding (e.g. 'bind M-Z suspendenable all') and not a settable flag. Fixes + Savannah bug 28299 reported by Mike Frysinger. + +GNU nano 2.2.1 - 2009.12.12 +2009-12-12 Chris Allegretta + * text.c (do_delete), nano.c (do_output): Add check for length of current line + before and after adding/deleting text, and do full refresh if it is now + a different multiple of COLS. Also get rid of superfluous do_refresh + vars now that we have edit_refresh_needed. + +2009-12-09 David Lawrence Ramsey + * global.c (shortcut_init), browser.c (do_browser): Fix M-W not being bound to + research in either main menu or browser. + +2009-12-09 Chris Allegretta + * files.c (read_file) - Add parameter for whether we should even try to check + file writability, as the message is useless when we're inserting into an + existing buffer. Fixes Savannah bug 28219. + +2009-12-07 David Lawrence Ramsey + * global.c (shortcut_init): Many fixes for keybindings code oversights, including + restore page up/down and GotoDir to browser, + * browser.c (do_browser): Fix breaking out of a submenu (e.g. gotodir) breaks out + of browser altogether. + * doc/nanorc.sample.in: Add missing entries for fortran/ObjC/OCaml entries. + +2009-12-03 David Lawrence Ramsey + * global.c (shortcut_init) - Remove help shortcut from help shortcut list :-) Tweaked + to reorder exit shortcut to end of list to not mess up prev/next shortcut symmetry. + +2009-12-03 Eitan Adler + * doc/syntax/makefile.nanorc - Fix poor regex for all alpha characters which sometimes leads to + error messages, reported by gibboris@gmail.com. + +2009-12-02 Chris Allegretta + * text.c (add_undo, do_undo, do_redo) - Do not execute cases for SPLIT when DISABLE_WRAPPING + is defined. Fixes Savannah bug 28151 (anon). + +2009-12-02 Jordi Mallach + * doc/man/nano.1: Fix escaping of hyphens for the -$ option. + +2009-12-01 Kamil Dudka + * chars.c, file.c - Better handle unused results for things like mbtowc(), new + macro IGNORE_CALL_RESULT. + +2009-12-01 Chris Allegretta + * global.c (shortcut_init) - Remove redundant entries for ^Y/^V reported by + Christian Weisgerber. + * doc/man/nanorc.5 - Fix typo in Meta documentation, reported by gibboris@gmail.com. + +2009-12-01 David Lawrence Ramsey + * global.c (shortcut_init) - Add support for ^P and ^N in the help menu. + * Update documentation for 2.2 features including sample nanorc file, texinfo + file, man pages, UPGRADE file, and update copyright noticed for the current year. + +GNU nano 2.2.0 - 2009.11.30 +2009-11-29 Chris Allegretta + * prompt.c (get_prompt_string) - Universally handle help key when is +disabled. Fixes Savannah + bug 28117 by David Lawrence Ramsey . + * chars.c, files.c: Add junk vars to silence the compiler. Sigh. + +2009-11-29 David Lawrence Ramsey + * Change several *chars to const char, additional cleanups and casts to make compilers happier. + * global.c: Fix replace and insert file initializations for proper compilation options. + * nano.c (do_suspend): Update comments to reflect actual code path, bad Chris and thanks for + noticing Jordi. + * configure.ac: Fix typos + +2009-11-27 Chris Allegretta + * nano.c (do_suspend): Don't clear the screen but do move the cursor down to the last line + first in an effort to not corrupt the screen, which contradicts Pico but is consistent + with almost all other text editors. Fixes Savannah bug 28110/Debian bug 460510 + reported by Tim Connors . + * doc/dyntax/makefile.nanorc - Sample Makefile highlighting based on wiki.linuxhelp.net version. + +2009-11-26 Chris Allegretta + * winio.c (edit_scroll): Adjust for long lines when scrolling. + * rcfile.c (parse_rcfile), initialize size argument to getline(), fixes crash on FreeBSD + reported by Eitan Adler . + +2009-11-26 Jordi Mallach + * doc/man/*: Update all man pages to escape unescaped hyphens. + +2009-11-24 Chris Allegretta + * move.c (do_page_up, do_page_down): Make these functions work better with soft + line wrapping. + * winio.c (compute_maxrows): Make maxrows calculation more accurate when all lines are > COLS. + +2009-11-22 Chris Allegretta + * nano.c (main): Allow edit_refresh_needed to take effect when using --enable-tiny + (fixes Savannah bug 28076 reported by David Lawrence Ramsey). + +2009-11-22 David Lawrence Ramsey + * nano.c (move_to_filestruct): Fix bug 71 (cut at top of line recenters) + * Fix compilation with --enable-tiny + +2009-11-22 Mike Frysinger + * doc/syntax/gentoo.nanorc: Tweak comment highlighting. + +GNU nano 2.1.99pre2 - 2009.11.21 +2009-11-21 Chris Allegretta + * rcfile.c: Add unbinding keyword, fixes Savannah bug 22852 reported by frankd. + * prompt.c (update_statusbar_line): Set statusbar_pww when updating the line. + Fixes Savannah bug 24957 by Mike Frysinger. + +2009-11-19 Chris Allegretta + * nano.c (die_save_file) Try nd match the permissions of the file we were + editing but only make a minimal effort to do so. Fixes Savannah bug 27273 + reported by Mike Frysinger. + +2009-11-18 Adrian Bunk + * nano.c (main): Allow --fill and --nowrap to override nanorc entries and each other + on the command line. + +2009-11-15 Chris Allegretta + * winio.c (edit_refresh): Always computer maxsize regardless of whether smooth scrolling + is enabled. Fixes Savannah bug 28024 by Mike Frysinger. + +GNU nano 2.1.99pre1 - 2009.11.15 +2009-11-14 Chris Allegretta + * move.c (do_first_line, do_last_line): Just set edit_refresh_needed rather than + get messy. + * files.c (do_writeout) - Only mention file modification if we're writing the same + file we originally opened. + +2009-11-13 Chris Allegretta + * winio.c: Add new static maxsize to be able to easier calculation with + softwrap. + * nano.c (do_mouse): Fix mouse support not working with soft wrapping. Fixes + Savannah bug 27549 reported by Hannes Schueller. + +2009-11-11 Chris Allegretta + * winio.c: Large tweaking of cursor and text display based on COLS not COLS - 1, + due to finally understanding that display_string wasn't being called properly + when softwrap was enabled. Fixes Savnnah bug 27603, Return key doesn't scroll + viewport reported by Hannes Schueller. + * - Fix size_t formatting issues with -pedantic + +2009-11-09 Chris Allegretta + * files.c (read_file): - Remove debugging messages from file load. Fixes + Savannah bug 27838. + +2009-11-07 Chris Allegretta + * nano.h - Add bogus value at begin of flags enumeration because it + causes casesens rcfile option to misbehave, reported by Helmut + Jarausch + +2009-11-03 Chris Allegretta + * nano.h - Fix comma at end of enumerator list which angers -pedantic. + * rcfile.c - Add in specific check for UNDOABLE and fix declaration as + to what flag it toggles. Fixes undo mode being able to be called from + the rc file, reported by Helmut Jarausch + +2009-11-03 Mike Frysinger + * files.c - Move up is_file_writable() to stop implicit definition complaints. + +2009-10-27 Chris Allegretta + * browser.c (browser_init): Set column width to something sane when + initializing in a directory with no file entries. Fixes Savannah + bug 24163 found (and initial patch) by Paul Wise. + +2009-09-15 Chris Allegretta + * winio.c: Clean up some unused variables from the soft wrapping code. + +GNU nano 2.1.11 - 2009.09.14 +2009-09-12 Chris Allegretta + * winio.c (edit_update) - properly update edittop when using soft wrapping. + Fixes lack of centering for searching for off-screen answers, found by + Hannes . + +2009-09-03 Chris Allegretta + * global.c (shortcut_init): Fix up/down keys not responding in the file browser, + discovered by Hannes . + * move.c (do_up) - Fix another scrolling issue with softwrap when the + cursor is beyond COLS, discovered by Hannes . + +2009-09-02 Chris Allegretta + * Attempt to check file writability and emit a warning on the status bar + if nano doesn't think the file can be written to. Feature originally + requested by Damien Jolders et al. + +2009-08-29 Chris Allegretta + * Fix more soft wrapping issues, particularly with scrolling, + discovered by Hannes . + +2009-08-19 Chris Allegretta + * Fix issue with soft wrapping not displaying the last character of each line, + fixed bug discovered by Hannes . + +2009-08-17 Mike Frysinger + * doc/syntax/(gentoo|sh|tcl).nanorc: Fix problems with empty regexes on POSIX. + Fixes Savannah bug 27175. + +2009-08-17 Chris Allegretta + * Initial soft line wrapping implementation. Command line flags + -$ or --softwrap. + * nano.c, text.c: Clean up some fprintf warnings in debug mode due to printing + a size_t without using the zd specifier. +2009-08-13 Chris Allegretta + * New global flag implementation courtesy of Adam Wysocki , allows + previous undo flag to be implemented consistent with other flags. + +GNU nano 2.1.10 - 2009.07.28 +2009-07-27 Chris Allegretta + * text.c (undo_cut, redo_cut): Don't actually try and undo/redo an empty cut, i.e. the magicline. + Fixes crash on cutting last line discovered by Eitan Adler . + +2009-07-11 Chris Allegretta + * nano-regress: Small tweaks + * Change undo code to off unless unabled via a command line option (-u/--undo). Until this code + stabilizes this is the only responsible way to treat it. + +2009-03-08 Chris Allegretta + * TODO - Break out some targets for various features into 2.2 + and 2.4 series for things which are feasible. + +2009-02-28 Chris Allegretta + * configure.ac: Add check for whether _XOPEN_SOURCE_EXTENDED is needed for + curses to work w/color. Fixes compilation on HP-UX with older GCC, + reported by jay.krell@cornell.edu. + +2009-02-23 Eitan Adler + * doc/man/Makefile.am: Fix make variable substitution to be more portable + +2009-02-23 Chris Allegretta + * rcfile.c (parse_keybinding) - Define a var before tryung to use it. Whoops! + * fix some redefinitions causing compiler warnings, from Eitan Adler. Other + (hopefully) fixes for uncasted malloc()s, reported by the same. + * doc/man/fr/Makefile.am: Add groff check fix to fr files. + +GNU nano 2.1.9 - 2009.02.16 +2009-02-16 Chris Allegretta + * Add new argument to reset_multis for force redraws without attempting to + guess whether we need to, for functions that we don't have good info about + the text state. New utility function color.c:reset_multis_for_id(). + +2009-02-15 Chris Allegretta + * configure.ac, doc/man/Makefile.am - Add check for HTML output support in GNU + groff. Fixes Savannah bug #24461: build traps on groff. Also, add installation + of html-ized man pages to $datadir/nano/man-html, since we should probably + install files we went to all the trouble of generating. + +2009-02-14 Chris Allegretta + * nano.c (precalc_multicolorinfo) - Add debugging so we have a better clue if further + issues arise. Also start at the beginning of later lines when trying to match the + end of a multi-line regex. Fixes more overly aggressive highlighting found by + Mike Frysinger. Finally, advance to the match end for performance. + +2009-02-11 Chris Allegretta + * nanorc.c (parse_include): Do call real_dir_from_tilde() on included + files in .nanorc, but still avoiding bug #25297. Fixes ~ and ~user + specifications for nanorc include files, as reported by Eitan Adler. + +2009-02-09 Chris Allegretta + * New option -q, --quiet, rcfile option "quiet" implemented. Skips printing + errors about the rcfile and asking user to press enter. Also, nano should + now only ask for one enter press when there is an error when not using -q. + Based on discussion between Eitan Adler and Mike Frysinger. + * rcfile.c (parse_keybinding) - Significant cleanups and fixes for + detecting and reporting errors in key bindings code. + +2009-02-08 Chris Allegretta + * Make reset_multidata reset more lines, since contrary to previous problems the + syntax highlting is now too *un*ambitious, causing display glitches when + deleting a regex boundary. + * Add more multidata initliazers for new buffers and 'magic lines'. Fixes segfaults + with syntax highlighting in new buffers, initially reported by Mike Frysinger. + +GNU nano 2.1.8 - 2009.02.07 +2009-02-06 Chris Allegretta + * rcfile.c (parse_include): Abort on being unable to open an included rcfile. Fixes + Savannah bug 25490, nanorc: "include"ing a file which doesn't exist causes nano to segfault. + +2009-02-05 Chris Allegretta + * More color syntax speedups: Determine in reset_multis() whether we really need to call + edit_refresh(). Additional global var edit_refresh_needed() to hopefully reduce + repeated calls to the function. New helper funcs reset_multis_before() and + reset_multis_after(). + +2009-02-02 Chris Allegretta + * New color precalculation code for mult-line regexes. New function precalc_multicolorinfo(), + new structure multidata for keeping track of where regexes start/stop. More + performance improvements forthcoming. + +2009-01-29 Chris Allegretta + * nano.c (move_to_filestruct) - properky initialize new fileage for multiswatching, sigh. + Fix cut sefaults discovered by Mike Frysinger. + +2009-01-29 Chris Allegretta + * nano.c (main): Add support for nano acting like a pager when invoked with - as first + file argument. + +2009-01-28 Davide Pesavento + * doc/syntax/gentoo.nanorc: Updates from David and Mike Frysinger. + +2009-01-25 Chris Allegretta + * files.c (open_file), nanorc.c (parse_include): Don't get_full_path on + included rc files, due to it potentially impacting the ability + to read files in nano's cwd(). Fixes Savnanah bug #25297 reported by Mike + Frysinger) + +2009-01-24 Chris Allegretta + * First pass at some caching of caching color info. Right now it's only for + multi-line regexes but this may not be enough to increase performance. + * Add interruptability to search functions. New functions enable_nodelay and + disable_nodelay and changes to the routines to handle checking for pending + searches. Fixes Savnnah bug 24946: Need interrrupt for search. + +2009-01-19 Chris Allegretta + * Change function definitions to shorts instead of (void *)s. New mapping function + iso_me_harder_funcmap(). Fixes compilation complaints with -pedantic, + reported by Eitan Adler . + +GNU nano 2.1.7 - 2008.11.10 +2008-10-20 Chris Allegretta + * files.c (do_writeout): Add check for file modification when saving + the file so the user can at least know they may be blowing away changes. + +2008-10-14 Chris Allegretta + * nanorc.5: Fix redo man page entry and update explanation, reported by + Eitan Adler + * global.c (shortcut_init), search.c (search_init): Fix add_to_sclist for ^W^T so + invalid messages will display properly. Fixes Savannah bug 24507. + +2008-10-13 Chris Allegretta + * Remove CUTTOEND as an undo type as it's unneeded, fix u->to_end logic in undo struct. + * undo.c (update_undo): Don't free cutbuffer if NULL, fix for Savannah bug #24499 + +2008-10-04 Chris Allegretta + * cut.c (Add_undo): Save last cut undo information so it can be used for next uncut, fixes + Savannah bug 24183. + +GNU nano 2.1.6 - 2008.10.03 +2008-10-03 Pascal Gentil + * fortran.nanorc: Sample python syntax highlighting file + +2008-09-30 Dirkjan Ochtman + * python.nanorc: Small python syntax update + +2008-09-30 + * ocaml.nanorc: Sample OCaml syntax highlighting file + +2008-09-30 Dave Geering + * objc.nanorc: Sample Objective-C Syntax Hightlighting file + +2008-09-30 Chris Allegretta + * 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 + +2008-09-21 Chris Allegretta + * rcfile.c, color.c, nano.h: Add new capability for matching a syntax type by the "header" (1st line) + of a file being edited. Based on Savannah bug 24197 and inital proof of concept by Dave Geering + + +2008-09-16 Chris Allegretta + * text.c: Add support for undoing a text uncut. Split out the undo and redo of a text cut + in order to avoid code duplication. + +2008-09-06 Chris Allegretta + * nano.c: Do call disable_signals at startup regardless, since under cygwin we can't generate + ^C without it. + +GNU nano 2.1.5 - 2008.08.30 +2008-08-29 Chris Allegretta + * configure.ac, color.c, rcfile.c, utils.c: 1st attempt at supporting systems which don't support + GNU-style word boundaries. New function fixbounds() to translate from GNU-style to + BSD-style, autoconf option GNU_WORDBOUNDS. + * nano-regress: New perl script to check for some of the more obvious issues with compilation + issues with certain configure options. + * global.c, help.c, browser.c, files.c, proto.h: Fix several compipation and programmatic + issues with --disable-help, especially that do-writeout was treating ^G the same as ^M. + +2008-08-28 Chris Allegretta + * configure.ac, rcfile.c: Add support for an alternate rcfilename at configure time. Maybe this + should become a command line option some day, but I don't see the need currently. Start of + fix for Savannah bug #24128: Add nanorc support to win32 platform. + +2008-08-21 Chris Allegretta + * text.c: Change error messages where we may possibly get into a bad state and urge + the user to save when this happens. Originally by Benno Schulenberg + * text.c (do_enter): Fix issue when compiled with --enable-debug, fixes Savannah bug 24092. + +2008-08-08 Magnus Granberg / Adam Conrad + * files.c (write_file): Add needed flags to open() calls when writing out files. Fixes Savannah bug + #23827: Compilation fails with -D_FORTIFY_SOURCE=2 + +2008-08-08 Chris Allegretta + * files.c (write_file): Check exit code of fclose(), since in certain out of space conditions the OS will + happily report successful fwrite()s until you try and close the file. Fix for Savannah bug + #24000: no free space on partition - nano claims successful write - file empty + +GNU nano 2.1.4 - 2008.08.09 +2008-08-08 Chris Allegretta + * files.c (write_file): Do not go on and attempt to write the main file if writing the backup file failed, + related to Savannah bug 24000. + * text.c (do_redo): Fix improperly restoring the text when redoing a line split. + * text.c (add_undo): Fix check for multi-line cut check skips adding other new legit events. + +2008-07-23 Chris Allegretta + * text.c: Reset openfile-> to OTHER after an undo or redo so we don't mistakenly + mistakenly think this is an update when it's really an add. Also + Fix an extra ; after an if statement which makes nano try to free a struct which + may be NULL + +GNU nano 2.1.3 - 2008.08.04 +2008-07-23 Chris Allegretta + * configure.ac: Add ncursesw dir to include path if lib detected + +2008-07-11 Mike Frysinger + * doc/nanorc.sample.in: Include the updates files in the default sample nanorc. + +2008-07-11 Fabian Groffen + * nano.c: Don't include langinfo.h if not using ENABLE_UTF8 + (Savannah patch 6565) + +2008-07-11 Mitsuya Shibata + * text.c: Fix crashing in help menu when using certain locales + (Savannah bug 23751) + +2008-07-09 Chris Allegretta + * nano.c/nano.h/global.c/text.c: New generalized undo code, currently + just works for adding and deleting text and splitting and unsplitting lines. + +2008-06-29 Chris Allegretta + * global.c: Fix for not having search history when --disable-justify is used + (Savannah bug 23733) + + +GNU nano 2.1.2 - 2008.06.24 +2008-06-24 Chris Allegretta + * rcfile.c: Added function check_bad_binding() to look for sequences which + shouldn't be bound, per Savannah bug 22674. + +2008-05-31 Chris Allegretta + * prompt.c,search.c,global.c: Tentative fix for bug #23144: using arrow + keys in search buffer affects main window (by Mike Frysinger) + +2008-05-31 Chris Allegretta + * global.c: Fix for Savannah bug #23442: left/right arrow keys + do not work with --enable-tiny (by Mike Frysinger) + +2008-05-31 Chris Allegretta + * files.c,proto.h,text.c: Fix for conflicts with AIX curses + variables, from William Jojo + +2008-05-31 Chris Allegretta + * global.c: Fix for compile error when --disable-speller is used + (Savannah bug 23227 by Mike Frysinger) + +2008-05-31 Chris Allegretta + * Fix for seg fault when window size too small, by + Andreas Amann + +GNU nano 2.1.1 - 2008.04.01 +2008-05-31 Chris Allegretta + * Added the following contributed files, by owner: + Donnie Berkholz + * Sample awk.nanorc + Simon Rupf + * Sample css.nanorc + Josef 'Jupp' Schugt + * sample ruby.nanorc + +2008-03-31 Chris Allegretta + * global.c: Fix for issues compiling with --enable-tiny and + --enable-multibuffer, as reported by Mike Frysinger. + * files.c: Fix the fact that the insert file prompt text did not + properly appears in tiny mode. + +2008-03-19 Benno Schulenberg + * help.c, nano.c: Fix toggle help not being translated, fix allocation + issue. + +2008-03-19 Chris Allegretta + * gloabl.c: Fix bracket matching sequence to be M-] not M-[, as reported + Nick Warne . + * doc/syntax/Makefile.am - Actually include new syntaxes from Mike, etc + * debian.nanorc - New debian sources.list config since we're including + gentoo, adapted from Milian Wolff + +2008-03-18 Mike Frysinger + * winio.c: Remove unneeded variable in parse_kbinput() + * rcfile.c: relocate check_vitals_mapped() function to just above + where it actually gets used and declare it "static void" in the process + * global.c: only declare nano_justify_msg when justify support is enabled + * php.nanorc: Php syntax highlighting config + * tcl.nanorc: Tcl syntax highlighting config + * gentoo.nanorc: Gentoo syntax highlighting config + +2008-03-17 Benno Schulenberg + * global.c: Fix incorrect first line jump messsage, fix + more comments to assist translators + * winio.c: Fix shortcut labels not being translated. + +2008-03-17 Mike Frysinger + * */.gitignore: Git ignore files for those running a local git + against SVN. + +2008-03-16 Benno Schulenberg + * src/help.c, src/global: Fix help strings no longer being + translated properly. + * src/global.c, doc/man/nanorc.5: Fix typos and poorlly worded lines + in the source and man pages. + +2008-03-04 Chris Allegretta + + * AUTHORS, doc/faq.html: Update maintenance information. + * NEWS: Resync with NEWS from the 2.0 branch. + +2007-12-18 David Lawrence Ramsey + + * nano.c (print_opt_full): Use strlenpt() instead of strlen(), + so that tabs are placed properly when displaying translated + strings in UTF-8, as found by Jean-Philippe Guérard. + +2007-12-17 David Lawrence Ramsey + + * configure.ac, doc/texinfo/nano.texi, nano.c (terminal_init): + Change slang curses emulation support to turn off the same + options as --enable-tiny, as it's hopelessly broken otherwise. + * nano.c (disable_signals, main): Simplify terminal handling by + using raw mode instead of cbreak mode. + * text.c (execute_command): Call terminal_init() instead of just + disable_signals() after executing the command, as the command + may have changed the terminal settings. + * ChangeLog.pre-2.1: Add missing attribution. + * NEWS: Resync with NEWS from the 2.0 branch. + +2007-12-10 David Lawrence Ramsey + + * nano.c (main): Exit if initscr() fails. + +2007-12-09 David Lawrence Ramsey + + * faq.html: Add minor punctuation and wording fixes, and update + various sections to account for Alpine. + +2007-12-08 David Lawrence Ramsey + + * prompt.c (do_statusbar_mouse, reset_statusbar_cursor, + update_statusbar_line, need_statusbar_horizontal_update): Fix + minor display and cursor placement problems when scrolling + between pages at the statusbar prompt. + +2007-12-07 David Lawrence Ramsey + + * winio.c (get_mouseinput): Fix longstanding problem where mouse + clicks on the statusbar prompt text wouldn't be recognized + unless the NO_HELP flag was turned off. + * doc/man/rnano.1, doc/man/fr/rnano.1: Update copyright notices, + as Thijs Kinkhorst's copyrights have now been assigned to the + Free Software Foundation. + +2007-12-04 David Lawrence Ramsey + + * nano.c (main), prompt.c (get_prompt_string), winio.c + (do_replace_highlight): Per OKATA Akio's patch, with minor + tweaks by me, add wnoutrefresh() calls after + reset_(statusbar_)?cursor() calls, to ensure that the cursor is + placed properly when using NetBSD curses. + * nano.c (disable_mouse_support, enable_mouse_support): When + toggling mouse support on or off, save and restore the mouse + click interval. + +2007-11-29 Jean-Philippe Guérard + + * doc/man/fr/*.1, doc/man/fr/nanorc.5: Fix copyright notices. + The copyrights are disclaimed on these translations, but the + copyrights of the untranslated works also apply. + +2007-11-28 David Lawrence Ramsey + + * doc/man/fr/nanorc.5: Remove trailing whitespace. + +2007-11-17 David Lawrence Ramsey + + * files.c (read_file): Improve autodetection of DOS and Mac + format files to not trigger on carriage returns in the middle of + files, as found by Kjell Braden. + +2007-11-06 David Lawrence Ramsey + + * doc/man/rnano.1, doc/man/fr/rnano.1: Update copyright notices, + as Jordi Mallach's copyrights have now been assigned to the Free + Software Foundation. + +2007-11-05 David Lawrence Ramsey + + * search.c (do_gotolinecolumn): Use a clearer error message if + we enter an invalid line or column number, per Mike Melanson's + suggestion. + +2007-10-11 David Lawrence Ramsey + + * doc/man/nano.1, doc/man/fr/nano.1, doc/texinfo/nano.texi, + src/*.c, src/*.h: Update copyright notices, as Chris + Allegretta's copyrights have now been assigned to the Free + Software Foundation. + * doc/man/nanorc.5, doc/man/fr/nanorc.5: Make copyright notices + for these files consistent in style. + * files.c (cwd_tab_completion): Remove unneeded assert. + * files.c (username_tab_completion, cwd_tab_completion): Rename + variable buflen to buf_len, for consistency. + * files.c (input_tab): Disable completion of usernames, + directories, and filenames if the cursor isn't at the end of the + line, as it can lead to odd behavior (e.g. adding a copy of the + entire match to the middle of the line instead of just the + uncompleted part of the match). + +2007-10-05 David Lawrence Ramsey + + * src/*.c, src/*.h: Update copyright notices, as my copyrights + have now been assigned to the Free Software Foundation. + +2007-09-16 David Lawrence Ramsey + + * winio.c (edit_scroll): Fix problem where the screen wouldn't + be updated properly if you paged up with the first line of the + file onscreen and the mark on. + +2007-08-26 David Lawrence Ramsey + + * doc/faq.html: Update links to the Free Translation Project. + +2007-08-23 Jean-Philippe Guérard + + * doc/man/fr/*.1, doc/man/fr/nanorc.5: Add translation of new + licensing terms. + +2007-08-23 David Lawrence Ramsey + + * doc/man/fr/*.1, doc/man/fr/nanorc.5: Delete translation of + old licensing terms, until it can be updated. + +2007-08-22 David Lawrence Ramsey + + * COPYING.DOC: Add a copy of the GNU FDL version 1.2. + * Makefile.am: Add COPYING.DOC to EXTRA_DIST. + * doc/man/*.1, doc/man/nanorc.5, doc/man/fr/*.1, + doc/man/fr/nanorc.5, doc/texinfo/nano.texi: Relicense to the GNU + GPL version 3 or later/the GNU FDL version 1.2 or later with no + Invariant Sections, Front-Cover Texts, or Back-Cover Texts. + +2007-08-21 David Lawrence Ramsey + + * doc/man/rnano.1, doc/man/fr/rnano.1: Add missing copyright + notice from nano-tiny.1, which rnano.1 is based on. + * doc/man/fr/nano.1, doc/man/fr/nanorc.5, doc/man/fr/rnano.1: + Make all copyright notices consistent. + +2007-08-16 David Lawrence Ramsey + + * files.c (do_insertfile): Properly handle more cases of + inserting a file with the mark on. + * nano.c (copy_from_file): Properly handle more cases of + uncutting text with the mark on. + +2007-08-15 David Lawrence Ramsey + + * Makefile.am: Remove erroneous backslash after + ChangeLog.pre-2.1 in EXTRA_DIST, so that "make dist" works + again. + * files.c (do_insertfile): Make sure the mark is always properly + positioned after inserting a file with the mark on. + * nano.c (copy_from_file): Make sure the mark is always properly + positioned after uncutting multiple lines with the mark on. + +2007-08-11 David Lawrence Ramsey + + * COPYING: Add a copy of the GNU GPL version 3. + * configure.ac, *.c, *.h: Relicense to the GNU GPL version 3 or + later. + +2007-08-10 David Lawrence Ramsey + + * files.c (username_tab_completion, cwd_tab_completion, + input_tab): Update copyright notice to account for + modifications. + * utils.c (ngetdelim): Simplify. + * utils.c (ngetline, ngetdelim): Update copyright notice to + account for modifications. + +2007-08-07 David Lawrence Ramsey + + * nano.c (copy_from_file): Fix potential segfault, found by Paul + Goins, after uncutting one line of text with the mark on by + properly preserving the beginning of the mark. + * nano.c (copy_from_file): Make sure the mark is always properly + positioned after uncutting one line of text with the mark on. + +2007-08-01 David Lawrence Ramsey + + * nano.c (version): Display copyright notices. + +2007-07-31 David Lawrence Ramsey + + * configure.ac: Update copyright notice to account for + modifications. + +2007-07-29 David Lawrence Ramsey + + * doc/faq.html: Update RPM links for nano 2.0.x. + +2007-07-11 David Lawrence Ramsey + + * files.c (copy_file): Assert that inn and out don't both point + to the same file. + +2007-07-10 David Lawrence Ramsey + + * chars.c (nstrcasestr, mbstrcasestr, revstrstr, revstrcasestr, + mbrevstrcasestr): Simplify and rewrite to use the strncasecmp() + equivalents. + +2007-07-09 David Lawrence Ramsey + + * chars.c (nstrcasestr, mbstrcasestr, revstrstr, revstrcasestr, + mbrevstrcasestr): Fix typo that broke the check for needle's + being blank. + * chars.c (mbstrncasecmp, mbstrnlen, mbstrpbrk, + has_blank_mbchars): Simplify by using for loops instead of while + loops where possible, to match the single-byte versions of these + functions. + * search.c (do_replace_loop): Fix problem where replacing e.g. + single-byte characters with multibyte ones could result in + openfile->totsize's being miscalculated. + +2007-07-06 David Lawrence Ramsey + + * chars.c (nstrcasestr, mbstrcasestr, revstrstr, revstrcasestr, + mbrevstrcasestr): Return char* instead of const char*. + +2007-07-02 David Lawrence Ramsey + + * chars.c (nstrcasestr, mbstrcasestr, revstrstr, revstrcasestr, + mbrevstrcasestr): For efficiency, return haystack/rev_start + immediately if needle is blank. + +2007-07-01 David Lawrence Ramsey + + * chars.c (nstrncasecmp, mbstrncasecmp): For efficiency, return + zero immediately if s1 and s2 point to the same string. + +2007-06-30 David Lawrence Ramsey + + * prompt.c (do_yesno_prompt): Remove redundant check for + NO_HELP's being FALSE. + +2007-06-28 David Lawrence Ramsey + + * browser.c (do_browser), nano.c (do_mouse), prompt.c + (do_statusbar_mouse, do_yesno_prompt): Further simplify + processing of mouse events by consolidating if clauses. + * winio.c (do_mouseinput): Return unconditionally if we get a + mouse event that we don't deal with, instead of inside an else + clause. + +2007-05-29 David Lawrence Ramsey + + * winio.c (do_mouseinput): Deal with clicks of the first mouse + button again. Oddly, ncurses built without --enable-ext-mouse + needs this, but ncurses built with --enable-ext-mouse doesn't. + +2007-05-25 David Lawrence Ramsey + + * configure.ac, nano.c (main): Replace the current hackish check + for a UTF-8 locale with a proper call to nl_langinfo(). + * winio.c (get_key_buffer): Fix inaccurate comments. + +2007-05-22 David Lawrence Ramsey + + * browser.c (do_browser), nano.c (do_mouse), prompt.c + (do_statusbar_mouse, do_yesno_prompt), winio.c (do_mouseinput): + Simplify processing of mouse events. Instead of calling + wenclose() to get the window a mouse event took place in and + manually adjusting the returned coordinates to be relative to + that window the mouse event took place in, call wmouse_trafo(), + which does both. + +2007-05-20 David Lawrence Ramsey + + * browser.c (do_browser), nano.c (do_mouse), prompt.c + (do_statusbar_mouse, do_yesno_prompt), winio.c (do_mouseinput): + Fix processing of mouse events so that those we don't handle are + ignored instead of being erroneously passed through. + * winio.c (do_mouseinput): Simplify handling of mouse events + involving the first mouse button by only dealing with releases. + * winio.c (do_mouseinput): Improve mouse wheel support to only + move the cursor if we're in the edit window or on the statusbar. + +2007-05-15 David Lawrence Ramsey + + * winio.c (do_mouseinput): Add mouse wheel support, per Helmut + Jarausch's suggestion. Now, if mouse support is enabled, and + nano is using a version of ncurses compiled with the + --enable-ext-mouse option, rolling the mouse wheel up or down + will move the cursor three lines up or down. + +2007-04-23 David Lawrence Ramsey + + * TODO: Add entries for fixing limitations with pasting text and + handling bad/incomplete UTF-8 sequences. + +2007-04-22 David Lawrence Ramsey + + * text.c (backup_lines): Avoid a segfault when the mark begins + and ends on the line after the last line of the paragraph. + +2007-04-21 David Lawrence Ramsey + + * files.c (do_writeout): If we're in restricted mode, we're not + allowed to write selections to files, so don't display the + "Write Selection to File" prompt. + * files.c (do_writeout): Simplify. + +2007-04-19 David Lawrence Ramsey + + * files.c (tail): Remove unneeded if statement. + +2007-04-18 John M. Gabriele + + * doc/faq.html: Add a new section 4.14 (with minor tweaks by + David Lawrence Ramsey) to explain how autoindent affects pasted + text. + +2007-04-18 David Lawrence Ramsey + + * files.c (open_file): Open files using their full paths + whenever possible, so that ~user/file.txt and "~user/file.txt" + are treated the same way if ~user is a user's home directory. + * files.c (real_dir_from_tilde): Simplify. + * files.c (do_writeout): Properly display the warning in all + cases if we try to save (a) an existing file under a different + name, or (b) a file with no name under an existing file's name. + * files.c (do_writeout): Rename variable different_name to + do_warning, for clarity. + * rcfile.c (parse_include): Open files using their full paths + whenever possible, so that ~user/file.txt and "~user/file.txt" + are treated the same way if ~user is a user's home directory. + * rcfile.c (parse_include): Properly check for the included + file's being a directory, a character file, or a block file. + * rcfile.c (parse_include): For consistency, display the + filename as the user entered it if we can't read the specified + file. + * winio.c (parse_kbinput): Interpret Cancel and Shift-Cancel. + * winio.c (get_escape_seq_kbinput): Add missing comments. + +2007-04-17 David Lawrence Ramsey + + * files.c (real_dir_from_tilde): Fix long-standing problem, + found by Justin Fletcher, where directory names that began with + "~", but that weren't users' home directories, could be + erroneously treated as users' home directories (e.g. "~d/" would + be treated as "~daemon/"). + * files.c (input_tab): Don't bother checking if num_matches is + less than zero, as it's a size_t and hence unsigned. + +2007-04-16 David Lawrence Ramsey + + * files.c (real_dir_from_tilde): Fix segfault, found by Justin + Fletcher, when dealing with directory names that begin with "~", + but that aren't users' home directories. + +2007-04-11 Mike Frysinger + + * doc/syntax/asm.nanorc, doc/syntax/c.nanorc, + doc/syntax/sh.nanorc: Copy the regex that highlights trailing + whitespace (with minor tweaks by David Lawrence Ramsey) from + doc/syntax/java.nanorc to these files, as it's also useful in + them. + +2007-04-04 David Lawrence Ramsey + + * AUTHORS, faq.html: Update email address. + * winio.c (get_escape_seq_kbinput): Add escape sequences for + Terminal. + +2007-02-01 Benno Schulenberg + + * global.c (shortcut_init): Reword the movement shortcut + descriptions so that they use "Go to" instead of "Move to", + since not all of them move the cursor in the same way. + * global.c (shortcut_init): Reword the paragraph movement + shortcut descriptions to more accurately describe how they work. + * nano.c (usage): Reword the description of the -S/--smooth + command line option in order to differentiate it from the + associated toggle description. + +2007-01-29 David Lawrence Ramsey + + * ChangeLog: Rework the 2.1 branch's changelog to be more + readable, per Jordi Mallach's suggestion. + * ChangeLog.pre-2.1: Move the 2.0 branch's changelog here, per + Jordi Mallach's suggestion. + * Makefile.am: Add ChangeLog.pre-2.1 to EXTRA_DIST. + * src/help.c (help_init): Add a missing space to the "Execute + Command" help text. diff --git a/ChangeLog.pre-2.1 b/ChangeLog.pre-2.1 new file mode 100644 index 0000000..d3685e2 --- /dev/null +++ b/ChangeLog.pre-2.1 @@ -0,0 +1,8369 @@ +GNU nano 2.0.3 - 2007.01.29 +- General: + - Miscellaneous comment fixes. (DLR) + - More int -> bool conversions. (DLR) + - Don't install the nanorc manpages or generate their HTML + versions if nano is built without nanorc support. Changes to + configure.ac, doc/man/Makefile.am, and doc/man/fr/Makefile.am. + (DLR) + - Simplify the commands that generate HTML documentation in + order to remove unnecessary usage of cat. Changes to + doc/man/Makefile.am, doc/man/fr/Makefile.am, and + doc/texinfo/Makefile.am. (DLR) +- files.c: + do_writeout() + - When setting retval to the return value of + write_(marked_)?file(), use the "?" operator instead of an + if/else clause. (DLR) + is_dir() + - Don't assign dirptr's value using buf until we've asserted + that buf isn't NULL. (DLR) + - Remove unneeded assert. (DLR) +- proto.h: + - Add missing is_dir() prototype. (DLR) +- search.c: + regexp_init() + - Don't assign rc's value via regcomp() until we've asserted + that regexp_compiled is FALSE. (DLR) +- text.c: + do_alt_speller() + - Rename variable altspell_error to alt_spell_error, for + consistency. (DLR) + do_spell() + - Rename variable i to status, for clarity. (DLR) +- winio.c: + do_credits() + - Update the last copyright notice to include 2007. (DLR) +- Makefile.am: + - Add README.CVS to EXTRA_DIST, so that nano's CVS checkout + instructions aren't only available in its CVS snapshots. (DLR) +- README: + - Add more miscellaneous cosmetic fixes. (DLR) +- README.CVS: + - Update for the 2.0 branch of nano. (DLR) +- NEWS: + - Formatting fix. (DLR) +- m4/glib-2.0.m4: + - Import the latest version of this file from glib 2.10.3. (DLR) +- doc/faq.html: + - Update section 4.1 to describe how to open files with names + beginning with '+' at specified columns as well as lines. + (DLR) +- doc/man/fr/Makefile.am: + - Set mandir before setting man_MANS, to more closely match + doc/man/Makefile.am. (DLR) +- doc/syntax/python.nanorc: + - Improve string highlighting regexes. (Mike Frysinger) + +GNU nano 2.0.2 - 2006.12.20 +- General: + - Miscellaneous comment fixes. (DLR) +- browser.c: + do_browser() + - Properly handle directories that contain nulls. (DLR) +- files.c: + do_insertfile() + - Properly handle filenames and executable commands that contain + nulls. (DLR) + write_file() + - Properly handle filenames that contain nulls. (DLR) + do_writeout() + - Fix a segfault when we can't get the full path of either the + filename we want to save under or the original filename. (DLR, + found by Mike Frysinger) +- nano.h: + - Rename NANO_ALT_REPLACE_KEY to NANO_REPLACE_ALTKEY, for + consistency. (DLR) + - Rename NANO_ALT_.* and NANO_.*ALTKEY to NANO_META_.* and + NANO_.*METAKEY, for consistency. (DLR) +- search.c: + update_history() + - Fix minor memory leak. (DLR) +- text.c: + do_spell() + - When setting i to the return value of write_(marked_)?file(), + use the "?" operator instead of an if/else clause. (DLR) + do_verbatim_input() + - Fix minor memory leak. (DLR) +- winio.c: + parse_kbinput() + - Add missing break. (DLR) + - Fix minor memory leak. (Itay Perl) + parse_verbatim_kbinput() + - Fix minor memory leak. (DLR) + edit_draw() + - Fix potential warnings when assigning -1 to paintlen by using + if/else clauses instead of "?" operators. (DLR) +- configure.ac: + - Reword several option descriptions, for clarity. (DLR) +- doc/faq.html: + - Add miscellaneous wording and capitalization fixes. (DLR) +- BUGS: + - Add miscellaneous cosmetic fixes. (DLR) +- README: + - Update for the 2.0 branch of nano. (DLR) + +GNU nano 2.0.1 - 2006.11.20 +- General: + - Miscellaneous comment fixes. (DLR) + - Fix copyright notices to not abbreviate the year list using a + range. Changes to do_credits() and all source files. (DLR) +- files.c: + get_full_path() + - Remove unneeded assert. (DLR) + - Fix problem where only paths would be returned when both paths + and filenames should have been. (DLR) + do_writeout() + - For consistency, when saving a file with no name, don't allow + overwriting an existing file when in restricted mode. (DLR) + - Fix problem where a file could sometimes be overwritten + without a warning prompt. (DLR) +- winio.c: + do_replace_highlight() + - Include the code to display zero-length matches even when + regex.h isn't found, as it can also be used to display + zero-length Unicode characters. (DLR) +- doc/rnano.1, doc/fr/rnano.1: + - Add missing "(C)" to the copyright notice in the comments. + (DLR) +- doc/nano.texi: + - Remove unneeded "." from the copyright notice in the comments. + (DLR) +- NEWS: + - Add missing entries for nano 1.0.2 and 1.0.3, since 1.1.0 + includes their changes. (DLR) + +GNU nano 2.0.0 - 2006.11.06 +- General: + - Miscellaneous comment fixes. (DLR) + - Add syntax for POV-Ray files. New file doc/syntax/pov.nanorc; + changes to doc/nanorc.sample.in and doc/syntax/Makefile.am. + (Donnie Berkholz, minor tweaks by DLR) +- AUTHORS: + - Update for the 2.0 branch of nano. (DLR) +- nano.spec.in: + - Update links for the 2.0 branch of nano. (DLR) + - Update for newer RPM-based distributions. (DLR, adapted from + the nano 1.3.12-1.1.spec file in Fedora Rawhide) + - Delete the changelog section, as it hasn't been kept up to + date, and all its changes are documented here in any case. + (DLR) +- doc/faq.html: + - Update links for the 2.0 branch of nano. (DLR) +- doc/nano.1, doc/nanorc.5, doc/rnano.1: + - Add minor wording fixes. (DLR) +- doc/man/fr/nano.1, doc/man/fr/nanorc.5, doc/man/fr/rnano.1: + - Updated manpage translations by Jean-Philippe Guérard. +- doc/nano.texi: + - Add minor wording and punctuation fixes. (DLR) + +GNU nano 1.9.99pre3 - 2006.10.25 +- chars.c: + nstrncasecmp() + - When returning, use the "?" operator instead of an if/else + clause. (DLR) +- cut.c: + do_cut_text() + - When uncutting text in the process of copying it, always set + placewewant, as do_uncut_text() does, so that the current line + is always updated properly. (DLR) +- files.c: + input_tab() + - Since the field precision operator used in the sprintf() uses + ints and not size_t's, replace it with two strncpy()s, which + use size_t's, and a null termination. (DLR) +- help.c: + parse_help_input() + - Add 'E' and 'e' as aliases for Exit, for consistency with the + file browser. (DLR) +- m4/ac_define_dir.m4: + - Import the latest version of this file from + http://autoconf-archive.cryp.to/ac_define_dir.m4. (DLR) +- doc/faq.html: + - Update the question in section 4.13 to match the version of it + in the answer section. (DLR) +- doc/syntax/c.nanorc: + - Simplify "undef", "ifn?def", "elif", and "else" in the + preprocessor regexes. (DLR) + +GNU nano 1.9.99pre2 - 2006.10.02 +- General: + - Miscellaneous comment fixes. (DLR) + - Make sure that the statusbar cursor position is always + properly reset when we get out of all statusbar prompts. + Changes to do_insertfile(), do_writeout(), + handle_sigwinch(), main(), and do_prompt_abort(). (DLR) +- prompt.c: + do_statusbar_input() + - If we get a verbatim input sequence ending with Ctrl-J, remove + the Ctrl-J from the buffer before interpreting it as Enter, so + that it doesn't erroneously fall through to the edit window + and get interpreted as Justify. (DLR) +- winio.c: + get_input() + - Simplify to avoid an unnecessary key_buffer_len check. (DLR) +- doc/syntax/c.nanorc: + - Add "size_t" and "ssize_t" to the types regexes. (DLR, + suggested by Mike Frysinger) + - Simplify "signed" and "unsigned" in the types regexes. (DLR) + +GNU nano 1.9.99pre1 - 2006.08.29 +- General: + - Miscellaneous comment fixes. (DLR) + - Fix option descriptions. At least one of the two parts of + +LINE,COLUMN must be specified at all times; COLUMN is not the + only optional value. Also, fix wording problems in + -O/--morespace and -W/--wordbounds. Changes to usage(), + UPGRADE, nano.1, nanorc.5, rnano.1, nano.texi, and + nanorc.sample.in. (DLR) + - Fix mouse support so that it truly ignores everything except + releases and clicks of button 1. Changes to + enable_mouse_support() and get_mouseinput(). (DLR) + - In certain places, call wnoutrefresh(bottomwin) after calling + blank_statusbar(), in order to ensure that the statusbar is + actually blanked. Changes to do_help(), do_continue(), + handle_sigwinch(), and update_statusbar_line(). (DLR) + - If the mark isn't on, allow Meta-} and Meta-{ to indent and + unindent only the current line, just as it would if the mark + covered only the current line, instead of displaying a + statusbar message and quitting. Changes to shortcut_init(), + do_indent_marked() (renamed do_indent()), + do_indent_marked_void() (renamed do_indent_void()), + do_unindent_marked_void() (renamed do_unindent()), and + UPGRADE. (DLR, suggested by John M. Gabriele) + - Consolidate do_scroll_(up|down)() into do_(up|down)(), as + they have a lot of duplicate code. New functions do_up_void() + and do_down_void(); changes to shortcut_init(), do_up(), + do_scroll_up(), do_down(), do_scroll_down(), do_left(), and + do_right(). (DLR) + - Make Jordi's email address, and the description of what the + manual pages were written for, consistent in the + documentation. Changes to AUTHORS, nano.1, nanorc.5, and + rnano.1. (DLR, based on suggestions by Jordi) + - Don't include sys/ioctl.h in nano.c when NANO_TINY is defined, + as ioctl() is never used then. (DLR) + - Improve the display of bools in debugging statements. Changes + to parse_kbinput(), get_escape_seq_kbinput(), + parse_escape_seq_kbinput(), get_shortcut(), and get_toggle(). + (DLR) + - Rename the values of the scroll_dir enum to UP_DIR and + DOWN_DIR, since UP is defined as a termcap value in Tru64's + and NetBSD 3.0's curses.h, which breaks compilation on those + systems. Changes to do_page_up(), do_page_down(), do_up(), + do_down(), nano.h, and edit_scroll(). (DLR; found by Daniel + Richard G. and Adam Wysocki, repectively) + - Rename the DISABLE_ROOTWRAP #define to DISABLE_ROOTWRAPPING. + (DLR) + - When using slang 2.x, call SLutf8_enable() with an argument of + 1 instead of TRUE, as that's the proper way to enable its + UTF-8 support. Changes to main() and configure.ac. (DLR) + - Fix punctuation relating to "i.e." in various comments and + documentation. (Benno Schulenberg and DLR) + - Make bad_mbchar a static const char* const in chars.c, as its + value doesn't change. (DLR) + - Add various clarifications to translated strings. Changes to + do_insertfile_void(), shortcut_init(), toggle_init(), + help_init(), print_view_warning(), usage(), and do_mark(). + (Benno Schulenberg, minor tweaks by DLR) + - Properly preserve the cursor position when going from the + "Read File" or "Save File As" prompt to the file browser to + the "Go To Directory" prompt, and then canceling back to the + "Read File" or "Save File As" prompt. Changes to + get_prompt_string() and do_prompt(). (DLR) + - Rename the parameter old_pww to pww_save in + need_statusbar_horizontal_update(), need_horizontal_update(), + need_vertical_update(), and edit_redraw(); and rename the + variable old_pww to pww_save in do_search() and do_research(); + for consistency. (DLR) +- browser.c: + do_browser() + - Refactor the mouse support, modeling it after do_mouse() for + consistency. (DLR) + - Remove unneeded call to blank_edit(). (DLR) + - After entering "..", select the directory we were in before + instead of the first filename in the list, as Pico does. (DLR) + - Simplify screen update handling and exiting. (DLR) + - Fix potential segfault when going to a directory that doesn't + begin with '/'. (DLR) + do_browse_from() + - During the operating directory check, if path isn't NULL, + don't bother freeing it before mallocstrcpy()ing operating_dir + into it, as the latter operation will free it. (DLR) + - Don't bother freeing path if it's NULL. (DLR) + browser_init() + - Fix off-by-one error when calculating longest that kept the + rightmost column of the screen from being used. (DLR) + - Calculate width here instead of in browser_refresh(), as it's + more consistent. (DLR) + - If filelist is initialized, free it here instead of in several + places in do_browser(). (DLR) + browser_refresh() + - Simplify. (DLR) + - Fix problems where translated versions of "(dir)" could be + truncated, and where file sizes could be too long. (DLR) + - For the ".." entry, display "(parent dir)" instead of "(dir)", + as Pico does. (DLR) + - If a filename is too long, truncate it and display an ellipsis + before it, as titlebar() does. (DLR) + - Add translator comments explaining the maximum intended + lengths of "(dir)" and "(parent dir)". (DLR) + - Fix problem where width wouldn't be properly initialized if + the file list took up one line or less. (DLR) + - Don't display overly long filenames with ellipses if the + number of columns is extremely small. (DLR) + browser_select_filename() + - New function, used to select a specific filename in the list. + (DLR) + findnextfile() + - Simplify the uses of tail(). (DLR) + striponedir() + - Since all the strings passed to this are dynamically + allocated, use null_at() to strip the directory from the + string. Also, return the stripped path instead of modifying + path. (DLR) +- chars.c: + mbstrncasecmp(), mbstrcasestr(), mbrevstrcasestr() + - Don't allocate space for multibyte characters until we've + asserted that the parameters we're using aren't NULL. (DLR) +- files.c: + do_insertfile() + - If we execute a command in a new buffer, move back to the + beginning of the first line of the buffer afterwards, for + consistency. (DLR) + - If we don't insert a file into a new buffer, properly update + the x-coordinate to account for the number of characters + inserted on the current line. (DLR) + get_full_path() + - Don't return NULL when the current directory doesn't exist, as + we can still recover from that. (DLR, found by Mike Frysinger) + - Add various cleanups. (DLR) +- global.c: + sc_init_one(), shortcut_init() + - Don't include blank_after when DISABLE_HELP is defined, as + it's never used then. (DLR) + shortcut_init() + - Remove the ^X shortcut for CutTillEnd at the search prompt, as + official Pico doesn't include it, and it can be confused with + Exit. (DLR, suggested by Benno Schulenberg) + - Make the help shortcut for the "Go to Directory" prompt call + do_browser_help() instead of do_help_void(), as this prompt is + only accessible inside the file browser. (DLR, found by Benno + Schulenberg) + toggle_init() + - Don't include desc or blank_after when DISABLE_HELP is + defined, as neither are ever used then. (DLR) + - Make sure that a blank line is not displayed after the Meta-Q + toggle when mouse support is disabled and we're in restricted + mode, and that it is displayed all other times. (DLR) + toggle_init_one() + - Don't include desc or blank_after when DISABLE_HELP is + defined, as neither are ever used then. (DLR) +- help.c: + do_help() + - Simplify screen update handling and exiting. (DLR) + - Don't allow moving down a page when the last line of the help + text is onscreen. (DLR) + help_init() + - Adjust the first two chunks of the main help text so that + they're no more than 509 characters again. (DLR) +- move.c: + do_scroll_up(), do_scroll_down() + - Fix problems where, after scrolling, the previous and current + lines would not be updated properly if the current line was + not the first or last line of the edit window. (DLR, found by + Mike Frysinger) +- nano.c: + handle_sigwinch() + - Just in case we're in the statusbar prompt, reset the + statusbar cursor position when resizing the window. (DLR) +- nano.h: + - Remove the manual disabling of color support if regex.h isn't + found, as configure.ac now handles that. (DLR) +- rcfile.c: + parse_rcfile() + - Add missing ENABLE_COLOR #ifdef around the second check for a + syntax with no color commands, to fix compilation with rcfile + support and without color support. (Daniel Richard G.) +- search.c: + replace_regexp() + - Remove unnecessary casting of c to int. (DLR) +- text.c: + execute_command() + - Remove the marking of the file as modified, as do_insertfile() + now handles that. (DLR) +- utils.c: + digits() + - Tweak to remove the assumption that n is always positive, + although it always is in this particular case. (DLR) +- winio.c: + parse_kbinput() + - Properly handle combined meta and escape sequences, so that + e.g. Meta-/ will work properly when the / is on the numeric + keypad and NumLock is off. Also, properly handle combined + control character and escape sequences, so that e.g. Esc Esc / + will work properly when the / is on the numeric keypad and + NumLock is off. (DLR) + - Translate extended keypad keys to their ASCII equivalents even + when we hit Escape once or twice before typing them, for + consistency. (DLR) + - If they're defined, translate KEY_SUP into NANO_PREVLINE_KEY + and KEY_SDOWN into NANO_NEXTLINE_KEY, since they are sometimes + generated by Shift-Up and Shift-Down. (DLR) + parse_escape_seq_kbinput() + - Handle unknown and unignored escape sequences once here + instead of twice in parse_kbinput(). (DLR) + - Don't ignore escape sequences anymore. Instead, return the + corresponding key so that parse_kbinput() can translate it. + (DLR) + display_string() + - Properly handle buf[start_index]'s being a null terminator. + (DLR) + edit_draw() + - Simplify the setting of paintlen. (DLR) + titlebar() + - Don't display overly long filenames with ellipses if the + number of columns is extremely small. (DLR) + - Don't display any blank space for the state if we're in the + file browser, as Pico doesn't. (DLR) +- configure.ac: + - If regex.h isn't found, display an error message if we try to + enable color support. (DLR) + - Fix the spacing of the error message displayed when slcurses.h + isn't found. (DLR) + - If we use the --disable-wrapping option, ignore the + --disable-wrapping-as-root option. (DLR) + - Add minor cosmetic tweaks. (DLR) +- doc/Makefile.am: + - Don't include nanorc.sample in EXTRA_DIST, as it's only useful + when we're building from source, as opposed to building a + distribution. (DLR) + - Tweak to remove usage of the += operator again. (DLR) +- doc/man/Makefile.am: + - Tweak to remove usage of the += operator again. (DLR) +- doc/man/fr/nano.1, doc/man/fr/nanorc.5, doc/man/fr/rnano.1: + - Updated manpage translations by Jean-Philippe Guérard. +- doc/faq.html: + - Update section 5.3 again to not state "the latest development + version" before 1.3.12, as it's no longer accurate. (DLR) + - Add some minor spacing fixes. (DLR) +- doc/nano.texi: + - Add missing description of the -O/--morespace command line + option. (DLR) +- doc/syntax/c.nanorc: + - Since .i and .ii are preprocessed C and C++ output, colorize + them here. (Mike Frysinger) + - Remove redundancy from the file extension regexes. (DLR) +- doc/syntax/ruby.nanorc: + - Add missing blank line after the first comment, for + consistency. (DLR) + - Improve highlighting of constants. (John M. Gabriele, minor + tweaks by DLR) + +GNU nano 1.3.12 - 2006.06.26 +- General: + - Miscellaneous comment fixes. (DLR) + - Implement filename searches in the file browser. New + functions filesearch_init(), findnextfile(), + findnextfile_wrap_reset(), filesearch_abort(), + do_filesearch(), do_fileresearch(), do_first_file(), + do_last_file(), do_help_void(), and do_browser_help(); changes + to do_browser(), parse_browser_input(), shortcut_init(), + do_help(), and help_init(). (DLR) + - Open all files in binary mode for consistency and robustness. + Changes to load_history() and do_rcfile(). (DLR) + - Change translator-specific comments in global.c and prompt.c + so that they show up in nano.pot, and make them all + consistent. (Benno Schulenberg and DLR) + - Reduce USE_UTF8 to a static bool in chars.c, allow nano.c to + set it via a function, and allow winio.c to read its value + when needed. New functions utf8_init() and using_utf8(); + changes to is_alnum_mbchar(), is_blank_mbchar(), + is_cntrl_mbchar(), is_punct_mbchar(), control_mbrep(), + mbrep(), mbwidth(), mb_cur_max(), make_mbchar(), + parse_mbchar(), mbstrncasecmp(), mbstrcasestr(), + mbrevstrcasestr(), mbstrnlen(), mbstrchr(), mbstrpbrk(), + mbrevstrpbrk(), has_blank_mbchars(), is_valid_mbstring(), + main(), display_string(), and do_credits(). (DLR) + - Add the ability to use bold text instead of reverse video + text, via the -D/--boldtext command line option and the + "boldtext" rcfile option. Changes to browser_refresh(), + do_help(), usage(), main(), update_statusbar_prompt(), + do_yesno_prompt(), titlebar(), statusbar(), onekey(), + edit_draw(), do_replace_highlight(), nano.1, nanorc.5, + nano.texi, and nanorc.sample. (DLR, suggested by Benno + Schulenberg) + - Add the ability to use self-contained color syntaxes from + separate files, accessible in the nanorc via the "include" + command. New function parse_include(); changes to + parse_rcfile(), do_nanorc(), nanorc.5, and nanorc.sample. + (Victor Ananievsky, Brand Huntsman and DLR) + - Change references to the "help menu" to the "help text + display" refer to display, for clarity. Changes to + shortcut_init(), configure.ac, and faq.html. (DLR, suggested + by Benno Schulenberg) + - Adjust the shortcut list display and related mouse support to + not waste the last few characters of bottomwin when the screen + width isn't a clean multiple of the column width. Changes to + do_mouseinput() and bottombars(). (Benno Schulenberg, minor + tweaks by DLR) + - Add several blank entries to the main shortcut list and the + global toggle list, in order to make the help text easier to + read. Changes to sc_init_one(), toggle_init(), + toggle_init_one(), shortcut_init(), get_toggle(), and + help_init(). (DLR, suggested by Benno Schulenberg) + - Reduce NO_RCFILE to a static bool in nano.c, since it's only + used there. Changes to finish() and main(). (DLR) + - Readd the Cancel -> Exit aliases for the file browser and help + browser. New function parse_help_input(); changes to + parse_browser_input() and do_help(). (DLR, suggested by Benno + Schulenberg) + - Add the ability to copy text into the cutbuffer without + cutting it, via Meta-^ (Meta-6). Note that this is disabled + when NANO_TINY is defined. New functions do_cut_text_void() + and do_copy_text(); changes to do_cut_text(), shortcut_init(), + and do_input(). (DLR, suggested by Ken Tyler) + - Add the ability to indent and unindent all marked lines of + text, via Meta-} (Meta-]) and Meta-{ (Meta-[). New functions + do_indent_marked(), do_indent_marked_void(), and + do_unindent_marked_void(); changes to shortcut_init(). (Chris + and DLR) + - Change the shortcut to find the matching bracket to Ctrl-]. + Changes to shortcut_init() and do_statusbar_input(). (DLR) + - Drop the Meta-] and Meta-[ aliases for Meta-} and Meta-{, and + change the shortcut to find the matching bracket from Ctrl-] + back to Meta-], since Ctrl-] is used as the telnet escape key. + Changes to shortcut_init() and do_statusbar_input(). (DLR, + found by Chris) + - Add the ability to move to the first and last line of the help + text and the first and last file in the file browser via + Meta-\ (Meta-|) and Meta-/ (Meta-?). Changes to do_browser(), + shortcut_init(), and do_help(). (DLR) + - Allow unjustifying if we resize the window immediately after + justifying, as Pico does, and make input handling across + resizes more consistent. Changes to handle_sigwinch(), + main(), get_kbinput(), parse_kbinput(), get_byte_kbinput(), + and get_unicode_kbinput(); removal of reset_kbinput(). (DLR) + - Handle statusbar blanking in two places instead of many, so + that it always works consistently. Changes to do_browser(), + do_cut_text(), do_uncut_text(), do_first_line(), + do_last_line(), do_page_up(), do_page_down(), do_para_begin(), + do_para_end(), do_para_end(), do_next_word(), do_prev_word(), + do_home(), do_end(), do_up(), do_scroll_up(), do_down(), + do_scroll_down(), do_left(), do_right(), do_indent_marked(), + do_verbatim_input(), and get_kbinput(). (Benno Schulenberg, + minor tweaks by DLR) + - Handle prepending of wrapped text in one place instead of + many, so that it always works consistently. Changes to + do_uncut_text(), do_insertfile(), do_page_up(), + do_page_down(), do_up(), do_scroll_up(), do_down(), + do_scroll_down(), do_input(), do_search(), do_research(), and + do_delete(). (DLR) + - Ignore unhandled meta key sequences, function keys, and escape + sequences, indicate it on the statusbar, and beep when we get + an unhandled shortcut or toggle, as Pico does. To get this to + work properly, add a shortcut for moving to the next + search/replace string. New function is_ascii_cntrl_char(); + changes to shortcut_init(), do_input(), do_statusbar_input(), + get_prompt_string(), and parse_kbinput(). (DLR, suggested by + Nick Warne and Benno Schulenberg) + - Explain the mouse support in more detail, and sync the text of + its description across all documentation. Changes to nano.1, + nanorc.5, nanorc.sample, and nano.texi. (Benno Schulenberg and + DLR) + - If we're using verbatim input to enter a Unicode sequence, + indicate it on the statusbar, and add a translator comment + explaining the message. Also, refactor get_unicode_kbinput() + to remove redundant code. New function add_unicode_digit(); + changes to get_unicode_kbinput() and parse_verbatim_kbinput(). + (Benno Schulenberg, minor tweaks by DLR) + - Allow normal typing of high-bit control characters, as Pico + does. Changes to do_output() and do_statusbar_output(). (DLR) + - Move color regexes into separate files, make nanorc.sample + reference them, and make them install properly. In the + process, rename nanorc.sample to nanorc.sample.in, put + @PKGDATADIR@ at the beginning of all nanorc file paths, add + needed AC_DEFINE_DIR macro from the Autoconf Macro Archive at + http://autoconf-archive.cryp.to/ac_define_dir.m4, and make + configure.ac do the substitution, so that the proper paths + will always be used in nanorc.sample. New files + m4/ac_define_dir.m4, doc/syntax/Makefile.am, + doc/syntax/asm.nanorc, doc/syntax/c.nanorc, + doc/syntax/groff.nanorc, doc/syntax/html.nanorc, + doc/syntax/java.nanorc, doc/syntax/man.nanorc, + doc/syntax/mutt.nanorc, doc/syntax/nanorc.nanorc, + doc/syntax/patch.nanorc, doc/syntax/perl.nanorc, + doc/syntax/python.nanorc, doc/syntax/ruby.nanorc, + doc/syntax/sh.nanorc, and doc/syntax/tex.nanorc; changes to + configure.ac, nano.spec.in, doc/Makefile.am, and + m4/Makefile.am; removal of doc/nanorc.sample. (DLR) + - Replace usage of the bool curses_ended with the isendwin() + function, and remove curses_ended. Changes to do_suspend(). + (DLR) + - Remove the workaround for glibc 2.2.3's broken regexec(), and + replace it with a FAQ entry explaining the problem, since it + could break anything using extended regular expressions, and + glibc 2.2.3 is old. Changes to configure.ac, faq.html, + nano.h, proto.h, and UPGRADE; removal of safe_regexec(). (DLR) + - Minor wording fixes to various messages. Changes to + load_history(), shortcut_init(), toggle_init(), usage(), + do_suspend(), do_input(), rcfile_error(), parse_argument(), + parse_rcfile(), nano.1, nano.texi, and nanorc.sample.in. + (Benno Schulenberg, minor tweaks by DLR and Nick Warne) + - Make suspension clear the screen and put the cursor on the + last line before displaying anything, as Pico does. New + functions disable_mouse_support() and enable_mouse_support(); + changes to do_mouse(), do_suspend(), do_continue(), and + terminal_init(). (DLR) +- browser.c: + do_browser() + - Reference NANO_GOTODIR_(ALT|F)?KEY instead of + NANO_GOTOLINE_(ALT|F)?KEY for the "Go to Directory" shortcut. + (DLR) + parse_browser_input() + - Remove redundant key checks. (DLR) + browser_refresh() + - Rename variable editline to line, for consistency. (DLR) + - Change variable i from an int to a size_t in order to match + selected, which it's compared against. (DLR) +- color.c: + color_update() + - Fix incorrect setting of defcolor, which prevented the + reserved "default" syntax from being handled correctly. (DLR) +- cut.c: + cut_to_eof() + - New function, containing the main functionality of + do_cut_till_end(). (DLR) + do_cut_text() + - Add parameter cut_till_end, to indicate when we're cutting + from the current cursor position to the end of the file, and + call cut_to_eof() when it's TRUE. (DLR) + do_cut_till_end() + - Convert to a wrapper for do_cut_text(). (DLR) +- files.c: + open_file() + - Remove redundant wording in the error message when we try to + open a device file. (DLR) + do_insertfile() + - Use actual gettext calls instead of no-ops, for consistency. + (DLR) + safe_tempfile() + - Don't ignore $TMPDIR if it's set but blank, for consistency. + (DLR) + write_file() + - Don't free backupname before displaying it in a statusbar error + message. (DLR, found by Bill Marcum) + - If we can't save the backup file for some reason, at least + save the original file, if possible, since that's better than + saving nothing. (DLR, problem found by Bill Marcum, solution + suggested by Jordi) + - Clarify the error messages when creating a temporary file or + writing one for prepending fails. (DLR) + - Simplify the routine for closing the file just before we + indicate success on the statusbar. (DLR) + do_writeout() + - Fix problem where the modifiers at the "Write File" prompt + were marked for translation via gettext no-ops but never + actually translated. (Benno Schulenberg) + free_chararray() + - Assert that array isn't NULL, for consistency with the other + free_.*() functions. (DLR) +- global.c: + shortcut_init() + - Change the cursor position display help text to use "display" + instead of "show", for consistency. (DLR) + - In the main shortcut list, move the "Refresh" shortcut down to + after the "Enter" shortcut, for consistency. (DLR) + - Add the ability to move to the first and last line of the + current file from the main list via Meta-\ (Meta-|) and Meta-/ + (Meta-?). Also, make sure all the equivalent shortcuts in the + search, replace, and "Go To Line" lists accept both the meta + keys and the equivalent function keys. (DLR) + - Reorganize the main shortcut list to make it easier for new + users. It now lists the twelve Pico-compatible default + operations, followed by search and replace shortcuts, followed + by cut and paste shortcuts, followed by marking shortcuts, + followed by back and forth movement shortcuts, followed by + start and end movement shortcuts, followed by buffer-switching + shortcuts, followed by insertion and deletion shortcuts, + followed by special movement shortcuts, followed by advanced + word and paragraph shortcuts, followed by display shortcuts. + (DLR and Benno Schulenberg, suggested by Benno Schulenberg) + - Tweak the descriptions of some shortcut keys to make them more + uniform. (Benno Schulenberg, minor tweaks by DLR) + - Shorten the "Where is Next" shortcut name to fit on the screen + after adding Meta-\ (Meta-|) and Meta-/ (Meta-?). (DLR) + - Lengthen the "UnCut Txt" shortcut name to "UnCut Text", as + there's enough room to display it unabbreviated. (DLR) + - Clarify the descriptions of the "Search" and "Replace" + shortcuts, and add spaces to the "Exit" shortcut's description + in multibuffer mode. (Benno Schulenberg) + - Remove the "Go To Line" shortcut in the replace shortcut list, + for compatibility with Pico. (DLR) + toggle_init() + - In the global toggle list, move the "Constant cursor position + display" toggle up to after the "Use more space for editing" + toggle, for consistency. (DLR) + - Reorganize the global toggle list to make it easier for new + users. It now lists toggles that affect the way things are + displayed, followed by toggles that affect editing, followed + by toggles that have to do with peripheral things. (DLR, + suggested by Benno Schulenberg) +- help.c: + do_help() + - Call get_shortcut() after getting input, so that we only have + to check for a main shortcut key instead of both it and all of + its equivalents. (DLR) + - Clean up the handling of NANO_REFRESH_KEY. (DLR) + - Remove redundant key checks. (DLR) + help_init() + - If we have at least two entries' worth of blank space, use it + to display more of "^Space" and "M-Space". (DLR, suggested by + Benno Schulenberg) + - Add various wording fixes. (DLR and Benno Schulenberg) + - If one of the help strings ends in newlines followed by a + space, move the space to the next help string to make it + easier for translators to see. (Benno Schulenberg) + - Make sure we have enough memory in all cases when displaying + the shortcut and toggle lists. (DLR) + - Wrap the shortcut list help text, and display it even when we + have fewer than 24 columns, for consistency with the toggle + help text. (DLR, suggested by Benno Schulenberg) + parse_help_input() + - Add Space and '-' as aliases for PageDown and PageUp, for + consistency with the file browser. (DLR, suggested by Benno + Schulenberg) + - Remove redundant key checks. (DLR) + help_line_len() + - Properly handle the case where we can't break the line of help + text. (DLR) + - Wrap the line of help text at (COLS - 1) instead of + (COLS - 8), for consistency. (DLR, suggested by Benno + Schulenberg) +- nano.c: + print1opt_full() + - Rename to print_opt_full(), for consistency. (DLR) + usage() + - Fix inaccuracies in the usage example. (DLR) + - Put command line arguments in <>'s instead of []'s, as the + latter imply that the arguments are optional when they aren't. + (DLR, found by Benno Schulenberg) + renumber() + - Remove invalid assert. (DLR, found by Filipe Moreira) + do_input() + - Remove redundant check for allow_funcs' being TRUE when we get + KEY_MOUSE. (DLR) + - Don't blow away the cutbuffer when we get a shortcut and the + function associated with it is do_cut_till_end(). (DLR) + - Simplify the routine to preserve the cutbuffer when we call a + cutting or copying function associated with a shortcut. (DLR) +- nano.h: + - Reorder the toggle #defines to match their corresponding order + in toggle_init(). (DLR) + - Move the #include for sys/param.h here from nano.c, and add an + #ifdef around it. (DLR) +- prompt.c: + get_prompt_string() + - Include the handling of the help key even when help is + disabled, so that we aren't erroneously kicked out of the + statusbar prompt under any circumstances. (DLR, found by Benno + Schulenberg) + do_statusbar_input() + - Remove redundant check for allow_funcs' being TRUE when we get + KEY_MOUSE. (DLR) + - Improve the handling of NANO_REFRESH_KEY. (DLR) + total_statusbar_refresh() + - New function, called when we get NANO_REFRESH_KEY in + do_statusbar_input(). (DLR) + do_yesno_prompt() + - Handle the keys in a switch statement instead of a long if + block, for simplicity. (DLR) +- rcfile.c: + parse_argument() + - Rename variable ptr_bak to ptr_save, for consistency. (DLR) + - Add double quotes around invalid string arguments in error + messages, for consistency. (DLR) + - Add single quotes around the invalid string argument in the + error message about unterminated strings, to avoid confusion. + (Benno Schulenberg) + parse_syntax() + - Don't generate an error if we find a duplicate syntax name, + since we might be trying to override a syntax in the global + nanorc with one in our local nanorc. Instead, free any + duplicate syntaxes we find, so that we always use the last + syntax with a given name. (DLR) + color_to_short() + - Add quotes around invalid string arguments in error messages, + for consistency. (DLR) + parse_colors() + - Check for a color command's not following a syntax line before + anything else. (DLR) + - Add quotes around invalid string arguments in error messages, + for consistency. (DLR) + parse_rcfile() + - Properly generate an error if we've read in a syntax without + any associated color commands. (DLR) + - Change variable i from an int to a size_t, for consistency. + (DLR) + - Properly handle rcfiles that don't end in newlines. (DLR) + - Add quotes around invalid string arguments in error messages, + for consistency. (DLR) + do_rcfile() + - Check for the rcfile's being a directory or device file and + reject it if it is, for consistency with file handling + elsewhere. (DLR) + - Remove SYSCONFDIR #ifdef, as SYSCONFDIR should always be set. + (DLR) + - Change all rcfile error messages to refer to commands instead + of directives, for consistency with nanorc.5. (DLR) +- text.c: + break_line() + - Fix problem where tab widths in columns would always be + calculated as tabsize. (DLR, found by Alexey Toptygin) + - Handle newlines consistently when searching for the last blank + in the first group of blanks in the range of (goal - 1). (DLR, + found by Benno Schulenberg) + do_justify() + - Remove redundant key checks. (DLR) + do_spell() + - Clarify the error message when creating a temporary file + fails. (DLR) + - Set currshortcut to main_list before calling total_refresh() + near the end of the function, so that we don't display the + wrong shortcut list. (DLR) + do_verbatim_input() + - Add a translator comment explaining the "Verbatim Input" + statusbar message. (Benno Schulenberg) + - Unconditionally blank the statusbar as soon as we're finished + getting input. (DLR, suggested by Benno Schulenberg) +- utils.c: + digits() + - Return the proper number of digits when n is exactly 10. (DLR) + - Simplify to use a for loop instead of a while loop. (DLR) + ngetdelim() + - Set errno to EINVAL if stream is not a valid file stream. + This matches the manual page. (DLR) + nperror() + - Simplify. (DLR) + check_linenumbers() + - Removed, as it's no longer used, and since there's no way to + tell if its return value will be in int or ssize_t range. + (DLR) +- winio.c: + parse_kbinput() + - If we get NANO_CONTROL_8, properly handle it in all cases. + (DLR) + parse_escape_seq_kbinput() + - New function used to interpret escape sequences, formerly part + of parse_kbinput(). (DLR) + get_byte_kbinput() + - Fix typo preventing Esc Esc 3 through Esc Esc 6 from being + interpreted as control key sequences. (DLR) + - Tweak to more closely match get_unicode_kbinput(). (DLR) + get_control_kbinput() + - Add Ctrl-/ as an alias for Ctrl-_. (DLR, found by Benno + Schulenberg) + - Simplify the if blocks wherever possible. (DLR) + parse_verbatim_kbinput() + - Don't include the ability to enter a Unicode sequence via + verbatim input mode if ENABLE_UTF8 isn't defined or we're not + in a UTF-8 locale. (DLR) + check_statusblank() + - Avoid redundant updates when statusblank is 0. (DLR) + display_string() + - Properly display double-column characters if they're past the + first virtual page and their first column is covered by the + "$" displayed at the beginning of the line. (DLR) + statusbar() + - Blank the statusbar after 26 keystrokes instead of 25, for + conpatibility with Pico. (DLR) + edit_draw() + - Properly ignore zero-length regexes in multi-line regexes as + well as single-line ones. This avoids a segfault when trying + to color e.g. "start="$" end="$"". (DLR, found by Trevor + Caira) + - Don't display any statusbar message when we get a zero-length + regex, as we can get one under legitimate circumstances. (DLR, + found by Mike Frysinger) + update_line() + - Remove unneeded assert. (DLR) + edit_redraw() + - Fix problem where not all lines would be updated properly if + we'd scrolled off the screen and the mark was on. (DLR) + do_credits() + - Update the last copyright notice to include 2006. (DLR) +- configure.ac: + - Remove old warnings about color support. (DLR) + - Remove conditional header checks for fcntl.h and termios.h, as + nano won't build without them, and add conditional header + check for sys/param.h, as some systems need only limits.h. + (DLR) +- doc/faq.html: + - Add a new section 4.4, and move all section 4 entries after it + down one number, to explain how to deal with problems typing + Meta-[. (DLR) + - Add a new section 4.5, and move all section 4 entries after it + down one number, to explain a problem that can occur when + holding down keys to generate Meta sequences. (Benno + Schulenberg, minor tweaks by DLR) + - Add a few capitalization and wording fixes. (DLR) + - Remove section 4.4, and move all section 4 entries after it up + one number, since it no longer applies. Meta-] and Meta-[ are + no longer used to indent and unindent marked text, since they + require that the bracket matching key change to Ctrl-], which + is used as the telnet escape key. (DLR, found by Chris) + - Make the link to the nano CVS page a bit more readable. (DLR) + - Update section 3.8 to mention the new "Unicode Input" prompt, + and how Unicode input only works when Unicode support is + enabled. (DLR) + - Add minor punctuation, wording, and typo fixes. (DLR) + - Update section 5.3, due to the display fix for two-column + Unicode characters. (DLR) +- doc/nano.1: + - Update the copyright years to include 2006. (DLR) + - Explicitly mention that all regexes should be extended regular + expressions. (DLR, suggested by John M. Gabriele) + - Miscellaneous minor fixes. (DLR) + - Add various wording fixes. (Benno Schulenberg and DLR) + - Put command line arguments in <>'s instead of []'s, as the + latter imply that the arguments are optional when they aren't. + (Benno Schulenberg) +- doc/nanorc.5: + - Update the copyright years to include 2006. (DLR) + - Explicitly mention that all regexes should be extended regular + expressions. (DLR, suggested by John M. Gabriele) + - Miscellaneous minor fixes. (DLR) + - Add various wording fixes. (Benno Schulenberg and DLR) + - Mention that the nanorc file should not be in DOS or Mac + format. (DLR) +- doc/rnano.1: + - Update the copyright years to include 2006. (DLR) + - Explicitly mention that all regexes should be extended regular + expressions. (DLR, suggested by John M. Gabriele) + - Miscellaneous minor fixes. (DLR) + - Add various wording fixes. (Benno Schulenberg and DLR) + - Add description of the +LINE[,COLUMN] option. (DLR) +- doc/nano.texi: + - Update the copyright years to include 2006. (DLR) + - Explicitly mention that all regexes should be extended regular + expressions. (DLR, suggested by John M. Gabriele) + - Miscellaneous minor fixes. (DLR) + - Add various wording fixes. (Benno Schulenberg and DLR) + - Change license to GPL, in order to match the rest of the + documentation, and because the current license is incompatible + with everything else in any case. (DLR) + - Mention that backup files and spell checking are disabled in + restricted mode, as rnano.1 does. (DLR) + - Add minor updates to put some text back in sync with nano's + help text, and with nano's current feature set. (DLR) + - Add a "Nanorc Files" section to explain the nanorc file format + in detail, using text from nanorc.5. (DLR) + - Put command line arguments in <>'s instead of []'s, as the + latter imply that the arguments are optional when they aren't. + (Benno Schulenberg) + - Add missing description of -H/--historylog, and move + -x/--nohelp down so that all the command line options are in + alphabetical order. (Benno Schulenberg) + - Change all occurrences of "file name" to "filename". (Benno + Schulenberg) +- doc/man/Makefile.am: + - Simplify the setting of SUBDIRS. (DLR) +- doc/man/fr/nano.1, doc/man/fr/nanorc.5, doc/man/fr/rnano.1: + - Updated manpage translations by Jean-Philippe Guérard. +- doc/nanorc.sample: + - Miscellaneous minor fixes. (DLR and Benno Schulenberg) + - Tweak the "c-file" regex for characters to accept '"' again, + as it's apparently valid, and simplify it. (DLR) + - Simplify the "shellscript" regex for command line options. + (DLR) + - Replace instances of \" with ", since quotes inside string + parameters don't need to be escaped with backslashes. (DLR) + - Mention in the comments that more than one start/end regex can + be included per line. Also, change the comment for the + "whitespace" option so that the hexadecimal character values + are six digits long, and state which character values work + with which encodings. (DLR) + - Add sample regexes for Python. (singular on the Gentoo forums, + http://forums.gentoo.org/viewtopic.php?t=86562; minor tweaks + by DLR, suggested by John M. Gabriele) + - Explicitly mention that all regexes should be extended regular + expressions. (DLR, suggested by John M. Gabriele) + - Simplify the "nanorc" regex for commands. (DLR) + - Mention that the nanorc file should not be in DOS or Mac + format. (DLR) + - Add various wording fixes. (Benno Schulenberg and DLR) + - Replace instances of "\w" with its equivalent "[0-9A-Z_a-z]", + and instances of "\W" with its equivalent "[^0-9A-Z_a-z]", for + greater readability. (DLR) + - Remove unneeded foreground color for the Java source regex + used to highlight trailing whitespace, since we now support + background colors without foreground colors. (DLR) + - Further simplify the "groff" regexes. (DLR) + - Tweak the "shellscript" regexes to properly color all special + variables, such as $? and $@. (Benno Schulenberg) + - Tweak the "nanorc" regexes to color keywords bright green + instead of cyan, and comments bright blue instead of blue. + (John M. Gabriele) + - Simplify the extensions associated with the "nanorc" regexes. + (DLR) + - Add regexes for Ruby. (John M. Gabriele, minor tweaks by DLR) +- doc/nanorc.sample.in: + - Add comments describing the relationships between syntax file + names and the names used as their short descriptions. (John M. + Gabriele) +- doc/java.nanorc: + - Simplify a comment. (DLR) +- doc/man.nanorc: + - Change the name of the "manpage" regexes to "man", for + consistency. (John M. Gabriele) +- doc/nanorc.nanorc: + - Tweak the "nanorc" regexes to color comments starting with a + double ## cyan instead of bright blue. (John M. Gabriele) +- doc/ruby.nanorc: + - Add regex for "here" docs. (John M. Gabriele) +- doc/sh.nanorc: + - Tweak the regex for special variables, moving "-" to the end, + to avoid excessive coloring or an "Invalid range end" error. + (Benno Schulenberg) + - Tweak the "sh" regexes to color comments cyan instead of + yellow. (John M. Gabriele) +- src/Makefile.am: + - If we're uninstalling, remove the "rnano" symlink. (DLR, found + by Benno Schulenberg) + - Remove "-Iintl" from INCLUDES, as we don't use an intl + directory inside the source directory anymore. (DLR) +- README, README.CVS: + - Add various cosmetic and wording improvements. (John M. + Gabriele, minor tweaks by DLR) +- TODO: + - Update for nano 2.0, since we're now in a feature freeze. + (DLR) +- UPGRADE: + - Miscellaneous minor fixes. (DLR) + - Update for nano 2.0, since we're now in a feature freeze. + (DLR) + +GNU nano 1.3.11 - 2006.03.30 +- General: + - Miscellaneous comment fixes. (DLR) + - Remove unnecessary #ifdef around termios.h #include in nano.c. + (DLR) + - Sort the default strings for brackets and punct, and the "or" + atom in the default regex string for quotestr, according to + ASCII. Changes to main(), nano.1, nanorc.5, and + nanorc.sample. (DLR) + - Rework the bracket searching code to handle multibyte bracket + characters, and allow specifying matching bracket characters + other than the default via the "matchbrackets" rcfile option. + New functions mbstrpbrk() and mbrevstrpbrk(); changes to + find_statusbar_bracket_match(), do_statusbar_find_bracket(), + find_bracket_match(), do_find_bracket(), main(), + parse_rcfile(), nanorc.5, and nanorc.sample. (DLR) + - Rework input parsing in the file browser to be more flexible. + New function parse_browser_input(); changes to do_browser(). + (DLR) + - Allow tab completion of directories at the "Go To Directory" + prompt. Also, move the browser drawing routines to a separate + function, and make sure it's used when refreshing or doing tab + completion at the prompt in the file browser. New function + browser_refresh(); changes to do_browser(), browser_init(), + do_insertfile(), do_writeout(), cwd_tab_completion(), + input_tab(), do_statusbar_input(), get_prompt_string(), + do_prompt(), search_init(), do_replace(), do_gotolinecolumn(), + and do_int_spell_fix(). (DLR) +- browser.c: + do_browser() + - Properly set currshortcut back to the file browser shortcut + list after a "Go To Directory" prompt, and properly restore + the file list display after returning from the help browser at + the "Go To Directory" prompt. (DLR) + - Rename variable j to i, for consistency. (DLR) + - Make fileline, old_selected, and the static selected size_t's, + since the first and second can hold the value of the third, + and the first can be that large. (DLR) +- chars.c: + mbstrchr() + - Make parameter c const. (DLR) +- files.c: + do_writeout() + - Remove unneeded setting of currshortcut. (DLR) + is_dir() + - Rename parameter ret to retval, for consistency. (DLR) +- global.c: + shortcut_init() + - Remove erroneous handling of the "Get Help" shortcut in the + file browser shortcut list. (DLR) +- nano.h: + - Remove now-unneeded VERMSG #define. (DLR) +- prompt.c: + get_prompt_string() + - Redraw the prompt and set finished to FALSE when NANO_HELP_KEY + is pressed, so that we don't leave the prompt, enter the help + browser, and restart the prompt after leaving it. This will + properly preserve the cursor position after doing the last of + these. (DLR) +- utils.c: + ngetdelim() + - Do sanity checks manually again instead of in an assert, and + set errno to EINVAL as well as return -1 if they fail. This + matches the manual page. (DLR) +- winio.c: + get_key_buffer() + - If we fail to get a character MAX_BUF_SIZE times in a row, + hang up regardless of the value of errno. This fixes a + problem where nano doesn't terminate properly under xterm if + the user su's to root, runs nano, and then closes the terminal + window. errno isn't set properly to EIO then. (DLR, found by + John ) + parse_kbinput() + - Interpret Shift-Begin, Shift-Delete, Shift-End, Shift-Home, + Shift-Insert, and Shift-Suspend as Begin, Delete, End, Home, + Insert, and Suspend, respectively, regardless of whether + --rebindkeypad is used. (DLR, found by David Benbennick) + titlebar() + - Use PACKAGE_STRING, as defined by autoconf, instead of VERMSG. + (DLR) + edit_redraw() + - If either current or old_current is offscreen, we're not on + the first page, and/or we're not on the same page as before, + update old_current before scrolling the edit window. This + fixes a potential display problem when a search moves the + cursor offscreen and onto a different page. (DLR, found by + Mike Frysinger) + display_string() + - Fix minor memory leak. (DLR) + - Fix memory corruption problems caused by not allocating enough + space for converted when a line ends in a tab(s) and we're not + in UTF-8 mode. (DLR, found by Duncan Geoffry Doyle, Nick + Warne, and Mike Frysinger) +- doc/faq.html: + - Update the Free Translation Project's address, change the + character set to UTF-8, and remove broken links to contributed + RedHat nano packages. (DLR) +- doc/nano.1: + - Better display the default values for quotestr. (DLR) +- doc/nanorc.5: + - Give the default values for the brackets and punct options, + and better display the default values for quotestr. (DLR) + - Mention that quotes inside string parameters don't need to be + escaped with backslashes. (John M. Gabriele, minor tweaks by + DLR) +- doc/rnano.1: + - Remove unneeded comments. (DLR) +- doc/nanorc.sample: + - Remove unneeded comment. (DLR) + - Mention that quotes inside string parameters don't need to be + escaped with backslashes. (John M. Gabriele, minor tweaks by + DLR) +- THANKS: + - Add new Swedish translator. + +GNU nano 1.3.10 - 2005.12.23 +- General: + - Miscellaneous comment fixes. (DLR) + - More int -> bool conversions. (DLR) + - Add the ability to scroll up or down single lines without + scrolling the cursor, via Meta-- and Meta-+. Note that this + is disabled when NANO_SMALL is defined. New functions + do_scroll_up() and do_scroll_down(); changes to + shortcut_init(). (DLR, suggested by Mike Frysinger) + - Properly handle mouse clicks on the statusbar prompt text. + New functions statusbar_xplustabs() and + get_statusbar_page_start(); changes to do_statusbar_mouse(), + nanoget_repaint(), nanogetstr(), and statusq(). (DLR) + - Since the statusbar prompt code needs at least 4 columns in + order to work properly, make that the minimum number of + columns that nano requires in order to run, and remove + assertions and code that make use of a smaller number of + columns. Changes to window_init(), nanoget_repaint(), + titlebar(), statusbar(), and get_page_start(). (DLR) + - Move get_page_start(), xplustabs(), actual_x(), strnlenpt(), + strlenpt(), check_linenumbers(), dump_buffer(), and + dump_buffer_reverse() from winio.c to utils.c, as they're + really utility functions. (DLR) + - Add missing stdio.h #include to text.c and winio.c, and remove + unneeded sys/wait.h #include from files.c. (DLR) + - Move functions specific to the statusbar prompt to their own + source file, adjust related variables accordingly, and rename + variable resetstatuspos reset_statusbar_x. New file prompt.c; + changes to do_statusbar_input(), do_statusbar_mouse(), + do_statusbar_output(), do_statusbar_home(), + do_statusbar_end(), do_statusbar_right(), do_statusbar_left(), + do_statusbar_backspace(), do_statusbar_delete(), + do_statusbar_cut_text(), do_statusbar_next_word(), + do_statusbar_prev_word(), do_statusbar_verbatim_input(), + statusbar_xplustabs(), get_statusbar_page_start(), + nanoget_repaint(), nanogetstr(), statusq(), statusq_abort(), + and do_yesno() (all moved to prompt.c). (DLR) + - Move functions specific to the help browser to their own + source file, and adjust related variables accordingly. New + file help.c; changes to help_init(), help_line_len(), and + do_help() (all moved to help.c). (DLR) + - Tweak a few functions to remove the assumption that the file + always ends in a magicline. Changes to cut_line(), + do_cut_till_end(), open_buffer(), read_file(), write_file(), + do_last_line(), do_para_end(), do_wrap(), backup_lines(), + find_paragraph(), do_justify(), do_alt_speller(), and + do_wordlinechar_count(). (DLR) + - Tweak a few functions to rely on fileage and filebot instead + of NULL for their checks to detect the top or bottom of the + file. Changes to cut_line(), cut_to_eol(), do_page_up(), + do_page_down(), do_para_end(), do_next_word(), do_prev_word(), + do_up(), do_down(), do_scroll_down(), do_right(), do_mouse(), + do_gotolinecolumn(), do_delete(), begpar(), find_paragraph(), + do_wrap(), remove_magicline(), and edit_scroll(). (DLR) + - Add new -L/--nonewlines command line option, and new + "nonewlines" rcfile option, to control whether nano adds + magiclines to the ends of files. Changes to read_file(), + write_marked_file(), move_to_filestruct(), + copy_from_filestruct(), usage(), do_output(), main(), + do_replace_loop(), do_delete(), do_int_spell_fix(), + do_alt_speller(), nano.1, nanorc.5, nano.texi, and + nanorc.sample. (DLR, suggested by Jaime + ) + - Move functions specific to the file browser to their own + source file, and adjust related variables accordingly. New + file browser.c; changes to striponedir(), browser_init(), + do_browser(), and do_browse_from() (all moved to browser.c). + (DLR) + - Add the statusbar prompt's equivalent of placewewant, + statusbar_pww, to prompt.c, and convert its functions to use + it. New functions reset_statusbar_cursor() and + need_statusbar_horizontal_update(); changes to + do_statusbar_mouse(), do_statusbar_output(), + do_statusbar_home(), do_statusbar_end(), do_statusbar_right(), + do_statusbar_left(), do_statusbar_delete(), + do_statusbar_cut_text(), do_statusbar_next_word(), + do_statusbar_prev_word(), do_statusbar_verbatim_input(), + nanoget_repaint() (renamed update_statusbar_line()), + nanogetstr() (renamed get_prompt_string()), statusq() (renamed + do_prompt()), statusq_abort() (renamed do_prompt_abort()), and + do_yesno() (renamed do_yesno_prompt()). (DLR) + - Initialize the static pid_t pid in text.c to -1. (DLR) + - Fix copyright years on source files. All functions in + browser.c were originally added in 2001; the oldest function + in color.c is do_colorinit() (now color_init()), which was + originally added in 2001; the oldest function in chars.c is + revstrstr(), which was originally added in 2001; the oldest + function in help.c is do_help(), which was originally added in + 2000; the oldest function in prompt.c is statusq() (now + do_prompt()), which was originally added before 0.6.6, which + was apparently in 1999; all functions in rcfile.c were + originally added in 2001; one of the oldest functions in + search.c is do_search(), which was originally added in 0.2.7, + which was apparently in 1999; and one of the oldest functions + in text.c is do_wrap(), which was originally added in 0.3.1, + which was apparently in 1999. (DLR) + - For functions originally adapted from other sources, add + notices from the original files, as we do with the tab + completion functions adapted from busybox, updating the Free + Software Foundation's address as needed. Also, invoke LGPL + clause 3 to convert the LGPLed ngetdelim() and ngetline() + functions to use the GPL instead. This is done so that we + don't have to include a copy of the LGPL, and because the + changes made to integrate these functions with nano make them + dependent on nano's GPLed functions and hence useless + elsewhere. (DLR) + - Don't install the localized versions of the manpages if + nano is built with --disable-nls. Changes to Makefile.am and + doc/man/Makefile.am. (Mike Frysinger) + - Rename the NANO_SMALL #define to NANO_TINY. (DLR) + - Overhaul the bracket searching code so that it no longer + requires regex support to work. New functions revstrpbrk() + and find_bracket_match(); changes to shortcut_init() and + do_find_bracket(). (DLR) + - Add the ability to do bracket searches at the statusbar + prompt. New functions find_statusbar_bracket_match() and + do_statusbar_find_bracket(); changes to do_statusbar_input(). + (DLR) + - Beep whenever we can't read a file or directory and have to + indicate it on the statusbar, as Pico does. Changes to + do_browser(), open_file(), and write_file(). (DLR) + - Adjust copyright notices in all source files to account for + Chris' reassigning the 2005-2006 copyright on nano to me. + Changes to do_credits(). (DLR) + - Readd RETSIGTYPE return types for signal handlers, since any + problems with its being defined as the wrong type aren't + nano's fault. Changes to handle_hupterm(), do_suspend(), + do_continue(), handle_sigwinch(), and cancel_command(). (DLR) + - Since proto.h includes nano.h, and nano.h includes config.h + first, include proto.h first and remove redundant includes of + config.h in all non-header source files. (DLR) + - Refer to the Enter key instead of the Return key for + consistency. Changes to load_history() and rcfile_error(). + (DLR) +- browser.c: + do_browser() + - When setting the width of each file, use the "?" operator + instead of an if/else clause. (DLR) +- chars.c: + mbwidth() + - If wcwidth() returns -1 for the character passed in, treat the + character as having the width of Unicode U+FFFD (Replacement + Character) instead of having a width of zero, since display + problems can crop up with the latter approach. (DLR) + mbstrchr() + - Detect the case where the character isn't found in the string + more accurately. (DLR) +- cut.c: + cut_line() + - Since placewewant will always be zero after the line is cut, + set it to zero directly instead of assigning it the value of + xplustabs(). (DLR) +- files.c: + read_file() + - Remove apparently unneeded logic to handle a case where + current is NULL, since it shouldn't be NULL there. (DLR) + get_next_filename() + - Store the value of digits(ULONG_MAX) in a static, since it + doesn't change and hence doesn't need to be recalculated. + (DLR) +- global.c: + shortcut_init() + - Change the description of the Meta-] shortcut to "Find + matching bracket", as it's clearer. (DLR) +- nano.c: + version() + - If DISABLE_WRAPPING is defined, the code in DISABLE_ROOTWRAP + #ifdefs isn't included, so don't display + "--disable-wrapping-as-root" in that case. (DLR) + do_cont() + - Rename to do_continue(), and rename parameter s to signal, for + consistency. (DLR) + do_verbatim_input() + - Move to text.c, since it's an advanced text-based operation. + (DLR) +- nano.h: + - Readd MIN_EDITOR_COLS #define, set to 4. (DLR) +- proto.h: + - Remove now-unused externs for currslen, shortcut_list, + fileinfo, syntaxfile_regexp, and synfilematches. (DLR) +- prompt.c: + do_statusbar_input() + - Fix misplaced break when handling NANO_VERBATIM_KEY. (DLR) + reset_statusbar_cursor() + - Fix cursor placement problem by modeling the code more closely + after reset_cursor(). (DLR) + get_prompt_string() + - Adjust #ifdefs to leave out disabled keys entirely instead of + keeping enough code to just ignore them. (DLR) +- rcfile.c: + do_rcfile() + - Remove unneeded assert. (DLR) +- search.c: + search_abort() + - Rename to search_replace_abort(). (DLR) + findnextstr() + - Remove parameter can_display_wrap, as it's always set to TRUE + now, and rename parameter wholeword to whole_word, for + consistency. (DLR) + - Only include the whole_word parameter when DISABLE_SPELLER + isn't defined, as it's only used then. (DLR) + replace_abort() + - Replace with search_replace_abort(), since it does the same + things that this function does. (DLR) + do_replace_loop() + - Change order of parameters to more closely match those of + findnextstr(), and rename parameter wholewords to whole_word, + for consistency. (DLR) + - Only include the whole_word parameter when DISABLE_SPELLER + isn't defined, as it's only used then. (DLR) +- text.c: + execute_command() + - Instead of hardcoding /bin/sh as the shell to use when + executing a command, use $SHELL, and only fall back to /bin/sh + if $SHELL isn't set. (DLR) + do_wrap() + - Rename variable wrapping to prepending, to avoid confusion, + and rename the static bool same_line_wrap to prepend_wrap to + match. (DLR) + - Properly add a new magicline when needed if, in the process of + wrapping, we prepend text to the last line of the file. (DLR) + break_line() + - Only include the newline parameter if DISABLE_HELP isn't + defined, as it's only used then. (DLR) + - In the surrounding #ifdef, replace the combination of + !DISABLE_JUSTIFY and !DISABLE_WRAPPING with + !DISABLE_WRAPJUSTIFY, for consistency. (DLR) + begpar() + - Return FALSE if foo is NULL, as inpar() does. (DLR) + backup_lines() + - Return void instead of a pointer to the copy of the first + line, since current will point to the same location after the + text is copied and so can be used instead of the old return + value. (DLR) + - Remove unused quote_len parameter. (DLR) + do_justify() + - Don't save current_y and restore it if the user unjustifies, + as the reset_cursor() called by edit_refresh() after restoring + edittop and current will ensure that current_y is restored to + its original value. (DLR) + - Renumber after justifying each individual paragraph, since + find_paragraph() needs the line numbers to be right as well as + edit_refresh(). This fixes a potential segfault when doing + full justify with auto-indent turned on. (DLR) + do_alt_speller() + - Move the code that replaces the text of the current file with + the text of the spell-checked file into its own function, + replace_buffer(). (DLR) +- utils.c: + parse_line_column() + - Simplify parsing of the column number. (DLR) + ngetdelim() + - Do sanity checks in an assert instead of checking them + manually and returning -1 if they fail. (DLR) + is_whole_word() + - Only include when DISABLE_SPELLER isn't defined, as it's only + used then. (DLR) + get_page_start() + - Fix test so that we scroll through the line in 8-character + chunks when COLS is greater than 8, not when COLS is greater + than 9. (DLR) + remove_magicline() + - Add assert. (DLR) +- winio.c: + nanoget_repaint() + - Rename parameter inputbuf to buf, for consistency. (DLR) + reset_cursor() + - Rename variable x to xpt, to avoid confusion. (DLR) + update_line() + - Remove now-unneeded logic that set the index parameter to zero + if the fileptr parameter didn't point to current. (DLR) + edit_add() + - Rename to edit_draw(), and rename parameter yval to line. + (DLR) + do_cursorpos() + - Remove unneeded assert. (DLR) + do_yesno() + - Make mouse clicks on the Yes/No/All shortcuts work properly + when the MORE_SPACE flag is set. (DLR) +- configure.ac: + - Clarify description of --disable-speller. (DLR) + - Disable wrapping entirely when --enable-tiny is used, as it + matches the FAQ, it makes nano even smaller, and it eliminates + the need for --disable-wrapping-as-root in that case (in which + it's impossible to turn wrapping back on without nanorc + support). (DLR) +- README.CVS: + - Mention that the minimum required version of texinfo is 4.0, + since that's the first version that supports generating HTML. + (DLR) + - Mention that the minimum required version of groff is 1.12, + since that's the first version that supports generating HTML. + (DLR) + - Update the given cvs commands so that they work again. (DLR) +- doc/faq.html: + - Add a new section 5.3 to explain the status of nano's Unicode + support. (Mike Frysinger, minor tweaks by DLR) + - Clarify section 5.3 to better explain how to enable Unicode + support, and remove the mention of quirks, since they turned + out to not be a nano problem. (Mike Frysinger and DLR) +- doc/nano.1: + - Make one non-bold instance of "nano" bold, for consistency. + (DLR) +- doc/man/fr/nano.1, doc/man/fr/nanorc.5: + - Updated manpage translations by Jean-Philippe Guérard. +- doc/rnano.1: + - Add rnano.1 manpage from Thijs Kinkhorst. (Jordi) DLR: Merge + a few minor updates from nano.1. +- doc/nano.texi: + - Fix inconsistent wording and punctuation. (DLR) + - Add missing configure options. (Mike Frysinger, minor tweaks + by DLR) + - Sort the configure options more consistently, and add missing + --disable-utf8 option. (DLR) + - Move --disable-wrapping above --enable-tiny, as the latter now + turns it on. (DLR) +- doc/nanorc.sample: + - Tweak the "c-file" regex for characters to properly accept + '\"' and reject '"' and '''. (DLR) +- doc/texinfo/Makefile.am: + - Automatically generate an HTML version of the info page, + nano.html. (DLR) +- src/Makefile.am: + - Add browser.c, help.c, and prompt.c to nano_SOURCES. (DLR) + +GNU nano 1.3.9 - 2005.10.23 +- General: + - Miscellaneous comment fixes. (DLR) + - More int -> bool conversions. (DLR) + - Fix a few last instances of the current line number's being + saved as an int instead of a ssize_t. Changes to + renumber_all(), renumber(), do_alt_speller(), and + backup_lines(). (DLR) + - Reorder some functions for consistency. (DLR) + - Rename variable open_files openfile, for consistency. (DLR) + - Remove renumber()'s dependency on the main filestruct. + Changes to renumber(); removal of renumber_all(). (DLR) + - Restructure things so that every file has its own + openfilestruct, and so that the values in it are used directly + instead of being periodically synced up with the globals. + Accordingly, remove the globals. Changes to pretty much + every function. Rename add_open_file() make_new_buffer(), + rename load_buffer() open_buffer(), rename load_open_file() + display_buffer(), rename open_prevnext_file() + switch_to_prevnext_buffer(), rename open_prevfile_void() + switch_to_prev_buffer(), rename open_nextfile_void() + switch_to_next_buffer(), rename write_marked() + write_marked_file(), remove load_file(), rename cancel_fork() + cancel_command(), rename open_pipe() execute_command(), remove + execute_command(), rename resize_variables(), rename + global_init() window_size_init(), rename get_buffer() + get_key_buffer(), and rename get_buffer_len() + get_key_buffer_len(). (DLR) + - Replace all mvwaddstr(hblank) calls with a new function that + does the same thing without the need for hblank. New function + blank_line(); changes to do_browser(), blank_titlebar(), + blank_topbar(), blank_edit(), blank_statusbar(), + blank_bottombars(), update_line(), and edit_refresh(). (DLR) + - Make the static pid variable used by execute_command() and + cancel_command() a pid_t instead of an int, for consistency. + (DLR) + - Consistently make the flags global and any variables used to + hold it longs. (DLR) + - Make edit_scroll() sophisticated enough to keep track of + current and current_x, update the lines before and after the + scrolled region, and properly scroll more than editwinrows + lines; and change the movement functions that use + edit_scroll() to (a) set current and current_x before calling + it, and (b) no longer call edit_redraw() afterward, as it's + now unnecessary. These changes eliminate redundant screen + updates when the mark is on, since the mark display depends on + current and current_x. Also change edit_redraw() to use + edit_scroll() instead of edit_refresh() when one of its two + reference lines is offscreen. Changes to edit_scroll(), + do_page_up(), do_page_down(), do_up(), and do_down(). (DLR) + - Consistently make the fg and bg colortype struct entries and + any variables used to hold them shorts. Changes to + do_colorinit() (renamed color_init()), color_to_int() (renamed + color_to_short()), and parse_colors(). (DLR) + - Change color handling to save only the extension and color + regex strings constantly, and to actually compile them on an + as-needed basis. Also, make a color syntax specified on the + command line override the syntax associated with the current + file extension, add a "default" syntax that takes no + extensions for those files that don't match any other + syntax's extensions, and add a "none" syntax that's the same + as having no syntax at all. Changes to update_color(), + thanks_for_all_the_fish(), nregcomp(), parse_syntax(), and + parse_colors(). (Brand Huntsman and DLR) + - Various other color fixes. Handle unspecified foreground + colors properly, treat syntax names case sensitively, flag + duplicate syntax names as errors, don't automatically + reinitialize the displayed colors every time we update the + current buffer's colors (since the buffer may not be displayed + immediately), don't bother doing complete refreshes of the + screen when color support is enabled if there's no regex + associated with the current file, and rename variable + exttype->val to exttype->ext, for consistency. Changes to + do_colorinit() (renamed color_init()), update_color() (renamed + color_update()), write_file(), do_input(), do_output(), and + parse_syntax(). (DLR) + - Simplify get_totals() to only get the total number of + characters, and eliminate dependence on its old ability to get + the total number of lines by renumber()ing when necessary and + using the number of the last line of a filestruct. Changes to + read_file(), move_to_filestruct(), copy_from_filestruct(), + do_justify(), get_totals() (renamed get_totsize()), and + do_cursorpos(). (DLR) + - Change the NANO_WIDE #define to ENABLE_UTF8, as the latter is + clearer. (DLR) + - Minor history code fixes: Make sure that the current position + in the history list is properly set to the bottom if we cancel + out of the prompt, and that magichistory is properly updated + when we change it and then move up. New function + history_reset(); changes to nanogetstr(). (DLR) + - Various character-handling cleanups. If we get an invalid + multibyte sequence, treat it as Unicode FFFD (Replacement + Character), unless we're searching for a match to it. Also, + remove unneeded variables and checks when parsing multibyte + sequences. Changes to is_alnum_mbchar(), is_blank_mbchar(), + is_cntrl_mbchar(), is_punct_mbchar(), control_mbrep(), + mbwidth(), make_mbchar(), parse_mbchar(), mbstrncasecmp(), + mbstrcasestr(), mbrevstrcasestr(), mbstrchr(), and + display_string(). (DLR) + - Move advanced text operations (command execution in a buffer, + wrapping, spell checking, justifying, and word counting) to + their own source file, and adjust related variables + accordingly. New file text.c; changes to cancel_command(), + execute_command(), do_backspace(), do_delete(), do_tab(), + do_enter(), do_mark(), wrap_reset(), do_wrap(), + do_int_spell_fix(), do_int_speller(), do_alt_speller(), + do_spell(), break_line(), indent_length(), justify_format(), + quote_length(), quotes_match(), indents_match(), begpar(), + inpar(), backup_lines(), find_paragraph(), do_justify(), + do_justify_void(), do_full_justify(), and do_word_count() (all + moved to text.c). (DLR) + - Since the total number of lines in a file is the same as the + number of its last line when all its lines are numbered + properly, use that in place of openfile->totlines, and + eliminate references to openfile->totlines. Changes to + initialize_buffer_text(), read_file(), move_to_filestruct(), + copy_from_filestruct(), do_delete(), do_enter(), do_wrap(), + do_justify(), do_alt_speller(), do_wordlinechar_count(), + new_magicline(), remove_magicline(), and do_cursorpos(). (DLR) + - Various fill-related cleanups. Move check_die_too_small() and + window_size_init()'s code into window_init(), as they really + belong there, remove associated separate calls to them, make + sure window_init() is always called at the same time when + redrawing the screen, and turn the keypad on in topwin in case + we ever read input from it. Changes to window_init(), main(), + and do_alt_speller(); removal of check_die_too_small() and + window_size_init(). (DLR) + - Remove still more redundant screen updates. Change all + wrefresh() calls to wnoutrefresh() calls, except for those in + total_update() and do_credits(); call doupdate() just before + using blocking input, since nano spends the most time using + it, for blocking input; and only do constant sursor position + display if we're just about to use blocking input. Changes to + input_tab(), do_browser(), do_output(), main(), + get_key_buffer(), check_statusblank(), nanogetstr(), + titlebar(), statusbar(), bottombars(), edit_refresh(), + do_yesno(), and do_help(). (DLR) + - Treat the Unicode characters D800-DFFF, FDD0-FDEF, and + xxFFFE-xxFFFF, as invalid, since the C library's multibyte + functions don't seem to. New function is_valid_unicode(); + changes to mbrep() and make_mbchar(). (DLR) + - Store Unicode values in longs instead of ints, and cover the + entire range of Unicode. Changes to make_mbchar(), + is_valid_unicode(), parse_kbinput(), get_unicode_kbinput(), + parse_verbatim_kbinput(), and faq.html. (DLR) + - Readd the option to turn the keypad off by default from nano + 1.2.x, but rename the long option from --keypad to + --rebindkeypad, clarify its description on the command line, + and add an updated FAQ entry about its use. Changes to + window_init(), usage(), main(), get_verbatim_kbinput(), + nanorc.sample, nano.1, nanorc.5, nano.texi, and faq.html. + (DLR) + - Add new -W/--wordbounds command line option, and new + "wordbounds" rcfile option, to control whether + the word movement functions treat punctuation characters as + part of a word. Changes to do_next_word_void(), + do_prev_word_void(), usage(), main(), nano.1, nanorc.5, + nano.texi, and nanorc.sample. (DLR, suggested by Mike + Frysinger) + - Update email address. Changes to faq.html and AUTHORS. (DLR) + - Remove do_(left|right)()'s ability to optionally not update + the current line, as this was only used in do_backspace(), and + it didn't always update the screen properly. Changes to + shortcut_init(), do_left(), do_right(), and do_backspace(); + removal of do_left_void() and do_right_void(). (DLR; problem + found by Mike Frysinger) +- color.c: + - Remove unneeded fcntl.h include. (DLR) +- chars.c: + control_rep(), control_mbrep() + - Assert that the multibyte character passed in is a control + character if it's valid. (DLR) + - If crep is an invalid multibyte sequence, copy Unicode 0xFFFD + (Replacement Character) into it using strncpy() instead of + assigning the former to it. This avoids segfaults when freeing + crep later, since it's supposed to be dynamically allocated. + (DLR) + mbrep() + - New function, the equivalent of control_mbrep() for non-control + characters. (DLR) + parse_mbchar() + - Remove now-unneeded bad_chr parameter. (DLR) + mbstrchr() + - Don't count matches between valid and invalid multibyte + sequences anymore, for consistency. (DLR) +- files.c: + open_file() + - Assert that filename isn't NULL, and don't do anything special + if it's blank, as the the former case shouldn't occur, and the + latter case is now handled elsewhere. (DLR) + write_file(), write_marked_file(), do_writeout() + - Make append an append_type enum instead of an int. (DLR) + input_tab() + - Make columns an int instead of a size_t, since it's limited by + COLS. (DLR) +- global.c: + shortcut_init() + - Simplify wording of nano_gotoline_msg. (Jordi and Ken Tyler) + - Clarify wording of nano_wordcount_msg, as it will only go + through the marked portions of the file if the mark is on. + (DLR) +- move.c: + do_first_line(), do_last_line() + - Simplify by only using edit_redraw(), and also make them call + check_statusblank(). (DLR) + do_page_up(), do_page_down() + - If there's less than a page of text onscreen, just call + do_(first|last)_line(). (DLR) + do_para_begin(), do_para_begin_void(), do_para_end(), + do_para_end_void(), do_next_word(), do_next_word_void(), + do_prev_word(), do_prev_word_void() + - Move here from nano.c, as they're movement functions, and also + make them call check_statusblank(). +- nano.c: + move_to_filestruct() + - Fix problem where edittop wouldn't be reset properly if it was + inside the text moved to another filestruct. (DLR) + copy_from_filestruct() + - Miscellaneous cleanups. (DLR) + usage() + - Properly mention the support for "[+LINE,COLUMN]" on the + command line when HAVE_GETOPT_LONG isn't defined. (DLR) + - Remove unneeded translation of "--quickblank". (DLR) + do_verbatim_input() + - If constant cursor position display is on, make sure the + cursor position is displayed properly when we finish. (DLR) + do_next_word() + - Rework to be more like do_prev_word(), to avoid a potential + problem if we start at the end of a line. (DLR) + do_mouse() + - Avoid redundant screen updates by using edit_redraw() instead + of edit_refresh(), and remove now-erroneous code that disables + setting the mark while in view mode. (DLR) + do_output() + - When adding a character, just add its length in bytes to + current_x instead of calling do_right(), and set placewewant + afterward. (DLR) + do_alt_speller() + - If we can't invoke the spell checker, use sprintf() instead of + snprintf() to write the error string we return, as the one + formatted value is a simple string, and so altspell_error will + always be long enough to hold it. Also remove unnecessary + initialization of altspell_error, refactor so that msglen is + no longer needed, and make the error message more similar to + what the internal spell checker returns under the same + circumstances. (DLR) + - Block any pending SIGWINCHes while the alternate spell checker + is running, so that it can handle them, and unblock them once + it's finished and we've loaded the spell-checked file back in. + (DLR) + - Use doupdate() to reenter curses mode instead of refresh(). + (DLR) + do_spell() + - When displaying an error message from do_(int|alt)_speller(), + don't display the error message corresponding to errno if + errno is zero. (David Benbennick) + do_justify() + - If constant cursor position display is on, make sure the + cursor position is displayed properly when we finish. (DLR) + handle_sigwinch() + - Use doupdate() to reenter curses mode instead of refresh(). + (DLR) + allow_pending_sigwinch() + - Simplify by using the "?" operator instead of an if clause. + (DLR) + main() + - When opening files with "+LINE,COLUMN" arguments on the + command line, don't update the screen when moving to their + specified lines and columns. (DLR) + - Rename variable fill_flag_used to fill_used, for consistency. + (DLR) +- nano.h: + - Since we only use vsnprintf() now, remove the #ifdef block for + HAVE_SNPRINTF. (DLR) + - Remove TOP from the topmidnone enum, and rename the latter + centernone. (DLR) + - Move stdlib.h, dirent.h, regex.h, and assert.h includes here, + 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, + instead of the other way around. (DLR) +- search.c: + search_init() + - Don't blank out last_replace anymore when we get a new string, + as it'll be blanked out in do_replace(). Also, consolidate + the cases for blank and new search strings, as they now differ + only in which string they pass to regexp_init(). (DLR) + is_whole_word() + - Move to utils.c, as it's really a utility function in the same + vein as regexp_bol_or_eol(). (DLR) + replace_abort() + - Remove unnecessary update of placewewant. (DLR) + do_replace() + - Blank out last_replace properly again just before displaying + the "Replace" prompt. (DLR, found by Mike Frysinger) + - Remove unnecessary renumber(). (DLR) + do_gotolinecolumn() + - Add parameter allow_update to control whether the screen is + updated after moving. If it's TRUE, call edit_refresh() after + edit_update(). (DLR) + do_gotopos() + - Only include this function when DISABLE_SPELLER isn't defined, + as the alternate spell checking code is now the only place + where it's used. (DLR) + do_find_bracket() + - Add comments and minor cleanups. (DLR) + find_history() + - Make parameters const where possible. (DLR) + update_history() + - Don't renumber the history list starting after the entry we + found if the entry we found is at the bottom of the list. + (DLR, found by Simon Strandman) + get_history_completion() + - Make parameters const where possible. (DLR) +- text.c: + do_tab() + - Make sure that we insert the correct number of spaces if the + TABS_TO_SPACES flag is set and placewewant is greater than the + current column position of the cursor. (DLR) + do_enter() + - Don't update the edit window until we set placewewant. (DLR) + break_line() + - Fix a problem where a line could be broken in the middle of a + multibyte character. (DLR) + do_word_count() + - Rename to do_wordlinechar_count(), and expand to also count + the number of lines and characters in the file or selection, + as wc does. (DLR) +- winio.c: + get_key_buffer() + - Only save all open buffers and hang up when a blocking + wgetch() returns ERR and errno is set to EIO (input/output + error). If errno is set to something else, recover properly. + This fixes problems with nano's erroneously hanging up while + e.g. resizing or unsuspending in a chroot. (DLR, found by Mike + Frysinger) + get_escape_seq_kbinput() + - Fix typo preventing the VT100/VT220/VT320/xterm/rxvt escape + sequence for ',' on the numeric keypad with NumLock off from + being interpreted properly. (DLR) + get_word_kbinput() + - Multiply the entered digits by hexadecimal numbers instead of + decimal numbers for clarity, rename to get_unicode_kbinput(), + and rename variables word and word_digits to uni and + uni_digits. (DLR) + parse_verbatim_kbinput() + - Rename variables word_mb and word_mb_len to uni_mb and + uni_mb_len. (DLR) + display_string() + - Instead of using parse_mbchar()'s bad_chr parameter, use + mbrep() to get the representation of a bad character. (DLR) + - If column is less than start_col and the character's a tab, + which can be possible if there are enough tabs and the + terminal size is sufficiently large, don't try to display it + using control_mbrep(). (DLR, found by Duncan Geoffry Doyle) + - Really avoid a memory corruption problem by allocating enough + space for COLS characters. (DLR) + edit_redraw(), edit_refresh() + - Clean up and simplify. (DLR) + edit_update() + - Since we no longer use TOP, remove references to it. Also, + don't call edit_refresh() anymore; it will call us. (DLR) + do_statusbar_next_word() + - Rework to be more like do_statusbar_prev_word(), to avoid a + potential problem if we start at the end of a line. (DLR) + do_statusbar_input() + - Call do_statusbar_mouse() instead of do_mouse(). (DLR) + do_statusbar_output() + - When adding a character, just add its length in bytes to + statusbar_x instead of calling do_statusbar_right(). (DLR) + titlebar() + - Rework to display only one space after the version number, so + that there's more room for other things, and to not display + the status when we're in the file browser, since Pico doesn't. + (DLR) + do_credits() + - Various cleanups. Turn on the MORE_SPACE and NO_HELP flags + before showing the credits, so that they use as much of the + screen as possible, and set the flags back to their original + values afterward. Also, call wscrl(1) instead of scroll(), + only call scrollok() just before and after we scroll, and + tweak where screen updates occur so that messages are properly + displayed when they first scroll onto the bottom line of the + screen. (DLR) + - Add Mike Frysinger to credits. (DLR) +- configure.ac: + - Since we only use vsnprintf() now, remove the tests for + snprintf(). (DLR) + - Change the description of "sufficient wide character support" + to "sufficient UTF-8 support", as the latter is clearer. (DLR) + - Update the description of the ENABLE_COLOR option to mention + the need for regex.h. (DLR) +- doc/faq.html: + - Update section 4.10 to mention that pasting from the X + clipboard via the middle mouse button also works when the + Shift key is used. (DLR) +- doc/nanorc.sample: + - Add regexes for Bourne shell scripts. (Mike Frysinger, minor + tweaks by DLR) + - Explain how the "none" and "default" syntaxes work. (DLR) + - Tweaks and additions to the "c-file" regexes: handle #defined + constants more accurately and use a brighter color for them, + support C99 standard integer types, support more GCC builtins, + and color code flow control statements differently. (Mike + Frysinger) DLR: Slightly simplify the integer types regex. + - Tweak one "TeX" regex to use the "icolor" directive. (DLR) +- doc/man/nanorc.5: + - Explain how the "none" and "default" syntaxes work. (DLR) +- doc/man/fr/nano.1, doc/man/fr/nanorc.5: + - Updated translation by Jean-Philippe Guérard. +- src/Makefile.am: + - Add text.c to nano_SOURCES. (DLR) +- AUTHORS: + - Add Mike Frysinger. (DLR) +- README.CVS: + - Since we only use vsnprintf() now, remove the mention of + snprintf(). (DLR) +- THANKS: + - Add Bulgarian and Dutch translators. + +GNU nano 1.3.8 - 2005.06.30 +- General: + - Miscellaneous comment fixes. (DLR) + - Various #include fixes. Since proto.h includes nano.h, only + include the former in source files. Also add an #include + guard to proto.h, and make the config.h #include in nano.h + match the config.h #includes everywhere else. (DLR) + - Change all hardcoded instances of 128 bytes to MAX_BUF_SIZE, + and #define MAX_BUF_SIZE as 128 in nano.h. (DLR) + - Display the key to go to the previous strings in the + search/replace history as "^P" instead of "Up". This makes + mouse clicks work properly on it. Changes to shortcut_init(), + help_init(), nanogetstr(), and do_statusbar_input(). (DLR) + - Update the Free Software Foundation's mailing address in + various comments. (DLR) + - Add the ability to open a file on a specified column as well + as a specified line, by allowing an argument of the form + +LINE,COLUMN. New function parse_line_column(); changes to + shortcut_init(), main(), do_gotoline() (renamed + do_gotolinecolumn()), do_gotoline_void() (renamed + do_gotolinecolumn_void()), nano.1, and nano.texi. (DLR, + suggested by PFTank) + - Overhaul the history code to work more consistently, and clean + up various parts of it. New function history_has_changed(); + changes to load_history(), writehist(), + thanks_for_all_the_fish(), history_init(), find_node() + (renamed find_history()), update_history(), + get_history_older(), get_history_newer(), + get_history_completion(), do_search(), do_replace(), + nanogetstr(), and statusq(); removal of remove_node() and + insert_node(). (DLR) + - Remove all instances of charcpy() and replace them with + strncpy(), since there's no way to be sure that a charcpy()ed + string will always be properly null-terminated, and strcpy()'s + null termination is the only difference between it and + charcpy(). (DLR) + - When using a backup directory, make sure all the filenames + written are unique by using get_next_filename() when + necessary. Changes to get_next_filename(), write_file(), + die(), usage(), nano.1, nanorc.5, nanorc.sample, and + nano.texi. (DLR, suggested by James Collings) + - Rework the file-writing routines so that they can work + properly with already-opened files, such as the + mkstemp()-created files used by the spell-checking code. + Changes to safe_tempnam() (renamed safe_tempfile()), + write_file(), write_marked(), die(), do_spell(), and + do_exit(). (DLR) + - Remove the -R/--regexp command line option and enable the + toggle at the search prompt in tiny mode, as it already + allows the prepend and append toggles at the search prompt. + For consistency, rename TOGGLE_REGEXP_KEY to NANO_REGEXP_KEY, + and move it out of the toggles block to where NANO_PREPEND_KEY + and NANO_APPEND_KEY are. Also, change the short command line + option for --restricted from -Z to -R. Changes to + shortcut_init(), usage(), main(), search_init(), nano.1, + nano.texi, etc. (DLR) + - Various cleanups and improvements in chars.c. Remove some + unnecessary w?ctype wrappers and variables; change the wctype + wrappers to take wint_t instead of wchar_t to match the + functions they wrap; rename some functions for consistency; + add functions to detect blank characters in a string, for use + in rcfile option parsing; and don't count matches between + valid and invalid multibyte sequences anymore, as it causes + problems when doing a replace. New functions + is_valid_mbstring(), has_blank_chars(), and + has_blank_mbchars(); changes to is_alnum_mbchar(), + is_blank_char() (renamed nisblank()), is_blank_mbchar(), + is_blank_wchar() (renamed niswblank()), is_cntrl_wchar(), + control_rep(), control_mbrep(), make_mbstring() (renamed + make_valid_mbstring()), mbstrncasecmp(), mbstrcasestr(), + mbrevstrcasestr(), etc.; removal of is_alnum_char() and + is_alnum_wchar(). (DLR) + - Implement word count via Meta-D at the main window. Note that + this is disabled when NANO_SMALL is defined. Also, convert + all word detection functions to use the same wrapper function + for ease of maintenance, and make them return more + information. New functions is_punct_mbchar(), + is_word_mbchar(), do_next_word_void(), do_prev_word_void(), + and do_word_count(); changes to shortcut_init(), + do_next_word(), do_prev_word(), is_whole_word(), + do_statusbar_next_word(), and do_statusbar_prev_word(). (DLR) + - Fix #ifdefs so that nano compiles with NANO_SMALL defined and + DISABLE_TABCOMP undefined. Changes to revstrstr() and + free_charptrarray() (renamed free_chararray()). (DLR) + - Change the wctype wrappers to take wchar_t's again, as they + still work the same way with them. This also fixes + compilation on Mac OS X 10.4.1, which doesn't seem to define a + wint_t type. (DLR, found by Emily Jackson) + - Add the ability to convert typed tabs to spaces using + the -E/--tabstospaces command line options, the "tabstospaces" + rcfile option, and the toggle Meta-Q (since QBasic did this by + default :)). Note that this doesn't affect tabs entered using + verbatim input, and that it's disabled when NANO_SMALL is + defined. Also, change the short command line option for + --backupdir from -E to -C. Changes to toggle_init(), usage(), + do_tab(), main(), nanorc.sample, nano.1, nanorc.5, and + nano.texi. (DLR, suggested by many people) + - Change the CONSTUPDATE, REVERSE_SEARCH, and SMOOTHSCROLL flags + to the CONST_UPDATE, BACKWARDS_SEARCH, and SMOOTH_SCROLL + flags, respectively. (DLR) + - Change the SMOOTHSCROLL flag to the SMOOTH_SCROLL flag. (DLR) + - Change the NO_UTF8 flag to the USE_UTF8 flag, and reverse its + meaning. (DLR) + - Add rcfile options "casesensitive" and "backwards", to do + case sensitive and backwards searches by default. Changes to + nanorc.sample and nanorc.5. (DLR) + - Since the DISABLE_CURPOS flag is only used in winio.c, reduce + it to a static bool there. Changes to statusbar() and + disable_cursorpos(). (DLR) + - Add -U/--quickblank option and a "quickblank" rcfile option to + blank the statusbar after 1 keystroke instead of 25. Note + that this obviously has no effect when constant cursor + position display is turned on, and that this is disabled when + NANO_SMALL is defined. Changes to usage(), main(), + statusbar(), nanorc.sample, nano.1, and nanorc.5. (DLR, + suggested by CHAO Wei-Lun) + - Add support for case insensitive expression matching when + using color syntax highlighting, via the "icolor" directive, + and add it to those regexes that can use it. Changes to + parse_colors(), parse_rcfile(), nanorc.sample, and nanorc.5. + (Brand Huntsman, minor tweaks by DLR) + - Add various type changes to avoid problems on systems where + int and ssize_t are different sizes. Make filestruct->lineno + a ssize_t (so that we can avoid negative line numbers at the + "Go To Line" prompt), current_y a ssize_t (in order to hold + the maximum difference between two filestruct->lineno's), + totlines a size_t, and change related variables to match. + (DLR, initial problem with parse_line_column() found by Mike + Frysinger) + - Rework the credits handling to display Florian König's name + properly whether we're in a UTF-8 locale or not, and without + requiring a massive function that we only use once. Changes + to do_credits(); removal of make_valid_mbstring(). (DLR) +- chars.c: + make_mbstring() + - Change erroneous ENABLE_EXTRA #ifdef to NANO_EXTRA to fix a + compilation problem when --enable-nanorc isn't used and + --enable-extra is. (DLR) +- color.c: + update_color() + - Use mbstrcasecmp() instead of strcasecmp(), so that UTF-8 + color syntax names are properly detected. (DLR) +- cut.c: + cut_line() + - Set placewewant properly after cutting a line, to avoid a + problem where the screen won't be updated if (a) we're not on + the first page when we cut the line, and (b) immediately after + we cut the line, we hit End to move to the end of the line + after it. (DLR) +- files.c: + read_line() + - Rename variable prev to prevnode to avoid confusion. (DLR) + - Rename variable len to buf_len, for consistency. (DLR) + load_open_file() + - Remove an unneeded clearok(FALSE). (DLR) + get_next_filename() + - Use an unsigned long instead of an int for the number + prepended to the filename. (DLR) + do_insertfile() + - Set i to 0 when we get a filename via the file browser, so + that it's read in properly when we exit the file browser. + (DLR) + open_prevnext_file() + - Move up a misplaced assert. (DLR) + - Rename variable next to next_file, to avoid confusion. (DLR) + write_file() + - Since lineswritten is a size_t, print its value as an unsigned + long instead of an unsigned int. (DLR) + - Declare the size_t i only in the loop where it's used. (DLR) + diralphasort() + - Use mbstrcasecmp() instead of strcasecmp(), so that UTF-8 + filenames are sorted properly. (DLR) + cwd_tab_completion(), browser_init() + - Rename variable next to nextdir to avoid confusion. (DLR) + input_tab() + - Since list is a bool, set it to FALSE instead of 0. (DLR) + - Add multibyte/wide character support, so that we don't end up + with a string that contains only part of a multibyte + character during tab completion. (DLR) + - Rename variable buflen to buf_len, for consistency. (DLR) + do_browser() + - Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for + consistency. (DLR) + - When displaying "(dir)" in the available screen space, make + sure that the string it's stored in is always null-terminated. + (DLR) + - Rename variable selectedbackup to old_selected, for + consistency. (DLR) + - Make mouse clicks in the browser window work properly when the + MORE_SPACE flag is set. (DLR) + - Make foo_len a size_t instead of an int. (DLR) + save_history() + - Properly save history when we're in view mode. (DLR) +- global.c: + shortcut_init() + - Move the "Refresh" and "Exit" shortcuts to the beginning of + the help browser shortcut list, for consistency. (DLR) + - Remove unnecessary "Refresh" placeholder in the file browser + shortcut list. (DLR) + - Allow the mark to be used in view mode, as Pico does. (DLR) + - Clarify the description of ^X when --enable-multibuffer is + used. (DLR) + - Change the description of the Meta-B toggle at the search + prompt from "Direction" to "Backwards", for consistency. (DLR) + toggle_init() + - Clarify the descriptions of M-C and M-L. (DLR) + - Reorder the toggles to put more toggles with similar functions + together. (DLR) + thanks_for_all_the_fish() + - Remove free_toggles() and move its code here verbatim, as it's + only called here anyway. (David Benbennick) + - Fix the code to free all open file buffers to work properly + with the previous overhaul of the multibuffer code instead of + going into an infinite loop. (David Benbennick) + - Add additional checks for variables' not being NULL before we + try to free them, to avoid assertion failures. (DLR) +- nano.c: + die() + - Rename variable ret to retval for consistency. (DLR) + - Tweak the message displayed when a backup file can't be + written, so as to not duplicate a translated string. (DLR) + - If the current filestruct's been partitioned, unpartition it + before saving the associated file. (DLR) + resize_variables() + - Use charset() instead of memset() to initialize hblank. (DLR) + copy_filestruct() + - Rename variable prev to copy to avoid confusion. (DLR) + print1opt_full() + - If desc should be empty, allow it to be NULL instead of + "", since the latter is not necessarily translated as "". + (DLR, found by Jordi) + usage() + - Add missing N_() around one message, so that it isn't + erroneously translated twice. (DLR) + - Remove inaccurate default listed for -Q/--quotestr. (DLR) + version() + - Add --enable-utf8 to the displayed compilation options, put + the options in alphabetical order, and handle --enable-tiny + the same way as all the other options. (DLR) + do_tab() + - Remove unneeded variable kbinput. (DLR) + do_int_spell_fix() + - Display highlighted misspelled words using display_string(), + as do_replace_loop() does. (DLR) + do_alt_speller() + - Replace a set_modified() with SET(MODIFIED) to avoid an + unnecessary update, and remove an unneeded clearok(FALSE). + (DLR) + - Move the spell checking error handling block down and refactor + it so that we go back into curses mode, reinitialize the + terminal, turn the cursor back on, and turn the mark back on + if necessary before returning the error message. (DLR) + do_spell() + - If the spell-checker printed any error messages onscreen, call + total_refresh() to make sure they're cleared off. (DLR, found + by CHAO Wei-Lun) + find_paragraph() + - Reset placewewant as well as current_x to 0, in order to avoid + a potential screen update problem. (DLR) + do_justify() + - Save placewewant, and restore it if we unjustify, in order to + avoid a potential screen update problem. (DLR) + do_output() + - Properly allow wrapping when we insert a tab, for consistency. + (DLR) + - Don't set current_len until after it's been asserted that both + current and current->data aren't NULL. (DLR) + do_toggle() + - Properly treat color syntax highlighting as enabled by + default, and only treat wrapping as enabled by default when + DISABLE_WRAPPING isn't defined. (DLR) + disable_extended_input() + - Disable extended output processing as well as extended input + processing, and rename to disable_extended_io(). (DLR) + disable_flow_control(), enable_flow_control() + - Only turn off flow control on output, as it might be needed + for input on slow terminals. (DLR) +- nano.h: + - Add macro charset(), a wrapper that calls memset(). (DLR) + - Readd #defines for the isblank() and iswblank() equivalents. + (DLR) + - In the colortype struct, make bright a bool instead of an int, + for consistency. (DLR) +- proto.h: + - Add missing NANO_SMALL and HAVE_REGEX_H #ifdefs around the + do_find_bracket() prototype. (DLR) +- rcfile.c: + color_to_int() + - Since colorname's being NULL is handled elsewhere now, assert + that it isn't NULL at the beginning of the function. (DLR) + parse_colors() + - Properly parse a background color without a foreground color. + (DLR) + - Properly generate an error if we get a color directive without + a regex string. (DLR) + parse_rcfile() + - Properly generate an error if we get an invalid multibyte + string for an option, instead of working around it. (DLR) + - Use has_blank_mbchars() to check for blank characters in the + "punct" and "brackets" options, and clarify the error message + displayed when we find blank characters. (DLR) +- search.c: + do_gotoline() + - Properly show an error message if we try to go to line 0, + since the first line in the file is 1. (DLR) + - Start the search for a line from fileage instead of current + (again). (DLR) + replace_regexp() + - Rename variables create_flag and new_size to create and + new_line_size, for consistency. (DLR) + - Make new_line_size, search_match_count, and i size_t's, for + consistency. (DLR) + replace_line() + - Make new_line_size and search_match_count size_t's, for + consistency. (DLR) + do_replace_loop() + - When moving to the next match, update the screen using + edit_refresh() instead of edit_redraw(), as the latter won't + work properly when we've replaced one or more instances of a + string in copy and haven't yet updated current->data to match + copy. (DLR) + do_find_bracket() + - Miscellaneous cleanups: rename variables for consistency, and + save the search direction and regexp setting in two bools + instead of one flags variable. (DLR) +- utils.c: + num_of_digits() + - Use a size_t instead of an int, and rename to digits(). (DLR) + align() + - Rename variable strp to str for consistency. (DLR) +- winio.c: + do_statusbar_output() + - Don't set answer_len until after it's been asserted that + answer isn't NULL. (DLR) + display_string() + - Avoid a memory corruption problem by allocating enough space + for len plus a trailing multibyte character and/or tab. (DLR) + - Don't check for multicolumn characters if the NO_UTF8 flag + isn't set. (DLR) + - Free buf_mb when we're done using it. (DLR) + nanogetstr() + - Rename variable def to curranswer to avoid confusion. (DLR) + - Only declare and use the tabbed variable if DISABLE_TABCOMP + isn't defined. (DLR) + - Refactor to replace unnecessary variable answer_len with + curranswer_len, and hence avoid an assertion failure involving + the former. (DLR) + statusq() + - Rename variable which_history to history_list, for + consistency. (DLR) + - Rename variables def and ret to curranswer and retval to avoid + confusion. (DLR) + - Call wnoutrefresh(bottomwin) after getting an answer and + blanking out the statusbar, to make sure that the blanking is + done. This fixes a problem where the statusbar is not + properly blanked after using the "Go To Line" prompt with the + NO_HELP flag set. (DLR) + titlebar() + - Use actual_x() to calculate the number of characters VERMSG + takes up, in case it's UTF-8. (DLR) + do_cursorpos() + - Properly display the value of totsize as unsigned. (DLR) + - If constant is TRUE, only display the cursor position when + disable_cursorpos is FALSE. Don't refuse to display it when + the cursor position hasn't changed, as that doesn't always + keep it properly updated. (DLR, found by Mike Frysinger) + do_help() + - Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for + consistency. (DLR) + statusbar() + - Set statusblank to 25 instead of 26, to match current Pico. + (DLR) + edit_redraw() + - Make do_refresh a bool instead of an int. (DLR) + do_yesno() + - Allow refreshing the screen via Ctrl-L, as Pico does. (DLR) + - Add a missing assert, and use actual_x() to calculate the + number of characters buf takes up, in case it's UTF-8. (DLR) + - Get input from bottomwin instead of edit, so that the cursor + isn't erroneously put in the edit window while we wait for an + answer. (DLR) + - Call wnoutrefresh(edit) to make sure that the edit window is + refreshed before we get input, as statusq() does. (DLR) + total_redraw() + - Simplify to just call wrefresh() on curscr, which updates the + entire screen in one function call without moving the cursor + from the window it's currently in. (DLR) + - When using slang, use SLsmg_touch_screen() and SLsmg_refresh() + to update the screen, as slang doesn't define curscr. (DLR) + do_replace_highlight() + - Use waddch() instead of waddstr() to display a space when we + have a zero-length regex. (DLR) + - Rename variable highlight_flag to highlight, for consistency. + (DLR) + do_credits() + - Save the keystroke that breaks us out of the credits (if any) + and put it back so that it isn't lost. This is especially + needed if the keystroke is part of a multibyte character. + (DLR) +- nano.1: + - Clarify and consolidate the descriptions of --fill and + --tabsize. (DLR) +- nanorc.5: + - Update the description of how the "color" regex works. (DLR) + - Clarify descriptions of the characters that aren't allowed + in the "punct" or "brackets" options. (DLR) + - Use .B instead of \fB ... \fP where possible, as nano.1 does. + (DLR) + - Clarify and consolidate the descriptions of "fill" and + "tabsize". (DLR) +- nano.texi: + - Update the "Feature Toggles" section to match current nano. + (DLR) + - Clarify and consolidate the descriptions of --fill and + --tabsize. (DLR) +- configure.ac: + - Minor tweaks to some of the test blocks to avoid XSI:isms. + (DLR, adapted from a Debian patch for GNU ed by David + Weinehall) + - Don't refer to the built-in file browser as crappy anymore. + (DLR) + - Check for iswpunct() and mbstowcs(). (DLR) + - Change the behavior of --enable-extra to only define + NANO_EXTRA, instead of defining both it and + ENABLE_MULTIBUFFER. (DLR) + - Check for get_wch() instead of wget_wch() to determine if + there's a wide curses library, as it's a more generic + function. (DLR) + - Check for possibly unavailable functions in alphabetical + order. (DLR) +- doc/faq.html: + - Update section 1.1 to mention the current maintainer. (DLR) + - Minor capitalization and wording fixes. (DLR) + - Update description of --enable-extra, and add missing line + breaks. (DLR) +- doc/nanorc.sample: + - In the "nanorc" regexes, tweak the "color" regex to properly + color a line that specifies a background color without a + foreground color, and update the associated comments. (DLR) + - Clarify descriptions of the characters that aren't allowed + in the "punct" or "brackets" options. (DLR) + - Update comment referring to --enable-extra. (DLR) + - Add "cxx" and "hxx" to the list of extensions that the + "c-file" regexes apply to, and add "warning" and "error" to + them as well. (Mike Frysinger) + - Add regexes for assembler files. (Mike Frysinger) + - In the preprocessor directives regex string in the "c-file" + regexes, cover more whitespace characters than just " " by + using "[[:space:]]" instead. (Mike Frysinger) DLR: Extend + this to other regex strings whenever possible. + - Move some overly long split-up regex strings that cover + similar areas onto the same line. (DLR) + - Add GCC builtins to the "c-file" regexes. (Mike Frysinger) + - Simplify the file extension regex for groff. (DLR) + - Clarify and consolidate the descriptions of "fill" and + "tabsize". (DLR) +- Makefile.am, m4/Makefile.am: + - Make sure that the files in EXTRA_DIST are in alphabetical + order, and that the lines are wrapped at 72 characters. (DLR) +- doc/man/fr/Makefile.am: + - Set mandir to @mandir@/fr, so French manpages get installed + where they belong (Jordi). +- THANKS: + - Add new translators to the credits. + +GNU nano 1.3.7 - 2005.04.10 +- General: + - Miscellaneous comment fixes. (DLR) + - After (re)initializing the terminal, make sure the cursor is + always turned on. Changes to do_alt_speller(), + handle_sigwinch(), and main(). (DLR) + - Make sure that all references to cut-to-end are left out when + NANO_SMALL is defined. Changes to cut_to_eol(), + do_cut_text(), and do_statusbar_cut_text(). (DLR) +- chars.c: + make_mbchar() + - Remove unneeded assert. (DLR) + move_mbleft() + - Fix assert to reference the proper variable, so that nano + builds with DEBUG defined again. (Mike Frysinger, found by + Dmitri Vassilenko) +- files.c: + do_insertfile() + - Fix problem where going into the help browser at the "Insert + File" prompt would always result in the current answer's being + used as the filename afterward. (DLR) + get_full_path() + - Rework handling of the results of getcwd() in order to avoid + segfaults if they fail, and to remove uses of the nonportable + GNU extension where passing a size of 0 will get a string as + long as we need. (DLR) + do_browser() + - Rename variable lineno to fileline to avoid confusion. (DLR) + do_browse_from() + - Rework handling of the results of getcwd() in order to avoid + segfaults if they fail, and to remove uses of the nonportable + GNU extension where passing a size of 0 will get a string as + long as we need. (DLR) +- nano.c: + help_init() + - When calculating allocsize, take multibyte characters into + account, and keep the column number limits consistent. (DLR) + - Break htx up into three chunks, in case the string is too long + for the compiler to handle (e.g. an ISO C89 compiler that can + only handle up to 509 characters). (DLR) + - Minor wording fixes. (DLR) + print1opt() + - Don't include longflag if HAVE_GETOPT_LONG isn't defined. + Rename this function to print1opt_full(), leave out the + longflag parameter if HAVE_GETOPT_LONG isn't defined, and make + print1opt() a macro for print1opt_full() that does that + without the need for a lot of extra #ifdefs. (David + Benbennick) DLR: Rename print1opt_f() to print1opt_full(). + - Rework the special case of options that are ignored for Pico + compatibility so that they display more neatly when + HAVE_GETOPT_LONG isn't defined. (DLR) + usage() + - Fix erroneous #ifdef that resulted in the -d/--rebinddelete + option's not being printed when NANO_SMALL was defined. (DLR) + find_paragraph() + - Fix problem where a search for the next paragraph would skip + over certain cases of one-line paragraphs. (DLR) + do_justify() + - Instead of breaking a line at a space and readding the space + afterwards, just break the line after the space, as it's more + efficient. (DLR) + main() + - Change 0 to NULL in the option struct where needed. (David + Benbennick) +- nano.h: + - Define PATH_MAX as 4096 if it isn't defined, as passing a size + of 0 to get a string as long as we need is a nonportable GNU + extension, and hence it won't work on non-GNU systems that + don't define PATH_MAX. (DLR) +- rcfile.c: + parse_rcfile() + - Fix debugging message to display the long value of a flag + properly. (DLR) +- utils.c: + regexec_safe() + - Rename to safe_regexec() for consistency. (DLR) +- winio.c: + nanogetstr() + - Fix misplaced break. (DLR) + statusq() + - Make sure that the vsnprintf(foo) call and foo's subsequent + null termination both take the proper number of bytes when + using multibyte characters, so that multibyte prompt strings + aren't prematurely cut off. (DLR) + titlebar() + - Make sure that the (mv)?waddnstr() calls take the proper + number of bytes when using multibyte characters, so that + multibyte strings aren't prematurely cut off. (DLR, found by + Jordi) + - Allow the "View" state to be displayed when a filename is + passed in, in case we're in multibuffer mode and inside the + file browser. (DLR) + help_line_len() + - Make the text display more flexible, and closer to what nano + 1.2.x does. (DLR) +- configure.ac: + - Allow more flexible handling of UTF-8 support by allowing + the --enable-utf8 and --disable-utf8 options. (Mike + Frysinger) DLR: Extend these options to work with slang as + well as curses, consolidate the warning and error messages + dealing with UTF-8 support as much as possible, and add a few + minor consistency fixes. + - Mention explicitly that the check for the broken regexec() is + needed for glibc 2.2.3. (DLR) +- nanorc.sample: + - Fix the description for the whitespace option to mention that + only single-column characters are allowed. (DLR) + - Add C++ regexes. (Neil Brown, merged into c-file regexes by + DLR) + - Break up overly long perl and nanorc regexes into separate + regexes of no more than 256 bytes, as POSIX-compliant regexp + implementations can reject regexes of over 256 bytes. (DLR) +- nano.1, nano.texi: + - Mention the -? alias for -h/--help, and add various + consistency fixes. (DLR) +- nanorc.5: + - Fix the description for the whitespace option to mention that + only single-column characters are allowed. (DLR) + +GNU nano 1.3.6 - 2005.03.20 +- General: + - More int -> bool conversions. (DLR and David Benbennick) + - Overhaul the cutting and uncutting routines to use the + partitioning code, as it greatly simplifies how they work. + New functions move_to_filestruct(), copy_from_filestruct(), + cut_line(), cut_marked(), and cut_to_eol(); changes to + add_to_cutbuffer(), do_cut_text(), do_uncut_text(), etc.; + removal of functions get_cutbottom(), add_to_cutbuffer(), and + cut_marked_segment(). (DLR) + - Overhaul the justify-related routines to back up and restore + unjustified text to use the partitioning code, as it greatly + simplifies how they work, and to store such text in its own + buffer rather than the cutbuffer. Changes to backup_lines(), + do_justify(), etc. (DLR) + - Overhaul the multibuffer routines to increase efficiency, most + importantly making them use a doubly linked list for the open + files so that switching between them is no longer O(N), and + only including free_openfilestruct() when --enable-debug is + used. Also use some of the same efficiency tweaks when + dealing with filestruct nodes. New function + open_prevnext_file(); changes to make_new_opennode(), + splice_opennode(), unlink_opennode(), delete_opennode(), + free_openfilestruct(), add_open_file(), load_open_file(), + close_open_file(), shortcut_init(), die(), make_new_node(), + copy_node(), splice_node(), delete_node(), and + free_filestruct(); removal of open_prevfile() and + open_nextfile(). (David Benbennick, minor tweaks and additions + by DLR) + - Change references to "open files" to "open file buffers", for + consistency. (DLR) + - Add flag to disable UTF-8 sequence interpretation, so that + people using single-byte encodings such as KOI8-R can type + properly again. (DLR, found by Arthur Ivanov) + - Massively overhaul the input and output routines to support + buffered input and output, the first steps toward + wide/multibyte character input and output, and verbatim input + of double-byte Unicode characters instead of single-byte ASCII + characters. New functions is_byte(), get_buffer(), + get_buffer_len(), buffer_to_keys(), unget_input(), + get_input(), parse_kbinput(), and parse_verbatim_kbinput(); + new macro charcpy(); changes to do_char() (renamed to + do_output()), get_edit_input() (renamed to do_input() and + moved to nano.c), get_edit_mouse() (renamed do_mouse() and + moved to nano.c), do_verbatim_input(), do_tab(), main(), and + get_ascii_kbinput() (renamed to get_byte_kbinput()). The wide + version of ncurses is required in order for wide/multibyte + input and output to work properly. (DLR; buffered input/output + based on ideas from mutt 1.4.2.1; input of Unicode characters + in hexadecimal suggested by Michael Piefel) + - More steps toward wide character/multibyte character support. + New functions control_rep(), parse_char(), move_left(), and + move_right(); changes to do_left(), do_right(), do_delete(), + breakable(), break_line(), do_output(), get_buffer(), + unget_input(), actual_x(), strnlenpt(), display_string(), + titlebar(), statusbar(), onekey(), edit_add(), + do_replace_highlight(), and do_credits(). (David Benbennick + and DLR) + - Overhaul the high-level input routines for the statusbar to + make them read the shortcut lists for functions instead of + manually running them, to make nanogetstr() less complex, and + to increase flexibility. Note that currshortcut is now used + regardless of #ifdefs, and that cutting text at the statusbar + now respects the CUT_TO_END flag. Changes to shortcut_init() + and nanogetstr(); new functions do_statusbar_input(), + do_statusbar_mouse(), do_statusbar_home(), do_statusbar_end(), + do_statusbar_right(), do_statusbar_left(), + do_statusbar_backspace(), do_statusbar_delete(), + do_statusbar_cut_text(), and do_statusbar_output(). (DLR) + - Even more steps toward wide character/multibyte character + support. Movement and cursor display at the statusbar prompt + should now (mostly) work properly with a string containing + multibyte characters, and text display of such strings should + now (mostly) work properly as well. Changes to search_init(), + nanoget_repaint(), do_statusbar_right(), do_statusbar_left(), + do_statusbar_backspace(), and do_statusbar_delete(). (David + Benbennick and DLR) + - Implement cutting from the current position to the end of the + file, using Ctrl-X from the search prompt and Meta-T from the + edit window. New function do_cut_till_end(). Note that this + is disabled when NANO_SMALL is defined. (DLR, based on ideas + from a patch for Pico by Eduardo Chappa, suggested by Ryan + Dlugosz and Paul Adams) + - Implement verbatim input for the statusbar prompt. Changes to + do_statusbar_input() and do_statusbar_output(); new functions + keys_to_buffer(), unparse_kbinput(), and + do_statusbar_verbatim_input(). (DLR) + - Yet more steps toward full wide character/multibyte character + support. Overhaul the functions that already have support for + them to work with multibyte strings as much as possible, add + support to a few more functions as well, and move multibyte + character-specific functions to their own source file. New + file chars.c; new functions is_alnum_char(), + is_alnum_mbchar(), is_alnum_wchar(), is_blank_mbchar(), + is_blank_wchar(), is_cntrl_mbchar(), is_cntrl_wchar(), + control_mbrep(), control_wrep(), mbwidth(), mb_cur_max(), + make_mbchar(), mbstrlen(), mbstrnlen(), mbstrcasecmp(), + mbstrncasecmp(), mbstrcasestr(), and mbrevstrcasestr(); + changes to help_init(), do_wrap(), break_line(), is_byte() + (moved to chars.c), is_blank_char() (moved to chars.c), + is_cntrl_char() (moved to chars.c), nstricmp() (renamed + nstrcasecmp() and moved to chars.c), nstrnicmp() (renamed + nstrncasecmp() and moved to chars.c), nstristr() (renamed + nstrcasestr() and moved to chars.c), revstrstr() (moved to + chars.c), revstristr() (renamed revstrcasestr() and moved to + chars.c), nstrnlen() (moved to chars.c), parse_char() (renamed + parse_mbchar() and moved to chars.c), move_left() (renamed + move_mbleft() and moved to chars.c), move_right() (renamed + move_mbright() and moved to chars.c), do_home(), + do_verbatim_input(), do_delete(), do_tab(), do_enter(), + indent_length(), do_next_word(), do_prev_word(), do_wrap(), + do_input(), do_output(), is_whole_word(), strstrwrapper(), + get_buffer(), unget_input(), unget_kbinput(), get_input(), + parse_kbinput(), unparse_kbinput(), parse_verbatim_kbinput(), + do_statusbar_input(), do_statusbar_home(), + do_statusbar_verbatim_kbinput(), do_statusbar_output(), + do_help(), help_line_len(), and display_string(); removal of + buffer_to_keys() and keys_to_buffer(). (DLR) + - Add -O/--morespace command line option, plus a corresponding + Meta-O toggle and a "morespace" rcfile option. When these are + used, the normally-unused blank line below the titlebar will + be treated as part of the edit window. New functions + no_more_space() and blank_topbar(); changes to global_init(), + window_init(), handle_sigwinch(), do_toggle(), do_mouse(), + get_mouseinput(), etc. (DLR; suggested by Mike Frysinger, + Rocco, and Robert Schultz) + - Add support for moving to the next or previous word at the + statusbar prompt. New functions do_statusbar_next_word() and + do_statusbar_prev_word(); changes to do_statusbar_input(). + (DLR) + - Make resizing more flexible. We now can work with as few as + one row, and with no limit on the number of columns (except of + course the curses-imposed limit that it be greater than zero). + New function resize_variables(); changes to die_too_small() + (renamed check_die_too_small()), global_init(), window_init(), + and handle_sigwinch(). (David Benbennick) + - Use void instead of RETSIGTYPE, as signal handlers are + supposed to return void anyway. Also, the value of RETSIGTYPE + is sometimes misdetected as int, leading to compilation + warnings or errors. Changes to cancel_fork(), + handle_hupterm(), do_suspend(), and do_cont(). (David + Benbennick) + - Change flags to an unsigned long, and totsize to a size_t. + (DLR) + - Store the number of multibyte characters instead of the number + of single-byte characters in totsize, and use get_totals() to + get the value of totsize in a few more places. Changes to + read_line(), read_file(), do_delete(), do_input(), + get_totals(), and do_cursorpos(). (DLR) + - Overhaul the tab completion code, the file browser code, and + related functions to increase efficiency and support multibyte + characters. New function is_dir(); changes to + get_full_path(), check_writable_directory(), safe_tempnam(), + diralphasort(), username_tab_completion(), + cwd_tab_completion(), input_tab(), tail(), striponedir(), + browser_init(), do_browser(), and do_browse_from(); removal of + append_slash_if_dir(), readable_dir(), and + check_wildcard_match(). (David Benbennick) DLR: Move the + routine to get the current user's home directory into the new + function get_homedir(), and use it where necessary. Also add + a few miscellaneous tweaks. + - Overhaul the rcfile parsing code to make it simpler and more + accurate, remove now-redundant checks from the color code, + change the COLOR_SYNTAX toggle to the NO_COLOR_SYMTAX toggle, + and improve various debugging messsages. Changes to + set_colorpairs(), do_colorinit(), parse_next_word(), + parse_argument(), colortoint(), parse_next_regex(), + parse_syntax(), parse_colors(), parse_rcfile(), do_rcfile(), + etc. (David Benbennick) DLR: Rename colortoint() to + color_to_int(), and add a few miscellaneous tweaks. + - Overhaul the paragraph-searching code to make it use the + paragraph-searching utility functions when possible instead of + duplicating code. Also overhaul the justify code to make it + leave the right number of spaces at the ends of the lines of a + paragraph, to make it support multibyte characters, and to + make it simpler. Also, don't remove a space after a duplicate + character in punct anymore, as it doesn't really make us more + compatible with Pico. New functions mbstrchr(), + do_para_begin_void(), and do_para_end_void(); changes to + justify_format(), do_para_begin(), inpar(), do_para_end(), + break_line(), do_para_search() (renamed find_paragraph()), and + do_justify(); removal of breakable(). (DLR) + - Still more steps toward full wide/multibyte character support. + Make sure all rcfile arguments are valid multibyte strings, + make whitespace display mode work with multibyte characters, + and add a few related documentation updates. New function + make_mbstring(); changes to make_mbchar(), make_mbstring(), + main(), parse_rcfile(), display_string(), and do_help(). (DLR) +- cut.c: + do_cut_text() + - If keep_cutbuffer is FALSE, only blow away the text in the + cutbuffer if the cutbuffer isn't empty. (DLR) + do_uncut_text() + - No longer duplicate Pico's adding an extra magicline to the + file if uncutting leaves the cursor on the current one. This + behavior appears to be a bug, as inserting a file in the same + manner doesn't add an extra magicline. (DLR) +- files.c: + get_full_path() + - Remove unneeded NANO_SMALL #ifdef, so that it's included + whenever its prototype is, and so it can compile when + DISABLE_OPERATINGDIR isn't defined and NANO_SMALL is. (DLR) + do_browser() + - Refresh the screen when Ctrl-L is pressed in the file browser, + as Pico does. (DLR) +- global.c: + shortcut_init() + - Fix misplaced #endif keeping the "Full Justify" shortcut in + the search shortcut list from being included when NANO_SMALL + is defined but DISABLE_JUSTIFY isn't. (DLR) + - Use NULL instead of 0 when a shortcut has no associated + function. (DLR) + thanks_for_all_the_fish() + - Free the justify buffer if it isn't empty. (DLR) +- nano.c: + help_init() + - Clarify the text describing double-escape character input. + Since ASCII is technically only seven bits wide, characters + 128-255 aren't ASCII. (DLR, suggested by Michael Piefel) + do_toggle() + - When we get the whitespace display toggle, update the titlebar + as well as the edit window, in case the filename displayed on + the titlebar contains spaces or tabs. (DLR) + handle_sigwinch() + - If the justify buffer isn't empty, blow it away and don't + display "UnJustify" in the shortcut list anymore. (DLR) + usage() + - Typo fix. (DLR) + do_wrap() + - Make wrap_loc and word_back ssize_t's, to match fill. (DLR) + break_line() + - Fix compilation problem caused by its returning int when it + should return ssize_t according to its prototype. (Jeremy + Huddleston) + indent_length() + - Make the #ifdef around it match that of its prototype to avoid + compilation problems when compiling with --enable-tiny and + without DISABLE_JUSTIFY's being defined. (DLR) + do_justify() + - For consistency, preserve placewewant if we didn't unjustify + instead of setting it to 0. (DLR) + - When justifying the entire file, properly break out of the + loop if we've found at least one paragraph, there are no more + paragraphs after the current one, and the paragraph search + left us on the magicline. This avoids a segfault. (DLR) + do_input() + - Add finished parameter, used to indicate when we run or try to + run a function associated with a shortcut. (DLR) + main() + - Try to automatically detect whether UTF-8 support is needed by + setting the NO_UTF8 flag if setlocale() returns a string that + doesn't contain "UTF8" or "UTF-8", case insensitively. When + using slang 2.x, enable UTF-8 support with SLutf8_enable(). + (DLR, string checks beyond case-sensitive "UTF-8" adapted from + Debian's UTF-8 patch for slang) +- nano.h: + - Remove now-unneeded #defines for functions that now have + multibyte equivalents. (DLR) + - Remove now-unneeded MIN_EDITOR_COLS. (David Benbennick) +- utils.c: + regexec_safe() + - Remove redundant regexec #define, and move the regexec #undef + to nano.h. (DLR) + is_blank_char() + - Rewrite to use ctype functions instead of checking directly + for spaces and tabs. (DLR) + revstrstr(), revstristr() + - Add asserts. (DLR) +- winio.c: + get_buffer() + - If we get ERR when using blocking input, it means that the + input source that we were using is gone. In this case, call + handle_hupterm(), so that nano dies gracefully instead of + going into an infinite loop. (DLR, found by Jim Uhl) + titlebar() + - Rename some variables for consistency, make space an int + instead of a size_t, properly handle the case where the prefix + length plus the path length is greater than the amount of + space available, and fix a typo in an assert. (DLR) + unget_kbinput() + - Remove the wide character handling, as it didn't work properly + with respect to function keys. (DLR) + get_kbinput(), get_translated_kbinput(), get_ascii_kbinput(), + get_untranslated_kbinput() + - Make the ascii_digits variables ints instead of size_t's, + since they will only hold very small values. (DLR) + get_kbinput() + - Remove the wide character handling, as it didn't work properly + with respect to adding multiple wide characters at once, and + ungetting them just caused other problems elsewhere. (DLR) + get_translated_kbinput() + - Remove the wide character handling, as it didn't work properly + with respect to adding multiple wide characters at once, and + ungetting them just caused other problems elsewhere. (DLR) + - Use if statements instead of switch/case statements to handle + ASCII character sequence mode, as they take up less room. + get_ascii_kbinput() + - Use if statements instead of switch/case statements to handle + ASCII character sequence mode, as they take up less room. + get_verbatim_kbinput() + - Don't pass v_kbinput in as a parameter, since we're + dynamically allocating it and then returning it. (DLR) + - Remove v_first parameter, and go back to the old behavior of + putting back the first character of the escape sequence, as it + worked just as well and was less complicated. (DLR) + get_mouseinput() + - Return TRUE instead of FALSE only when we have a control key, + a prinary meta key sequence, or both. (DLR) + get_shortcut() + - Add a debug message. (DLR) + - Take kbinput as a reference instead of a value, so that it's + translated when the key is translated to its equivalent + control key or meta key shortcut. (DLR) + - Return s instead of NULL only when we have a control key, a + prinary meta key sequence, or both. (DLR) + get_toggle() + - Add a debug message. (DLR) + bottombars() + - Initialize foo, in case a keystroke meets none of the handled + cases. (DLR) + total_refresh() + - Refresh bottomwin using the value of currshortcut, and change + the code around do_refresh() calls to accommodate this. (DLR) + - Split out the code that updates the screen before refreshing + it into the new function total_redraw(). + do_help() + - Refresh the screen when Ctrl-L is pressed in the help browser, + as Pico does. (DLR) +- configure.ac: + - Remove specific references to control key shortcuts. (DLR) + - Check for the wide versions of ncurses or slang, without which + multibyte strings don't seem to be displayed properly, and + associated multibyte/wide character functions. (DLR) + - Check for wchar.h, for those systems that need it for the + wcwidth() prototype. (DLR) + - Remove checks for all include files that we include + unconditionally. (DLR) + - Remove references to termio.h here and elsewhere, since it's + obsolete and it defines a struct termio that we don't use + anywhere. (DLR) + - Typo fixes. (DLR) + - Add checks for isascii(), iswalnum(), iswblank() or + iswspace(), mblen(), and wctype.h. (DLR) +- README: + - Updated for the 1.3 branch. (DLR) +- README.CVS: + - Updated to mention the need for a wide character-supporting + version of curses or slang if UTF-8 support is desired. (DLR) +- doc/faq.html: + - Remove now-inaccurate note about verbatim input's not working + at prompts, and update its description to mention that it + handles hexadecimal values now. (DLR) + - Add question about opening files with names beginning with + '+'s, and add a few more miscellaneous cosmetic fixes. +- nanorc.sample: + - Add return to the "c-file" regexes. (DLR) + - Clarify the text describing good values for whitespace + display. Since ASCII is technically only seven bits wide, + characters 128-255 aren't ASCII. (DLR, suggested by Michael + Piefel) + - Add the "morespace" option. (DLR) + - Add support for characters to the "c-file" regexes. (DLR) + - Add the hexadecimal equivalents of the decimal values + suggested for whitespace display, now that it can handle + multibyte characters. (DLR) + - Add "manpage" regex. (Mike Frysinger, minor tweaks by DLR) +- nano.1. nanorc.5, nano.texi: + - Add the "morespace" option, and sync with the descriptions in + nanorc.sample in a few places. (DLR) + - Miscellaneous wording tweaks. (DLR) +- src/Makefile.am: + - Add chars.c to nano_SOURCES. (DLR) + - If we're installing and the "rnano" symlink already exists, + remove it so that we can create it again without an error. + (DLR) +- AUTHORS: + - Updated to mention UTF-8 support. + +GNU nano 1.3.5 - 2004.11.22 +- General: + - Convert more ints that hold only TRUE and FALSE values to + bools. (DLR) + - Consolidate the code for finding and running a shortcut in a + shortcut list, the code for finding and toggling a toggle in a + toggle list, and the code for doing both of those and + interpreting mouse clicks in the edit window. Also move the + code for do_mouse() to get_edit_mouse() and tweak it to + properly handle cases where a shortcut isn't clicked. New + functions get_shortcut(), get_toggle(), get_edit_input(), and + get_edit_mouse(); changes to do_browser(), do_justify(), + do_help(), and main(). (DLR) + - Simplify a few more translated messages. (DLR) + - Translation updates (see po/ChangeLog for details). + - Remove reference to @includedir@ in src/Makefile.am, as it's + unneeded and can break cross-compilation. (DLR, found by Mike + Frysinger) + - Overhaul the file opening, reading, and loading operations to + increase efficiency, avoid problems on invalid filenames + specified on the command line, and eliminate corner cases that + erroneously leave edittop or current NULL when they shouldn't + be. Also split out the code to execute a command into a + separate function, eliminate a workaround for one of the + aforementioned corner cases, handle files with a mix of DOS + and Mac format lines, and remove the code to turn on the + NO_CONVERT flag when opening a binary file, as it's not always + reliable and will cause problems with UTF-8 text files. New + functions open_file(), execute_command(), and mallocstrassn(); + changes to read_line(), load_file(), read_file(), open_file(), + get_next_filename(), do_insertfile(), do_insertfile_void(), + do_alt_speller(), and edit_refresh(). (David Benbennick) DLR: + Add a few minor fixes to make sure that current is set + properly in all cases, indicate on the statusbar when the file + has a mix of DOS and Mac format lines, move the test for DOS + line endings from read_line() to read_file() to avoid + inaccurate statusbar messages and to reduce fileformat to a + local variable in read_file(), eliminate another workaround in + edit_update(), rename open_the_file() to open_file() since the + latter has been removed, and rename load_a_file() to + load_buffer(). + - Add alternative shortcuts to the main and search shortcut + lists for moving to the beginning and end of a paragraph and + justifying the entire file: Meta-( (Meta-9), Meta-) (Meta-0), + and Meta-J, respectively. Do this because Pico's practice of + putting these shortcuts only in the search shortcut list is + rather odd. (DLR) + - Turn off extended input processing (the IEXTEN termios flag) + as nano 1.2.x does. New function disable_extended_input(); + changes to terminal_init(). (DLR) + - Remove redundant include of limits.h from nano.c. nano.c + includes nano.h and nano.h includes limits.h. (DLR) + - Add a func_key flag to the low-level input functions and the + currently existing high-level input functions, to indicate + extended keypad values. This is needed for UTF-8 support. + Changes to unget_kbinput(), get_kbinput(), + get_translated_kbinput(), get_shortcut(), get_edit_input(), + etc. (DLR) + - Add a multibuffer mode toggle to the "Execute Command" prompt, + for consistency with the "Read File" prompt. Changes to + do_insertfile() and shortcut_init(). (DLR) + - Add an ^X toggle to the "Execute Command" prompt to go back to + the "Insert File" prompt, and add a ^T toggle to the "Go To + Line" prompt to go back to the "Where Is" prompt. Changes to + do_insertfile(), shortcut_init(), do_gotoline(), etc. + - Make sure a few uninitialized static variables are initialized + to sane values. (DLR) + - After reading in a file and detecting the format it's in, set + the file format flags (DOS_FILE and MAC_FILE) to match, and + preserve them across multiple file buffers. Changes to + read_file(), add_open_file(), and load_open_file(). (DLR, + suggested by Bill Soudan) + - Remove the -D/--dos and -M/--mac command line options, as they + aren't much use with the new file format autodetection. Also + remove the global versions of the toggles, so that they can + only be used at the "Write File" prompt as similar options + can. Finally, change the Mac format toggle to Meta-M, since + that no longer conflicts with the global -m/--mouse toggle. + (DLR) + - Add support for reading in UTF-8 sequences to the low-level + input routines. Changes to get_kbinput() and + get_translated_kbinput(). (DLR) + - Reduce search_last_line to a static variable in search.c, and + allow it to be set to FALSE via a function. New function + findnextstr_wrap_reset(); changes to do_int_spell_fix(), + findnextstr(), do_search(), do_research(), do_replace_loop(), + do_replace(), and do_find_bracket(). (DLR, problem with making + search_last_line local to findnextstr() found by Rocco) + - When saving or changing file positions, be sure not to ignore + placewewant. Changes to do_int_spell_fix(), findnextstr(), + do_replace_loop(), and do_replace(). (DLR) + - Convert current_x and mark_beginx to size_t's, and convert + some functions that use them as a parameter to use size_t as + well. Also change some related assertions to handle them. + (David Benbennick and DLR) + - Add code to partition a filestruct between a set of arbitrary + coordinates. Given the coordinates of the beginning and end + of the mark, this allows proper and easier handling of saving + marked selections, replacing text only in marked selections + (suggested by Joseph Birthisel), and spell-checking marked + selections using either the internal or alternate spell + checker. Do all these using a global partition structure. + New functions partition_filestruct(), + unpartition_filestruct(), remove_magicline(), and + get_totals(); changes to write_marked(), do_int_spell_fix(), + do_alt_speller(), handle_sigwinch(), and do_replace_loop(). + (DLR) + - Remove most redundant includes of sys/stat.h. It's included + in nano.h, so it doesn't need to be included in files that + include nano.h. (DLR) + - Remove the DOS_FILE and MAC_FILE flags, as they're only used + in files.c, and replace them with a static file_format enum. + Change the openfilestruct structure accordingly in order to + handle this. (DLR) + - Convert some ints with predefined boundaries to enums. (DLR) + - Include config.h only if HAVE_CONFIG_H. (Jordi) +- cut.c: + cut_marked_segment() + - Respect concatenate_cut, as we need to use it if we do a + marked cut and immediately follow it with a cut-to-end (which + uses this function). (DLR) + do_cut_text() + - Set concatenate_cut to TRUE unconditionally when doing a + marked cut. This fixes an incompatibility with Pico where an + extra line is uncut if we do a marked cut that includes the + magicline and immediately follow it with an unmarked cut. + (DLR) + do_uncut_text() + - Maintain current_y's value when uncutting blocks so that + smooth scrolling works correctly. (DLR) +- files.c: + read_file() + - Rename variable fileformat to format, to avoid confusion with + the file_format enum type. (DLR) + load_buffer() + - Don't change the file format when we insert another file into + the current one. (DLR) + do_insertfile() + - Simplify by reusing variables whereever possible, and add a + parameter execute to indicate whether or not to be in "Execute + Command" mode. (DLR) + - Rework so that goto is no longer needed, using do_writeout() + as a model. (DLR) + - If file browsing succeeds, call statusq_abort() so that the + cursor position at the statusbar is reset. (DLR) + - Add missing #ifdefs around the wrap_reset() call so that nano + compiles with wrapping disabled again. (DLR) + - If we're not inserting a file into a new buffer, partition the + current buffer so that it's effectively a new buffer just + before inserting the file, and only restore placewewant + afterwards. This is the same behavior we would get if we + opened the file, added all of it to the cutbuffer, closed the + file, and uncut at the current cursor position. (DLR) + - Maintain current_y's value when inserting so that smooth + scrolling works correctly. (DLR) + do_writeout() + - Restructure if blocks for greater efficiency, using + do_insertfile() as a model. (DLR) + - Simplify where possible, and use an int retval to hold the + return value instead of i. (DLR) + - If file browsing succeeds, call statusq_abort() so that the + cursor position at the statusbar is reset. (DLR) + - Remove unneeded calls to display_main_list(). (DLR) + do_writeout_void() + - Call display_main_list(), for consistency with + do_insertfile_void(). (DLR) + write_file() + - If we've tried to write to an unwritable file and we're not + prepending, tempname is NULL when it's passed to unlink(). + This can cause problems if unlink() can't handle NULL, so + don't call it in that case. (David Benbennick) + write_marked() + - Remove check for MARK_ISSET's not being set. (DLR) + open_prevfile(), open_nextfile() + - Translate the "New Buffer" string when displaying "Switched + to" messages on the statusbar. (DLR) + input_tab() + - Fix snprintf() call so that we don't segfault when trying to + complete a filename containing %'s. (Ulf Härnhammar) +- global.c: + shortcut_init() + - Remove redundant NANO_SMALL #ifdef. (DLR) + - Change an erroneous _() around the "New Buffer" string to + N_(). (DLR) + - Add new key aliases: F15 for "Mark Text" (DLR) and F16 for + "Where Is Next" (Chris). + - Leave "Mark Text" and "Where Is Next" out entirely when + NANO_SMALL is defined. Since they aren't in the visible main + list, there's no point in having them in but disabled. (DLR) + - In the search prompt shortcut list, move "Full Justify" to + after "History", so that the latter is visible onscreen + again. (DLR) +- nano.c: + die_save_file() + - Clarify the error message when there are too many backup files + and the current one can't be written. (DLR) + help_init() + - Rework to be a bit more flexible. Only add tabs for shortcut + key entries if those entries exist, and if there's only one + entry left but there's room for more than one, add enough tabs + to put that entry at the end. Also, make sure a function key + is displayed in the middle if it's the first entry. These + changes allow e.g. the miscellaneous meta key sequence to be + displayed in a shortcut that has a control key, a primary meta + key sequence, and a miscellaneous meta key sequence, but no + function key. (DLR) + - Update the help text to mention replacing and spell checking + only selected text, and also add a few cosmetic fixes to it. + (DLR) + - Update the help text to mention how to get a blank buffer at + the "Execute Command" prompt. (DLR) + do_prev_word() + - Tweak to avoid an infinite loop, since current_x is now a + size_t and hence is unsigned. (DLR) + do_int_spell_fix() + - Move the REVERSE_SEARCH flag toggling into the NANO_SMALL + #ifdef, since the tiny version of nano doesn't support reverse + searching. Move the CASE_SENSITIVE flag toggling out in order + to allow the internal spell checker to work properly when + NANO_SMALL is defined and DISABLE_SPELLER isn't. Also, turn + the USE_REGEXP flag off during spell checking in order to + avoid a potential segfault. (DLR) + - Fix a problem where if the cursor is in the middle of a file, + the spell checker will sometimes only correct the misspelled + word instances that appear before the cursor position and then + stop. (Rocco) + - Use do_replace_loop()'s canceled parameter in order to ensure + that the spell checking stops if we canceled at the replace + prompt. (DLR) + do_alt_speller() + - Call terminal_init() unconditionally after running the + alternate spell checker, so that the terminal state is + properly restored in all cases. (DLR) + justify_format() + - For more compatibility with Pico, remove extra space after a + character in punct if that character is the same as the one + before it. For example, with the default values of punct and + brackets, only one space will be left after "...". (DLR) + do_para_begin(), do_para_end() + - Maintain current_y's value when moving up or down lines so + that smooth scrolling works correctly. (DLR) + breakable(), break_line() + - Make goal a ssize_t instead of an int, since fill is now a + ssize_t, and the position at which a line is broken can be + greater than COLS. (DLR) + main() + - Tweak the command line parsing routine so that multiple +LINE + flags are properly interpreted in multibuffer mode. (DLR) +- nano.h: + - Add WIDTH_OF_TAB #define, containing the default width of a + tab. (DLR) + - Move the PATH_MAX #define here from files.c. + - Remove unused COPYFILEBLOCKSIZE #define. (DLR) +- proto.h: + - Add missing NANO_SMALL #ifdef around the cut_marked_segment() + prototype. (DLR) +- rcfile.c: + parse_rcfile() + - Add missing brackets around an if statement block so that + parsing the numeric argument after "tabsize" works properly + again. (DLR, found by Mike Frysinger) + - Since flag values are longs, use "%ld" instead of "%d" in the + debugging messages indicating when a flag is set or unset. + (DLR) +- search.c: + regexp_init() + - If NANO_SMALL is defined, don't bother checking the + CASE_SENSITIVE flag or using its value when compiling a list + of matching regular expressions. (DLR) + search_init() + - Add parameter use_answer. When it's TRUE, only set + backupstring to answer. This is needed to preserve the text + of the statusbar when switching to the search prompt from + the "Go To Line" prompt. Also, set backupstring before doing + anything else, add one minor efficiency tweak, and preserve + the text of the statusbar no matter what when switching from + the search prompt to the "Go To Line" prompt, since the + toggling works both ways now and non-numeric text shouldn't be + lost when going only one of those ways. (DLR) + - When we're replacing and the mark is on, display a prompt + indicating that we're replacing text only in the selection + instead of the usual prompt. (DLR) + findnextstr() + - Take the no_sameline parameter after can_display_wrap and + wholewords, not after all other parameters. (DLR) + - Maintain current_y's value when moving up or down lines so + that smooth scrolling works correctly. (DLR) + - Fix handling of the wholewords flag so that it works with + regular expressions and in conjunction with the no_sameline + flag, and add new parameter needle_len (used to return the + length of the match). (DLR) + do_replace_loop() + - Miscellaneous cleanups: treat real_current as current and + real_current_x as current_x, only turn the mark off and call + edit_refresh() if the mark was originally on, and make + length_change a ssize_t. (DLR) + - Return ssize_t instead of int. (DLR) + - Add new parameter canceled, set to TRUE if we canceled at the + prompt and FALSE otherwise. (DLR) +- utils.c: + regexp_bol_or_eol() + - Don't assume any longer that string will be found if + REG_NOTBOL and REG_NOTEOL are not set. (DLR) + mallocstrncpy() + - New function, used as a malloc()ing equivalent of strncpy(). + (DLR) + mallocstrcpy() + - Refactor to be a wrapper for mallocstrncpy(). (DLR) + mark_order() + - Add new parameter right_side_up. Set it to TRUE If the mark + begins with (mark_beginbuf, mark_beginx) and ends with + (current, current_x), or FALSE otherwise. (DLR) +- winio.c: + unget_kbinput() + - New function used as a wrapper for ungetch(). (DLR) + get_kbinput() + - When reading an escape sequence, set get_verbatim_kbinput()'s + new first parameter to the first character of the sequence + instead of putting that character back and reading the entire + sequence afterwards. (DLR) + get_escape_seq_kbinput() + - Make the escape_seq parameter a const int*, since it's never + modified. (DLR) + - Support the escape sequences for F15 and F16. (DLR) + get_verbatim_kbinput() + - Add new parameter first. If first isn't ERR, make it the + first character in the returned sequence instead of reading + the first character in via blocking input. (DLR) + get_mouseinput() + - Consolidate two if statements to increase efficiency. (DLR) + - Check kbinput against metaval instead of (erroneously) ctrlval + when putting back a meta sequence. (DLR) + - If there are more than MAIN_VISIBLE shortcuts available, only + register clicks on the first MAIN_VISIBLE shortcuts, since + bottombars() only shows that many shortcuts. (DLR) + check_statblank() + - Rename to check_statusblank(), and rename its associated + global int statusblank too. (DLR) + nanogetstr() + - Refresh the screen when Ctrl-L is pressed at the statusbar + prompt, as Pico does. (DLR) + - Always return the key pressed by the user. (DLR) + statusq() + - Rework slightly to reset the cursor position when the user + hits Enter as well as Cancel. This means that resetstatuspos + no longer needs to be global. (DLR) + statusq_abort() + - New function to set resetstatuspos to FALSE when we don't + properly exit the statusbar prompt, e.g. when we get a file + from the file browser). (DLR) + bottombars() + - For efficiency, no longer dynamically allocate space for each + visible shortcut, as they're all of a constant short length. + (David Benbennick) + reset_cursor() + - If this is called before any files have been opened, as it can + be by statusbar(), put the cursor at the top left corner of + the edit window before getting out. (DLR) + edit_refresh() + - Call edit_update() with NONE instead of CENTER when smooth + scrolling is on, for consistency with the movement routines. + (DLR) + edit_update() + - Simplify so as not to require the fileptr parameter anymore, + since it's set to current in all calls. (DLR) + - Add comments better explaining what the update actually does, + and avoid an infinite loop when location is NONE and current_y + is greater than (editwinrows - 1). (DLR) + do_yesno() + - Don't bother assigning the value of get_mouseinput() to + anything. Since allow_shortcuts is FALSE, its return value + will always be FALSE. (DLR) +- configure.ac: + - When calling AC_TRY_RUN() to test for a broken regexec() + function, set the fourth parameter to default to "no" (since + it apparently only occurs on glibc 2.2.3-based systems) so + that cross-compiling will work. (DLR, found by Mike Frysinger) + - Simplify the curses library tests by only checking for + initscr(), which ncurses, curses, and pdcurses should all + have, and not tgetent(), which is a termcap-specific function. + (DLR) + - Check only for glib 2.x, as it's much more common than + glib 1.2.x now, and it has a better v?snprintf() + implementation. (DLR, suggested by Jordi) +- nanorc.sample: + - Remove specific references to control key shortcuts other than + XON and XOFF. (DLR) + - Add continue and goto to the "c-file" regexes. (DLR) + - Change the included speller value to "aspell -x -c". The -x + option makes aspell not create backup files, and this is + consistent with the internal spell checker's behavior. (DLR) +- doc/man/fr/nano.1, doc/man/fr/nanorc.1: + - Updated manpage translations by Jean-Philippe Guérard. +- README.CVS: + - Mention the requirement for glib 2.x on systems lacking + v?snprintf(), and add minor formatting changes. + - Mention the requirement for groff in order to create html + versions of the manpages. (DLR) + - Update the given cvs commands so that they work again, and + mention the need for ssh to do cvs checkouts. (DLR) + - List sh as an example of a Bourne shell. (DLR) +- faq.html: + - Fixed inaccuracy: Pico compatibility mode was made the default + in nano 1.1.99pre1, not 1.2.2. (DLR) + - Added question about how to type F13-F16 on terminals lacking + keys past F12 (suggested by Chris), question about how to + select text for the clipboard in X terminals with nano's mouse + support turned on (answer found by Joseph Birthisel), and + miscellaneous fixes and link updates. (DLR) +- nano.1: + - Eliminate references to the now removed -D/--dos and -M/--mac + command line options. (DLR) +- nano.texi: + - Eliminate references to the now removed -D/--dos and -M/--mac + command line options, and their corresponding toggles. (DLR) +- m4/Makefile.am: + - Add glib-2.0.m4 to EXTRA_DIST, so that nano builds from CVS + with automake 1.7.x again. For some reason, automake 1.9.x + didn't have a problem with its (erroneously) being left out. + (DLR, problem found by Chris) +- m4/glib-2.0.m4: + - New file imported from glib 2.4.7. This is needed to detect + glib 2.x on systems that may not have it installed. (DLR, + suggested by Jordi) +- src/Makefile.am: + - Don't use DEFS to define things. Use INCLUDES instead. + (Jordi) + +GNU nano 1.3.4 - 2004.08.17 +- General: + - More minor comment cleanups. (DLR) + - Convert more ints and functions using 0 and 1 to bools using + TRUE and FALSE. (David Benbennick and DLR) + - Change more instances of ints that have large enough upper + bounds and which can never be negative to size_t's, and + convert nano to handle them properly. (DLR) + - Convert the shortcut list functions and most related functions + to return void instead of int, as the return values of all + those functions are essentially unused. Changes to + sc_init_one(), shortcut_init(), etc. (David Benbennick and + DLR) + - Make flags and all variables meant to store the value of flags + longs for consistency. (David Benbennick) + - Rename the TEMP_OPT flags to TEMP_FILE, as it's more + descriptive. (DLR) + - Remove unused global variable search_offscreen. (David + Benbennick) + - Add new N_() macro to mark strings that aren't translated + immediately, and convert nano to use it in cases where the + translated string is stored in a const char*. Changes + to sc_init_one(), print1opt(), help_init(), rcfile_error(), + do_credits(), etc. (David Benbennick) DLR: Do this for + toggle_init_one() too. + - Minor tweaks and clarifications to some option descriptions. + (DLR) + - Overhaul the shortcut list and toggle list initialization + code for efficiency. Changes to shortcut_init() and + toggle_init(). (David Benbennick) DLR: Move "Cancel" to just + after "Get Help" in the file browser list, for consistency + with all the other lists, have the replace list accept all the + same function keys as the search list, and clarify a few + shortcut descriptions. + - Convert nano to use the new parse_num() function to read in + numeric values at the command line and in the rcfile, and + duplicate the messages used in the rcfile in the command line + for consistency. (David Benbennick) DLR: Tweak parse_num() to + parse ssize_t values instead of ints and to return a bool + indicating whether parsing succeeded. Convert tabsize, + wrap_at, and fill to ssize_t in order to work with + parse_num() properly and also to increase their capacity + while keeping the ability to hold negative numbers in case of + errors. Also exit instead of calling usage() in the event of + an invalid fill value, for consistency with how an invalid + tabsize value is handled. Finally, handle invalid tabsize + entries in the rcfile the same way as on the command line, + and reset tabsize and wrap_at to their default values if + invalid rcfile entries are specified for them. + - Remove several unnecessary reset_cursor() calls. (David + Benbennick) + - Include in proto.h. (David Benbennick) DLR: + Remove some redundant inclusions of elsewhere. + - Move the main terminal initialization functions, aside from + initscr(), into a new terminal_init() function, and convert + nano to use it. (DLR) + - Convert placewewant to a size_t, and convert some functions + that use it as a parameter to use size_t as well. (David + Benbennick and DLR) + - Overhaul the paragraph searching code and some of the justify + code to clarify it and fix a bug where searches from the + previous paragraph would move up too far. Also make + quotestr-related variables global so that they only have to be + compiled once, and remove the no-longer-needed IFREG() macro. + New functions begpar() and inpar(); changes to quote_length(), + quotes_match(), do_para_search(), do_para_begin(), + do_para_end(), and do_justify(). (David Benbennick) + - Readded the errors flag and moved the ending prompt from + rcfile_error() to parse_rcfile() so that we only get prompted + once for all errors instead of separately for each error. + (DLR) David Benbennick: Make sure that no rcfile error + messages end in newlines, and show the ending prompt if we + can't read the .nano_history file while starting nano. + - Don't treat the return value of strn?(case)?cmp() as boolean. + (DLR and David Benbennick) + - Automatically install a symlink "rnano" pointing to nano. + Changes to src/Marefile.am. (DLR) + - Move the static int pid to the beginning of nano.c with all + the other static variables. (DLR) + - Consolidate some if blocks to remove some redundant code. + (David Benbennick) + - Fix warnings when compiling with ENABLE_NLS undefined and with + the fwritable-strings option. (David Benbennick) + - Add various #ifdefs to fix warnings and compilation problems + when compiling with every option manually turned on, including + NANO_SMALL. (David Benbennick) + - Simplify some of the rcfile and statusbar error messages, and + make some of them more consistent. (David Benbennick and DLR) + - Change some functions to take const char*'s instead of char*'s + where possible. (David Benbennick) + - Tweak some #ifdefs around indent_length() and references to + fill_flag_used to avoid warnings when compiling with + --disable-wrapping, --disable-justify, or a combination of the + two. (DLR) + - Overhaul the routines used to read the rcfiles and history + files for efficiency, make them work properly on lines over + 1023 characters long and on lines containing nulls, and make + them properly handle the case where the user's home directory + changes in the middle of a session. New functions + histfilename() and writehist(); changes to + thanks_for_all_the_fish(), load_history(), save_history(), and + do_rcfile(). (David Benbennick) +- files.c: + get_next_filename() + - Tweak for efficiency, and add the ".save" suffix to the file + here. (David Benbennick) + close_open_file() + - Tweak to no longer rely on the return values of + open_(prev|next)file(). (DLR) + write_file() + - For consistency with nano 1.2.x and with other editors, make + the mode of newly created files 666 instead of 600 before + it's modified by the umask. (DLR, found by Toni Suokas) + do_writeout() + - If we're in restricted mode and the current filename isn't + blank, we can't change it, so disable tab completion in that + case. (DLR) + - Fix spacing problem in the "Save Under Different Name" + prompt. (DLR) +- global.c: + shortcut_init() + - Fix erroneous #ifdef so that nano compiles with + --disable-justify again. (DLR, found by Mike Frysinger) + - Change the Cancel shortcut in the file browser to an Exit + shortcut, to be more compatible with the current version of + Pico. (DLR) + thanks_for_all_the_fish() + - Delete topwin, edit, and bottomwin. (David Benbennick) +- nano.c: + die() + - Don't add the ".save" suffix to a saved file here anymore, + since get_next_filename() does that now. (David Benbennick) + die_save_file() + - Tweak for efficiency. (David Benbennick) + help_init() + - Fix the display of the translated key descriptions "Up" and + "Space" under all circumstances, and make the help browser + work properly when there are fewer than 24 columns available. + (David Benbennick) + usage() + - Don't translate the option strings for -Z/--restricted. + (David Benbennick) + do_enter() + - Don't treat it as a special case when the user presses Enter + on the last line of the screen and smooth scrolling is on, for + consistency. (DLR) + do_alt_speller() + - When reloading the newly spell-checked temporary file, call + terminal_init() to make sure that all the original terminal + settings are restored, as a curses-based alternative spell + checker (e.g. aspell) can change them. (DLR) + quote_length() + - Fix problem where quoted justify wouldn't work if HAVE_REGEX_H + wasn't set. (David Benbennick) + do_justify() + - Add allow_respacing flag, used to indicate when we've moved to + the next line after justifying the current line, and only run + the respacing routine when it's true. This keeps the + respacing routine from erroneously being run more than once on + the same line. (DLR) + - Check for first_par_line's not being NULL and only run the + renumbering and cutbuffer-splicing routines depending on that + if that's the case. This fixes a segfault occurring when + trying to do full justification on a file with no paragraphs + (in which case there are no normal lines to renumber and no + backed-up lines to be stored in the cutbuffer or spliced back + in during unjustify). (DLR) + do_exit() + - Tweak for efficiency. (David Benbennick) + main() + - Move the reset_cursor() call to the beginning of the main + input loop, and remove the apparently unnecessary wrefresh() + call. (David Benbennick) + - Call setlocale() outside the ENABLE_NLS #ifdef, since UTF-8 + support won't work properly if the locale isn't set, whether + NLS is enabled or not. (Junichi Uekawa) + - Add titlebar() calls before all open_file() calls and remove + the titlebar() call after them, so that the titlebar is + displayed properly for all file(s) loaded. Also call + display_main_list() after adding the first file to open_files, + so that "Close" is properly displayed then instead of "Exit". + (DLR) +- nano.h: + - Reassign the key for full justification to Ctrl-U, for + compatibility with the current version of Pico. (DLR) + - Remove justbegend enum, as it's no longer needed. (DLR) +- proto.h: + - Change the variables in the prototypes for do_justify(), + get_verbatim_kbinput(), and get_mouseinput() to match the ones + used in the actual functions. (DLR) + - Remove unused declaration of temp_opt. (David Benbennick) + - Add missing copy_file() prototype. (David Benbennick) + - Move the load_history() and save_history() prototypes up to + match their corresponding location in files.c. (DLR) +- rcfile.c: + rcfile_msg() + - Removed and replaced with calls to rcfile_error(). (David + Benbennick) + - Removed the reference to "starting nano" in the statusbar + message, as it may be called when we exit if the history file + can't be saved. (DLR) + parse_rcfile() + - Have whitespace display default to off instead of on. (Mike + Frysinger) + nregcomp() + - Rename the variable flags to eflags so as not to conflict with + the global flags. (DLR) +- search.c: + do_replace_loop() + - Make sure old_pww is updated to the current value of + placewewant when a new match is found, so that edit_redraw() + will redraw the screen properly when only placewewant changes. + (DLR, found by Mike Frysinger) + do_replace() + - Instead of using edit_update() to redraw the screen with + edittop at the top, set edittop beforehand and call + edit_refresh(). (DLR) + do_gotoline() + - Use parse_num() to interpret a line entered by the user, and + start the search for a line from current instead of fileage. + (DLR) + do_gotopos(), find_node(), free_history() + - Tweak for efficiency. (David Benbennick) + free_history() + - Only include when DEBUG is defined. (David Benbennick) +- utils.c: + parse_num() + - New function to parse numeric values, so that we don't have to + duplicate code that calls strtol() all over the place. (David + Benbennick) DLR: Renamed from parse_int() to parse_num() and + converted to use ssize_t instead of int. + nstrnicmp() + - Remove code chacking for n's being less than 0 that will never + be run, since n is a size_t and is hence unsigned. (David + Benbennick) + ngetdelim(), ngetline() + - New functions equivalent to getdelim() and getline(), which + are both GNU extensions. (DLR, adapted from GNU mailutils + 0.5 with minor changes to better integrate with nano and + increase efficiency) +- winio.c: + get_kbinput() + - Since the only valid values for escapes are 0, 1, and 2, + convert it to an int. (DLR) + get_control_kbinput() + - Fix erroneous debugging statement so that nano compiles with + --enable-debug again. (Jon Oberheide) + nanogetstr() + - Tweak the code to update the edit window just before getting + statusbar input for efficiency, and update bottomwin just + before then too. (David Benbennick) + - Don't delete the statusbar line on UnCut, since the current + version of Pico doesn't. (DLR) + do_cursorpos() + - Add assert to check whether totsize is correct. (David + Benbennick) + line_len() + - Rename to help_line_len() so as not to conflict with the + line_len variable used elsewhere, and move inside the + DISABLE_HELP #ifdef surrounding do_help() since it's only + called in do_help(). (DLR) + do_help() + - Have help_line_len() properly return an int again, since its + value can't be larger than COLS. (DLR) + - Allow the user to exit the help browser via Ctrl-C as well as + Ctrl-X, for consistency with the file browser. (DLR) +- configure.ac: + - Add AC_PROG_LN_S, so that we can portably create symlinks. + (DLR) + - Check for getdelim() and getline(), which are both GNU + extensions. (DLR) +- nanorc.sample: + - Add sample regexes for patch files. (Mike Frysinger) + - Various improvements to the "c-file" regexes. Add double, + typedef, extern, union, unsigned, inline, and long to the + green list. (Mike Frysinger) DLR: Also add signed, short, and + enum to the green list. +- nano.spec.in: + - Tweak to include all files in %{_bindir} instead of just nano, + so that the "rnano" symlink will be properly packaged. (DLR) + +GNU nano 1.3.3 - 2004.06.28 +- General: + - Minor comment cleanups. (DLR) + - Convert more ints used as boolean values to use TRUE and + FALSE. (David Benbennick) + - Make sure the special control keys are handled the same way + after the window is resized or we come out of suspend mode. + Changes to do_cont() and handle_sigwinch(). (DLR) + - Change some instances of ints that can never be negative to + size_t's. (DLR) + - Add better explanations for and in the "Terminal breakage" + comments, and handle missing key #ifdefs inside the functions + that use those keys. (DLR) + - Add restricted mode, accessible via the -Z/--restricted + command line option or by invoking nano with any name + beginning with 'r' (e.g. "rnano"). In restricted mode, nano + will not read or write to any file not specified on the + command line, read any nanorc files, allow suspending, or + allow a file to be appended to, prepended to, or saved under a + different name if it already has one. (IO ERROR) DLR: Also + disable backup files and spell checking (since the latter can + leave a pre-spell-checked version of the file in a temporary + directory), use tail() to get the program name so that the + check for its beginning with 'r' will work when a path is + specified, disable toggles that are only useful with options + that are disabled in restricted mode, call nano_disabled_msg() + when trying to read or spell check a file instead of leaving + the shortcuts out of the main list, and instead of acting as + though TEMP_OPT is enabled when exiting with a modified file + (which caused problems if the filename was blank), only allow + a filename to be modified at the writeout prompt if it's blank + beforehand. Changes to do_writeout(), toggle_init(), + shortcut_init(), die_save_file(), and nanogetstr(). + - Call nano_disabled_msg() directly from the shortcut list + instead of inside the disabled functions. (David Benbennick) + - Clarifications to comments explaining exactly what control + characters and escape sequences are supported. (DLR) + - Disable "Where Is Next" in tiny mode. (DLR) + - Added the ability to justify the entire file at once, which + Pico has via ^W^J. Changes to backup_lines() and + do_justify(); new functions do_justify_void() and + do_full_justify(). (DLR) + - Modify the justification algorithm to work the same way as in + the current version of Pico, i.e. add a space at the end of + each line of the justified paragraph except for the last one, + and if there was a space at the end of the last one, remove + it. Changes to justify_format() and do_justify(). Note that + we can no longer reliably detect the first modified line in a + paragraph, since a line unmodified by justify_format() may get + a space tacked onto the end of it or removed from the end of + it later. The entire original paragraph is now always backed + up, and justify_format() no longer has a non-modifying mode, + so it's now only called in backup_lines(). (DLR) + - Wrap the long jump code in NANO_SMALL #ifdefs, since we only + use it if we're resizing the window, which is disabled when + NANO_SMALL is defined. (DLR) + - Add smart home key option, accessible via -A/--smarthome on + the command line, "set smarthome" in the rcfile, and the + Meta-H toggle in the edit window. Smart home works as + follows: When Home is pressed anywhere but at the very + beginning of non-whitespace characters on a line, the cursor + will jump to that beginning (either forwards or backwards). + If the cursor is already at that position, it will jump to the + true beginning of the line. This option is disabled in tiny + mode. Changes to do_home(), nanogetstr(), etc. (DLR; + suggested by Stephan T. Lavavej) + - Minor tweaks to the punctuation in some statusbar messages. + (DLR) + - Overhaul the low-level input routines into main routines that + actually get the input and state machines that interpret the + input. This allows better handling of the input (e.g. ignored + keys are now always ignored instead of just being ignored when + there are no escapes prefixing them) and will make it easier + to port to interfaces that don't have blocking input. New + functions reset_kbinput(), get_translated_kbinput(), + get_control_kbinput(), and get_untranslated_kbinput(); changes + to do_verbatim_input(), handle_sigwinch(), get_kbinput(), + get_ascii_kbinput(), get_escape_seq_kbinput(), and + get_verbatim_kbinput(); removal of get_ignored_kbinput() and + get_accepted_kbinput(). (DLR) + - Overhaul all the movement functions in order to avoid + redundant screen redraws (and regexec()s when color support is + available) whenever possible during ordinary cursor movement + when the text doesn't change. Do the same for moving in + do_char(), do_delete(), do_next_word(), do_prev_word(), + do_search(), do_research(), and do_replace_loop. Changes to + do_first_line(), do_last_line(), do_home(), do_end(), + do_page_up(), do_page_down(), do_up(), do_down(), do_left(), + do_right(), do_delete(), do_backspace(), do_search(), + do_research(), do_replace_loop(), do_find_bracket(), and + edit_refresh(). New functions do_left_void(), + do_right_void(), need_horizontal_update(), + need_vertical_update(), edit_scroll(), and edit_redraw(). All + of these functions but the first two require the previous + versions of current and/or placewewant as parameters, so that + they can redraw properly when the location has changed. Also + rename the int refresh in do_delete() and do_backspace() to + do_refresh so as not to conflict with refresh(). (DLR) + - Add some comments better explaining what is disabled in + restricted mode and why. (DLR) + - Since KEEP_CUTBUFFER is only used in cut.c, make it a static + variable in cut.c instead of a flag, and unset it in other + files via the new function cutbuffer_reset(). (DLR) + - Add the ability to change the characters used to display the + beginning characters of tabs and spaces via the rcfile entry + "whitespace". This is disabled if nanorc support is disabled + or if we're in tiny mode. Displaying the new characters is + toggled on and off by Meta-P; the default is on. (Mike + Frysinger; minor changes and adaptations by DLR) + - Add the ability to change the closing punctuation and closing + brackets used to control justification, via the rcfile + entries "punct" and "brackets". (DLR) + - Translation updates (see po/ChangeLog for details). + - Make the former flag same_line_wrap use TRUE and FALSE + instead of 1 and 0. (DLR) +- files.c: + add_open_file() + - Rearrange the NANO_SMALL #ifdef so that the code to set the + MODIFIED flag in open_files->flags is included only once. + (DLR) + write_marked() + - Call write_file() with nonamechange set to TRUE so that we + don't erroneously change the current filename when writing a + selection, and don't take a nonamechange parameter anymore + since we don't use it. (DLR) + do_writeout() + - Refactor so that no recursion is needed if we try to exit with + a modified file that has no name when TEMP_OPT is set. (DLR) + - Add spaces to the ends of the "Overwrite" and "Different Name" + prompts, for consistency. (DLR) + do_browser() + - Call check_statblank() instead of blanking the statusbar + unconditionally, for consistency. (David Benbennick) +- global.c: + shortcut_init() + - Don't assign any handler functions to the help browser keys, + as the help browser handles them all internally. (David + Benbennick) +- move.c: + do_first_line(), do_last_line() + - Move these functions here from winio.c. (DLR) +- nano.c: + finish() + - Call blank_statusbar() and blank_bottombars() to blank out + the statusbar and shortcut list in bottomwin. (DLR) + - Since all of the calls to finish() use 0 for the value of + sigage, and the return value of finish() is never used, make + it accept and return void. (David Benbennick) + die_save_file() + - Call write_file() with nonamechange set to TRUE since we don't + need to change the current filename if we're writing emergency + backup files. (DLR) + do_early_abort() + - Removed, as it's no longer called anywhere. (David Benbennick) + usage() + - Add missing "[dir]" and two missing _()'s around the strings + describing the -E [dir]/--backupdir=[dir]" option. (CHAO + Wei-Lun) + open_pipe() + - Call enable_signals() at the beginning and disable_signals() + at the end, so that we get a SIGINT when Ctrl-C is pressed + during wait() and can then call cancel_fork() properly. (DLR) + do_delete(), do_enter() + - Tweak for efficiency. (David Benbennick) + do_prev_word() + - Switch the last test (current != NULL or not) around to match + the order of the same test in do_next_word() (current == + NULL). The results are the same either way. (DLR) + do_wrap() + - Tweak for efficiency. (David Benbennick) + do_spell() + - Tweak for efficiency. (David Benbennick) + - Change the statusbar entries used in cases of failure so that + they all display the actual error that occurred. (David + Benbennick and DLR) + do_int_speller(), do_alt_speller() + - Make these functions return const char*'s instead of char*'s. + (David Benbennick) + justify_format() + - Remove redundant assignment. (DLR) + do_para_search() + - Remove unneeded edit_update() calls. (David Benbennick) + - Convert to use an enum to specify the search type: JUSTIFY, + BEGIN, or END. (DLR) + - Refactor to properly do searches for beginnings of paragraphs + in the same way as searches for endings of paragraphs, without + needing the old (and somewhat inaccurate) recursive approach. + (DLR) + do_justify() + - Remove unneeded edit_update() calls, and add a few minor + efficiency tweaks. (David Benbennick) + - Simplify an if statement. (DLR) + do_exit() + - Refactor so that no recursion is needed if we try to exit with + a modified file that has no name when TEMP_OPT is set. (DLR) + print_numlock_warning() + - Removed, as it's no longer needed and was never called + anywhere after the input overhaul. (DLR) + signal_init() + - Don't use termios and _POSIX_VDISABLE to disable keys anymore, + as there's no real equivalent of it when the latter isn't + defined. (DLR) + handle_sigwinch() + - Call resetty() to get the original terminal settings back. + (DLR) + - Rework so that nano properly redraws the screen on systems + that don't have resizeterm() and/or wresize(). In curses, we + now leave and immediately reenter curses mode via endwin() and + refresh(), and then reinitialize all windows via + window_init(). In slang, the above routine will only work if + the resize made the window smaller, so we now leave and + immediately reenter screen management mode via + SLsmg_reset_smg() and SLsmg_init_smg(), and then reinitialize + all windows via window_init(). (DLR, adapted from code in + Minimum Profit 3.3.0 and mutt 1.4.2.1, respectively) + do_toggle() + - Call blank_statusbar() and blank_bottombars() to blank out + the statusbar and shortcut list in bottomwin. (DLR) + do_verbatim_input() + - If PRESERVE is set, disable flow control characters before + getting input and reenable them after getting input. (DLR) + disable_signals(), enable_signals(), disable_flow_control(), + enable_flow_control() + - New functions that allow more fine-grained control of the + terminal: disabling and enabling signals without having to use + _POSIX_VDISABLE and disabling and enabling flow control + characters. (DLR) + main() + - Don't open the first file in quiet mode, since if we do, an + error message won't be shown if it's unreadable. (DLR; found + by Jaap Eldering) + - If we've specified multiple files on the command line and + multibuffer support is compiled in, turn multibuffer mode on + when reading those files and turn it off afterward if it was + off before. This allows us to open multiple files without + having to turn multibuffer mode on at the command line or in + the nanorc first, both of which are unintuitive. Multibuffer + mode should only affect how the "Read File" command behaves + anyway. (DLR) + - Remove the disabling of implementation-defined input + processing, as cbreak mode appears to turn it off anyway. + (DLR) + - After noecho(), call disable_signals() and + disable_flow_control(), the latter only if PRESERVE is not + set. (DLR) + - Move the savetty() call down from just after initscr() to just + after the terminal is properly set up, so that we can restore + it easily after a resize. (DLR) + - Add missing cast to char when calling do_char(). (DLR) + - Don't initialize the backup directory if we're in restricted + mode, since backups are disabled then. (DLR) + - Check $SPELL for an alternative spell checker if we didn't get + one from the command line and/or rcfile, as Pico does. Don't + do this if we're in restricted mode, since spell checking is + disabled then. (DLR) + - Add some cleanups for greater readability, and remove a few + bits of redundant code. (DLR and David Benbennick) +- nano.h: + - Since REGEXP_COMPILED is only used in search.c, convert it + from a flag to a static int there. (DLR) + - Add justbegend enum, used in do_para_search(). (DLR) + - Add updown enum, used in edit_scroll(). (DLR) +- proto.h: + - Remove unused xpt() and add_marked_sameline() prototypes. + (DLR) + - Add missing #ifdefs around the nstristr() and get_mouseinput() + prototypes. (DLR) +- rcfile.c: + - Move "rebinddelete" up in the list of options so that the list + is in alphabetical order. (DLR) + - Cosmetic reorganization of the order in which some options are + interpreted. (DLR) + - Explicitly check for rcopts[i].name's being "tabsize" to avoid + a spurious error under some circumstances about tabsize's + being 0 when there's no tabsize entry in the rcfile. (DLR) +- search.c: + regexp_init() + - Overhaul for efficiency. Also check if regcomp() failed, and + if so, display "Bad regex" message on the statusbar, so that + we don't have to display it separately after every call to + this function. (David Benbennick) + search_init() + - Only check whether USE_REGEXP is set, and hence whether or not + to display "[Regexp]" on the search prompt, if HAVE_REGEX_H is + defined. (DLR) + not_found_msg() + - Convert to properly handle strings generated by + display_string() that have been used in the search prompt + since 1.3.0. (David Benbennick) + - Use display_string() directly to display the text that we + didn't find instead of relying on statusbar() to do it + indirectly, since the latter won't display its text with the + user-specified whitespace characters and the former will. + (DLR) +- utils.c: + is_blank_char() + - New function used as an isblank() equivalent, since isblank() + is a GNU extension. (DLR) + nstricmp(), nstrnicmp() + - Add extra blank lines for greater readability, and remove + unneeded test for n's being less than zero (since it's already + been tested for being greater than zero or equal to zero at + that point) from nstrnicmp(). (DLR) + stristr() + - Rename to nstristr() to avoid a potential conflict with an + existing stristr() function, and move up to just after + nstrnicmp(). (DLR) David Benbennick: Tweak for efficiency. + - Include and use only when strcasestr() is unavailable, since + strcasestr() is a GNU extension. (DLR) + nstrnlen() + - New function used as a strnlen() equivalent, since strnlen() + is a GNU extension. (DLR) +- winio.c: + get_verbatim_kbinput() + - Refactor the output in the DEBUG #ifdef. It didn't work + properly ever since this function was changed to use an int* + instead of a char*. (DLR) + - When reading characters from input, properly reallocate + verbatim_kbinput via (int*)nrealloc() instead of an uncast + realloc(). (DLR) + get_accepted_kbinput() + - Add proper support for the keypad values and escape sequences + generated by the NumLock glitch and by certain keys on the + numeric keypad. (DLR) + - Add an extra break and move an #endif down to fix a potential + problem when NANO_SMALL is defined or KEY_RESIZE isn't, and + when PDCURSES isn't defined. (DLR) + get_escape_seq_kbinput() + - Add proper support for the keypad values and escape sequences + generated by the NumLock glitch. (DLR) + - Add ignore_seq parameter. If a sequence is recognized but + ignored, we will now return ERR and set ignore_seq to TRUE, and + if a sequence is unrecognized, we will now return ERR and set + ignore_seq to FALSE. Also, here and elsewhere, don't bother + assigning ERR to retval when that's its initial value. (DLR) + - Fix problem where the escape sequence for F3 on the FreeBSD + console would not be interpreted properly. (DLR) + get_mouseinput() + - Don't ungetch() anything if there's no control key and no meta + key defined in the shortcut we clicked. (DLR) + bottombars() + - Don't display any more than MAIN_VISIBLE shortcuts. Adding + justification of the entire file above made the search + shortcut list longer than this and hence made the shortcuts in + it so short as to be almost incomprehensible. (DLR) + - Tweak for efficiency and to better handle shorter screen + widths. (David Benbennick) + - Restructure the if block used for the sentinel key values, + dynamically allocate keystr based on the number of columns + available, and make sure we can display shortcuts even when + the number of available columns is too short for any complete + one. (DLR) + onekey() + - Don't bother padding the displayed shortcuts with spaces. + (David Benbennick) + - Convert len to a size_t. (DLR) + edit_add() + - Minor cosmetic reformatting. Also remove unused int + searched_later_lines. (DLR) + blank_bottomwin() + - Removed, as it does the same thing as blank_bottombars(). + (David Benbennick) + blank_titlebar() + - New function used to blank the titlebar in topwin. (DLR) + blank_statusbar_refresh() + - Removed, as it's now unnecessary. (David Benbennick) + titlebar() + - Overhaul to use display_string() to display the filename, and + to better handle shorter screen widths. Also remove + now-unneeded wrefresh(topwin) calls. (David Benbennick) + DLR: Tweak to reserve enough space for "Modified", plus + padding, in all cases, to make sure that the version message + takes up no more more than 1/3 of the available width, minus + padding, and to include a reset_cursor() call so that the + cursor is always in the right place. + bottombars() + - Call blank_bottombars() instead of blank_bottomwin(). (David + Benbennick) + check_statblank() + - Overhaul for efficiency, (David Benbennick) DLR: Add + reset_cursor() call to ensure that the cursor is always in the + right place. + update_cursor() + - Removed, as it's no longer called anywhere. (David Benbennick) + edit_refresh() + - Remove apparently unneeded leaveok() calls. (David Benbennick) + edit_refresh_clearok(), center_cursor() + - Removed, as they are now unnecessary. (David Benbennick) + statusq() + - Don't allow "Full Justify" when in view mode. (DLR) + statusbar() + - Call reset_cursor() just before refreshing the edit window, so + that slang and other non-ncurses versions of curses will + properly place the cursor back in the edit window instead of + leaving it at the end of the statusbar. (DLR) + do_help() + - Overhaul for efficiency, and allow scrolling through the help + via the arrow keys as well as the paging keys. (David + Benbennick) DLR: Revert the use of the return value of + curs_set() to restore the previous state of the cursor, as + some curses implementations (including slang) get it wrong, + and explicitly turn the cursor off where needed instead. + do_credits() + - Use napms() instead of nanosleep(), as it does the same thing + (aside from taking an argument in milliseconds instead of + microseconds) and curses includes it. (DLR) + - Overhaul for efficiency, and make sure the xlcredits + translations are done after initialization in order to avoid + an error when compiling with -pedantic. (David Benbennick) + do_yesno() + - Add a comment to encourage translators to use both native and + English shortcuts, if possible. (Jordi) +- configure.ac: + - Add tests for isblank(), strcasestr(), and strnlen(), and + define _GNU_SOURCE so that the tests work properly. Increase + the minimum required autoconf version to 2.54. (DLR) + - Reformat the test programs so that they aren't packed into + fewer lines than usual, so as to make them easier to read, and + remove unnecessary inclusion of stdio.h in the slang test + programs. (DLR) + - Remove the checks for resizeterm() and wresize(), as they're + no longer needed. (DLR) +- config.rpath: + - Replace usage of egrep with grep -E, avoiding a XSI:ism (David + Weinehall) +- faq.html: + - Removed question about the NumLock glitch, as it's no longer + needed. (DLR) +- nano.1: + - Document restricted mode. (IO ERROR) DLR: Add minor + modifications to account for the above changes. + - Document the smart home key option. (DLR) + - Document the use of the SPELL environment variable. (DLR) +- nanorc.5: + - Document the smart home key option. (DLR) + - Document the whitespace option. (DLR, adapted from + documentation by Mike Frysinger) + - Document the punct and brackets options. (DLR) +- nano.texi: + - Fix toggle inaccuracies: Meta-L now toggles line wrapping, and + Meta-< and Meta-> aren't toggles. (DLR) + - Document restricted mode. (IO ERROR) DLR: Add minor + modifications to account for the above changes. + - Fix version number inaccuracies: Search/replace history and + sorting/uniqueness filtering for the internal spell checker + were added in nano 1.1.99pre1. (DLR) + - Document the smart home key option. (DLR) + - Document the use of the SPELL environment variable. (DLR) +- nanorc.sample: + - Add missing mouse entry, and update the nanorc sample regexes + to account for the backupdir and mouse options. (DLR) + - Add smarthome description. (DLR) + - Document the whitespace option. (DLR, adapted from + documentation by Mike Frysinger) +- README.CVS: + - Increase the minimum required autoconf version to 2.54, and + change the recommended automake version 1.7 to the minimum + required automake version. Note that autoconf 2.54 will + technically also work with automake 1.6c, but that is a CVS + version as opposed to a stable release version, and automake + 1.7 requires at least autoconf 2.54 in any case. (DLR) +- TODO: + - Added entry for justifying the entire file at once, since Pico + can do it, and with "[DONE]" since it's already been + implemented. (DLR) + +GNU nano 1.3.2 - 2004.03.31 +- General: + - Change instances in the code that refresh the entire edit + window when color support is enabled (in order to properly + handle multi-line color regexes) to only do so when + it's necessary, i.e. when COLOR_SYNTAX is set. (DLR) + - Minor cosmetic tweaks to the code involving direction keys. + NANO_UP_KEY and NANO_DOWN_KEY are now NANO_PREVLINE_KEY and + NANO_NEXTLINE_KEY, and the help messages for them have been + changed accordingly. Also remove extraneous references to + NANO_DOWN_KEY in the search history shortcut entries. (DLR) + - Add NANO_UNJUSTIFY_FKEY (the same as NANO_UNCUT_FKEY) to the + shortcut list, and tweak the unjustify routine to use it. + Also add NANO_FIRSTLINE_FKEY and NANO_LASTLINE_FKEY, and tweak + the statusbar input routines to handle them and NANO_HELP_FKEY + properly. (DLR) + - Block SIGWINCH after setting up its handler, and only unblock + and handle it when we're in a stable state, i.e. when we're + waiting for input from the user. New function + allow_pending_sigwinch(); changes to signal_init(), + get_kbinput(), and get_verbatim_kbinput(). (DLR) + - Decouple the paragraph searching code and the justifying code. + Removed function do_para_operation(); new function + do_para_search(); changes to do_justify(). (DLR) + - Add -E/--backupdir option. When used with -B/--backup, backup + files will be saved in the specified directory with their + canonical pathnames encoded in their names (all '/'s replaced + with '!'s). Changes to write_file(). (Martin Ehmsen) DLR: + Add function init_backup_dir() to handle relative paths + correctly, use get_full_path() to get the canonical pathname, + and use tail() to get the filename if get_full_path() fails. + - Port to the Tandem NonStop Kernel (nsr-tandem-nsk). (Tom + Bates; minor tweaks by DLR) + - Change some instances of boolean 0 and 1 to TRUE and FALSE. + (David Benbennick) + - Fix memory corruption problem occurring when answer is used as + the value of def; if the realloc() of answer leads to its + pointing to a different memory block, there will be a segfault + when the value of def is copied into it via strcpy(). + (bort@alltel.net, Christian Weisgerber, David Benbennick, and + DLR) + - Remove the last editbot references, to avoid any potential + segfaults related to them. Also remove fix_editbot(), as it's + no longer needed. (David Benbennick) + - Rename several variables to make their use clearer and to + avoid conflicts. (DLR) + - Set the input mode before turning the keypad on. (DLR) +- cut.c: + add_to_cutbuffer() + - Add parameter allow_concat to determine whether we're allowed + to concatenate strings in the cutbuffer. (DLR) +- files.c: + do_insertfile() + - Wrap one reference to NANO_EXTCMD_KEY in a NANO_SMALL #ifdef. + (DLR) + - Save the already-typed answer when switching from "Insert + File" to "Execute Command" mode via Ctrl-X, just in case we + started typing a command before switching. (DLR) + add_open_files() + - Make the saving of marked status in open_files->file_flags + work properly again; a tweak to the ISSET() macro in 1.3.0 + to make it only return 0 or 1 broke it. (DLR) + write_marked() + - New function used to write the current marked selection to a + file, split out from do_writeout(). (DLR) + do_writeout() + - Tweak for efficiency. (David Benbennick) DLR: Modify to have + the current answer preserved between toggles again. + filestat() + - Removed, as it is only called in one place and is + redundant. (DLR) + do_browser() + - Replace the filestat() call with an equivalent stat() call. + (DLR) +- global.c: + shortcut_init() + - Only allow verbatim input when we're not in view mode. (DLR) + - Set the associated function for unjustify to 0 instead of + do_uncut_text(), since it's currently unused. (DLR) +- nano.c: + usage() + - Clarify the description for -T/--tabsize a bit. (DLR) + do_verbatim_input() + - Remove the now-unneeded code to disable XON, XOFF, and + suspend, since we now go into raw mode in + get_verbatim_kbinput() and bypass them. (DLR) + do_next_word() + - Simplify and remove references to editbot so as to avoid a + segfault. (David Benbennick) + do_prev_word() + - Simplify and remove references to edittop. (David Benbennick) + do_int_speller(), do_alt_speller(), do_spell() + - Modify to write only the current selection from a file to the + temporary file used for spell checking when the mark is on, + and add a few miscellaneous cosmetic cleanups. (DLR) + do_int_spell_fix() + - Store the value of current_x in a size_t instead of an int, + and add a few minor efficiency tweaks. (David Benbennick) + - Remove comment explaining why findnextstr() is called with + bracket_mode set to TRUE even though we aren't doing a bracket + search, since after the above efficiency tweaks, it's now more + accurately called can_display_wrap. (DLR) + indent_length() + - Remove unneeded #ifdef. (David Benbennick) + do_justify() + - Remove references to the now-unneeded JUSTIFY_MODE flag. (DLR) + signal_init() + - Trap SIGQUIT in addition to turning it off via termios in + main(). This is consistent with SIGINT, which we trap here + and turn off via termios in main(), as well as with the + associated comment. (DLR) + handle_sigwinch() + - Set keypad() to TRUE and switch to cbreak mode just before + calling siglongjmp(), in case we resized during verbatim + input. (DLR) + main() + - Move the call to raw() on systems that don't define + _POSIX_VDISABLE outside the main input/output loop, as it + doesn't need to be called every time through the loop. Call it + instead of cbreak() on such systems, as it overrides cbreak() + anyway. (DLR) + - Add more descriptive comments explaining the termios and + curses setup routines, and turn the keypad on before setting + the input mode. (DLR) + - Remove stray HAVE_GETOPT_LONG #ifdefs. (DLR) + - Don't call keypad() before initializing the windows it needs + via window_init(). (DLR) +- nano.h: + - Move the NANO_H include guard up before the first #include. + (DLR) + - Remove the now-unneeded JUSTIFY_MODE flag. (DLR) +- search.c: + regexp_cleanup() + - Only do anything if REGEXP_COMPILED is set. (David Benbennick) + search_abort() + - Only test if the mark is set when NANO_SMALL isn't defined. + (David Benbennick) + search_init() + - Add some more comments and comment tweaks, don't indicate that + the search has been canceled when we enter a blank string in + replace mode, only call regexp_init() when USE_REGEXP is set, + and return -1 instead of -3 since a canceled search and a + canceled replace should be mostly equivalent. (David + Benbennick) DLR: Tweak to use the old behavior if we try to + search for invalid regexes. + findnextstr() + - Refactor to use a loop invariant, and tweak for greater + efficiency and simplicity. Also modify so that all searches + start one character after (or before, if we're doing a + backwards search) the current one, as opposed to all searches + except for regex searches for "^" and the like, for + consistency with other searches. (David Benbennick) + do_search() + - Handle search_init()'s no longer returning -3 above. (David + Benbennick) + - Port the code from do_replace_loop() to skip the current line + if we're searching for a regex with "^" and/or "$" in it and + end up on the same line to this function. This fixes a + problem where doing a forward search for "^" on a file with + more than one line would erroneously stop at the magicline and + indicate that that was the only occurrence. (DLR) + do_research() + - Port David Benbennick's efficiency tweaks and the + aforementioned code ported from do_replace_loop() to this + function. (DLR) + replace_regexp() + - Completely refactor for increased efficiency. (David + Benbennick) + replace_line() + - Use a char* parameter for the replacement string instead of + last_search, and add minor efficiency tweaks. (David + Benbennick) + do_replace_loop() + - Fix segfault when doing a regex replace of a string that + matches inside a line (e.g. replace the "b" in "abc" with + anything). (David Benbennick) + - If the mark is on at the beginning of the function, turn it + off and turn it back on just before returning. Also overhaul + to rely on the return value of findnextstr() instead of a loop + invariant, to not need to take an int* parameter, and store + the beginning x-coordinate in a size_t instead of an int. + (David Benbennick) + do_replace() + - Handle search_init()'s no longer returning -3 above, and add + efficiency tweaks. (David Benbennick) DLR: Tweak to follow + the old behavior of adding non-blank strings entered at the + "Replace: " prompt to the search history. (DLR) + do_gotoline() + - Simplify the edit_update() call depending on the value of + save_pos. (David Benbennick) + do_bracket() + - Add efficiency tweaks. (David Benbennick) DLR: Remove + reliance on the hardcoded bracket string length; instead, only + require that the bracket string length be even. +- utils.c: + regexec_safe() + - Wrap in HAVE_REGEX_H #ifdefs. (DLR) + regexp_bol_or_eol() + - New function used to check if a regex contains "^" and/or "$", + assuming that the regex would be found if the REG_NOT(BOL|EOL) + flags aren't used in the regexec() call; it replaces the + direct regexec()s used before. (DLR) + strstrwrapper() + - Refactor for increased efficiency, and eliminate the need for + the line_pos parameter. (David Benbennick) + mallocstrcpy() + - Tweak so that when src is "", "" is allocated and returned + instead of NULL. (David Benbennick) +- winio.c: + get_verbatim_kbinput() + - Set keypad() to FALSE and switch to raw mode while reading + input, and set it back to TRUE and go back into cbreak mode + mode afterwards. (Note that if _POSIX_VDISABLE isn't defined, + we don't need to change to or from raw mode since we're + already in it exclusively.) This ensures that we don't end up + reading in extended keypad values that are outside the ASCII + range or having to deal with interrupt-generating key values. + Also, with keypad() set to TRUE, xterm generates KEY_BACKSPACE + when the user hits Ctrl-H, which, when cut down to ASCII + range, ends up being Ctrl-G, which can be confusing. (DLR) + - For consistency with get_kbinput(), use an int* to store and + return the input instead of a char*, and tweak the functions + that call it to handle this. (DLR) + get_accepted_kbinput() + - Don't use "kbinput = wgetch(win)" as a switch value. (DLR) + get_escape_seq_kbinput() + - Add support for the escape sequences for F1-F14 whenever + possible (i.e. whenever a conflict doesn't occur), some + additional comments, and a few cosmetic cleanups. (DLR) + - Use switch statements instead of strncmp() to read in the long + xterm sequences for Ctrl-[arrow key] and Shift-[arrow key]. + (DLR) + get_escape_seq_abcd() + - A resurrected version of the old abcd() function, readded in + order to simplify get_escape_seq_kbinput(). (DLR) + get_mouseinput() + - Interpret shortcut key values slightly more stringently when + ungetch()ing them. (DLR) + strlenpt() + - Properly cast the second parameter of the strnlenpt() call to + size_t. (DLR) + get_page_start() + - For consistency, tweak so that scrolling always occurs when we + try to move onto the "$" at the end of the line, as opposed to + (a) when we move onto the "$" at the end of the line on the + first page and (b) when we move onto the character just before + the "$" on subsequent pages. (DLR) + reset_cursor() + - Tweak for efficiency. (David Benbennick) + edit_refresh() + - Tweak for efficiency. (David Benbennick) + statusq() + - Rename "tabs" to "allowtabs". (David Benbennick) + do_credits() + - Use nanosleep() instead of usleep(). The latter is only + standard under BSD, whereas the former is POSIX compliant. + Accordingly, only include time.h if we use this function, i.e. + if NANO_EXTRA is defined. (DLR) + - Add explanatory comment. (DLR) +- configure.ac: + - Change instances of "int main ()" to "int main(void)". (DLR) +- faq.html: + - Fixed inaccuracy: multibuffer mode was first in nano 1.1.0, + not 1.1.12. (DLR) +- nano.1, nanorc.5, nano.texi + - Clarify the description for -T/--tabsize a bit. (DLR) + - Add -E/--backupdir description. (Martin Ehmsen; minor cosmetic + fixes by DLR) +- nanorc.sample: + - Add backupdir description. (Martin Ehmsen; minor cosmetic + fixes by DLR) +- README: + - Reformat to 72 characters per line, fix wording in one spot, + and fix spacing and capitalization in several spots. (DLR) +- NEWS: + - Capitalization fix. (DLR) +- TODO: + - Clarify the paragraph searching item, and add item for + filename searches in the file browser. (DLR) + +GNU nano 1.3.1 - 2004.01.09 +- General: + - Minor overhaul and abstraction of the lowest level of mouse + input, mostly adapted from the code in do_mouse() that handles + clicking on the shortcut list. New function do_mouseinput(); + changes to do_mouse(). (DLR) David Benbennick: Add a few + efficiency/extensibility tweaks. + - Modify the shortcut structure so that instead of having two + miscellaneous key values (misc1 and misc2), there is one key + value reserved for function keys (func_key) and one + miscellaneous key value (misc), and tweak the + shortcut-handling code to deal with this. These changes allow + NANO_OPEN(PREV|NEXT)_ALTKEY to work properly when added to the + shortcut entries for NANO_OPEN(PREV|NEXT)_KEY. Also remove + the values in the shortcut list and elsewhere that were made + redundant by the low-level input overhaul, use toupper() + instead of subtracting 32 from values for greater code + readability, and eliminate use of adding 32 to values when + testing for toggles, as get_kbinput_accepted() converts toggle + values to lowercase before returning them. (DLR) + - Remove the workarounds for missing KEY_UP and KEY_DOWN, as + they appear to be holdovers of the old way of denoting the + search history shortcuts; if they aren't defined, KEY_LEFT and + KEY_RIGHT probably shouldn't work either, and all four appear + to be standard keys in termcap/terminfo in any case. Add new + special sentinel key values NANO_NO_KEY (for no shortcut key) + and NANO_HISTORY_KEY (for search history keys, both Up and + Down), modify the shortcut list to use them, and modify the + shortcut display routines to handle them. Also modify the + shortcut list code to not treat non-control character values + of val as Meta-sequences, and fix dependencies on that + behavior. Also rename several variables: "alt" -> "meta", + "altval" -> "metaval". (DLR) + - Hook up the verbatim input functions so that verbatim input + can be used in the edit window. New function + do_verbatim_input(); changes to do_char(). (DLR) Additional + minor tweaks to do_char() by David Benbennick. + - Clarify the description of the --rebinddelete option. (DLR) + - Miscellaneous comment tweaks, and copyright year updates in + the comments and in do_credits(). (DLR) +- cut.c: + - Overhaul to increase efficiency and add various cleanups. + Changes to add_to_cutbuffer(), cut_marked_segment(), and + do_uncut_text(). (David Benbennick) +- files.c: + check_operating_dir() + - Add an assert to ensure that full_operatingdir isn't NULL, + a fix for reporting nonexistent (incomplete) directory names + as being outside the operating directory when tab completion + is being used, and cosmetic cleanups. (David Benbennick) + copy_file() + - New function used to create a copy of a file, split out from + do_writeout(). (David Benbennick) + write_file() + - Completely overhauled to properly ignore appending/prepending + to symlinks when NOFOLLOW_SYMLINKS is defined, to properly + support writing a selection to a file under the changed + cutting code, to have more concise error messages, to add + various cleanups, and so on. (David Benbennick) + do_writeout() + - Prompt the user if we're trying to save an existing file (and + not just a selection of it) under a different name. (DLR; + suggested by Jean-Philippe Guérard) + - Overhaul the code used to write a selection of a file to + temporarily set fileage and filebot to the top and bottom of + the selection and then call write_file(), instead of following + the old hackish behavior with cut_marked_segment() (which + won't work after the cutting code changes anyway). (David + Benbennick) DLR: Tweak to not add an extra blank line to the + end of the written selection if the cursor is at the beginning + of the last line of the selection. + open_prevfile(), open_nextfile() + - For consistency with the rest of the multibuffer code, change + "No more open files" to "No more open file buffers". (DLR) + do_browser() + - Allow '?' to open the help browser, and readd the ability of + 'G'/'g' to open the "Go to Directory" prompt (which was + erroneously removed before), for compatibility with Pico. + (DLR) +- global.c: + shortcut_init() + - Allow WHEREIS_NEXT_KEY to be used in view mode. (DLR) +- nano.c: + do_int_spell_fix() + - Add comment explaining why findnextstr() is called with + bracket_mode set to TRUE even though we aren't doing a bracket + search. (DLR) + do_para_operation() + - Convert to use the new low-level input functions. (DLR) + main() + - Remove unused variable option_index. (DLR) + - Fix omission of NANO_NO_KEY in the shortcut list scanning + code. (DLR) + - Remove now-unnecessary initialization of kbinput. (DLR) +- nano.h: + - Comment additions and cosmetic tweaks. (DLR) +- search.c: + findnextstr(), do_replace_loop() + - Fix potential infinite loops and other misbehavior when doing + beginning-of-line or end-of-line regex replacements ("^", "$", + and "^$"). Add a no_sameline parameter to findnextstr(), and + set it in the calls in do_replace_loop() when such regexes are + found, so that such regexes are only found once per line. + Also change length_change from a long to an int; size_t is + unsuitable due to its being unsigned. (DLR; found by Mike + Frysinger and DLR) David Benbennick: Add a few minor cleanups + to do_replace_loop(). +- winio.c: + get_kbinput(), get_accepted_kbinput() + - Don't pass in the value of the REBIND_DELETE flag anymore. + Instead, handle it directly inside the functions. (DLR) + get_accepted_kbinput() + - Translate Ctrl-8 into NANO_DELETE_KEY (or NANO_BACKSPACE_KEY + if REBIND_DELETE is set), since it apparently is generated + sometimes even when keypad() is TRUE. (DLR) + - Translate KEY_SLEFT into NANO_BACK_KEY and KEY_SRIGHT into + NANO_FORWARD_KEY, since they are sometimes generated by + Shift-Left and Shift-Right. (DLR) + get_ascii_kbinput() + - Tweak to make it slightly more readable. (DLR) + get_verbatim_kbinput() + - Modify to take an extra parameter indicating if we should + interpret ASCII codes or not. (DLR) + get_escape_seq_kbinput() + - Expand to deal with more broken terminals that don't generate + keypad values. Support the escape sequences for Insert, + Delete, Home, End, PageUp, and PageDown, [arrow key], + Ctrl-[arrow key], and Shift-[arrow key] when needed in the + Linux console, the FreeBSD console, the Hurd console, xterm, + rxvt, and Eterm. Also, use get_verbatim_kbinput(), with ASCII + interpretation disabled, to read in the sequences. (DLR) + get_skip_tilde_kbinput() + - Removed, as it is unneeded due to the expansion of + get_escape_seq_kbinput(). (DLR) + get_mouseinput() + - Modify to take an extra parameter indicating if we should + ungetch() the key equivalents of shortcuts we click on or not. + (DLR) + nanogetstr() + - Properly interpret the Meta key value in misc if we hit it at + the statusbar prompt. (DLR) + do_yesno() + - Add a few efficiency/extensibility tweaks. (David Benbennick) + - Convert to use the new low-level input functions, and remove + two last hardcoded widths left after the above tweaks. (DLR) + do_replace_highlight() + - Display a highlighted space if the word length is zero, so + that we can see zero-length regexes we're replacing. (DLR; + suggested by Mike Frysinger) +- configure.ac: + - Check for glib 2.x and then 1.2.x if we need glib. (DLR) +- faq.html: + - Add question explaining how verbatim input works, as well as a + few minor fixes. (DLR) +- nano.1, nanorc.5: + - Add nano version numbers (minus any "-cvs" suffixes). (DLR) +- nano.spec.in: + - Update for the 1.3 branch of nano. (DLR) +- NEWS: + - Reformat so all lines are limited to 72 columns, add a few + typo fixes, and make a few minor cosmetic cleanups. (DLR) +- THANKS: + - Add Danilo Segan, for the Serbian translation. + +GNU nano 1.3.0 - 2003.10.22 +- General: + - Complete overhaul and abstraction of the lowest level of + keyboard input, mostly rewritten but incorporating a few bits + from the old functions and adding support for Pico's Esc Esc + [three-digit decimal ASCII code] input method. New functions + get_kbinput(), get_verbatim_kbinput(), get_ignored_kbinput(), + get_accepted_kbinput(), get_ascii_kbinput(), + get_escape_seq_kbinput(), and get_skip_tilde_kbinput(). These + should work properly on FreeBSD (due to code and input + provided by Lee Nelson and Wouter van Hemel, respectively). + (DLR) + - The -K/--keypad command line/rcfile option has been removed, + and keypad() is now always TRUE. keypad_on() in winio.c and + the check for _use_keypad in configure.ac have both been + removed. (DLR) + - The -d/--rebinddelete command line/rcfile option, equivalent + to Pico's -d, has been added. It is intended to work around + the problem with Backspace/Delete confusion on some terminals, + notably FreeBSD; if your Backspace key acts like Delete, this + option will fix that. (DLR) + - Remove unneeded breaks at the ends of default: clauses. (DLR) + - Add the ability to repeat the last search without prompting + via Meta-W, and move the line wrapping toggle to Meta-L. New + function do_research(). (Wouter van Hemel) + - Added the ability to move to the beginning or end of the + paragraph, which Pico has via ^W^W (previous paragraph) + and ^W^O (next paragraph). Changes to do_justify(); new + functions do_para_operation(), do_para_begin(), and + do_para_end(). Note that the last three functions are + disabled if justification is disabled. (DLR) + - Make sure the "historylog" option isn't included at all if + NANO_SMALL is defined. (DLR) + - Source reorganization: move code to src/, docs to doc/. + (Jordi) + - Translation updates (see po/ChangeLog for details). + - Since SAMELINEWRAP is only used in nano.c, make it a static + variable in nano.c instead of a flag, and surround all + wrap_reset() calls with DISABLE_WRAPPING #ifdefs. (DLR) + - Change enum "topmidbotnone" to "topmidnone", as there's no + BOTTOM option anymore. (DLR) + - Split out the string-displaying routine from update_line() + into a separate function; convert the edit window, statusbar + display, and statusbar prompt to use it, so that they can all + properly display control characters and tabs; free and NULL + the backup search string in one place in the search code + instead of several; and do some other minor refactoring of + related display functions to simplify them. New functions + mark_order() and display_string(); new macro charmove(); + changes to actual_x(), strnlenpt(), blank_bottombars(), + blank_edit(), get_page_start(), edit_add(), update_line(), + statusbar(), and do_replace_highlight(). (David Benbennick) + DLR: Add minor cosmetic tweaks, add missing NANO_SMALL #ifdef + around the text for a backwards search in the refactored code, + and enclose dump_buffer() and dump_buffer_reverse() in one + ENABLE_DEBUG #ifdef instead of two. + - Convert memmove() function calls to charmove() macro calls, as + the former all work on char*'s. (DLR) + - Miscellaneous #define cleanups: only include the prototype for + and definition of wrap_at if wrapping and/or justification are + enabled, remove duplicate wrap_at prototype, and define + DISABLE_MOUSE if NCURSES_MOUSE_VERSION isn't defined in nano.h + instead of all over the code. (DLR) + - Autogenerate the html versions of the manpages in the + Makefile.am's in doc/man/, make sure that they're properly + installed via "make dist", and make sure that "make distcheck" + works too. Also be sure to set EXTRA_DIST properly. (Jordi, + DLR and Jeff Bailey) +- files.c: + read_file() + - After we've read in a file and possibly converted it from + DOS/Mac format, set fileformat back to 0 to prevent erroneous + conversion messages when we read other files in. (DLR) + do_browser() + - Some of the Pico compatibility options in the file browser + that don't work properly for current Pico have been removed. + Backspace, 'g', 'l', 'q', and 'u' are invalid. 'd' deletes + the highlighted file, and 'r' renames the highlighted file; + neither of these are implemented. (DLR) +- global.c: + toggle_init() + - Change the message for the line wrapping toggle from "Auto + wrap" to "Auto line wrap", to more clearly associate it with + Meta-L. (DLR) + shortcut_init() + - Change multibuffer-enabled references to + opening/closing/toggling the previous/next loaded file to + toggling/switching to/closing the previous/next file buffer, + for consistency with other references. (DLR) +- nano.c: + window_init() + - Set keypad() to TRUE regardless of whether PDCurses is being + used, as Meta-X apparently turns it off even under ncurses. + (DLR) + do_backspace() + - Vastly simplify, and remove dependency on page_up(). (David + Benbennick) + help_init() + - Document the support for Esc Esc [character]'s being + interpreted as Ctrl-[character], and the support for Pico's + Esc Esc [three-digit decimal ASCII code] input method. (DLR) + do_mark() + - Toggle MARK_ISSET at the beginning of the function instead of + setting it in one place and unsetting it in another place. + (David Benbennick) + do_suspend() + - Use handle_hupterm() to handle SIGHUP and SIGTERM so we can + properly deal with them while nano is suspended. (DLR; problem + found by David Benbennick) + abcd() + - Removed, as it's unneeded due to the low-level input overhaul. + (DLR) +- nano.h: + - Define KEY_RESIZE and KEY_SUSPEND as -1 when slang is used, as + slang has no equivalent of either. When nano is compiled with + slang support, resizing the window doesn't generate + KEY_RESIZE, and pressing Ctrl-Z to suspend nano at the Linux + console with keypad(TRUE) generates Ctrl-Z instead of + KEY_SUSPEND, both unlike ncurses. (DLR) + - Define KEY_RESIZE as -1 if it isn't defined, as it isn't in + the curses library included with SunOS 5.7-5.9. Also define + KEY_SUSPEND as -1 if it isn't defined, in case it isn't in + more than just Slang. (DLR) + - Define all potentially missing keys as different negative + values (ERR is -1, so use -2, -3, etc.) so as to avoid having + duplicate case values when keys are missing. (DLR) +- move.c: + - Remove unneeded inclusion of stdio.h, make various cleanups, + and preserve the cursor's coordinates when paging up and down. + (David Benbennick) DLR: Readd the ability to behave the old + way while paging, make it so the new behavior is only used in + smooth-scrolling mode, and modify page_down() to always go + down a full page (even when there's less than one page of text + left) for consistency. + page_up() + - Removed due to rewrite of movement functions. (David + Benbennick) +- proto.h: + - Surround the do_prev_word() and do_next_word() prototypes with + NANO_SMALL #ifdefs, since the actual functions aren't included + in tiny mode. (DLR) +- rcfile.c: + parse_colors() + - Generate an error if we try to use a bright background color + in a nanorc file. (DLR; found by Brand Huntsman) + - Make sure all rcfile error messages are capitalized, for + consistency. (DLR) +- winio.c: + get_verbatim_kbinput() + - Fix a silly memory corruption bug that would occur when trying + to read a sequence of more than one key verbatim. (DLR) + get_accepted_kbinput() + Handle Ctrl-{ to Ctrl-~ correctly, and drop support for + converting Esc ` to Esc Space, since making Meta-[key] + correspond to Ctrl-[key] in all cases is inconsistent due to + the different natures of Contol and Meta key sequences. (DLR) + do_first_line() + - Call edit_update() with TOP instead of CENTER; both do the + same thing, but it works faster with TOP. (DLR) + nanogetstr() + - Don't let the user type in ASCII 127 at the statusbar prompt. + (DLR) + titlebar() + - Fix problem with the available space for a filename on the + titlebar's being short by one. (DLR) + edit_add() + - Fix problems with the marking highlight's being drawn + improperly in some cases. (DLR) + edit_update() + - Tweak for efficiency and remove the fix_editbot() call. (David + Benbennick) + do_credits() + - Update the copyright years to "1999-2003", to match those + given in the rest of the code. (DLR) +- configure.ac: + - Change instances of "GNU Nano" to "GNU nano" for consistency. + (DLR) +- nano.1, nanorc.5, nano.texi: + - Change all instances of $SYSCONFDIR to SYSCONFDIR, since + SYSCONFDIR is set at compile time and can't be overridden by + setting SYSCONFDIR in the environment. (David Benbennick) + - Remove -K/--keypad, and document -d/--rebinddelete. (DLR) + - Document the support for Esc Esc [character]'s being + interpreted as Ctrl-[character], and the support for Pico's + Esc Esc [three-digit decimal ASCII code] input method, if + applicable. (DLR) + - French translation by Jean-Philippe Guérard. +- nano.1.html, nanorc.5.html: + - Regenerated. (DLR) +- nanorc.sample: + - Remove duplicate "historylog" entry, remove "keypad" entry, + and add "rebinddelete" entry. (DLR) + - Update and add comments to the regexes for nanorc files. + (Brand Huntsman) + - Fix an attempt at a bright background color in the sample Java + source regexes. (DLR) + - Since tabs are shown as groups of spaces, they are interpreted + as such when parsed by color regexes. Accordingly, simplify + regexes that handle both spaces and tabs to just handle + spaces, as the results are the same. (DLR) +- AUTHORS: + - Updated to show 1.2/1.3 maintainers. + +- 1.3 tree forks here + +GNU nano 1.2.2 - 2003.08.11 +- General: + - Translation updates (see po/ChangeLog for details). + - Change uncast nrealloc()s assigned to char pointers/arrays to + charealloc()s, and cast all other nrealloc()s and all + nmalloc()s. (David Benbennick and DLR) + - Remove gettext marks from all debug messages. Good for developers, + better for translators. (Jordi) + - Add translator comments on strings that should be short, like in + status bar strings, etc. (Jordi) +- utils.c: + align() + - Tweak to avoid a potential problem when strp is non-NULL but + *strp is NULL. (David Benbennick) + nstricmp(), nstrnicmp() + - Add these functions, equivalent to strcasecmp() and + strncasecmp(), and convert nano to use them when strcasecmp() + and/or strncasecmp() are unavailable. (DLR) +- winio.c: + do_help() + - Get rid of keypad_on() call for bottomwin, which should not be + needed (DLR). + nanogetstr() + - Fix problem with search history where a temporary string + added at the bottom of the history (but which was not in the + history) would not be preserved after scrolling down to the + blank bottom entry and then scrolling back up. (DLR) + - Fix problem where pressing down,up,down does not blank the + search prompt but keeps the previous search (DLR). + - Handle Alt-[-F and H (DLR, fixed home and end not working with + -K in statusbar). +- configure.ac: + - Change the program used to detect a broken regexec() function + so that it works properly, using information found at + http://sources.redhat.com/ml/libc-hacker/2001-06/msg00015.html. + (DLR) +- nanorc.sample: + - Revised comment explaining the non-escaping of quotes to cover + non-escaping of all shell-interpreted characters. (DLR) + - Fixes to the descriptions and examples in the comments, and + changes to some default values. (David Benbennick and DLR) + - Add regexes for Perl syntax. (Richard Smith, tweaked for + greater efficiency by David Benbennick) + - Add regexes for Java source syntax. (David Benbennick) + Regex for C++-style comments (colored the same way as C-style + comments) added by DLR. +- THANKS: + - Added Laurentiu Buzdugan, for Romanian. + - Added Geir Helland, for Norwegian BokmÃ¥l. +- TODO: + - Move the items for nano 1.2 to the "Old Requests" section, + and mark color syntax highlighting as done. (David Benbennick) +- faq.html: + - Added question about nano's not showing color when it's + compiled with color support. (DLR; suggested by Jordi) +- nano.1, nanorc.5: + - Formatting improvements by Jean-Philippe Guérard. + - Minor fixes by DLR. +- nano.1.html, nanorc.5.html: + - Regenerated from nano.1 and nanorc.5. (DLR) + +GNU nano 1.2.1 - 2003.04.19 +- General: + - Translation updates (see po/ChangeLog for details). + - Work around broken regexec() on some systems that segfaults + when passed an empty string. This is known to be in glibc + 2.2.3. New function regexec_safe(). (David Benbennick) + - Fix various bugs with search string history logging: don't + print a broken error message and freeze if ~/.nano_history is + unreadable, actually show an error message in save_history() + if ~/.nano_history is unwritable, and prevent ~/.nano_history + from being completely overwritten by save_history() if it's + unreadable but writable. (David Benbennick) + - Only unset KEEP_CUTBUFFER in main() when we do something other + than cut text in the main input loop, instead of unsetting it + all over the place (which, as written, didn't handle cases + like a cut followed by M-Space properly). Also, instead of + checking for keyhandled's not being set inside the for loops, + do it in if blocks surrounding the for loops to increase + efficiency. (David Benbennick) DLR: Also unset KEEP_CUTBUFFER + if we hit a shortcut key other than the one for cutting text. + - Make it so a marked cut immediately followed by an unmarked + cut tacks the latter's text onto the end of the former's text + instead of putting it on a new line, as Pico does. (DLR) + - Convert instances of "(char *)nrealloc()" to the macro + charealloc(), which does the same thing. (DLR) + - Change justify_mode from a boolean int to a flag (DLR). +- cut.c: + do_cut_text() + - Tweak where KEEP_CUTBUFFER is set so that a marked cut + immediately followed by an unmarked cut preserves the + cutbuffer between the two. (David Benbennick) DLR: Also + properly set KEEP_CUTBUFFER in tiny mode. + do_uncut_text() + - If we're about to uncut on the magicline, always make a new + magicline in advance, as Pico does. (DLR) +- global.c: + shortcut_init() + - Simplify the #ifdef used to enable file insertion in view mode + if multibuffer support has been compiled in. (DLR) +- nano.c: + justify_format() + - If we shave spaces off the end of the line, make sure totsize + is properly updated. (DLR; much simplified by David + Benbennick) +- nano.h: + - Simplify #ifdefs relating to HAVE_STRCASECMP and + HAVE_STRNCASECMP. (David Benbennick) +- search.c: + goto_abort() + - Removed, with all instances replaced with display_main_list(), + since with the removal of all the scattered calls to + SET(KEEP_CUTBUFFER), that function was all that was left of + it. (DLR) + do_find_bracket() + - If a matching bracket wasn't found, call update_line() after + setting current and current_x back to their original values, + in case current_x's original value is greater than the width + of the screen. (DLR) +- winio.c: + nanogetstr() + - Remove a few unnecessary breaks occurring immediately after + gotos, and properly interpret the up and down arrow keys when + ALT_KEYPAD is set. (DLR) +- configure.ac: + - Enable autodetection of broken regexec(). (DLR) Re-added + regex.h check to ensure compile under Debian w/autoconf 1.6. +- README: + - Update obsolete 1.1.x information. +- TODO: + - Fix typo. (David Benbennick) +- faq.html: + - Update RPM links for nano 1.2.x. (DLR) + +GNU nano 1.2.0 - 2003.02.19 +- General: + - Translation updates (see po/ChangeLog for details). +- files.c: + read_file() + - If the file we're loading has already been detected as a DOS + or Mac formatted file, don't turn on NOCONVERT if we find + binary chars in it. This is because if it's detected as + DOS/Mac format, at least one line has already been converted, + so setting NOCONVERT (which is supposed to signal that none + of the file should be converted) makes no sense. (DLR) +- nano.c: + justify_format() + - Fix ugly behavior when wrapping spaces at the end of long + words (David Benbennick). +- nanorc.5: + - Fix formatting error and update copyright year (Jordi). + - Several enhancements (David Benbennick). + +GNU nano 1.1.99pre3 - 2003.02.13 +- General: + - Translation updates (see po/ChangeLog for details). + - Fix globals and externs such that nano will compile with + DISABLE_SPELLER (David Benbennick). + - Fix unreasonable fill values by wrapping at length 0 instead + of erroring out, and don't start up if the window size is too + small but fill is set reasonably. Changes to + nano.c:global_init(), window_init(), and handle_sigwinch(). + New macro MIN_EDITOR_COLS replaces MIN_FILL_LENGTH + (David Benbennick). + - Change ngettext macro to P_(), to avoid a clash with the + reserved C __ identifier (Jordi). + - Memory leak fixes for files.c:do_insertfile(),do_browser(), + nano.c:do_spell(), and search.c:do_replace() (David + Benbennick). + - Remove do_preserve_msg, as using -p still gives Pico-style + string behavior, so an annoying message every invocation is + probably unneeded (all cheer). + - Change resetpos function to be global (now called + resetstatuspos. Fixes annoying but small odd problem with + cursor placement when inserting a file. This needs to be done + better in 1.3 (originally by David Lawrence Ramsey). Added + this issue to TODO. +- files.c: + cwd_tab_completion() + - Memory leak fix (David Benbennick). + input_tab() + - Fix assumption that matches is null terminated (David + Benbennick). + load_history() + - Fix segfault on loading huge strings from history file + (David Benbennick). + load_history(), save_history() + - Changed to look at $HOME before getpwuid(geteuid()), see + details in comment for rcfile.c:do_rcfile(). + real_dir_from_tilde() + - Change check for the running user's home dir to use + getpwuid(geteuid()) rather than a getpwent() loop + (suggested by Jordi). +- nano.c: + breakable() + - Fix incorrect return value on short lines (David Benbennick). + do_help() + - Fix line lengths not being computed properly, causes display + glitches most noticeable with < 20 rows. New function + nano.c:line_len(). (David Benbennick). + do_justify() + - Add regfree() to quote regex (David Benbennick). + - Only copy previous indent if AUTOINDENT is set (David + Benbennick). + do_suspend() + - Fix untranslated message (David Benbennick). + do_wrap() + - Fix isspace() call to operate on int. + help_init() + - Fix crashing in do_help when COLS < 23 (David Benbennick). + main() + - Fix nano not compiling with ENABLE_RCFILE and DISABLE_TABCOMP + (David Benbennick). + - Silence annoying compiler messages about clobbering and + uninitialized variables by moving variable inits to the top + of main() and re-initializing them after the sigsetjmp(). +- rcfile.c: + colortoint() + - Don't bomb after invalid color and print bad color name + (David Benbennick). + colortoint, parse_colors() + - Don't add strings with invalid fg colors at all. + do_rcfile() + - Revert (somewhat) previous behavior of looking at + $HOME, and only run getpw* if it is NULL. Most *nix programs + seem to only care about $HOME, and at the user-level + getpw* may not be reliable (and its slower). +- search.c: + do_gotoline() + - Only goto_abort() if we *didnt* abort the command, making + the function seem horribly misnamed ;-) (David Benbennick). +- winio.c: + browser_init(), striponedir(), do_browse_from() + - Various memory leak fixes (David Benbennick). + do_yesno(), do_help() + - Add defined(NCURSES_MOUSE_VERSION) to macro so systems that + don't understand MEVENT will compile. + nanogetstr() + - Remove unnecessary reset of x since it is now handled + elsewhere (David Lawrence Ramsey). + statusq() + - Always blank the statusbar on exit (David Benbennick). +- nano.1, nano.1.html: + - Add initialization file comments, change some options from + bracketed to underlined to emphasize that they are not + optional. + - Add SEE ALSO section (Jordi). + - Moved nano.1 color and syntax sections to nanorc, pointed + nano.1 to nanorc.5 for initialization file. Changed + nanorc.5 variables to be italics to match nano.1. Added + nanorc.5.html to CVS tree. +- nanorc.5: + - Add nanorc manpage, with descriptions of all available commands + (Jordi). +- nanorc.sample: + - Make nanorc entry less tolerant of invalid colors. +- nano.spec.in: + - Change default flags to --enable-all. +- THANKS: + - Add Kalle Kivimaa and Kalle Olavi Niemitalo, for Finnish (Jordi). +- UPGRADE: + - Add upgrading information document for 1.0 users (Jordi). + +GNU nano 1.1.99pre2 - 2003.02.03 +- General: + - Changed some translatable debug messages to use %s + instead of the function name, and removed gettext from + two strings that had no actual words in them that + should be translated. Suggested originally by + Christian Rose. + - Fix subexpression replacement to work consistently. + Affects search.c:replace_regexp() and + utils.c:strstrwrapper() (David Benbennick). + - Fix cursor position being saved when escaping out + of nanogetstr with keys like ^Y and ^V. New arg + resetpos to nanogetstr(), added static int + resetpos in statusq() (bug found by DLR). + - Fix constant curos updates from obliterating other + system messages, and fix statusbar message length. + Affects files.c:load_open_file(), nano.c:main(), + search.c:findnextstr(), winio.c:statusbar() and + do_cursorpos() (David Benbennick). + - Fix nano crashing when searching/replacing an invalid + regex (try "^*"). Changed regexp_init() to return + 1 or 0 based on regcomp()'s return value and search_init + to exit with an error message (sorry Jordi!). Added + another check when using last_search instead of answer. + - Move regcomp into rcfile.c rather than each display refresh + of winio.c. New function rcfile.c:nregcomp(). + This fixes much of nano's resource hogging behavior + in syntax higlighting. (David Benbennick). + - Fix justify failing for certain lines, new function + nano.c:breakable() (David Benbennick). + - Fix screen getting trashed on signals nano can catch + (TERM and HUP). New global variable curses_ended, + changes to winio.c:statusbar() and nano.c:die() + (David Benbennick). +- cut.c: + do_cut_text() + - Fix incorrect cursor location when cutting long lines + (David Benbennick). +- files.c: + - Set a default PATH_MAX for getcwd() etc calls (David + Benbennick). + do_browse_from() + - Fix path checking to fix bad paths, escaping + the operating directory, new function readable_dir() (David + Benbennick). + do_browser() + - Fix incorrect path check for check_operating_dir() + (David Benbennick). + - Fix goto directory operating dir check and tilde expansion + (David Benbennick). + - Even more checks and operating dir fixes (David Benbennick). + do_insertfile() + - Add some more checks and fix recursion when toggling + multibuffer (David Benbennick). + open_file() + - Fix FD leak with file load error (David Benbennick). + add_open_file() + - Revert the fix for the supposed minor logic error from before; + it was keeping some updates from happening when they should, + which was leading to segfaults with both multibuffer and view + mode on. (DLR; found by David Benbennick) + save_history() + - Fix nrealloc return value being ignored (David Benbennick). + - Fix off-by-one bug causing write to unallocated memory + (David Benbennick). +- global.c: + thanks_for_all_the_fish() + - Fix compiling with DEBUG and multibuffer (David Benbennick). +- nano.c: + do_char() + - Remove unneeded check_statblank() (David Benbennick). + do_int_spell_fix(), do_int_speller() + - Fix crashes with mark position, current_x position, + and edit_update args (David Benbennick). + do_justify() + - Unset KEEP_CUTBUFFER so nano won't crash with subsequent + ^K cuts and justifies (David Benbennick). + do_mouse() + - Fix the mouse code to work with lines longer than COLS and + with the proper positioning, including special characters + (David Benbennick). + do_preserve_msg(): + - Unsplit error message into a single fprintf call (Jordi). + main() + - Call load_file with arg 0 for insert, as we aren't really + doing an insert, allows new_file() to run if we open a + non-file at startup. + usage() + - Remove gettext markings from -p/--preserve (Jordi). + - Revamp -H option message to fit in 80 column terminal. + window_init() + - Fix leaking *WINDOWs (no pun intended) (David Benbennick). +- search.c: + do_search(), do_replace_loop() + - Fix edit_update call to use CENTER instead of current_x + (related to David Benbennick's fixes for spelling). + do_replace_loop() + - Fix various bugs having to do with replace string length + and positioning (David Benbennick). + edit_refresh() + - Fix cursor being above as well as below the current screen + (David Benbennick). +- winio.c: + bottombars() + - Change strcpy of gettext() "Up" string to strncpy of max + width 8, to stop stupid strcpy crash. + do_yesno() + - Fix mouse interaction bugs with yes/no prompt (David Benbennick). +- nanorc.sample: + - Change comment to say magenta instead of purple. + +GNU nano 1.1.99pre1 - 2003.01.17 +- General: + - New date format for NEWS and ChangeLog. + - Completely removed PICO_MODE, as with the search/replace + history patch we should have the extended functionality we can + without being incompatible with Pico. Removed all code for + different search/replace string editing and alternate shortcut + list. I'm sure I won't even have to ask for feedback on this + one :-) + - Add in Pico's -p flag, (-p, --preserve). To preserve the XON + and XOFF keys (^Q and ^S). Add warning if we invoke -p and + add checks for using --preserve (to skip warning) and --pico + (to force showing it). New flag PRESERVE, function + do_preserve_msg(), changes to main(), signal_init(). + - Search history and replace history up/down cursor arrows, + w/history tab completion, not available w/NANO_SMALL. Changes + to statusq(), others (Ken Tyler). Added shortcut to + search/replace shortcuts so people will know it's there, + forced KEY_UP and KEY_DOWN defs in nano.h (Chris, in case + blame needs to be placed later). Minor fixes by DLR: allow ^P + and ^N as alternatives to the up and down arrows, make sure + the "Up" shortcut is displayed properly in the help menu, + remove a few bits of unneeded and/or warning-generating code, + and fix some missing statusq() prompts with --enable-tiny. + - Added search/replace history log. Flag -H, --historylog. + Flags HISTORY_CHANGED and HISTORYLOG (only room for one more + flag!), added entries in nanorc.sample, new functions + log_history and save_history (Ken Tyler). + - Translation updates (see po/ChangeLog for details). + - Forward-ported Chris' --disable-wrapping-as-root option from + 1.0.9. Per Jordi's suggestions, have it override + $SYSCONFDIR/nanorc but not ~/.nanorc. (DLR) + - Change all references to /etc/nanorc in the documentation to + $SYSCONFDIR/nanorc. (DLR) + - Minor cosmetic tweaks to the ngettext() macro, and fix to + properly detect systems lacking ngettext() and correctly + compile on them; the previous fix didn't work. (DLR) + - Fix problems with some code sections' not being #ifdef'ed out + when they should be, or being #ifdef'ed out improperly. (David + Benbennick and DLR) + - Change FOLLOW_SYMLINKS to NOFOLLOW_SYMLINKS, and rework the + associated logic accordingly, throughout the code. (David + Benbennick) + - Rework #ifdefs to not include mouse_init() at all if + DISABLE_MOUSE is defined or NCURSES_MOUSE_VERSION isn't. (DLR) + - For consistency, change many references of (!x) to (x == NULL) + and (x) to (x != NULL). (DLR) + - Define KEY_IC properly (and KEY_DC more portably) when slang + support is enabled, and remove the hack to work around the + former's not being defined. (David Benbennick and DLR) + - Miscellaneous tweaks to update_color() calls, to make sure + they're called at the right times and that refreshes are done + afterwards only when needed. (David Benbennick) + - Renamed [have_]past_editbuff [have_]search_offscreen. (DLR) + - Add the "preserve" option to the nanorc file, to match + nanorc.sample. (DLR) + - Fixed awful scrolling in do_int_speller. Problem was + findnextstr() calling edit_update(), though screen updating + is not its business. Added checks in do_search() and + do_replace_loop() to do the checks. It really should not be + done here, as some function in winio.c should handle this, + but I can't seem to find a good place to put this check. + - Updated all copyright notices to say 2003 rather than 2002, as + nearly all the source files have been worked on this year + (DLR). +- configure.ac: + - Added tr and eu to ALL_LINGUAS (Jordi). + - Fix now inaccurate description of --enable-tiny's effects; it + no longer disables NLS support. (DLR) + - Fix typo. (David Benbennick) + - Check for strcasecmp() and strncasecmp(), since they are + apparently only standard under BSD. (DLR) + - 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(). + (David Benbennick) +- cut.c: + do_cut_text() + - Fix a memory corruption problem caused by accessing edittop + after it was freed but before it was reset to a sane value + from current. (David Benbennick) + do_uncut_text() + - If uncutting more than one line of unmarked text at editbot, + don't center the screen, since Pico doesn't. (DLR) + - If uncutting previously unmarked text, uncut to end if we're + not at the beginning of the line, and set placewewant to 0 if + we are. This matches Pico's behavior. (DLR) +- files.c: + load_file() + - Remove unneeded wmove() call. (David Benbennick) + read_line() + - Miscellaneous cleanups. (David Benbennick) + open_file() + - If we're in multibuffer mode and there's an error opening the + file in read-only mode, display the error message on the + statusbar regardless of the value of quiet. (DLR) + read_file() + - Miscellaneous cleanups. (David Benbennick) + - Fix len's being off by one when reading in Mac-format files, + exposed by one of David Benbennick's cleanups. (DLR) + - If NO_CONVERT isn't set when we first enter, and it gets set + while reading in the file, unset it again afterwards. (DLR) + do_insertfile() + - If we're in multibuffer mode and there's an error opening the + file that we're trying to insert, close the new buffer that we + made to hold it and reload the buffer we had open before. + (DLR) + add_open_file() + - Fix minor logic error when determining when to resave fileage + and filebot. (DLR) + load_open_file() + - If switching between files when CONSTUPDATE is set, only force + a cursor position display update if DISABLE_CURPOS isn't set. + This will ensure that the "Switching to [file]" messages are + shown. (DLR) + write_file() + - Change lineswritten from a long to an int, to match + filestruct->lineno. (DLR; mismatch found by David Benbennick) + real_dir_from_tilde() + - Since this is needed for proper interpretation of paths + containing tildes and not just for tab completion, include and + use it regardless of whether tab completion is disabled. + (David Benbennick and DLR) + input_tab() + - Variable name change: matchBuf -> matchbuf. (DLR) + diralphasort() + - Remove the HAVE_STRCASECMP #ifdef block; see the changes to + configure.ac and nano.h for why. (DLR) +- global.c: + thanks_for_all_the_fish() + - Miscellaneous cleanups. (David Benbennick) +- move.c: + do_page_down() + - If there's a page or less of text, do an edit_update() if the + mark is on; otherwise, the highlight won't be displayed. (DLR) +- nano.c: + - Added free_history() list calls clean up, added init of list + headers, and modified statusq() calls (Ken Tyler). + do_prev_word() + - Make the assert match that in do_next_word(). (DLR) + do_enter() + - If smooth scrolling is on, and Enter is pressed on the + magicline, don't center the screen. (DLR) + do_justify() + - Fix memory corruption problem triggered when edittop and + current->next pointed to the same value and current->next was + destroyed during justification. (DLR) + - Center the screen when justification moves the cursor entirely + off the bottom of the screen, instead of when it moves the + cursor near the bottom of the screen, to more closely match + Pico's behavior. (DLR) + version() + - Remove obsolete reference to --enable-undo. (David Benbennick) + - Move up check for --disable-nls as it's independent of + --enable-tiny now (DLR). + do_int_speller() + - Make internal spell program use sort -f and uniq to create a + less redundant word list. [The only reason this is going in + during feature freeze is because the int speller is useless as + is and should either be improved or removed. I chose + improved]. + - Change all child error checks to use one goto (gasp!) called + close_pipes_and_exit, so we don't leak FDs. + - Fix FD leaks which occur outside of errors (David Benbennick). + do_int_speller(), do_alt_speller() + - Programs now return char *, NULL for successful completion, + otherwise the error string to display. This allows us to give + more useful feedback to the user when spell checking fails. + ABCD() + - Renamed abcd(). (DLR) + main() + - Remove an unneeded do_colorinit() call, do major cleanups, and + allow loading of multiple files on the command line when + multibuffers are used. (David Benbennick) +- nano.h: + - Make sure NO_RCFILE and COLOR_SYNTAX aren't set to the same + value. (DLR; discovered by Ken Tyler) + - If strcasecmp() and/or strncasecmp() aren't available, use + strcmp() and/or strncmp() instead. (DLR) +- proto.h: + - Fix the #ifdef block for DISABLE_TABCOMP's being undefined + so that functions only used with tab completion are properly + #ifdef'ed out. (DLR) +- search.c: + do_gotoline() + - Don't call blank_statusbar_refresh() so if there's an error + returned in multibuffer mode, we can actually see it. + do_search() + - Remove erroneously introduced near-duplicate call to + update_history(). (DLR) + print_replaced() + - Remove and replace with an equivalent ngettext() call. (DLR) + do_replace_loop() + - Fix bug where if text on the magicline was replaced (which can + be done via a regexp replace of "^$" with something other than + ""), a new magicline wouldn't be created. (DLR) + - Remove check for answer being a blank string, presumed to be + a PICO_MODE holdover, but it stops us from doing a blank + spelling replacement. + do_replace() + - For greater Pico compatibility, when an attempt to replace a + string results in 0 replacements due to the string's not being + found, display "[string] not found" instead of "Replaced 0 + occurrences". (DLR) +- utils.c: + is_cntrl_char() + - Rework to fix a problem with displaying certain high-bit + characters. (David Benbennick; reported by Andrzej Marecki) + align() + - Don't just assert that the string passed in isn't NULL; check + that it isn't and only do the alignment when it isn't. (David + Benbennick) + nmalloc(), nrealloc() + - If the size passed to nmalloc() or nrealloc() is zero, don't + die with an erroneous out-of-memory error. Also, change + their dying messages to "nano is out of memory!". (David + Benbennick) + charalloc() + - Removed and redefined as a macro that calls nmalloc(). (David + Benbennick) +- winio.c: + nanogetstr() + - Tweak to make the cursor stay in the same place if we hit a + prompt-changing toggle while it's in the middle of the string. + Reset it to -1 (so next time we come here, it'll be set to the + end of the string) if we leave the prompt via Enter or Cancel. + Also fix minor problem with search history where the current + search item could be at the bottom of the history twice in a + row under certain conditions. (DLR) + - Remove parens in NANO_CONTROL_I check so nano won't complain if + just NANO_SMALL is defined (David Benbennick). + edit_refresh() + - Miscellaneous cleanups that fix a bug where the screen + isn't updated after uncutting chunks of upwardly marked cut + text that are over a page in length. (David Benbennick) + do_credits() + - Add David Benbennick to credits. (DLR) +- nanorc.sample: + - Added comment to explain the non-escaping of quotes in + color regexes, based on info provided by David Benbennick. + (DLR) + - Added some examples for groff and the nanorc courtesy of + Robert D. Goulding. + - Added double hash marks to comment lines, so people who + uncomment the beginning of every line won't get syntax errors. +- faq.html: + - Miscellaneous fixes and updates for typos, broken links, and + slashes at the end of directories. It is now fully compliant + with HTML 4.01 Transitional. (DLR and David Benbennick) + - Added docs about the new unified search string interface and + search histories, and added --enable-all into configure docs. +- nano.texi: + - Typo fixes and updates. (David Benbennick) + - Updates for the most recent and not so recent changes. +- nano.1, nano.1.html + - Updated for the --preserve and --historylog options. +- TODO + - Added some wishlist stuff. +- THANKS: + - Added Doruk Fisek and Peio Ziarsolo (Jordi). + +GNU nano 1.1.12 - 10/24/2002 +- General: + - Translation updates (see po/ChangeLog for details). + - Remove malloc.h, as it's unneeded and just causes annoyances on + *BSD systems. Added stdlib.h to global.c. + - Added Meta-Y toggle to disable/enable color syntax highlighting + completely. This may eventually be per-buffer, but that's too + complicated for a feature freeze. + - Disable VSTOP keystroke. Stops people accidentally locking up + nano (suggested by David Benbennick). + - Pluralize messages with ngettext() where needed. (David + Benbennick) Tweaked to compile on systems lacking ngettext() + by DLR (problem found by Ken Tyler). + - Update nano.1 and nano.1.html to show that nano now does an + emergency save on receiving SIGHUP or SIGTERM. (DLR) + - Don't include "nowrap" in the long options if + DISABLE_WRAPPING is defined. (DLR) +- files.c: + read_file() + - Minor efficiency fixes, some of which fit in with the change + to ngettext() usage mentioned above. (David Benbennick) + do_browser() + - Make sure the value of path is mallocstrcpy()ed into retval + and not just assigned to it, to avoid memory corruption + problems. (DLR) +- nano.c: + version() + - If ENABLE_NLS isn't defined, display "--disable-nls" + (suggested by Ken Tyler). (DLR) + justify_format() + - Make sure the double space maintained after sentence-ending + punctuation is done when that punctuation is immediately + followed by a bracket-type character, so justifying e.g. + sentences in parentheses works properly. (David Benbennick) + handle_hup() + - Renamed handle_hupterm() to show that it now handles SIGTERM + as well as SIGHUP. (DLR) + signal_init() + - Do an emergency save on receiving either SIGHUP or SIGTERM, + not just SIGHUP. (David Benbennick) + main() + - Fix a problem where control key commands were printed + literally instead of interpreted after a failed search of a + one-line file. (David Benbennick) +- proto.h: + handle_hup() + - Renamed handle_hupterm(); see above for why. (DLR) +- winio.c: + edit_add() + - Fix a potential infinite loop occurring with certain + zero-length regexes. (David Benbennick) + +GNU nano 1.1.11 - 10/01/2002 +- General: + - Translation updates (see po/ChangeLog for details). + - Upgraded to gettext 0.11.5 (Jordi). + - Updated nano.1, nano.1.html, and nano.texi to fix an + inaccuracy in the description of -Q/--quotestr. (DLR) + - Set REG_EXTENDED in all regcomp() calls. (DLR) + - Minor cosmetic code cleanups. (DLR) + - Changed do_insertfile to (a) report multibuffer status at the + prompt and allowing it to be toggled, taking into account the + need to keep the translatable strings, and (b) added a + variable inspath to keep track of what the string was before + toggling. I'm sure there's bugs, have at it. + - Make sure all functions have prototypes in proto.h, and swap + some functions around to put similar functions closer + together (for this, rename clear_bottombars() to + blank_bottombars()). (DLR; suggested by David Benbennick) + - More changes of char *'s to const char *'s when possible. + (David Benbennick) + - Fix various minor memory leaks in files.c. (David Benbennick) + - Fix minor problems with the operating directory code: set the + operating directory properly if it's specified only in a + nanorc file, and handle an operating directory of "/" + properly. New function init_operating_dir() to handle + setting it both on the command line and in the nanorc file. + (David Benbennick) + - Major rewrite of color and screen update routines to fix + minor bugs and increase efficiency. New function + set_colorpairs() for the former. (David Benbennick) +- configure.ac: + - Added pt_BR to ALL_LINGUAS (Jordi). + - Changed --enable-color warning to be slightly less severe. + - Put the configure options in more or less alphabetical order, + and remove --enable-undo, since it doesn't do anything. (DLR) +- files.c: + open_file() + - String change: "File "x" is a directory" -> ""x" is a + directory". (Jordi) + do_insertfile() + - Disallow multibuffer toggling at the "Insert File" prompt if + we're in both view and multibuffer mode, so as to keep proper + integration between the two, and make sure the toggle + actually works all the time otherwise. Also, make sure + TOGGLE_LOAD_KEY isn't referenced when NANO_SMALL and + ENABLE_MULTIBUFFER are both defined. (DLR) + open_prevfile_void(), open_nextfile_void() + - Return the return values of open_prevfile() and + open_nextfile(), respectively, instead of (incorrectly) + calling them and returning 0. (DLR) + real_dir_from_tilde() + - Rework to use getpwent() exclusively and end reliance on + $HOME. Adapted from equivalent code in do_rcfile(). (DLR) + input_tab() + - Most likely fixed the check marked with FIXME, so that tab + completion works properly when we're trying to tab-complete a + username and the string already contains data. (DLR) +- global.c: + shortcut_init() + - Disable the new multibuffer toggle at the file insertion + prompt when NANO_SMALL and ENABLE_MULTIBUFFER are both + defined. (DLR) + thanks_for_all_the_fish() + - Make sure the reference to help_text is #ifdefed out when + --disable-help is used. (DLR) +- move.c: + page_up() + - Fix bug where current is moved up two lines when the up arrow + is pressed on the top line of the edit window; this causes a + segfault if the top line in the edit window is the second + line of the file, as the line current ends up on doesn't + exist. (Jeff DeFouw) + do_down() + - Fix bug where, if the last line in the edit window is the + line before the magicline, and smooth scrolling is turned + off, pressing the down arrow on that last line centers the + cursor without updating the edit window. (Jeff DeFouw) +- nano.c: + version() + - Put the listed configure options in more or less alphabetical + order. (DLR) + open_pipe() + - If we're in view mode here (in which case we're also in + multibuffer mode), don't set the modification flag. (DLR) + do_next_word(), do_prev_word() + - If we're on the last/first line of the file, don't center the + screen; Pico doesn't in the former case. (DLR) + do_backspace() + - Rework to call edit_refresh() regardless of the value of + current_x if ENABLE_COLOR is defined, so that multiple-line + color regexes are properly updated onscreen as they are in + do_delete(). (DLR) + do_delete() + - Rework to only call edit_refresh() unconditionally if + ENABLE_COLOR is defined; if it isn't, and we're not deleting + the end of the line, only call update_line(). (DLR) + do_wrap() + - Make sure wrapping is done properly when the number of + characters on the line is exactly one over the limit. (David + Benbennick) + - Restore the previous wrapping point behavior (pre 1.1.10) + (David Benbennick). Minor fix by DLR to prevent spaces from + being added to the ends of lines ending in spaces or lines + ending in tabs (the latter case found by David Benbennick). + do_alt_speller() + - Readd DLR's fix to preserve marking when using the alternate + spell checker; it was accidentally dropped. (David + Benbennick) + do_justify() + - Fix cosmetic problems caused when justifying on the + magicline, and a minor problem where the cursor would + sometimes be moved to the wrong line after justification. + (David Benbennick) + main() + - When searching through the main shortcut list looking for a + shortcut key, stop searching after finding one; this avoids a + rare segfault. (DLR) +- nano.h: + - Change search toggles for case sensitive searching and regexp + searching to M-C and M-R, respectively. (DLR; suggested by + Chris) + - Add support for HP-UX's curses, which doesn't seem to support + KEY_HOME and KEY_END. +- nanorc.sample: + - Fix the c-file regex for all caps words to be extended regex + format ({} instead of \{\}) (found by DLR). + - Add a better string matching sequence that includes escaped + quotes (thanks to Carl E. Lindberg, who doesn't even know he + helped ;-). Some unneeded \'s in that sequence removed, and + a new sequence to handle multi-line quotes added, by David + Benbennick. + - Add some examples for HTML and TeX files (David Benbennick). +- rcfile.c: + parse_colors() + - Stop infinite loop when syntax doesn't begin with " char. +- utils.c: + charalloc() + - Switch from using calloc() to using malloc(). (David + Benbennick) +- faq.html: + - Typo fix. (DLR) +- AUTHORS: + - Add David Benbennick. (Jordi and Chris) +- TODO: + - Add entry in the 1.4 section for Pico's paragraph searching + ability (at the search prompt, ^W goes to the paragraph's + beginning, and ^O goes to the paragraph's end). (DLR) + +GNU nano 1.1.10 - 07/25/2002 +- General: + - Translation updates (see po/ChangeLog for details). + - Upgraded to gettext 0.11.2 (Jordi). + Removed intl/ entirely, and a few more tweaks by gettextize. + - i18nized a few strings used in DEBUG mode. (DLR) + - Some chars being assigned 0 are now assigned '\0'. (DLR) + - Put header file #includes in a more consistent order. (DLR) + - Remove some unneeded blank lines and spaces, and make some + spacing more consistent. (DLR) + - When possible, use iscntrl() to determine whether a character + is a control character or not. (DLR) + - Miscellaneous typo fixes. (DLR) + - Many fixes to the help browser and shortcut lists: efficiency + updates, consistency fixes, help text fixes and improvements, + and spacing improvements. (David Benbennick) + - Make some functions use const variables when possible, and + also make them static when necessary. (David Benbennick, + necessary redefined by Chris ;-) + - Add Carl Drinkwater's backup file option (-B or --backup on the + command line, M-B in nano's global shortcuts). If the original + file is unchanged from when it was loaded, it is backed up to + filename~; if the original file has been changed or deleted + since it was originally loaded, it isn't backed up. The backup + file retains the permissions, owner/group, and + access/modification times of the original file. This option is + disabled when --enable-tiny is used. It will not back up + temporary files. Minor fixes to it by David Benbennick and + DLR. Changes to open_file(), add_open_file(), + load_open_file(), write_file(), and do_writeout(). + - Add \n's to the ends of "filename is %s" debugging strings. + (Carl Drinkwater) + - Add the long option --quotestr as an alternative for -Q, and + --regexp as an alternative for -R; they were listed in nano's + usage information, but weren't actually in nano. Also, display + "-?" as an alternative for "-h" in nano's usage information, + put the command line options in a more consistent (i.e. mostly + alphabetical) order in nano, put the long options in a more + consistent order in rcfile.c and nanorc.sample, don't include + rcfile options if their equivalent command line options are + disabled, and remove obsolete relative option from + nanorc.sample. (DLR) + - Change "File Name to Append/Prepend" to "File Name to + Append/Prepend to". The original prompt could confusingly + imply that we are appending/prepending another file to the + current file, when we are actually appending/prepending the + current file to another file. (DLR) + - Put nano.1, nano.1.html, and nano.texi up to date, and fix a + few inconsistencies in them. (DLR) + - Typo fixes for the ChangeLog. (David Benbennick and DLR) + - Complete rewrite of justification code to fix some bugs and + improve its functionality. (David Benbennick) + - If a variable isn't going to be used in tiny mode, #define it + out when possible. (David Benbennick) + - Major reworking of the cutting/screen-updating code in cut.c, + some functions in utils.c, the cursor placement code in + winio.c, and many, many other areas to increase efficiency. + (David Benbennick) + - Rework handling of prompts when there's a list of partial + filename matches on the screen: remove kludgy case-by-case + handling (which didn't even handle every case), and have + statusq() handle it directly for all cases. (David Benbennick + and DLR) + - Fix some warnings and errors that show up when using gcc's + -pedantic option. (DLR) + - Add a comment to nanorc.sample warning that an out-of-range + negative value for fill can make nano die complaining that + the screen is too small (which may not be immediately + obvious). (DLR) + - There were some opendir() calls in files.c without + corresponding closedir() calls; add them. (DLR) + - Move align() and null_at() from nano.c to utils.c, and move + the openfilestruct handling functions from nano.c to files.c. + (DLR) + - In color.c, start the "#ifdef ENABLE_COLOR" block after + including all the header files, as rcfile.c does; this fixes + a warning about ANSI C'S inability to handle blank files. + (DLR) + - Add new function is_cntrl_char() as a wrapper for iscntrl(); + this is needed to treat ASCII 0x80-0x9f as control characters + consistently. (Without this, they will only be treated as + such when gettext is used; when it isn't used, they will be + printed as-is and be interpreted as commands by xterm, which + will corrupt the display.) (DLR) + - Add command line option -I/--ignorercfiles to ignore + $SYSCONFDIR/nanorc and ~/.nanorc. (Carl Drinkwater). Fix to + parsing getopt args (DLR). + - Fix minor bugs with importing certain text files in Mac + format. (DLR) +- files.c: + append_slash_if_dir(), input_tab() + - Changed variable names: lastWasTab -> lastwastab, matchBuf -> + matchbuf. (DLR) + check_operating_dir() + - Memory leak fix. (David Benbennick) + check_writable_directory() + - Optimizations (David Benbennick). + cwd_tab_completion() + - Changed a variable name: dirName -> dirname. (DLR) + do_browser() + - Optimizations and mouse selection fixes (David Benbennick). + do_writeout() + - Fix problem with formatstr's being defined as NULL when + --enable-tiny is used. Since formatstr isn't ever used in tiny + mode, don't bother even creating the variable. (David + Benbennick and DLR) + do_insertfile() + - Memory leak fix (accidentally dropped 1st time). + (David Benbennick). + get_full_path() + - Memory leak fix. Also, make it properly interpret ~/ notation + so, among other things, the option "--operatingdir ~" works. + (David Benbennick) + - More optimizations (David Benbennick). + new_file() + - Make sure current_x is zero; this fixes a problem where the + current cursor position wasn't reset when reading in a file in + multibuffer mode. (David Benbennick) + - Use make_new_node rather than setting up fileage by hand + (David Benbennick). + read_file(), read_line() + - Rework to properly handle nulls in the input file, fix + detection of binary files to properly mark a file as binary if + the only binary characters it contains are ASCII 127's, and + after reading the last line of a file that doesn't end in a + newline, increment totsize. Remove previous kludge to set + totsize properly. (DLR) + write_file() + - Rework to properly handle nulls in the input file. When + appending/prepending, don't change the current file's name to + the name of the file it's being appended/prepended to. When + writing a marked selection to a file, save and restore totsize + so it isn't decreased by the size of the selection afterward. + (DLR) + - Optimizations (David Benbennick). +- global.c: + free_toggles() + - Only include if we're not using tiny mode. (David Benbennick) + toggle_init() + - Remove global entries for search toggles, as they aren't really + global. (DLR) + - Don't reinititialize the toggles if they've already been + initialized; it's unnecessary and even causes a segfault in + do_toggle() if Pico emulation mode is the toggle in question. + Don't free the toggles here, either; it's unnecessary after the + above change. (David Benbennick) + - If wrapping is disabled, don't include the toggle for it. + (DLR) + shortcut_init() + - Rework IFHELP macro (David Benbennick). +- move.c + page_down(), page_up() + - Put sanity checks for current_x back in, to avoid rare + segfaults (oops). Now, however, they are only called when + placewewant is zero instead of being called unconditionally; + see changes to winio.c:actual_x_from_start() below. (DLR) +- nanorc.sample: + - Put in much less crappy example regex rules for c-file. +- nano.c: + clear_filename() + - Remove this function, as it has unneeded functionality, is + short enough to be inlined, and is only called in two spots + anyway. (DLR) + die() + - Rework slightly to remove redundant printing of last message + and print all messages after resetting the terminal. (DLR) + do_backspace() + - Make sure placewewant is set properly, and that the mark is + moved backwards. (David Benbennick) + do_char() + - Fix a problem where, if ENABLE_COLOR wasn't used, typing + characters on a marked line before the beginning of the mark + would make the highlight short by one. (David Benbennick) + do_cont() + - Handle the case where the window was resized while we were + stopped. (David Benbennick) + do_delete() + - Make sure placewewant is set properly, to match Pico's + behavior. (DLR) + do_int_spell(), do_alt_spell() + - Rework to save the marked selection before doing spell checking + and restore it afterward. (DLR) + do_next_word(), do_prev_word() + - Fix a problem where highlighting isn't done properly after + calling either of these, and another problem where the cursor + would move back too far in certain cases with do_prev_word(). + (David Benbennick) + do_toggle() + - Since the search mode toggles aren't global anymore, we don't + need to explicitly block them here anymore (which will end up + blocking the global backup mode toggle, which is the same as + the backwards search toggle). (DLR) + do_wrap() + - fill fixes and 'two short word wrap' bug (David Benbennick). + global_init() + - Call die_too_small() when fill is 0. (DLR) + handle_sigwinch() + - Make sure we adjust fill when the window is resized. (David + Benbennick) + - Call die_too_small() when fill is 0. (DLR) + help_init() + - Since the return value of snprintf() isn't well defined, use + sprintf() instead. (David Benbennick) + main() + - Rework to blank out filename manually before doing anything + with it, instead of calling clear_filename() in two places. + Make startline an int instead of a long, since it's supposed to + hold a line number. (DLR) + - Properly handle multiple -r settings on the command line. (Carl + Drinkwater) + - Fix a bug that prevented file insertion via the Insert key + from working at all when --enable-multibuffer wasn't used + (oops). (DLR) + - Adapt David Benbennick's fix to get fill to accept negative + numbers properly in parse_rcfile() (see below) to the + handlers for the -r and -T options as well, so that -r/-T 0 + can be treated separately from -r/-T string. (DLR) + - Fix so that Esc-Esc-Space is properly treated as Ctrl-Space. + (DLR) + usage() + - List the options that are ignored for the purpose of Pico + compatibility, and make some minor consistency fixes. (DLR) +- nano.h: + - Fix some space/tab formatting for flags (DLR). +- proto.h: + - Remove external declaration of the global int fill, since + it's now static. (DLR) +- rcfile.c: + parse_rcfile() + - Add David Benbennick's fix that allows fill to accept + negative numbers properly. Specifically, use strtol() there + instead of atoi() so that errors can be detected. Also + adapted for tabsize by DLR. + parse_next_regex(), colortoint() + - Only include if ENABLE_COLOR is defined. (DLR) +- search.c: + search_init() + - Since the search mode toggles aren't global anymore, rework the + part of this function referencing them so that they still work. + (DLR) + - Remove unneeded toggles variable. (David Benbennick) + - Fix a problem where the first character of buf was overwritten + if the last search string was one third the number of columns + plus one. (David Benbennick) + findnextstr() + - Update the current line at current_x if we don't find a match. + Also, pass current_x_find to strstrwrapper() so we know whether + we're at the beginning of a string or not (see changes to + strstrwrapper() below), and reset it between lines. (DLR) + do_gotoline(): + - Make sure placewewant is zero after we go to a line. (David + Benbennick) + do_gotopos() + - Simplify the sanity check to only put x within the range of the + current line; don't call actual_x() anymore. (DLR) +- utils.c: + - Add sunder() and unsunder(). These functions convert nulls + other than the terminating null in strings to newlines and + back; they're used to handle null characters in files properly. + (DLR) + lowercase() + - Remove, since it isn't actually used anywhere. (David + Benbennick) + strstrwrapper() + - Set REG_NOTBOL when we're not at the beginning of a + string, to avoid false positives when searching for regular + expressions prefixed with ^. Make it take a new parameter, + line_pos, to determine where we are in the string. (DLR) + check_wildcard_match() + - Changed variable names: retryPat -> retrypat, retryText -> + retrytext. (DLR) +- winio.c: + actual_x_from_start() + - Overhaul to make cursor placement more like that of Pico: add + sanity check for i, and then place i as close to the value of + xplus column as possible. This change is most noticeable when + moving down through binary files. (DLR) + do_credits() + - Fix for the i18ned credits so it will compile with -pedantic + (DLR & Chris). + do_help() + - Add support for the handled keyboard escape sequences in the + help menu, as they are needed with some terminals (e.g. xterm + with TERM=ansi). (DLR) + edit_refresh() + - Turn on leaveok() so the cursor doesn't bounce around the + screen while we're updating it (most noticeable when using + color syntax over a very slow connection). + do_replace_highlight() + - When using regexps, make sure the highlight is the length of + the search result and not the regexp string. (DLR) + nanogetstr() + - After the user presses Enter at the prompt, refresh the edit + window in case there's a list of possible filename matches + (left over from attempted tab completion) on it. (DLR) + statusbar() + - Limit statusbar display to the number of columns less four, and + don't allow it to go over its original row. (David Benbennick) + titlebar() + - Tweak text spacing and printing so that the titlebar text looks + better on smaller terminals. (Carl Drinkwater) + update_line() + - When marking control characters, make sure the mark moves + forward by two characters instead of one. Rework control + character display routine to display newlines within the line + (which should never occur under normal circumstances; they will + only be there if the line had nulls in it and was unsunder()ed + beforehand) as ^@'s. (DLR) + - Fix to properly treat ASCII 128-159 as control characters. + (DLR) +- configure.ac: + - Added ms to ALL_LINGUAS (Jordi). + - Merged acconfig.h in (Jordi). + - Fixed so that --enable-debug defines DEBUG and undefines + NDEBUG. (Carl Drinkwater) +- THANKS: + - Completed a bit (Jordi). + - Fixed David Benbennick's email address. (David Benbennick) + - Typo fix. (DLR) + +GNU nano 1.1.9 - 05/12/2002 +- General: + - Typos n misspellings all over the place (David Benbennick). + - Allow --tiny and --multibuffer to cooperate (who the heck + would want this is beyond me but ;-). Changes to + configure.ac, global.c, , (David Benbennick). + - Change to openfilestruct for multibuffer mode by DLR. + New functions nano.c:make_new_opennode(), free_openfilestruct(), + delete_opennode(), unlink_opennode(), splice_opennode(), + new struct openfilestruct in nano.h. + - Preliminary prepend code. This may be a bad idea, but I've + been wanting it for awhile now and we'll see how bad it messes + everything up. Changes to files.c:do_writeout(), write_file(). + Fixes for O_CREAT & append compatibility by David Benbennick. + - Change from read() and write() to file streams by Jay Carlson. + Allows OS to implement read and write ahead rather than making + us do it. Hopefully merged properly. + - More cleanups with DISABLE flags, better free_shortcutage and + free_toggle, and get rid of unnecessary variable decls with + NANO_SMALL in shortcut_init() by David Benbennick. + - Added "syntax" command to .nanorc file, to allow multiple + syntaxes. New function color.c:update_color(), calls in various + files.c places, syntaxtype struct, global variables syntaxes, + syntaxfile_regexp and synfilematches. Global flag -Y ,--syntax + to specify the type on the command line, if there's no good + filename regex to use. Global variable syntaxstr. + - Changed many strcmp()s and strcpy()s to their equivalent + '\0' counterparts (David Lawrence Ramsey). + - Many changes to allow marked cutting to work with multiple + file buffers: changes to openfilestruct type in nano.h and + files.c (David Lawrence Ramsey). + - Changed NANO_SMALL to ENABLE_NLS for gettext disabling + (David Benbennick). + - Move next_key and pev_key definitions out of main() and into + global.c where they belong (David Benbennick). +- color.c: + update_color() + - Add regfree call here to avoid memory leaks. +- configure.ac: + - Define NDEBUG to silence asserts (David Benbennick). +- files.c: + get_next_filename() + - Optimizations (David Benbennick). +- global.c: + shortcut_init() + - Add missing free_shortcutage()s (David Benbennick). + thanks_for_all_the_fish() + - Only defined when using DEBUG, makes sense (David Benbennick). +- nano.c: + die_save_file() + - Add missing free (David Benbennick). + do_justify() + - Optimizations (David Benbennick). + do_wrap() + - Complete rewrite (David Benbennick). + help_init() + - A little less readable, a lot shorter :-) (David Benbennick). + - Fix Meta-A not getting capitalized, and convert the ASCII + #s to their character equivalent. + main() + - Changed charalloc(), strcpy()s to mallocstrcpy()s. +- nano.h: + - NANO_ALT_COMMAND and NANO_ALT_PERIOD were reversed (lol) + (David Benbennick). +- nano.spec.in: + - Don't put Chris' name as the Packager in the distribution + by default (Im an idiot). + - Fixed Source line (David Lawrence Ramsey). +- nano.1: + - Changed references to Debian GNU/Linux to Debian GNU (Jordi). +- nano.1.html: + - Updated for -Y option (David Lawrence Ramsey). +- rcfile.c: + - Made some rc file errors less fatal. + - Added in my patch for getpwent instead of relying on $HOME + (David Lawrence Ramsey). +- winio.c: + edit_add() + - Changed some syntax highlight computations for the sake of COLS. + - Add in the necessary regfree() calls to stop nano from leaking + memory like a sieve when using color syntax highlighting :-) + bottombars(), onekey() + - Cleanups (David Benbennick). +- po/gl.po: + - Galician translation updates (Jacobo Tarrio). +- po/de.po: + - German translation updates (Michael Piefel). +- po/fr.po: + - French translation updates (Jean-Philippe Guérard). +- po/ca.po, po/es.po: + - Catalan and Spanish translation updates (Jordi). +- po/sv.po: + - Swedish translation updates (Christian Rose). +- po/nl.po: + - Dutch translation updates (Guus Sliepen). +- po/it.po: + - Italian translation updates (Marco Colombo). +- po/ru.po, po/uk.po: + - Russian and Ukrainian translation updates (Sergey A. Ribalchenko). +- po/id.po: + - Indonesian translation updates (Tedi Heriyanto). +- po/sv.po: + - Swedish translation updates (Christian Rose). + +GNU nano 1.1.8 - 03/30/2002 +- General + - Type misalignments and mem leaks in renumber_all, do_justify + and do_spell (Rocco & Steven Kneizys). + - New "External Command" code, originally by Dwayne Rightler, + various fixes and changes by Chris, Rocco and David Benbennick. + New function nano.c:open_pipe() and signal handler cancel_fork(), + changes to do_insertfile(), new list extcmd_list, cmd is + ^X after ^R. + - Added separate regex variable (color_regex and colormatches) + so that color syntax and regex search/replace can coexist. + - Added new nano.spec file from Brett , + added because maintaining the spec file is getting to be a large + hassle ;) +- files.c: + check_writable_directory() + - Stat full_path, not path (Steven Kneizys). + open_pipe() + - I18nize the pipe error (DLR). + do_insertfile() + - Handle cancel from ExtCmd properly (David Benbennick). + read_file() + - Abort if we read a file of 0 lines (num_lines == 0), fixes BUG #70. + - Reverse tests to stop segfault on editing a new file of 0 + lines (David Benbennick) + - Change input var to one char instead of array (David Benbennick). + - Move NO_CONVERT check up so chars get read in properly (DLR). +- nano.c: + do_justify() + - More fixes for indented justify (David Benbennick). + do_int_speller() + - Fix zombie processes and spelling buffer issues (Rocco Corsi). + help_init() + - Capitalize Meta altkeys. + - Various fixes and string changes. + main() + - Put NANO_SMALL defines around toggle pointer (noticed by Jordi); + usage() + - Rewritten to encompass systems with and without GETOPT_LONG. + New function print1opt does most of the dirty work, stops + duplication of effort and eases translator's jobs. Also + breaks all the current translations ;-) +- proto.h: + - Missing externs (Rocco). +- rcfile.c: + do_rcfile() + - Reset lineno between system and local .nanorc file. + - Fix errno->strerror(errno) mismatch. + parse_rcfile() + - Don't use i for both for loop and atoi(), fixes lots of + potential crashes, 1st reported by Jean-Philippe Guérard. + rcfile_error() + - Don't print out the file name if we haven't opened the file + yet (lineno == 0). +- search.c: + search_init() + - Fix a missing free (Rocco). + do_gotoline() + - Set placewewant if we actually move to a different line. +- utils.c: + stristr() + - Defined regardless of NANO_SMALL (noticed by Jordi). + nperror() + - New wrapper for perror (David Benbennick). +- winio.c: + do_credits() + - Add Thomas Dickey. + do_cursorpos() + - Make col numbering start from 1 (suggested by Andrew Ho). + update_line(), xpt() + - Add check for 127 (DLR). +- po/sv.po: + - Swedish translation updates (Christian Rose). +- po/de.po: + - German translation updates (Michael Piefel). +- po/id.po: + - Indonesian translation updates (Tedi Heriyanto). +- po/it.po: + - Serious typo. +- po/ca.po, po/es.po: + - Catalan and Spanish translation updates (Jordi). + - Typo (DLR). +- po/fr.po: + - French translation updates (Jean-Philippe Guérard). +- po/gl.po: + - Galician translation updates (Jacobo Tarrio). +- po/uk.po, po/ru.po: + - Russian and Ukrainian translation updates (Sergey A. Ribalchenko). +- po/pl.po: + - Polish translation updates (Wojciech Kotwica). +- po/fr.po: + - French translation updates (Jean-Philippe Guérard). +- po/it.po: + - Italian translation updates (Marco Colombo). +- po/da.po: + - Danish translation updates (Keld Simonsen). + +GNU nano 1.1.7 - 03/05/2002 +- General + - malloc->calloc, etc cleanups (DLR). + - New option, noconvert (-N, --noconvert) to completely stop + the translation of files from DOS or Mac format (DLR). + - New functions check_writable_directory() and safe_tempnam() + to get around the tempnam warning. More improvements (DLR) + Still needs testing. + - Added DOS and Mac format options to write file routine. + Changes to shortcut_init() and do_writeout(). + - Removed stupid static definitions of toggles and shortcut + lists. Many changes to shortcut_init(), toggle_init(), + statusq(), nanogetstr(), main(), and many other places. + - Multibuffer mode now allows multiple empty filenames. + Changes to add_open_files(), removed open_file_dup_search(), + open_file_dup_fix(), etc (DLR). + - New code to handle multiple .save files. Changes to + die_save_file(), new function files.c:get_next_filename() + and utils.c:num_of_digits(). (Dwayne Rightler, DLR & Chris) + - Many malloc() cleanups and files.c tweaks by Steven Kneizys, + new functions utils.c:free_shortcutage() (got to love that + name!) & free_toggles(), and big cleanup program + thanks_for_all_the_fish() (originally + thanks_for_the_memories()). Mods to shortcut_init() by Chris. + - Preliminary quoting support for justify. New arg -Q, + --quotestr, changes to do_justify(), global variable + quotestr(). +- Makefile.am: + - Add SYSCONFDIR to DEFS, so we can have a $SYSCONFDIR/nanorc. + - Change localedir line to 1.0's version. + - Moved m4/ stuff to its own m4/Makefile.am. +- m4/aclocal_inc.m4: + - New macro AM_ACLOCAL_INCLUDE, tells configure.ac where to look + for macros (Gergely Nagy). +- configure.in: + - Renamed to configure.ac. +- configure.ac: + - Moved to autoconf 2.52 (Jeff Bailey). + - Added call to AM_ACLOCAL_INCLUDE. +- files.c: + read_byte() + - Added check for control characters (indicative of a binary + file), set NO_CONVERT if found (fixes by DLR). + do_insertfile() + - Added support for -o in prompt (Steven Kneizys). +- global.c: + - Move openprev and opennext functions to shortcuts, they really + aren't toggles (DLR). +- rcfile.c: + parse_next_regex() + - Allow " symbol to be in regex without leading \ by checking + for *ptr+1 is not the end of the regex. + do_rcfile() + - Parse rcfile in $SYSCONFDIR as well (Dwayne Rightler). +- nano.1: + - Added Noconvert option to man page (DLR). +- nano.c: + justify_format(), do_justify() + - Various fixes for starting blank spaces, spaces after + punctuation, & segfault with quoting strings (David Benbennick). + do_justify() + - Don't continue to justify string if it's indented more + (quoting wise) than the beginning of the justification. + help_init() + - Added message re: having multiple blank buffers (DLR). + main() + - Add 407 as equiv of 26, this seems to be sent when using + ^Z in linux console with keypad() enabled. +- rcfile.c: + - Get rid of unneeded relativechars from rcopts (DLR). +- search.c + do_replace(), findnextstr() + - Fixes for various search issues (Ken Tyler) +- winio.c: + do_cursorpos() + - Rewritten to show col place as well as character place, without + needing an entirely separate flag. + bottombars(), onekey() + - Make bottom list dynamic with screen size (Guus Sliepen & Chris). + - More cleanups w/width of shortcut. +- utils.c: + strcasestr(),revstrcasestr() + - Renamed to stristr and revstristr since strcasestr has not + been confirmed to be detected properly on various Linux + systems. + strstrwrapper() + - NANO_SMALL test was backwards (Ken Tyler). +- winio.c: + strlenpt() + - Changed main function to strnlenpt() for new justify changes, + original function now just a stub. +- nanorc.sample + - Mention unset in the sample nanorc. +- po/ca.po, po/es.po: + - Catalan and Spanish translation updates (Jordi). +- po/sv.po: + - Swedish translation updates (Christian Rose). +- po/fr.po: + - French translation updates (Jean-Philippe Guérard). +- po/nn.po: + - Norwegian nynorsk translation updates (Kjetil Torgrim Homme). +- po/de.po: + - German translation updates (Michael Piefel). +- po/it.po: + - Italian translation updates (Marco Colombo). +- po/cs.po: + - Partial Czech translation updates (Vaclav Haisman). +- po/hu.po: + - Hungarian translation updates, or to be precise, rewrite + (Gergely Nagy). +- po/uk.po, po/ru.po: + - Russian and Ukrainian translation updates (Sergey A. Ribalchenko). +- po/da.po: + - Danish translation updates (Keld Simonsen). +- po/nb.po: + - Norwegian bokmÃ¥l translation updates (Stig E Sandoe). +- po/nl.po: + - Dutch translation updates (Guus Sliepen). +- po/pl.po: + - Polish translation updates (Wojciech Kotwica). + +nano-1.1.6 - 01/25/2002 +- General + - Add Meta-A as alternate keystroke for ^^ for people with + non-US keyboards. + - Add Alt-G (NANO_ALT_GOTO_KEY) as alternate for goto dir in + browser. + - Better partial word checking code. New function + search.c:is_whole_word(), changes to findnextstr(), + and nano.c:do_int_spell_fix() (Rocco Corsi). + - Added multiple-line regex support. Format in .nanorc is + start="regex" end="regex". Cleaned up nanorc:parse_colors(), + added parse_next_regex(), changes to edit_add in winio.c(), + changes to colortype, cleaning up some old cruft. + - Upgrade to gettext 0.10.40, probably broke everything again :) + - Upgraded to and then downgraded from automake 1.5, as there + are severe security implications. +- color.c: + do_colorinit() + - Moved some comments and braces around so color can work + w/slang (DLR). +- global.c: + shorcut_init() + - Replace hard coded ALT_G and ALT_H values in the replace + and goto shortcuts with their macro counterparts NANO_ALT_*_KEY. +- nano.c: + usage() + - Remove extra \n in --keypad description (Jordi). + main() + - Check that alt value is an alpha char before comparing to + val - 32, fixes Alt-R calling doprev instead of replace. + do_char() + - Run edit_refresh() if ENABLE_COLOR is defined so adding + multi-liners will update (e.g. /* in C). + do_int_spell_fix() + - Temporarily unset REVERSE_SEARCH if it's set (Rocco Corsi). + do_suspend() + - Call tcsetattr() to restore the old terminal settings, so + tcsh can use ^C after suspend for example (fixes BUG #68). + do_wrap() + - Move "right" increment to part where new line is created, + should change (fix?) some wrapping problems with autoindent. + version() + - Show --enable-multibuffer independently of --enable-extra being + compiled in (Jordi). +- nano.h: + - Changed color struct slightly, because of previous issue with + applying color painting in order, the "str" portion was + useless. Renamed "val" in colortype to "start", added "end" + for multi-line color strings. +- rcfile.c: + General + - Took silly variables being passed everywhere like lineno and + filename and made them static variables. + - Re-indented. + - Added stdarg.h to includes. + rcfile_error() + - Now automatically prepends the "error in line blah at foo" + message to error messages. + parse_colors() + - Added section for computing "end" section. + parse_next_word() + - Added support for "\ ", in word parsing. +- search.c: + do_search() + - Check position of cursor and return value of findnextstr and + tell user if search string only occurs once (Rocco & Chris). + findnextstr() + - Fix off by one in check for wrap around (Rocco Corsi). +- winio.c: + edit_refresh() + - Rename lines to nlines to fix AIX breakage (reported by + Dennis Cranston, re-reported by arh14@cornell.edu). + edit_add() + - Refuse to honor regex matches of 0 characters when applying + color highlighting, and say so on the statusbar. Otherwise + we go into an infinite loop, the error message should clue + users into the fact that their regex is doing something bad. +- THANKS: + - Oops, correct Eivind's entry. His translation was Norwegian nynorsk, + not bokmÃ¥l as we claimed (Jordi). +- .cvsignore + - Added config.guess config.sub install-sh missing & mkinstalldirs +- po/ca.po, po/es.po: + - Catalan and Spanish translation updates (Jordi). +- po/sv.po: + - Swedish translation update (Christian Rose). +- po/de.po: + - German translation update (Michael Piefel). +- po/fr.po: + - French translation update (Jean-Philippe Guérard). +- po/ru.po, po/uk.po: + - Russian and Ukrainian translation updates (Sergey A. Ribalchenko). +- po/no.po: + - Moved to po/nn.po, which is the correct name for Norwegian nynorsk. +- po/nn.po: + - Norwegian nynorsk translation updates (Kjetil Torgrim Homme). +- po/nb.po: + - New Norwegian bokmÃ¥l translation (Stig E Sandoe ). +- po/da.po: + - Danish translation update (Keld Simonsen). + +nano-1.1.5 - 01/05/2002 +- General + - Better integration of View mode (-v) and multibuffer. + Fixes to new_file(), do_insertfile_void(), shortcut_init() + (David Lawrence Ramsey). + - The keypad handling has changed (again). We now use + the keypad() function by default. New flag -K, --keypad + allows the old behavior for those using the keypad arrow keys + and rxvt-based terminals. + - Updated copyright notices to 2002 (Jordi). +- nano.c: + die() + - Only save files that were modified (David Lawrence Ramsey). + do_cont() + - Run signal_init() after doupdate() so ^Y wont suddenly + start suspending after returning from ^Z suspend in Hurd. + signal_init() + - Unconditionally disable VDSUSP if it exists, stops ^Y + suspending nano on the Hurd. + help_init() + - Typo fixes in help strings (Jordi). + - New variable helplen needed cause currslen is not always + the length we want (bug found by David Lawrence Ramsey). + - Typo in file switch string (found by David Lawrence Ramsey). + main() + - Handle Alt prev/next file keys (,.), as well as normal ones (<>). + - Handle OS-specific insert keys by jump to do_insertkey (David + Lawrence Ramsey). +- files.c: + read_file() + - Make conversion message less confusing (suggested by Jordi). +- rcfile.c: + parse_next_word() + - Get rid of ptr == \n check to abort, screws up option + parsing (bug found by David Lawrence Ramsey) +- winio.c: + update_line() + - set realdata check to >= 1 && <= 31, lack of > 0 check screwed + high ascii characters. + titlebar() + - gettextized a pair of strings. + bottombars() + - Get rid of that annoying reversed line when color is on! :) + edit_add() + - Little fixes to let color highlights not bleed onto the next line. + statusq() + - Initialize "list". +- m4/gettext.m4: + - Back down to 1.1.3 version. +- faq.html: + - Various link updates and other fixes (Aaron S. Hawley). + - Typo fixes (David Lawrence Ramsey). +- AUTHORS + - Add DLR. +- po/sv.po: + - Swedish translation update (Christian Rose). +- po/ru.po, po/uk.po: + - Russian and Ukrainian translations updates (Sergey A. Ribalchenko). +- po/ca.po, po/es.po: + - Catalan and Spanish translations updates (Jordi). +- po/pl.po: + - New Polish, partial translation, by Cezary Sliwa . + - Wojciech Kotwica completed it and is the new + official maintainer. +- po/fr.po: + - French translation update (Michel Robitaille). +- po/gl.po: + - Galician translation update (Jacobo Tarrío). +- po/it.po: + - Italian translation update (Marco Colombo). +- po/de.po: + - German translation update (Michael Piefel). +- po/fr.po: + - French translation update (Jean-Philippe Guérard). + +nano-1.1.4 - 12/11/2001 +- General + - Preliminary syntax highlighting support. New functions + colortoint() and parse_color() in rcfile.c, new code in + edit_add() in winio.c to actually do the highlighting. It's + not even close to pretty yet :P + - Many int/long alignments (David Lawrence Ramsey). +- files.c: + - Fixes for tab completion and screen refresh (David Lawrence + Ramsey). + add_open_file() + - Get rid of unsetting MARK_ISSET because otherwise writing + marked text will automatically unset the marker with + multibuffer enabled. +- global.c: + - Define currshortcut and currslen when either DISABLE_MOUSE + or DISABLE_HELP or DISABLE_BROWSER is not defined (Silvan + Minghetti). +- nano.c: + main() + - Add Esc-[-[IGL] keys for FreeBSD Console (PgUp,PgDn,Insert). + - Added better Hurd support for function keys (Alt-V,U,9,@,F). + signal_init() + - do SIG_IGN for the SIGTSTP sigaction regardless of whether + we have _POSIX_VDISABLE or not (more Hurd fixes) + help_init() + - Typo fixes and additions to the new help texts. + do_curpos() + - Now takes arg for constant updating to always show the cursor + position (David Lawrence Ramsey). + do_wrap() + - Many fixes (David Lawrence Ramsey). + do_spell() + - Dont prompt for replace if we don't change the word in + question (Rocco Corsi). +- po/de.po: + - German translation updates (Karl Eichwalder). +- po/ru.po: + - Russian translation updates (Sergey A. Ribalchenko). +- po/sv.po: + - Swedish translation updates (Christian Rose). +- po/da.po: + - Danish translation updates (Keld Simonse). +- po/es.po: + - Spanish translation updates (Jordi). +- po/fr.po: + - French translation updates (Michel Robitaille). +- m4/gettext.m4: + - diff against mutt 1.2.5's gettext.m4. + +nano-1.1.3 - 10/26/2001 +- General + - Finally wrote function-specific help mode. Changes to + nano.c:help_init() and winio.c:do_help(). Changed + currshortcut and currslen #ifdefs to depend on both + DISABLE_HELP and DISABLE_MOUSE being defined to not + include. Changed all the shortcuts and lengths. + - Fixed null_at to ACTUALLY DO SOMETHING with its arg. Again, + this was causing nasty errors if the call to nrealloc moved + where the data was located. + - Changed header comments to say "version 2" instead of "version + 1" as the COPYING file is actually version 2 of the GPL (bug + noticed by Jordi Mallach). +- cut.c: + do_cut_text() + - Check to see whether marked text is contained within edit + window and if so only do an edit_refresh (variable dontupdate + replaces cuttingpartialline). + do_uncut_text() + - Similar display fixes (David Lawrence Ramsey). +- faq.html + - Removed nano-editor.org FTP site address [deprecated] and added + the GNU one. +- files.c: + - Added status messages for converted DOS and Mac files. + People should know that their file wasnt normally formatted. + load_file() + - Status message when trying to load an already loaded file with multiple + buffers (David Lawrence Ramsey). + read_file() + - Get rid of useless linetemp variable and name num_lines int + (David Lawrence Ramsey). +- nano.c: + - New function do_prev_word, similar to do_next_word. Hard coded as + Alt-space, as next word is hard coded as control-space. Fixed + goofy logic setting x pos to value of last line when hitting the + beginning of first line, prog should simply abort. Added + the #ifdefs around the code in main(). +- nano.h: + - Additional #define, SMALL_TOO to determine how long + MAIN_LIST_LEN is. We need this because of the find matching + bracket code. + main() + - Moved #ifndef NANO_SMALL down past the case 0: line so + control-space doesn't insert a \0 (ack!) +- rcfile.c: + - Fix incorrect number of rc options (David Lawrence Ramsey). +- po/sv.po: + - Updated Swedish translation (Christian Rose). +- po/da.po: + - Updated Danish translation (Keld Simonsen). +- po/es.po: + - Style updates to Spanish translation (Santiago Vila). +- po/ru.po, po/uk.po: + - Updated Russian and Ukrainian translation (Sergey A. Ribalchenko). + +nano-1.1.2 - 10/03/2001 +- General + - Added BUGS #63 & 64. Fixes in search_init() and nanogetstr(), + new flag CLEAR_BACKUPSTRING because there's no easy way to + clear the backupstring without making it global (messy), so we + use a flag instead (just as messy?) + - --enable-tiny now leaves out the Auto Indent code, do you really + need that on a bootdisk? =-) + - New flag -o, --operatingdir, similar to Pico's -o mode. New + function check_operating_dir(), changes to load_file (arg), + open_file_dup_search (arg), new function do_gotopos for -F + (David Lawrence Ramsey). + - Code to read/write dos formatted files. Massive amounts of + new code in read_line and write_file. New cmdline flag + (-D --dos) to automatically write the file in DOS format, + regardless of the original format. + - Mac file writing supported too. Flag -M, --mac. Toggle + Meta-O (MacOS? OS-X? =-) + - New smooth scroll code by Ken Tyler. New flag -S, --smooth, + changes to page_up() and page_down(). Many fixes to paging by + David Lawrence Ramsey. + - Bracket (brace, parens, etc) matching code by Ken Tyler. + New functions do_find_bracket(), changes to findnextstr(), + command is Meta-] (hope you dont mind since I already sold off + Meta-O to the MacOS file code Ken...) Fixes to bracket_msg + by DLR. + - Call do_gotopos from do_alt_spell() to keep position + consistent when invoking alt speller (DLR). + - Readded DISABLE_CURPOS because in certain instances (like + all the "Search Wrapped" lines) the cursor position will + be different yet we don't want the cursor position displayed. + - Take control-space out of -tiny build, unneeded. +- cut.c: + cut_marked_segment() + - Add magic line when cutting a selection including filebot + (discovered by DLR, fixed by DLR & Chris, fixes BUG #66). + do_cut_text() + - Don't recenter the line when cutting one line (DLR) (Bug #65). +- faq.html: + - Notes about the Free Translation Project. + - Debian additions. +- files.c: + do_writeout() + - Expanded strings to not use %s and ?: to determine + write/append string to be nice to translators. + new_file() + - Initialize totsize (DLR). +- nano.c: + main() + - Added var constcheck as a CRC-like check of whether cursor + pos has changed and if so update the pos with -c. + - Many tweaks and changes from numerics to char equivs + (David Lawrence Ramsey). + - Fix the KEY_IC being undefined when using slang. + do_mouse() + - Send 27 when the menu item clicked is an alt key seq... The + lines aren't lined up since the menu width changed though, + this breakage depends on whether the new widths will be kept + or not (FEEDBACK!!) + - Change k based on currslen to allow the new widths in + bottombars(). + do_wrap() + - Fixes for Pico incompatibility in cases 2b and 2c. + (David Lawrence Ramsey). + global_init() + - New arg save_cutbuffer, allows cutbuffer to not be lost when + using multibuffer. +- nano.1: + - Added new features, fixed some typos (Jordi). +- nano.texi: + - Corrected the Mouse Toggle section, noticed by Daniel Bonniot. + - Added many command line options, toggles and other additions + (Jordi). +- rcfile.c: + - NUM_RCOPTS fix (DLR). + - Add tabsize support to rc file (Nathan Heagy). + - Fix incorrect argument in fill and tabsize error message + (Nathan Heagy) +- search.c: + - Changed search prompt to "Search" followed by a list of + bracketed, free-standing modifiers that do not imply a grammar, + and the (to replace) string separately. Hopefully this resolves + the i18n problems that this provoked. + findnextstr() + - Various fixes that need testing (Ken Tyler). +- winio.c: + - Add David Lawrence Ramsey to credits. + bottombars() + - Spread out the menu items, feedback definitely needed on this. + nanogetstr() + - More key fixes (David Lawrence Ramsey) + - Don't be clever and wasteful, just repaint every iteration. +- po/nl.po: + - New Dutch translation, by Guus Sliepen . +- po/ca.po, po/es.po: + - Updated Catalan and Spanish translation (Jordi). +- po/gl.po: + - Updated Galician translation (Jacobo Tarrío). +- po/da.po: + - New Danish translation, by Keld Simonsen . +- po/sv.po: + - Updated Swedish translation (Christian Rose). +- po/it.po: + - Updated Italian translation (Marco Colombo). +- po/fi.po: + - Updated Finnish translation (Pauli Virtanen). + +nano-1.1.1 - 07/28/2001 +- General + - Reverted included gettext from 0.10.38 to 0.10.35 in intl/ dir. + - Added m4/ directory to allow rebuilding using only the internal + version of gettext.m4 (Albert Chin). +- nano.c: + main() + - Change the multibuffer getopt option to 'F' (David Lawrence + Ramsey) + do_mark() + - Temporarily disable cursorpos when enabled to be able to see + the mark (un)set message (Ken Tyler). +- nanorc.sample + - Typo fixes and updates (David Lawrence Ramsey) +- files.c: + new_file() + - Do add_open_files if there aren't any open yet (David Lawrence + Ramsey). + close_open_file() + - Try to open the next file first, then the previous one + (David Lawrence Ramsey). +- global.c: + shortcut_init() + - Rewrote the whereis and replace lists to put CANCEL at the end + of the list, and not include the toggle functions when using + NANO_SMALL. +- nano.h: + - Fix type in INSERTFILE_LIST_LEN. + - Rewrote all the macro definitions to be a little less messy, + for the #ifdefs anyway. +- rcfile.c: + - Update for the multibuffer option (oops) (David Lawrence Ramsey). +- search.c: + - Added #ifdef NANO_SMALLs around the REVERSE_SEARCH code. + search_init() + - add #ifdef NANO_SMALL around toggles code. +- winio.c: + bottombars() + - Fixed an off by one that wasn't letting lines with odd # + shortcuts work in certain cases. + +nano-1.1.0 - 07/15/2001 +- General + - New global variables currshortcut and currslen to support using + the mouse with the shortcuts. Also supports clicking on files + in browser. Added #ifdef DISABLE_MOUSE around this code also. + - Changed mouse disabling code from depending on --enable-tiny + to its own flag, --disable-mouse. The --tiny option defines + this automatically, but now just mouse support can be disabled + if desired. + - File Browser supports the "Goto Directory" + - Added rcfile.c source file. Only includes much of anything when + --enable-nanorc is used. Tons of new funcs, most notably + do_rcfile() called from nano.c:main(). Added much needed + function ncalloc(), will have to go through source code later + and change the appropriate calls which used nmalloc for lack of + an appropriate calloc function *** FIXME *** + - After "Alternate" spell checker is called, cursor is repositioned on + the same line as before ^T was pressed. + - Moved config.h up in all .c files #include list (Albert Chin). + - Added config.guess and config.sub to distribution because, + apparently, newer autoconf/automakes can't live without them. + - Various spelling updates by David Lawrence Ramsey. + - Changed all string allocations to charalloc(), new function + designed to take nmalloc argument but call calloc based on + (char *) size. + - New macro DISABLE_WRAPJUSTIFY to easily check for both wrapping + and justify being disabled. This allows us to compile out the + -r flag if neither are set, and will also allow us to comment + out -W when it is written. + - Allow fill to take a negative value to signify a "from right side" + value. This allows the value to vary with the screen size yet + still be correct. New static value wrap_at to minimize code + impact. Updated man page and info file. + - Allow file appending. New shortcut list nano_insertfile_list (since + insert and write routines can't share shortcut lists anymore), + new args to do_writeout and write_file called append, and of source + code changes to those functions. + - Allow backwards searching. Drastic rewrite of the search prompt + string by Chris. All other code by Ken Tyler. New globals + nano_reverse_msg, new functions revstrstr and revstrcasestr, + many changes to search functions. Not too big a code size + increase! + - Moved extension functions (Case Sensitive, Regexp, and Backwards + Search, Append key in write file function) to Meta keys, as + people are complaining loudly about nano not being control-key + compatible with Pico, which is a Bad Thing (TM). Changes to + shortcut_init, toggle_init, new toggles for backwards and regexp + (and you can now toggle all search options including regexp at + the Search: prompt!) Changes to nanogetstr to enable Meta + keys to be grabbed, changes to onekey to print M-style shortcuts. + - New macro TOGGLE which just toggles, no more silly checking + ISSET and then using SET or UNSET when we want a simple toggle + for a flag. + - Added multiple buffer capability (God help us). New configure + option --enable-multibuffer (-F), changes to do_insertfile(), + do_insertfile_void(), toggle_init(), do_gotoline(), edit_update(), + and write_file(), new functions add_open_file(), + open_file_change_name(), load_open_file(), open_file_dup_search(), + open_file_dup_fix(), open_prevfile(), open_nextfile(), + close_open_file(), get_full_path(), die_save_file(), etc. + (David Lawrence Ramsey). + - Using --enable-extra automatically defines --enable-multibuffer + changes to version() and configure.in. + - Moved to gettext 0.10.38 at the last second, sure to break + something, but at least I can run make distcheck! +- Makefile.am: + - Include ABOUT-NLS and the new THANKS files to the distributed list. +- THANKS: + - Initial, incomplete list of people to thank. + - Added some more people. +- configure.in: + - New option, --enable-nanorc, which allows people to have a .nanorc + initialization file and set options normally used on the command + line, and color later on. + - Added --enable-color option to allow color and syntax highlighting + (stub as of now). +- cut.c: + add_to_cutbuffer() + - Remove useless statements (Rocco). + cut_marked_segment() + - Add bizarre copy of bot node, else *BSD goes ballistic (fixes + BUG #60). + - Added 'destructive' argument. Allows the selected text to be + added to the cutbuffer without changing the contents of the + file. This allows writing selection to separate files. + do_cut_text() + - If the line is empty when using -k and wasn't already added, + create a dummy line and add it to the cutbuffer (fixes bug #61) + - Reset marked_cut if we blow away the cutbuffer. + - Moved the case of current == mark_beginbuf into cut_marked + segment, so do_writeout could call it when writing selection to + file. + do_uncut_text() + - Reset cutbuffer even if we're uncutting marked or cut to end text! +- faq.html: + - Brought the FAQ up to date, many little changes (Jordi). + - Added sections 3.7 and 3.8 for the multibuffer and nanorc support. +- files.c: + do_browser() + - Minor fixes to the processing of SELECT function (Rocco) + - Added the "Goto Directory" code (Rocco) + - Don't shift the size of the file is it's less than 1K. Fixed + files less than 1K being displayed as 0B (Rocco). + - More Picoish keystrokes for the browser, ^P, ^N, etc, for up, + down, etc, and add the consistent ^C to exit (Jim Knoble). + do_writeout() + - New code to allow writing selected text to a separate file. + When this is done, the current state is preserved. + write_file() + - New arg, nonamechange, means whether or not to update the + current filename after writing the file out. + - Increment lineswritten when the very last line isn't null. + Fixes off by one count when writing selection to file. +- global.c: + - Updated some of the lists for the "Goto Directory" code (Rocco) +- move.c: + page_up() + - Rewritten with a loop to make screen updates work when + mark is set (fixes bug #59). + do_home(), do_end() + - Don't keep cutbuffer. +- nano.1: + - Added the missing -r flag (Jordi). +- nano.c: + do_alt_speller() + - Reposition cursor on same line as before ^T was called (Rocco) + ABCD(), main() + - Add Alt-whatever-[a-d] support as well as Alt-whatever-[A-D]. + main() + - Code to silently process "-g" and "-j" (Rocco) + - Added Alt-[-7,8 support for home/end keys (Jeff Teunissen). + signal_init() + - Reorder sigaction calls, use sigfillset() to stop SIGTSTP and + SIGCONT from being interrupted, allows suspending nano + to work more reliably, esp. with mutt, etc. + do_suspend() + - Don't try to play with the handler inside the handler. Just + raise a SIGSTOP. We also now write the "use "fg"" message to + stdout instead of stderr. + - Added _POSIX_VDISABLE macro to fully ignore suspend keystroke. + Eliminates the possibility that nano can be suspended when + it's not supposed to be. Many many many thanks to Jordi and + Tom Lear for helping out finding and fixing this bug! + do_cont() + - Now just does a refresh call instead of playing with the SIGTSTP + handler. +- nano.h: + - Updated the BROWSER_LIST_LEN for the "Goto Directory" code (Rocco) +- proto.h: + - New shortcut list added: gotodir_list (Rocco). +- search.c: + do_gotoline() + - Optimizations, remove "$" goes-to-last-line, less messages (Rocco) + do_replace() + - If we manage to make it in somehow with VIEW_MODE on, abort + nicely (fixes BUG #59). +- utils.c + strcasestr() + - Replaced by mutt's mutt_stristr function, because the thought + of dynamically allocating memory and copying each line in a file + to do a search or replace was causing me to lose sleep. +- winio.c: + actual_x() + - Remove inline from function decl (Albert Chin). +- po/POTFILES.in: + - Added utils.c to the list. +- po/es.po, po/ca.po: + - Updated (Jordi). +- po/gl.po: + - Galician translation by Jacobo Tarrío. +- po/uk.po, po/ru.po: + - New Ukrainian and Russian translations by Sergey A. Ribalchenko + , thanks! +- po/id.po: + - Updated Indonesian translation by Tedi Heriyanto. +- po/it.po + - Updated Italian translation by Marco Colombo. +- po/no.po: + - New Norwegian translation by Eivind Kjørstad . +- po/sv.po: + - New Swedish translation by Christian Rose . + +nano 1.1 tree forked here 04/07/2001 + +nano 1.0.1 - 04/06/2001 +- General: + - added configure option --disable-wrapping. Does what it says, + no wrapping or checks are done. Separate from --enable-tiny, + some may want a bare-bones Pico clone that does wrap text. + Affects configure, nano.c:do_char() and check_wrap() obviously, + version(), and do_char(). +- aclocal.m4: + - Minor patch for intl check (really this time) (Albert Chin) +- faq.html: + - Fixed typo in section 6.1 (discovered by Bob Farmer). +- files.c: + - fix two typos in comments, one in ChangeLog (Matthias Andree) + diralphasort() + - Stop abort on symlinks (Matthias Andree) + - use strcasecmp to sort directory if available, pilot does that + as well (Matthias Andree) + filestat(), do_browse() + - Changed lstat calls to stat, which fixes the browser not + following links to directories. We only use lstat() when + printing the details of the file, and if it is a link, then + check via lstat() for link to a directory. If it is + a directory, display (dir), else use the normal "--". + do_browser() + - Fix broken size suffix off-by-one errors (Matthias Andree) + cwd_tab_completion(), do_browse_from() + - Use PATH_MAX instead of 0 arg to getcwd (Matthias Andree). + - Changed above to use PATH_MAX only when defined on the + system, as the HURD e.g. does not support it. +- intl/Makefile.in: + distclean + - added intl/libintl.h to the rm -f rule, should fix the unresolved + gettext symbols problem (Jordi). + +nano-1.0.0 - 03/22/2001 +- General + - Added void to functions declared as () args, nano.c:do_mark() + and search.c:regexp_cleanup(). (Christian Weisgerber). + - Changed internal variables called "new" to "newnode" to avoid + the "new" C++ reserved word, even though there is likely no way + nano will EVER be compilable with a C++ compiler. (suggested by + Rocco Corsi). +- ca.po, es.po: + - Final tweaks for Nano 1.0. +- cs.po: + - Czech translation from Vaclav Haisman. +- nano.info: + - Added dir entry (Albert Chin). +- winio.c: + statusq() + - Added NANO_BACK_KEY and NANO_FORWARD_KEY cases for left and right. + +1.0-test prerelease - 03/17/2001 +- nano.c: + do_wrap() + - Added case for autoindenting text causing new line (Adam). + - Added SAMELINE case to above. Added checks to cases 1b and + 2b for placement of cursor. +- move.c: + page_down() + - Check for totlines < editwinrows in check for superfluous + edit update (fixed BUG #57). +- search.c: + print_replaced() + - s/occurence/occurrence typos (Jordi). + search_init() + - If using Pico mode and regex and same answer is entered, use + last_search string instead of answer (fixes BUG #56). +- nano.texi: + - Meta-Z correction and grammar in --enable-tiny desc (Neil Parks). + +nano-0.9.99pre3 - 02/19/2001 +- General + GNU compliance issues: + - Reworked shortcut list, put "Get Help" into default list, + removed "Goto Line", aligned "Read File" with "Write Out" and + "Replace" with "Where is" for consistency. + - Added texinfo manual nano.texi. Added texi options to + Makefile.am. +- configure.in: + - Autoconf compatibility fixes (Pavel Roskin) + - Added separate check for resizeterm(). + - ALL_LINGUAS: added hu and ca. +- cut.c: + do_cut_text() + - marked text cut fixes (Rocco) (Fixes bug #54). +- nano.c: + do_delete() + - Added check for current->next == fileptr, as we have a magic + line code again, fixes silliness at the end of the last line + before the magic line (reported by J.A. Neitzel). + do_justify() + - If the keystroke after the justify is not the unjustify key, + blank the statusbar (bug reported by Neil Parks). + main() + - Added ENABLE_NLS check around gettext stuff. +- winio.c: + do_yesno() + - Added localized yes, no and all strings to function and rewrote + handler for the new format. +- de.po: + - Translation updates by Florian König. +- fi.po: + - Translation updates by Pauli Virtanen. +- hu.po: + - Hungarian translation by Horvath Szabolcs. +- id.po: + - Translation updates by Tedi Heriyanto. +- es.po: + - Translation updates and grammatical/typo fixes (Jordi). +- ca.po: + - Catalan translation by Jordi Mallach :) + - Miquel Vidal went over it and corrected + many typos and completed bits that remained untranslated by error. + +nano-0.9.99pre2 - 01/31/2001 +General + - Removed center_x and center_y globals. center_y was + completely unused and center_x was only used a few places, + easily replaced with COLS / 2 (oops, not current_x & y (Rob)). + - Deleted free_node, duplicate of delete_node, and changed all + free_node calls to delete_node. + - Fix for resizing the window in modes other than normal edit mode + Changes to handle_sigwinch(), main(). Fixes bug #52 (Rocco). +- files.c: + write_file() + - Don't free() realname on error, if it needs to be free()d later + it will be (fixes crash on successful write after failed write, + discovered by David Sobon). + username_tab_completion() + - Optimization and removal of useless vars (Rocco). + - Rewritten using getpwent (suggested by Rocco). + - Removed redundant conditional (Rocco). + real_dir_from_tilde() + - Rewritten using getpwent (suggested by Adam, much optimized by + Rocco). +- global.c: + - Don't define toggles global or toggle_init_one if using --tiny. +- nano.c: + do_justify() + - Added restoration of totsize after unjustify command. + usage() + - Add arg to -T help (Rocco). + global_init(), handle_sigwinch() + - Messy loops replaced with memset calls (Rocco). + do_alt_speller() + - Added code to parse multi-word alt_speller strings. + - Fix initialization before fork() (Rocco). +- proto.h: + - Fix do_credits() proto (oops!) +- winio.c: + nanogetstr() + - Sanity check for x overrunning the string buffer len. + +nano 0.9.99pre1 - 01/17/2001 +General + - Changed #ifdefs to check for both DISABLE_TABCOMP and + NANO_SMALL, makes tiny option leave out tab completion, which + should be left out in that circumstance. Saves at least 5k. + - Previous change to #ifdefs DISABLE_TABCOMP and NANO_SMALL rolled + back. (Rocco) + - Various #ifdef & #ifndef cleanups. (Rocco) + - Added message for when keypad goes awry. Added code in main and + function print_numlock_warning() to notify user, and added an + appropriate section in the faq to refer to this brokenness. + - Added macros in nano.h for magic values that might be unclear in + nano.c:global_init(). (Rocco) +- configure.in: + - Fix for _use_keypad check breaking slang support (Christian + Weisgerber). + - Changed to automatically define the 5 DISABLE variables when + NANO_SMALL (enable-tiny) is requested at configure. +- faq.html: + - Added some info on making the binary smaller with the configure + script. + - Added section on keypad bugginess. +- files.c: + real_dir_from_tilde() + - Oops, fix case where buf ="~", silly crash (bug discovered by + Neil Parks). + do_browser() + - Added space and - keys to do page up and down. + cwd_tab_completion(), input_tab() + - Changed bare malloc/calloc calls to nmalloc (found by Rocco). + - Added memset() to matchBuf to ensure sanity (Rocco, Adam). +- nano.c: + ABCD() + - New function, figures out what kbinput to return given + input common to several switch statements, allows us to + support the default Konsole key settings. + main() + - Alternate speller option no longer valid if DISABLE_SPELLER is + active. (Rocco) + - Removed direct calls to usage() (#else) for -k (cut) or -s (speller) + options when these have been disabled. (Rocco) + - Initialized kbinput to get around stupid compiler warning. + nano_small_msg() + - This function has been removed. All references now call + nano_disabled_msg. (Rocco) + version() + - When NANO_SMALL (enable-tiny) is defined, the 5 main DISABLE + variables (SPELLER, HELP, JUSTIFY, BROWSER, TABCOMP) are not + reported as enabled when Nano is called with -V (--version) + command line option. (Rocco) + usage() + - Alternate speller option no longer valid if DISABLE_SPELLER is + active. (Rocco) + window_init(), handle_sigwinch() + - Added check for not having enough LINES to do anything useful, + if so die with an error. (Rocco) + die_too_small() + - Function to print the window too small error message, avoids + repeated string defs and globals. + do_justify() + - Small fix for totsize calculation (Rob) + +- fi.po: + - Update by Pauli Virtanen. + +nano 0.9.25 - 01/07/2001 +General - + - New file browser code. New functions in files.c:do_browser(), + helper functions browser_init(), tail(), striponedir(), + filestat(). New shortcut list browser_list. Some new + strings to translate. Added function do_browse_from(). + - Keypad code has been changed slightly. Now checks for + _use_keypad flag in window to see whether or not to turn + the keypad() back off when finished (taken from aumix). Moved + to winio.c where it should probably be anyway. New configure + check for _use_keypad in window struct. This will have to do + for now. + - Moved keypad() calls for PDCurses from main() to window_init() + so the keypad continues to work after a Meta-X, for example. + Fixed bug #51. +- faq.html: + - Fix typos and small mistakes (Jordi). +- files.c: + username_tab_completion() + - Added the (char *) sizeof when allocating memory for the filename + array (Rocco). + cwd_tab_completion() + - removed skipping . and .. when tabulating matches. + - Added the (char *) sizeof when allocating memory for the filename + array (Rocco). + do_writeout() + - Now takes an argument so the string typed in can be retained + when calling the browser. + do_browser() + - Don't decrement longest by the length of path. Fixes crashes + on entering various dirs (Rocco). + - Don't ungetch() the exit key, unneeded, fixes inserting a file + causes exit code. +- move.c: + page_down() + - Don't do an edit_update when there is only one page of text + (fileage == edittop && filebot == editbot). Fixes Bug #50. +- nano.c: + main() + - Reorder the getopt options to be more or less alphabetical + (suggested by Sven Guckes). +- winio.c: + do_cursorpos() + - Optimizations and cleanups by Rocco Corsi. + do_credits() + - Spell Erik Andersen's name right. + titlebar() + - Now takes an arg, needed for browser function. + do_help() + - Changed way of temporarily bringing up shortcuts at the + bottom in the help screen (actually works). +- utils.c: + mallocstrcpy() + - Takes char pointers now instead of void (makes debugging a + helluva lot easier) + - Duh, don't do anything if src == dest! +- es.po: + - Updates for file browser (Jordi). + +nano 0.9.24 - 12/18/2000 +General + - Added --disable-help option, affects acconfig.h, configure(.in), + winio.c:do_help, nano.c:help_init,help_text_init,version. + - Changed filename to no longer use PATH_MAX, so it can work on the + HURD. Changes in files.c:write_file(), new function + nano.c:clear_filename(), many changed in main(), a few other + places. Please test this! + - Added -b, -e, and -f flags, which we ignore as nano provides + their functionality already. +- cut.c: + do_uncut_text() + - Fix renumbering bug when uncutting marked text at filebot. + - Fix screen not being displayed when we are uncutting marked + text at editbot (Bug discovered by Ken Tyler). + - Fix magic line not getting created when (you guessed it) + uncutting marked text at filebot (Ryan Krebs). +- files.c: + read_file() + - If we encounter an error and insert is not set, run new_file(). + (bug discovered by Ben Roberts). + write_file() + - Change open call flags, basically copy joe's way of doing it so + a more recent version will actually be included in (un)stable. + - Remove useless fstat call. + open_file() + - Added check for S_ISBLK and S_ISCHR, don't open device files! +- nano.c: + renumber() + - Don't stupidly assign the value of prev->lineno if prev == NULL! + main() + - Added code to check for Alt-Alt (27-27) keystrokes and set the + next keystroke as a control sequence. New variable + modify_control_key. Removed #ifdef _POSIX_VDISABLE check + around Control-S,Q,Z handlers because we need it now for + the Alt-Alt-x code. + - Added --view option to getopt_long() call. Bug discovered + by Rocco Corsi. + help_init() + - Fix off by one error that was making ^G help in normal mode and + ^_ in Pico mode not be displayed in the help (bug discovered by + Rocco Corsi). + do_toggle() + - Added fix_editbot() call to fix improper redisplay of edit + window when using nohelp toggle (bug discovered by Rocco Corsi). +- nano.1, nano.1.html: + - Updated man page for -b, -e, -f and expanded explanation for -p. +- winio.c + do_help() + - Force keypad on so F-keys and PageUp/Down will work properly. + Added check for NANO_EXIT_FKEY to loop. +- utils.c: + new_magicline() + - Increment totsize!! We decrement it when we've read a file, + everywhere else it should automatically be incremented + +nano 0.9.23 - 12/08/2000 +General + - Changed --disable-spell to --disable speller. The term is + "speller" for -s, so it should be --disable-speller. +- files.c: + write_file() + - Added tmp check to TMP_OPT section (how appropriate). + - Added new consistency checking code from securityfocus + article by Oliver Friedrichs, and use O_EXCL if tmp == 1. + - We now run check on result of lstat(), not stat(), to be + safer. New variable anyexists, we use still use realexists + later in the program. + - OOPS, line up link/unlink/rename check if conditional with + top if conditional. Option -l has been broken for 9 versions, + no one noticed?! + - Added saving perms at end of link so we can apply them to the + new file if --nofollow is used. +- winio.c: + edit_add() + - Off by one display error (fix by Rocco Corsi). + do_replace_highlight() + - New code to handle being past COLS (Rocco Corsi). + - Moved from search.c, as it's definitely a winio function now =) + update_line() + - More '$' display fixes (Rocco Corsi). + +nano 0.9.22 - 12/02/2000 +- General + - Username tab completion code, and cleaned up existing tabcomp + code. New functions real_dir_from_tide(), append_slash_if_dir(), + username_tab_completion is more than a stub now =-). + - Ignore key sequence 543 & 545, right control and alt keys in + windows. Affects main() and winio.c:nanogetstr(). + - Took out help from spell_list and changed SPELL_LIST_LEN to 1. + Is using a spell checker THAT difficult? =-) + - New function nano_disabled_msg(), to alert that certain + functions have been disabled, similar to nano_tiny feature. +- New configure options: + - Added configure argument --disable-tabcomp. Affects + bottom of files.c and write_file, utils.c:check_wildcard_match() + and winio.c:nanogetstr(). + - New options --enable-extra. New code in nano.c:version() to + print out various options from ./configure, function do_credits(). + - Added --disable-spell option for those who want to just disable + the spell check feature. Affects the spelling functions + do_spell, do_int_speller and do_alt_speller. + - Added --disable-justify to get rid of the justify function. + Affects do_justify() (not surprisingly). +- files.c: + write_file() + - Unsetting modified on temp files bug fixed (Rocco Corsi). + - Okay, if tmp == 1 and the file exists, we abort. + do_insertfile() + - Added call to real_name_from tilde, oops. Added check for + DISABLE_TABCOMP. + read_file() + - Added check for fileptr == NULL. +- global.c: + shortcut_init() + - Now takes an argument as to whether to display the unjustify + shortcut or the normal uncut text one. Needed to accommodate + the kludgey unjustify code. +- nano.1, nano.1.html: + - Updated date on pages because of -p changes. + - Added "NOTES" section, where I explain what nano.save & friends + are. + - Added a copyright notice for the manpage, under the GPL. + - Other minor changes. +- nano.c: + do_justify() + - Wrote unjustify code. Borrows cutbuffer and stores the unjustified + text there, then grabs the next keystroke and, if the unjustify + key, gets rid of the justified text and calls do_uncut_text. + Added macro NANO_UNJUSTIFY_KEY. + do_int_spell* + - Various fixes (Rocco Corsi). + - Changed abort of program to aborting based on value of "edit a + replacement" question, and not caring about the replace loop + return value. That way the user can get out of the replace loop + and continue spell checking (very important to me anyway). + version() + - Took out huge check for the various --disabled macros, + eventually there will be too many to reasonably check for. + nano_small_msg(), nano_disabled_msg() + - Added checks for disabled functions to see whether or not to + declare them. + do_next_word() + - Update the previous line as well as the current one in case we + have moved beyond COLS or back from COLS, patch submitted + by Ryan Krebs. + die() + - Now creates .save file using variable-length strings. Also + calls write_file with tmp == 1, which happens to do exactly what + we want (abort on save file exists and use mode 0600). + handle_sighup() + - Now calls die instead of writing on its own and exiting normally. +- search.c: + do_replace_highlight() + - New function, displays the currently selected word as highlighted + in the spell check. Called from do_replace_loop (Rocco Corsi). + - Added calls to curs_set(0) and (1) to disable the cursor when + highlighting, looks much better. +- es.po: + - Traditional Spanish strings updates. + +nano 0.9.21 - 11/23/2000 +- AUTHORS + - Added Rocco Corsi. +- nano.c: + main() + - Changed check for argc == 1 to argv[optind] == NULL to decide + whether or not to display "New File" in the statusbar. +- search.c: + findnextstr() + - Fix current_x increment bug by using another variable (Rocco Corsi). + search_init() + - Silly typo in our "one simple call" of statusq. Stopped + previous search string from being displayed. + do_replace() + - Copy back the previous value of last_replace into answer if + using PICO_MODE and answer == "" +- winio.c: + do_up() + - Deleted first update_line() call, screws up display when marker is + set. +- nano.1, nano.1.html + - Updated man page for new -p definition. + +nano 0.9.20 - 11/18/2000 +- General + - Ran source through indent -kr again. Make everything pretty. + - Changed behavior of "search" and "replace" prompts to make all + previous values editable. This change was made so that you can + replace with the null string without needing a special key for it. + changed code in search_init(), do_replace(), nanogetstr (see + below). + - Added some missing gettext calls here and there (Jordi). + - Revamped nanogetstr() and calls to it to use variable length + strings. + MANY changes in nanogetstr(), many chances in search.c, new + function mallocstrcpy which is sure to be a programmatic + nightmare, changed last_search, last_replace, answer to + pointers. New function not_found_msg in search.c for displaying + truncated strings in statusbar when the string is not found + (-pedantic fixes by Rocco Corsi). We disable this feature when + using PICO_MODE (-p). + - New spelling code by Rocco Corsi. New functions + do_int_speller, do_alt_speller, changes to do_spell in nano.c, + New functions search_init_globals and do_replace_loop, changes + to search_init(), do_replace, findnextstr, moved last_search and + last_replace back to nano.c (*shrug*). + - New tab completion code. Used check_wildcard_match, input_tab, + cwd_tab_completion, username_tab_completion from busybox, + hacked them a lot, changes to nanogetstr(). nanogetstr() and + statusq() now take an arg for whether or not to allow tab + completion. + - Fixed value being input in statusbar during a search or replace + and CASE_SENSITIVE or the other search is called and the + string being typed in is blown away. Reported by Ken Tyler. + - Changed PICO_MSGS flag to PICO_MODE, changed help strings + accordingly. +- files.c: + do_writeout() + - Change strcpy to answer to mallocstrcpy. +- global.c + - New global replace_list_2, for 2nd half of the replace dialog + ("Replace with:"), has fewer options than first half because + they were inappropriate. + toggle_init() + - Added #ifdef around toggle_regex_msg to get rid of compiler + warning. + +- nano.c: + keypad_on() + - New function, toggles turning the keypad on and off in edit and + bottomwin(). Added call to this in finish(), fixes bug #45. +- search.c + findnextstr() + - New arg for begin_x variable, basically a rewrite that + makes a little more sense and isn't quite as messy (Rocco Corsi). + - Update the line we're checking if not the whole screen, because + it's quite possible the search team could exist somewhere way + to the right on the same line, for example. + replace_abort() + - Add reset of placewewant, stops cursor from jumping when moving + cursor after a replace. + do_replace() + - Added code for Gotoline key after entering the search term. + Fixes bug #46. + - Removed redundant code involving processing replacement string. + Converted if statements to switch statements. + - Optimizations by Rocco Corsi. + - Removed code for deleted shortcuts from in replace_list_2. + do_search() + - Converted if statements to one switch statement. +- winio.c + nanogetstr() + - Added check for 343 in while loop to get rid of getting "locked" + into statusbar" bug in odd $TERMs like iris-ansi. + - Changed check to return -2 on "enter" from answer == "" + to answer == def. + - Fixed fallthrough code because there was no break. Make much + more sense now. + - Added check for ASCII 54[124] when using PDCurses, ignore them + if noticed. + nanoget_repaint() + - New function, removes about 30 lines of duplicate code in + nanogetstr(). + - Black magic code to make $ appear in prompt if we're past + COLS. + blank_edit() + - Removed wrefresh() call, much less choppy now. If there's a need + for a wrefresh after a specific call, let me know. +- es.po: + - Updated translation for 0.9.20 (Jordi). + +nano 0.9.19 - 10/02/2000 +- General + - Added PDCurses support under cygwin, which allows building + a nice stand-alone nano.exe for those poor Windows users. + Extra check in configure.in for initscr() in -lcurses (as + PDcurses has no tgetent), some #ifdef PDCURSES statements + in main(). + - Changed web site and email to new nano-editor.org domain. +- nano.c + - Added (int) casts to remove compile warnings with -Wall. + main() + - Added check for _POSIX_VDISABLE around term variable definition. +- search.c + - Added initializations for last_search and last_replace (Rocco Corsi) + +nano 0.9.18 - 09/18/2000 +- General + - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H, + added check for regex.h in configure.in. +- configure.in: + - Added default case for cross-compiling to get rid of annoying + AC_TRY_RUN warning. +- cut.c: + do_cut_text() + - Don't immediately abort if we're on filebot and the marker is + set (fixes bug #42). +- files.c: + open_file() + - Fix for bug #44 (Rocco Corsi). +- global.c: + shortcut_init() + - Added in FKEYs that for some reason were left out. *boggle* +- nano.c: + main() + - Added check for _POSIX_VDISABLE and use raw mode if not + available, allows nano to work with cygwin. + - Added gettext calls to enable/disable strings (Jordi). + - Revamped a great deal of the F-key and keypad key handling, + because we not longer use keypad() (see below). + - Removed keypad() call because nano was not working with the + keypad in many terms, which is very bad. + - Made insert key call do_insertfile(). + do_toggle() + - Rewrote function to allow NOHELP toggle to work on systems + without a working resizewin(). New function window_init(). + mouse_init() + - Add keypad only if mouse support is on, otherwise mouse doesn't + work. I guess you have to choose between having the mouse and + having a working keypad for the time being (thank god for Meta-M). +- winio.c: + total_refresh() + - Added titlebar() call. + onekey() + - Off by one error fix fix ;-) (Rocco Corsi). + +- search.c: + findnextstr() + - Reset starting at current for search instead of begin. +- es.po: + - Translated new strings and minor updates (Jordi). +- de.po + - Revised translations by floki@bigfoot.com + +nano-0.9.17 - 09/04/2000 +- General + - New shortcuts to toggle certain options that are normally only + flags via Alt/Meta. See Alt-C,E,I,K,M,P,X,Z. New struct called + toggles in nano.h, toggle_init(), toggle_init_one() in global.c + called from shortcut_init(), and do_toggle in nano.c. Also + moved the signal code into a separate function in nano.c called + signal_init(). Moved "struct sigaction act"into a static in + nano.c. + - Changed from Alt-key symbol (@) which is completely nonstandard + to the *nix "Meta" symbol (M-). Changed help_init to show + the M-key usage and the help text to explain keys which generate + Meta. Moved the toggle Meta keystrokes to the first column + instead of the third as they are the primary keystrokes for the + functions. Thanks Mini editor team :-> + - Changed last_search and last_replace vars to statically + allocated (hence nulled) and moved to search.c (Matt Kraai). +- global.c: + toggle_init() + - Changed "No auto wrap" and "No help mode" to "Auto wrap" and + "Help mode". See the change to do_toggle() below. +- nano.c: + do_mouse() + - Patch for handling lines w/tabs and mouse better (Ben Roberts). + do_wrap() + - Made wrapping code less ambitious. + do_toggle() + - Added checks for no help and no wrap mode, and print opposite + enable/disable message. + do_suspend(), do_cont(): + - New functions, handle suspend signal in a Pico-like manner and + work with Meta-Z. +- winio.c: + total_refresh() + - Added edit_refresh() call to actually update the screen if messy. + edit_refresh_clearok() + - New function, does a total update for edit refresh, needed to fix + lack of reversed text on searching with MARK_ISSET. + onekey() + - Off by one error fix (Rocco Corsi). + + update_line() + - Added check for binary data >= 1 and <= 26, and use ^+letter + to display it. Should fix editing text files with binary + data in them. Placing of the cursor seems to be a bit screwed + though... +- search.c: + search_abort() + - Now calls edit_refresh_clearok when MARK_ISSET to handle screen + ugliness bug (reported by Ken Tyler). + findnextstr(): + - Added reset for placewewant (Ben Roberts). + - Fixed check for string that only occurs on the same line failing + (discovered by Ken Tyler). + +nano-0.9.16 - 08/09/2000 +- cut.c: + do_cut_text() + - Fixed getting locked into cutbuffer on cutting first line of file. + - Added check_statblank(). + - Check for fileptr == filebot, if so return, we shouldn't bother + cutting the magic line. + do_uncut_text() + - Added check_statblank(). +- nano.c: + main() + - Changed tabsize long arg to actually accept an argument *sigh*. +- po/Makefile.in.in: + - Patch to handle $DESTDIR (orig by Dan Harnett contributed by + Christian Weisgerber) +- configure.in: + - New (and severally revised =) slang test code (Albert Chin-A-Young) + +nano-0.9.15 - 08/03/2000 +- Changed edit_update call to take arguments TOP, CENTER or BOTTOM. + Affects many many functions. Removed functions edit_update_top and + edit_update_bot. +- Added global variable tabsize, we no longer screw with the curses + library in order to implement -T (suggested by Christian Weisgerber). +- configure.in: + - Finally fixed check for slang to report "no" if not called + with --with-slang or --without-slang +- nano.c: + splice_node() + - New function, abstracts linking in nodes. Fixes bug #36. + null_at() + - New function, nulls a string at a given index and realigns it. + delete_buffer() + - Removed, same as free_filestruct(). + do_backspace() + - Now calls page_up_center instead of page_up (as it should?) + do_enter() + - Fixed typo (?) in check for inptr->next. Caused lots of + grief for editing lines at filebot. + main() + - Removed now useless usertabsize variable (Christian Weisgerber). +- search.c: + replace_abort() + - redundant, now just calls search abort until it does something + different. +- winio.c: + edit_refresh() + - Added check for current line "running" off the screen. + Hopefully this will not cause any recursive lockups. + (Who am I kidding, of course it will!) + - Added check to stop infinite loop calling edit_update. + edit_update() + - Rewritten, hopefully this will remove a lot of the + scrolling the cursor back and forth needlessly. +- move.c: + page_down() + - do an edit_update() at last case. Made function more like + Pico's version, only move down to two lines before editbot. + page_up() + - Made function more like Pico's version, only move down to two + lines after edittop. + +nano-0.9.14 - 07/27/2000 +- nano.h: + - Set CUT_TO_END to a different bit than TEMP_OPT. Fixes bug #32. +- cut.c: + do_cut_text() + - Added check for MARK_ISSET when using CUT_TO_END. Fixes bug #31. + - Simplified check for freeing cutbuffer. Added checks for doing + multiple cuts with -k, now sets marked_cut to 2 for later + processing by do_uncut_text(). + do_uncut_text() + - Added handler for uncutting with -k cuts. +- files.c: + write_file() + - Removed (redundant) check for writing out files with -t. + do_writeout() + - Changed check for filename to filename[0]. Added some code, + overall fixes bug #30 =-) +- nano.c: + do_justify() & do_wrap(): + - totsize-related fixes (Rob) +- de.po + - Revised translations by floki@bigfoot.com + +nano-0.9.13 - 07/23/2000 +- Implemented Pico's -k mode. New flag CUT_TO_END, option (-k, --cut), + affects do_cut_text in cut.c. Not available with SMALL_NANO because it + depends on the marker code which is not available with that setting. +- Changed static temp_opt to flag TEMP_OPT. Fixed bug #29 (using + -t with an unwritable file causes users to get locked into editor). +- move.c + page_down() + - Don't edit_refresh() if the bottom of the file is in the edit + buffer. (Adam) +- nano.c: + main(): + - TABSIZE now set before first call to edit_refresh (Bill Soudan) + - Different ^C kill code (patch by Christian Weisgerber). + die(): + - More intelligent emergency-save filename selection (Rob) + do_spell(): + - Changed exit semantics a bit so that aspell wouldn't get + all screwy (bug discovered by Joshua Jensen. +- files.c: + read_file(): + - Added init of buf variable, hopefully this will stop the + "bleeding" of text seen with mutt and using i18n. + write_file(): + - Added code to check to see if using -l and the file is not + in fact a link. This should fix the behavior where a file + that does not have write permission but could be removed and + rewritten is saved without error. Please test this feature + and give feedback. +- search.c: + search_init(): + - Added " (to replace)" statement to end of search string if + we are doing a replace. Manually converted all the translations + from '%s' to '%s%s' to ensure they still work with the new code. + Also put in the translation for " (replace)" in the .po's. Hope + I didn't step on your toes doing this Jordi. (Chris) + do_search(), do_replace(): + - Removed call to search_abort()/replace_abort() before call to + the opposite function. + - Fixed bug #28. + findnextstr() + - do not center string found if it is currently visible. (Adam) +- fr.po: + - French update by Clement Laforet . +- es.po: + - Updated strings to 0.9.13 (Jordi). + +nano-0.9.12 - 07/07/2000 +- all: + - New regexp search feature by Bill Soudan. New flags USE_REGEXP + and REGEXP_COMPILED, new functions regexp_init, regexp_cleanup + replace_line, replace_regexp in search.c, changes to + search_init() and do_replace() and strstrwrapper(). + - Added _POSIX_VERSION check to regexp code. Better than nothing + for non-POSIX systems... + - Made search functions & keys more like Pico. Added goto line from + search and replace function, changed wording to "No Replace" instead + of "To Search", "To Replace" to simply "Replace", and changed to + Pico's keystroke by default, ^R. Affects search_init(), + do_search() in search.c, globals in nano.h and + shortcut_init() in global.c. + - changed 'sprintf' calls to safer 'snprintf' (Rob) +- cut.c + - further totsize update corrections +- files.c: + - changed do_insertfile to call fix_editbot (Rob) + - Magic Line code in read_file (Rob) +- nano.c: + - Removed dual alt_speller variables, oops! (Rocco Corsi) + - Removed unnecessary do_oldspell function (Rocco Corsi). Added + SMALL_NANO #ifdef around actual spell function. + - Moved page_up() to move.c where is belongs. + - Corrected FIXME in do_enter with explanation. (Rob) + - Fixed FIXME in do_justify, resulted in creation of + fix_editbot [also fixed in do_enter] (winio.c) (Rob) + help_init(): + - Moved newline out of if statement (Rocco Corsi) + do_char(): + - Magic Line related code in do_char (Rob) + do_backspace(), do_delete(): + - Added magic line code here too. + +- de.po: + - Revised translations by floki@bigfoot.com. +- fi.po: + - Finnish translation by pauli.virtanen@saunalahti.fi. +- utils.c: + - Added new_magicline() +- winio.c: + - Added stdlib.h to includes, found by OpenBSD gcc. + - lots of new commenting around display functions + do_yesno(), nanogetstr(): + - Removed now unnecessary raw/cbreak combos. + - Removed gettext calls from "Y(es)", "N(o)", "A(ll)" and "^C", till + we decide if those keybindings should be translated. (Jordi) + clear_bottomwin(): + - Removed wrefresh(edit) call. + edit_update_top(): + - Fixed a bug that caused nano to not update when + current->next == NULL (e.g. paging down to the very bottom of + ABOUT NLS wouldn't work). + fix_editbot: + - Added (should rebuild editbot from a valid edittop) (Rob) + edit_add: + - removal of redundant call to mvwaddnstr + +nano-0.9.11 - 06/20/2000 +- New flag "-T" or "--tabsize" to specify how to display tab widths. + Affects main() in nano.c, strlenpt(), xpt() and actual_x() (et al) in + winio.c, and nano.h. Many hardcoded "8"s have been changed to the + TABSIZE int. Added changes to nano.1 and nano.1.html. +- id.po: + - Indonesian translation by Tedi Heriyanto. +- es.po: + - Updated translation (Jordi Mallach). +- winio.c + - Rewrite of display functions to correct the display problems + we had been seeing. Affects: add_marked_sameline, edit_add, + and many others. (Rob Siemborski) + - totsize fixes (Rob Siemborski) + total_refresh(): + - Cut display_main_list call, as this function is only supposed to + refresh what's already on the screen, not go through the process + of adding the text again. +- cut.c: + - totsize fixes (Rob Siemborski) +- nano.c: + - experimental do_wrap and check_wrap (Adam Rogoyski) + - Removed editwineob, as it was redundant for (editwinrows - 1). + Changed all calls to editwinrows - 1 in nano.c and move.c. + - Removed all functions that were split into other files. + Affects LOTS of funcs. + do_enter(): + - Added reset of placewewant to end. + do_insertfile(): + - Fix display problem when using ctrl-r to load a file + into the buffer (Rob Siemborski) + handle_sigwinch(): + - Added titlebar(), edit_refresh() and display_main_list() calls + because a resize wasn't picking up on possible different width + correctly. +- utils.c: + - Moved nmalloc() and nrealloc() here. +- move.c: + - New file, contains movement functions (like do_home(), do_up(), + do_down(), page_up(), etc...). +- files.c: + - Contains functions for files (read_file, insert_file, + do_writeout(), etc). +- search.c: + - Contains all our searching and related functions, (do_search(), + findnextstr(), do_replace(), do_gotoline()). + +nano-0.9.10 - 06/04/2000 +- es.po: + - Translation updates (Jordi). +- AUTHORS, nano.1.html, TODO, README: + - Documentation and email address updates (Jordi). +- nano.c: + main(): + - Moved Adam's termio code down to after getopt() and before initscr() + to stop people losing their SIGINT character when using args that + exit nano before it runs (--version, --help, etc). + +nano-0.9.9 - 05/31/2000 +- Makefile.am: + - Added proper lines for defining LOCALEDIR. +- configure.in: + - Spelling fixes (Jordi Mallach) + - Removed CFLAGS changes for gcc, reduces portability according to + some, and it certainly doesn't seem to decrease exe size. +- es.po: + - Spanish translation updates (Jordi Mallach) +- POTFILES.in: + - Added global.c file, was screwing up translations (i.e. they + weren't getting done). +- cut.c: + add_to_cutbuffer(): + - Added totsize increment. + - Cut fixes and optimizations (Rob Siemborski). + do_uncut_text(): + - Added totsize increment in several places. +- nano.c: + headers: + - Removed LOCALEDIR define. + do_justify(): + - Added edit_refresh() call (bug discovered by Adam). + page_down_center(): + - Added call to edit_update(current) for last case. Removed + increment of current_y since it's now just wasteful. + do_enter(): + - Added totsize increment. + renumber(), renumber_all(): + - Removed totsize-- and totsize init in renumber_all. + do_mouse(): + - Added edit_refresh() call to show highlight updates. Removed + unnecessary wrefresh(edit). + main(): + - Moved up locale calls so that translated --help messages would + actually get translated. + do_backspace(), do_delete(): + - Added decrement of totsize. + init_help_msg(): + - New function, initializes help text if NANO_SMALL isn't set (fixes + broken i18n). + read_file(): + - malloc call changed to nmalloc (Rob Siemborski). +- winio.c: + total_refresh(): + - Completely rewrote function, not quite so brain-damaged now. + +nano-0.9.8 - 05/18/2000 +- nano.c: + main(): + - Added awesome code that disables the CINTR and CQUIT + character (Adam Rogoyski). Removed raw()/noraw() calls so that + nano gets input in 'normal' mode, which is the Right Way(tm) to + do it. ^S, ^Z and ^Q now work properly as a result, as well as + ^C. New variable term, global variable oldterm to save previous + term settings, and changes to finish() and die(). + - Added extra #ifdefs in getopt code, so that above code and + flag init is run even if GETOPT_LONG is not #defined. + - Added memset line before sigactions. (Adam Rogoyski) + do_suspend(): + Removed function, see above for why. +- winio.c: + update_line(), center_cursor(): + - Removed wrefresh(edit) from bottom of functions. wrefresh + should now only be called once, at the bottom of the main() + loop. +- global.c: + shortcut_init(): + - Removed suspend sc_init call and suspend message because suspend + is no longer needed in the shortcut list to work properly. + +nano-0.9.7 - 05/14/2000 +- nano.c: + do_home(), do_end(): + - Added calls to update_line for the current line, fixes + lack of update (bug discovered by Alberto García). + main(): + - Added SET(FOLLOW_SYMLINKS) before getopt call, fixes not + following symlinks even when -l isn't set, and "no changes" + error when nano is called from crontab -e (Adam Rogoyski). +- cut.c: + do_cut_text(): + - Added edit_update_top to cut when mark is set, fixes lack of + display update (bug discovered by Ken Tyler). + +nano-0.9.6 - 05/08/2000 +- New Italian translation (it.po), by Daniele Medri. +- nano.c: + page_up(), page_down(): + - Added reset of placewewant to 0, as it should be. + do_up(), do_down(): + - Added call to update_line() for line we move from and line we + move to, in order to keep the highlighting correct. + do_wrap(): + - Added var chop, new code to wrap lines more like Pico, mostly. + THIS STILL DEFINITELY NEEDS TO BE REWRITTEN! +- winio.c: + do_help(): + - Added edit_refresh() before exit. + update_cursor(): + - Removed cursor updating which really wasn't needed anyway. + edit_update(): + - Removed yucky code that didn't work, this function now just + computes edittop and editbot and calls edit_refresh() to do the + rest, which removes a lot of duplicate code... + +nano-0.9.5 - 05/01/2000 +- Removed bytes from file struct because it was computationally wasteful. +- cut.c: + do_uncut_text(): + - Added call to edit_refresh(). +- nano.c: + do_backspace(): + - Added reset of editbot when deleting the last line of the file + (bug discovered by Adam). + do_char(): + - Removed call to reset_cursor(). + do_delete(): + - Added similar check as to do_backspace(). + do_enter(): + - Added call to edit_refresh(). + do_left(), right(): + - Added call to update_line(), still redundant but better... + do_up(), do_down(): + - Added refresh calls both for current line and line to which + we are moving. + main(): + - Removed inefficient call to edit_refresh() after every keystroke. + It is now up each function to leave the screen in a good state. +- winio.c: + do_cursorpos() + - Rewritten to not use bytes from filestruct by an incremental sum. + update_line(), reset_cursor(): + - Optimized calls to xplustabs() through a single variable. + - update_line() now takes a new arg, an index into the string + for where to update the line from. Needed for new update + code. +- configure.in: + - Better checks for slang, allows argument to --with-slang. + (Albert Chin-A-Young) + - Removed -Iintl from CFLAGS in gcc check. +- Makefile.am: + - Addition of -Iintl for gettext (Albert Chin-A-Young) + +nano-0.9.4 - 04/25/2000 + - Fixed calls to no_help and changed them to the more consistent + ISSET(NO_HELP). Fixed return val of no_help to be what it should (2, + not 1. Code to temporarily disable NO_HELP when in the + help system. (Adam Rogoyski) +- cut.c: + do_marked_cut(), do_cut(), do_uncut(): + - Commented out unnecessary bits when NANO_SMALL is being used. +- winio.c: + xpt(), strlenpt(), actual_x(): + - Added check for value of data[i] & 0x80, if so do not make + character 2 chars wide (orig. by Chris, 0x80 check by Adam). + edit_refresh(): + - New check for temp == NULL (bad thing), if so go back to the + previous line. New filestruct var hold points to prev line. + Fixes segfault when paging down to the end of a file. +- nano.c: + write_file(): + - Added check for if file exists and is not equal to the current + filename, prompt for overwrite (Adam Rogoyski). + do_down(): + - Removed check for current->next == NULL, now checks return value + of do_down before setting current_x = 0 (discovered by Adam). + do_justify(): + - Fixed segfault when reaching the last line (tried to assign + current->next->data when current->next == NULL) (discovered + by Adam). +- utils.c: + - Removed extra macro defs that are now in nano.h. +- nano.h: + - Changed macro SET() to use |= instead of ^=. Fixes bug in + cut code when cutting more than one line, and cutbuffer gets + blown away when it shouldn't. + +nano-0.9.3 - 04/29/2000 +- cut.c: + do_marked_cut(): + - Fixed off by one error in cut code for marked text. + do_cut_text(): + - Removed check for being on the last line, part of + magic line code. + add_to_cutbuffer(): + - Moved tmp->prev = inptr line to part where cutbuffer != NULL. + - Added inptr->prev = NULL for case where cutbuffer == NULL. +- nano.c: + do_backspace(), do_char(): + - Removed "magic line" code. It was basically causing more bugs + than it was helping for the sake of compatibility. This fixes + at least one known segfault condition. + do_enter(): + - Added setting editbot to new node if the new node is the last + node in the file. + write_file(): + - Changed writing file behavior. Now, if last line of the file + has any data on it, we write a newline on it, else we don't. +- winio.c: + add_marked_sameline(): + - New code that checks for whether the begin and end of the marker + are on different lines. Missing previously. + edit_add(): + - added some more checks for text length. Cleaned up some + mvwaddnstrs that could be written more simply as waddnstrs. + edit_refresh(): + - Removed check for temp == filebot, it is now treated like any other + line. Fixes a bug where selected text on the last line shows + normally. + xpt(): + - Removed an extra computation for tabs variable that was incorrect. + xplustabs(): + - Since xpt now actually works, this func is now just a wrapper for + xpt(current, current_x) +- nano.1, nano.1.html: + - Added -l option to man pages. +- configure.in: + - New option --enable-tiny, #defines NANO_SMALL in config.h. + Disables call to gettext in functions and other i18n stuff in + nano.c, the detailed help mode, the resize functions, and the + justify code which no one ever uses. + - New option --with-slang. Enables slang libraries instead of + ncurses, requires slcurses.h for wrapper functions. (Based + on patches for 0.8.7 by Glenn McGrath). + +nano-0.9.2 - 04/15/2000 +- This release just fixes the serious segfault problem if nano is + invoked any way other than using the absolute path. The bug was + in the new code for checking whether nano is invoked as 'pico'. + +nano-0.9.1 - 04/14/2000 +- Added Pico compatibility for ^T when in search or switch to switch + to the opposite function. Added one to REPLACE_LIST_LEN and + WHEREIS_LIST_LEN in nano.h, new args to sc_init_one in global.c and + new strings that will have to be gettext()ed. New argument 'replacing' + to search_init(). Handlers in do_replace and do_search(). +- New write code, now follows symbolic links instead of replacing them + with the new file. New option (-l, --nofollow) to enable the old + (incorrect, but secure) behavior (Adam Rogoyski). +- nano.c: + do_wrap(): + - Fixed another bug relating to wrapping, and which would cause + a segfault *sigh*. + do_replace(): + - Incremented current_x by the length of the replacement + text inside the main replace loop. Fixes bug #15. + add_marked_sameline(): + - New function, handles marked text when start & end of marker is + on one line, also supports most marked text when cursor > COLS. + main(): + - Code to check if nano is invoked as 'pico', and if so + automatically set pico_msgs (Robert Jones). + +nano-0.9.0 - 04/07/2000 +- nano.1, nano.1.html: Updated man page with my email address and homepage. +- winio.c: + reset_cursor(), update_line(): + - Changed update algorithm for x value to (COLS - 7) multiple when x + value > (COLS - 2). +- edit_refresh(): + - Removed inner loop code, now calls update_line() for each line + in question, MUCH nicer. +- xplustabs(), xpt(): + - Removed redundant increment of tabs when column no % 8 == 0. + - Added check for data[i] < 32, most of such bits are 2 chars wide. +- update_line(): + - Fixed a stupid call to strlenpt with col when we should have + been using actual_col. Ugh. + +nano-0.8.9 - 03/22/2000 +- nano.c: + empty_line(), no_spaces(), justify_format(), do_justify(): + Actually added these (screwup applying patch). + do_justify(): Added call to set_modified(). + +nano-0.8.8 - 03/12/2000 +- Preliminary internationalization support. Many many functions modified + to use gettext (via _() macro). es.po file included. (Jordi Mallach) + New dirs po/ and intl/, changes to configure.in and Automake.am to + support i18n. +- nano.c: + includes: Added sys/param.h and limits.h. (Adam Rogoyski). + statics: Changed some things that were not necessarily static + (Adam Rogoyski). + nrealloc(): New function, similar to nmalloc(). Changed calls from + realloc() to nrealloc (Adam Rogoyski). + empty_line(), no_spaces(), justify_format(), do_justify(): + New functions for justify function (Adam Rogoyski). +- winio.c: + blank_edit(): Added wrefresh call to edit so that screen updates (like + on ^L) actually work. + xplustabs(), xpt(), strlenpt(): Fixed off-by-one buglets (Adam Rogoyski). + +nano-0.8.7 - 03/01/2000 +- main.c: + do_wrap(): Better fix for segfaults, and fix for lines being wrapped + to a single character on one line when no good place to + break the line exists, and for wrapping lines longer than + COLS. +- nano.1.html: + Html version of man page, now included in dist. For + the benefit of nano packages in Linux distributions. + +nano-0.8.6 - 02/24/2000 +- global.c: + shortcut_init(): + Added shortcuts for goto_line and do_replace when using + pico_msgs. Oops. +- nano.c: + statics: Changed fill back to 0 from 71 by default (Adam Rogoyski). + do_wrap(): Added check for backing up past tabs, which we shouldn't do. + Removed check for backing up past spaces first. + main(): Added for loop to check for alt keys instead of hard list. + do_enter(): Fix for bug #14, added call to reset_cursor and messed + up do_char quite a bit. + version(): Added time and date stamp for compile on version message. + Added mail and web page info. +- README: Updated mailing list info. + +nano-0.8.5 - 02/18/2000 +- nano.c: + main(): Finally fixed tilde being input on page up/down keys in + certain terminal types. Fix was input 26->91->5[34] check + for 126, if so make the kbinput PAGE UP/DOWN, else unget + the keystroke and continue. Added #include for + ioctl call. + handle_hup(): + Handler for hangup signal. Belated include of patch from + Tim Sherwood. +- winio.c: + edit_refresh(): + Temporary fix for selecting text when temp == current. + edit_refresh() is now unmanageably complex, and must be + revamped. + check_statblank(): + Added check for constupdate, makes things less choppy + (Adam Rogoyski) + +nano-0.8.4 - 02/11/2000 +- Moved global variables that were only (or mostly) used in one file into + its proper file as a static. Affects cut.c, nano.c, global.c (Andy Kahn). +- global.c: + shortcut_init(): + Removed redundant NANO_CONTROL_H from backspace shortcut, + added char 127 which should have been there. +- nano.c: + main(): Fix for loops looping until MAIN_LEN, added -1 to stop + segfaults (Adam Rogoyski). +- Makefile.am: Added all source filenames (Adam Rogoyski). +- nano.1: Fixed mail addressed and added mailing list address. +- README: Updated my email address and the nano web page. + +nano-0.8.3 - 02/08/2000 +- New Pico mode (-p, --pico), toggles (more) compatibility with the + Pico messages displayed in the shortcut list. Note that there are still + small differences in this mode. +- nano.h: New shortcut struct format, for the benefit of i18n and + our help menu. Removed shortcut message macros, they are + now all in shortcut_init in global.c. +- nano.c: + do_wrap(): Removed resetting of current_x when we are in fact + wrapping to the next line, fixes a bug in -i mode. + do_enter(): + Rewrote the autoindent mode code to be a lot less pretty, + but a lot more magical. + main(): + Removed case for ignoring char 126 (~). That's kind of + important, we'll have to fix handling that sequence when + paging up/down on a terminal some other way... Revamped + main switch loop in much snazzier fashion based on the + shortcut list. +- winio.c: + New function display_main_list. Affects all functions + that used to call bottombars() with main_list. Added + because we now only call bottombars with the macro + MAIN_VISIBLE instead of MAIN_LIST_LEN, because of the + changes to the main_list shortcut list (see global.c below). + New function do_help, our preliminary dynamic help system. +- Many many funcs: + Changed from int to void to allow one uniform type to call + from the shortcut struct. Also a few functions that do + not simple have void argument have new functions called + funcname_void(void) to be called from the shortcut list. + do_cut_text and do_uncut_text were changed to void + arguments because they were never called with a filestruct + other than *current anyway. +- global.c: + Shortcut list main_list was expanded to cover all + shortcuts that could be caught in the main loop. + Consequently there is a new macro MAIN_VISIBLE which tells + how many items in the main list to actually show. + +nano-0.8.2 - 02/02/2000 +- Added initial mouse (-m, --mouse) support. New global variable + use_mouse. (Adam Rogoyski) + +- nano.c: Set initial value of fill to COLS - 8 rather than just 72 + regardless. (Adam Rogoyski). + do_delete(): + Deleted call to do_backspace() when on the end of a line, + because it won't update the line properly. + do_backspace(): + Removed unnecessary pointer manipulation that was being + handled by unlink_node(). + open_file(): + Added check for trying to open a directory (currently we + segfault on this). Bug pointed out by Chad Ziccardi. + +nano-0.8.1 - 01/28/2000 +- Implemented Pico's -r (fill) mode, command line flag -r or --fill. New + global variable fill, affects check_wrap(), do_wrap(), main(), usage(), + global.c and proto.h. +- nano.c: +write_file(): Added (incredibly) necessary check for EPERM when + link() fails. This allows us to actually save + files via rename() on filesystems that dont + support hard links (AIEEEEEE). +do_goto(): + Fixed a stupid mistake where we were calling + bottombars() with replace_list instead of goto_list. +- nano.h: + New char *help in shortcut structure for help + feature. Added NANO_*_MSG and NANO_*_HELP #defines + for help function and i18n. +- global.c: + New functions shortcut_init (called in nano.c) and + sc_init_one() to initialize the shortcuts without + using {}s (for i18n). + +nano-0.8.0 - 01/25/2000 +- View flag (-v, --view) implemented. Global variable view_mode, affects + main loop of nano.c and new_file(). (me) +- nano.c: + split checks for TERMIOS_H and TERMIO_H up so we + can (theoretically) include them both, which is good. +handle_sigwinch(): + Added check for ncurses.h. (Andy Kahn) +do_spell(): + We now only try ispell because we don't as of yet + handle the 'spell' program the right way, now that + I finally know what the right way is =-). Added + call to edit_update(fileage) to stop segfaults. +global_init(): + Added initialization of edit* filestruct pointers + to stop segfaults on spell check. +usage(): + Check for getopt_long, and if no leave out the + GNU options everyone seems to love so much (Andy Kahn) +main(): + Added checks for getopt_long (Andy Kahn) + We ignore character 126 because it gets put into + the buffer when we page up/down on a vt terminal. +write_file(): + Fixes for umask (Adam Rogoyski). Renamed tmpfile + variable to tmp. Documented the tmp option + better in the function comments. Fixed my + stupidly commented out check for tmp on setting + umask which I really like => +- nano.h: + Made desc variable in shortcut struct a pointer + instead of a fixed-length string. +- utils.c: + Fixed check for config.h before nano.h. +- configure.in: + New checks for getopt_long, getopt.h, removed + CFLAGS and LDFLAGS changes. Gonna have to run + strip manually now =-) (Andy Kahn) + Added check for HAVE_WRESIZE, new file acconfig.h + (me). + +nano-0.7.9 - 01/24/2000 +- New autoindent feature. Command flag 'i' or '--autoindent'. New + function do_char() to clean up character output, global + variable autoindent in global.c. (Graham Mainwaring) +- New flag 't' or '--tempfile', like Pico's -t mode, automatically saves + files on exit without prompting. Affects do_writeout(). Also + do_writeout() now takes a parameter for if exiting. + Global variable temp_opt in global.c (Graham Mainwaring) +- Preliminary spell program support. Added command flag '-s' or + '--speller' for alternative speller command. Added function do_spell() + and exit_spell() to nano.c. New global variable alt_speller. +- nano.c: + main(): We now ignore input of decimal 410 because these get entered + when we resize the screen. Sorted options in getopt() + switch statement. + usage(): Sorted options and changed tabs to make room for -s option. + write_file(): Now takes a second parameter 'tmpfile', uses mask 0600 and + doesn't print the number of lines written on the statusbar. + global_init(): + Added more initializations to globals to support do_spell(). + +nano-0.7.8 - 01/23/2000 +- Stubbed justify function. Affects main() in nano.c and nano.h defines. +- Added Fkey equivalents for Pico compatibility. Affects nano.h defines + and main() in nano.c +- Removed redundant reset_cursor() calls from the blank() routines. +- nano.c: + main(): Fixed typo in main while loop for NANO_ALT_REPLACE_KEY. + Removed check for isprint() characters in main while loop + for people with odd character sets *shrug*. Added some X + window F-key combos. + read_line(): New function, consolidates of most of the special + sections of the file reading code. (Rob Siemborski) + do_replace(): Many scattered fixes. (Rob Siemborski) + write_file(): Added check for empty filename. +- winio.c: + nanogetstr(): Fixes for deleting at places other than the end of the + buffer, cut support. (Adam Rogoyski) + blank_edit(): New function, blanks edit buffer. Added call to it in + total_refresh(). +- configure: Checks for glib if snprintf or vsnprintf aren't available + (Andy Kahn). Changed warning message when no termcap lib + is found. + +nano-0.7.7 - 01/19/2000 +- Option '-v' for version moved to '-V', because -v is Pico's "read only" + mode (affects getopt() in main() and usage() function in nano.c +- New flag -c, always show cursor position. Affects main() in nano.c and + statusbar() in winio.c +- Option '-x' doesn't show help window at the bottom of the editor. + New variable no_help in nano.h and proto.h, affects main(), usage(), + and global_init() in nano.c, blank_bottombars(), clear_bottomwin(), + bottombars(), and do_yesno() in winio.c (I had to apply this patch by + hand =P) (Adam Rogoyski) +- nano.c: + handle_sigwinch(): New function (Adam Rogoyski), handles resizing. + page_up(), page_down(): + - New functions. We now set the cursor at the top right corner, + not at the center line, and page up and down a full screen + rather than a half screen. Original functions renamed to + page_up_center() and page_down_center(). + main(): + - Added check for keystroke key sequence 407 or NANO_CONTROL_Z + in main while loop because suspend mode was broken. This should + fix it, at least for now. + - Added long option support (By popular harassment ;-) - Added + #include for getopt.h, changed getopt() to getopt_long(). + Options added so far: --version (-V), --nowrap (-w), --suspend + (-z), --help (-h), --nohelp (-x). + - Rewrote signal statements (Adam Rogoyski) + +nano 0.7.6 - 01/15/2000 +- New ChangeLog format +- nano.c: + main(): Bound CONTROL_H to backspace (oops) + Added more Alt-[-key combinations, for page up & down. + read_bytes(): New function (Adam Rogoyski) + read_file(): Optimizations - malloc()s *buf a little at a time rather + than one huge buffer, and replaced the strcat at the end + with an index variable. Added call to read_bytes(). + do_next_word(): New function, binding is control-space (0) (me) + +- winio.c: + bottombars(): Fixed non-expanding shortcut keys at bottom of screen. + (formula is extra space needed = COLS / 6 - 13). + actual_x() & strlenpt(): + Added bug#9 fix - when tabs % 8 == 0, we should only + increment tabs by 1. + titlebar(): Fixed overrun in titlebar on very long filenames. + +0.7.5 Pico 'last line' feature added (Rob Siemborski & me). Eliminated + writing a newline at EOF. do_cursorpos and do_replace are now not + directly bound to signals but picked up as their control sequences + in raw mode. Bug fix in do_backspace. Fixed bug #9 (woohoo!) +0.7.4 Optimized (obfuscated?) edit_refresh. Malloc() calls checked for + available memory, align bug fixed (Big Gaute). + +--- As of version 0.7.4 TIP is renamed to nano. + +0.7.3 Fixed a double blank_statusbar() when jumping to first and last + lines. Took out unnecessary updates in load_file. Bug fix in + do_left. Missing updates to totlines, fixed bug #7 (last line not + having a newline at the end doesn't get read, bugfix in do_replace + with replace all, more/better comments (Robert Siemborski) +0.7.2 Our first patch accepted into the source! configure fixes + and optimizations (Erik Anderson). Added missing stdarg.h to winio.c. + Bug fix in update_line for editing long lines. Fixed arguments + being put into the filename when none is specified. Preliminary + +line command argument function. +0.7.1 configure tweak for better FreeBSD support. Removed refresh() from + edit_refresh to stop cursor "jumping" during screen updates. This + will probably cause a bug or two. Replace is now Alt-R (@R) and + Goto line is Alt-G (@G), but they have control key aliases of ^\ and + ^_ respectively. Made Control-F,B,N,P work like they do in Pico. + Control-G will become the Help key, but for now is stubbed out. +0.7.0 Fixed missing stdlib.h from cut.c. Fixed a few message bugs in + findnextstr. Bound Control-D to Delete. Refixed segfault on zero + length file. Added Esc-[-A,B,C,D cursor key sequences. +0.6.9 Preliminary cursor position function. Split up tip.c more, made + new files cut.c and winio.c. Fixed a bug in cut_marked_segment + that was leaving out a character. +0.6.8 By request, optchr in main() is now an int. Removed unneeded + globals. Bound functions for next/prev page, and wrote functions + do_home and do_end. +0.6.7 Bugfix in do_uncut_text for totlines. Broke up open_file and + created read_file. Implemented Insert File. Fixes in tipgetstr + for erroneous keystrokes. Added leave_cursor arg to do_yesno(). +0.6.6 Fixes in do_search(), do_replace(), do_writeout, and do_exit() for + aborted searches and more Pico-compatible messages. statusq() now + returns -2 on a blank entry instead of -1. Bug fix in actual_x(). +0.6.5 More BSD compatibility. Fixed two bugs in do_uncut_text + regarding buffers with filebot in them. Fixins in do_backspace + and do_enter. Removed unused variables. Removed strip_newline. +0.6.4 Took out the awful newlines from each string buffers. This will + certainly cause more bugs. Fixes in do_exit(). Better empty file + handling (I hope). +0.6.3 Implemented ^E. Removed now unneeded wrapline from filestruct. + do_enter() rewritten. +0.6.2 Better default file permissions. Complete rewrite of do_wrap(). + Better handling of editing with cursor near COLS - 1. +0.6.1 Starting to implement wrapping toggle. Fix for unhandled control + codes being entered into the buffer. Bug fix in actual_x; more + > COLS - 1 functionality, especially on lines with TABs. Fixed being + locked into cutbuffer when cutting more than one marked screen of + text. +0.6.0 We have TABs!!! To do this, placewewant is now set to the actual + width on the screen we want to be, not an index of current->data. + New functions xplustabs and actual_x convert the actual place + the cursor should be on the screen to and from the place in the + string. +0.5.5 Changed do_right to test do_down before setting current_x to 0, + eliminating the "looping" on the last line when holding the right + arrow. Preliminary support for longer than COLS - 1 lines. + Wrote do_delete. +0.5.4 Fixed a bug in total_update that wasn't repainting the screen + properly. tipgetstr is much more messy but text is now more + editable ;) Fixed crash on entering a new file, hopefully. Awful + stub for tab handling, only in do_right() to save me some sanity. +0.5.3 Added check for malloc.h. Implementing uncut from marker slowly. + Fixed a few bugs in do_uncut when not uncutting from marked text. + I would not trust your data with the mark code right now, but then + we're not at version 1.0 yet so dont trust anything ;) +0.5.2 Added reset_cursor() before end of update_line so cursor doesn't + jump after each keystroke entered. Select text stubbed. Fixed + a bug in total_refresh(). Setting a mark will highlight properly, + but does not actually affect what gets put in the cutbuffer (yet). +0.5.1 Writing a file out causes modified to be set back to 0. Good. + Set_modified function written. Cut and uncut text now set + modified when called. +0.5.0 Half way there! Implemented write out, save function seems + stable. Changed statusbar blank routing to not refresh, a separate + program calls it and then refreshes. Made the program not clear + the screen on exit, just the bottom two lines (like Pico). +0.4.2 Implemented replace all in replace function. Crude exit function + (asks yes or no if modified but does not write to file). +0.4.1 Implementing search & replace. Fixed crash on deleting at top of + edit buffer. Implemented "timeout" of statusbar messages. + Implemented ^A and ^E (beginning and end of line). +0.4.0 Split code into global.c and proto.h to allow for better multiple + file handling. Added #defines for the majority of the shortcut + keys in tip.h for easy modification. +0.3.1 Write edit_refresh which doesn't move the screen around, just + updates what's there already. do_wrap() and do_enter() added. +0.3.0 Preliminary cutbuffer (cut and uncut) support. +0.2.7 Check for Modification added. do_search() works. +0.2.5 Rewrite of file data struct. +0.2 Read in data to buffer, bound keystrokes to stub functions, + initial cursor movement on screen. Initial autoconf support. +0.1 Initial program setup w/ncurses + +$Id: ChangeLog.pre-2.1 4199 2007-12-17 23:05:11Z dolorous $ diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..7d1c323 --- /dev/null +++ b/INSTALL @@ -0,0 +1,365 @@ +Installation Instructions +************************* + +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, +2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. This file is offered as-is, +without warranty of any kind. + +Basic Installation +================== + + Briefly, the shell commands `./configure; make; make install' should +configure, build, and install this package. The following +more-detailed instructions are generic; see the `README' file for +instructions specific to this package. Some packages provide this +`INSTALL' file but do not implement all of the features documented +below. The lack of an optional feature in a given package is not +necessarily a bug. More recommendations for GNU packages can be found +in *note Makefile Conventions: (standards)Makefile Conventions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, and a +file `config.log' containing compiler output (useful mainly for +debugging `configure'). + + It can also use an optional file (typically called `config.cache' +and enabled with `--cache-file=config.cache' or simply `-C') that saves +the results of its tests to speed up reconfiguring. Caching is +disabled by default to prevent problems with accidental use of stale +cache files. + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If you are using the cache, and at +some point `config.cache' contains results you don't want to keep, you +may remove or edit it. + + The file `configure.ac' (or `configure.in') is used to create +`configure' by a program called `autoconf'. You need `configure.ac' if +you want to change it or regenerate `configure' using a newer version +of `autoconf'. + + The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. + + Running `configure' might take a while. While running, it prints + some messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package, generally using the just-built uninstalled binaries. + + 4. Type `make install' to install the programs and any data files and + documentation. When installing into a prefix owned by root, it is + recommended that the package be configured and built as a regular + user, and only the `make install' phase executed with root + privileges. + + 5. Optionally, type `make installcheck' to repeat any self-tests, but + this time using the binaries in their final installed location. + This target does not install anything. Running this target as a + regular user, particularly if the prior `make install' required + root privileges, verifies that the installation completed + correctly. + + 6. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + + 7. Often, you can also type `make uninstall' to remove the installed + files again. In practice, not all packages have tested that + uninstallation works correctly, even though it is required by the + GNU Coding Standards. + + 8. Some packages, particularly those that use Automake, provide `make + distcheck', which can by used by developers to test that all other + targets like `make install' and `make uninstall' work correctly. + This target is generally not run by end users. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. Run `./configure --help' +for details on some of the pertinent environment variables. + + You can give `configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here +is an example: + + ./configure CC=c99 CFLAGS=-g LIBS=-lposix + + *Note Defining Variables::, for more details. + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you can use GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. This +is known as a "VPATH" build. + + With a non-GNU `make', it is safer to compile the package for one +architecture at a time in the source code directory. After you have +installed the package for one architecture, use `make distclean' before +reconfiguring for another architecture. + + On MacOS X 10.5 and later systems, you can create libraries and +executables that work on multiple system types--known as "fat" or +"universal" binaries--by specifying multiple `-arch' options to the +compiler but only a single `-arch' option to the preprocessor. Like +this: + + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CPP="gcc -E" CXXCPP="g++ -E" + + This is not guaranteed to produce working output in all cases, you +may have to build one architecture at a time and combine the results +using the `lipo' tool if you have problems. + +Installation Names +================== + + By default, `make install' installs the package's commands under +`/usr/local/bin', include files under `/usr/local/include', etc. You +can specify an installation prefix other than `/usr/local' by giving +`configure' the option `--prefix=PREFIX', where PREFIX must be an +absolute file name. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +pass the option `--exec-prefix=PREFIX' to `configure', the package uses +PREFIX as the prefix for installing programs and libraries. +Documentation and other data files still use the regular prefix. + + In addition, if you use an unusual directory layout you can give +options like `--bindir=DIR' to specify different values for particular +kinds of files. Run `configure --help' for a list of the directories +you can set and what kinds of files go in them. In general, the +default for these options is expressed in terms of `${prefix}', so that +specifying just `--prefix' will affect all of the other directory +specifications that were not explicitly provided. + + The most portable way to affect installation locations is to pass the +correct locations to `configure'; however, many packages provide one or +both of the following shortcuts of passing variable assignments to the +`make install' command line to change installation locations without +having to reconfigure or recompile. + + The first method involves providing an override variable for each +affected directory. For example, `make install +prefix=/alternate/directory' will choose an alternate location for all +directory configuration variables that were expressed in terms of +`${prefix}'. Any directories that were specified during `configure', +but not in terms of `${prefix}', must each be overridden at install +time for the entire installation to be relocated. The approach of +makefile variable overrides for each directory variable is required by +the GNU Coding Standards, and ideally causes no recompilation. +However, some platforms have known limitations with the semantics of +shared libraries that end up requiring recompilation when using this +method, particularly noticeable in packages that use GNU Libtool. + + The second method involves providing the `DESTDIR' variable. For +example, `make install DESTDIR=/alternate/directory' will prepend +`/alternate/directory' before all installation names. The approach of +`DESTDIR' overrides is not required by the GNU Coding Standards, and +does not work on platforms that have drive letters. On the other hand, +it does better at avoiding recompilation issues, and works well even +when some directory options were not specified in terms of `${prefix}' +at `configure' time. + +Optional Features +================= + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + + Some packages offer the ability to configure how verbose the +execution of `make' will be. For these packages, running `./configure +--enable-silent-rules' sets the default to minimal output, which can be +overridden with `make V=1'; while running `./configure +--disable-silent-rules' sets the default to verbose, which can be +overridden with `make V=0'. + +Particular systems +================== + + On HP-UX, the default C compiler is not ANSI C compatible. If GNU +CC is not installed, it is recommended to use the following options in +order to use an ANSI C compiler: + + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" + +and if that doesn't work, install pre-built binaries of GCC for HP-UX. + + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot +parse its `' header file. The option `-nodtk' can be used as +a workaround. If GNU CC is not installed, it is therefore recommended +to try + + ./configure CC="cc" + +and if that doesn't work, try + + ./configure CC="cc -nodtk" + + On Solaris, don't put `/usr/ucb' early in your `PATH'. This +directory contains several dysfunctional programs; working variants of +these programs are available in `/usr/bin'. So, if you need `/usr/ucb' +in your `PATH', put it _after_ `/usr/bin'. + + On Haiku, software installed for all users goes in `/boot/common', +not `/usr/local'. It is recommended to use the following options: + + ./configure --prefix=/boot/common + +Specifying the System Type +========================== + + There may be some features `configure' cannot figure out +automatically, but needs to determine by the type of machine the package +will run on. Usually, assuming the package is built to be run on the +_same_ architectures, `configure' can figure that out, but if it prints +a message saying it cannot guess the machine type, give it the +`--build=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name which has the form: + + CPU-COMPANY-SYSTEM + +where SYSTEM can have one of these forms: + + OS + KERNEL-OS + + See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the machine type. + + If you are _building_ compiler tools for cross-compiling, you should +use the option `--target=TYPE' to select the type of system they will +produce code for. + + If you want to _use_ a cross compiler, that generates code for a +platform different from the build platform, you should specify the +"host" platform (i.e., that on which the generated programs will +eventually be run) with `--host=TYPE'. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Defining Variables +================== + + Variables not defined in a site shell script can be set in the +environment passed to `configure'. However, some packages may run +configure again during the build, and the customized values of these +variables may be lost. In order to avoid this problem, you should set +them in the `configure' command line, using `VAR=value'. For example: + + ./configure CC=/usr/local2/bin/gcc + +causes the specified `gcc' to be used as the C compiler (unless it is +overridden in the site shell script). + +Unfortunately, this technique does not work for `CONFIG_SHELL' due to +an Autoconf bug. Until the bug is fixed you can use this workaround: + + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash + +`configure' Invocation +====================== + + `configure' recognizes the following options to control how it +operates. + +`--help' +`-h' + Print a summary of all of the options to `configure', and exit. + +`--help=short' +`--help=recursive' + Print a summary of the options unique to this package's + `configure', and exit. The `short' variant lists options used + only in the top level, while the `recursive' variant lists options + also present in any nested packages. + +`--version' +`-V' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`--cache-file=FILE' + Enable the cache: use and save the results of the tests in FILE, + traditionally `config.cache'. FILE defaults to `/dev/null' to + disable caching. + +`--config-cache' +`-C' + Alias for `--cache-file=config.cache'. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. To + suppress all normal output, redirect it to `/dev/null' (any error + messages will still be shown). + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--prefix=DIR' + Use DIR as the installation prefix. *note Installation Names:: + for more details, including other options available for fine-tuning + the installation locations. + +`--no-create' +`-n' + Run the configure checks, but stop before creating any output + files. + +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. + diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..9f696c7 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,11 @@ +## $Id: Makefile.am 4227 2008-03-15 23:14:34Z astyanax $ +AUTOMAKE_OPTIONS = gnu no-dependencies + +SUBDIRS = doc m4 po src + +EXTRA_DIST = ABOUT-NLS AUTHORS BUGS COPYING COPYING.DOC ChangeLog \ + ChangeLog.pre-2.1 INSTALL NEWS README README.SVN \ + THANKS TODO UPGRADE config.rpath install-sh missing \ + mkinstalldirs nano.spec + +ACLOCAL_AMFLAGS = -I m4 diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..275e550 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,729 @@ +# Makefile.in generated by automake 1.11.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +target_triplet = @target@ +subdir = . +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in $(srcdir)/config.h.in \ + $(srcdir)/nano.spec.in $(top_srcdir)/configure ABOUT-NLS \ + AUTHORS COPYING COPYING.DOC ChangeLog INSTALL NEWS THANKS TODO \ + config.guess config.rpath config.sub depcomp install-sh \ + missing mkinstalldirs +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/ac_define_dir.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glib-2.0.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/isc-posix.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/progtest.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = config.h +CONFIG_CLEAN_FILES = nano.spec +CONFIG_CLEAN_VPATH_FILES = +depcomp = +am__depfiles_maybe = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir dist dist-all distcheck +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + { test ! -d "$(distdir)" \ + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr "$(distdir)"; }; } +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CURSES_LIB = @CURSES_LIB@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLLIBS = @INTLLIBS@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKGDATADIR = @PKGDATADIR@ +PKG_CONFIG = @PKG_CONFIG@ +POSUB = @POSUB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target = @target@ +target_alias = @target_alias@ +target_cpu = @target_cpu@ +target_os = @target_os@ +target_vendor = @target_vendor@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AUTOMAKE_OPTIONS = gnu no-dependencies +SUBDIRS = doc m4 po src +EXTRA_DIST = ABOUT-NLS AUTHORS BUGS COPYING COPYING.DOC ChangeLog \ + ChangeLog.pre-2.1 INSTALL NEWS README README.SVN \ + THANKS TODO UPGRADE config.rpath install-sh missing \ + mkinstalldirs nano.spec + +ACLOCAL_AMFLAGS = -I m4 +all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive + +.SUFFIXES: +am--refresh: + @: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: $(am__configure_deps) + $(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): + +config.h: stamp-h1 + @if test ! -f $@; then \ + rm -f stamp-h1; \ + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ + else :; fi + +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status + @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status config.h +$(srcdir)/config.h.in: $(am__configure_deps) + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) + rm -f stamp-h1 + touch $@ + +distclean-hdr: + -rm -f config.h stamp-h1 +nano.spec: $(top_builddir)/config.status $(srcdir)/nano.spec.in + cd $(top_builddir) && $(SHELL) ./config.status $@ + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d "$(distdir)" || mkdir "$(distdir)" + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r "$(distdir)" +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz + $(am__remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__remove_distdir) + +dist dist-all: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 + $(am__remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @$(am__cd) '$(distuninstallcheck_dir)' \ + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile config.h +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-hdr distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ + ctags-recursive install-am install-strip tags-recursive + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am am--refresh check check-am clean clean-generic \ + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ + dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \ + distclean distclean-generic distclean-hdr distclean-tags \ + distcleancheck distdir distuninstallcheck dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am tags tags-recursive uninstall uninstall-am + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..bd73632 --- /dev/null +++ b/NEWS @@ -0,0 +1,1318 @@ +2010.11.22 - GNU nano 2.2.6 "Pimp my BBS" wants you to go to + www.desertbus.org and donate a few bucks for the great + Child's Play Charity! This is just a small release to + update a bug where restricted mode was not particularly + restricted since key bindings were introduced. It also + signals the return of win32 builds which now feature + nanorc support; please see the FAQ for details of how + to enable it, this feature is a bit of a kludge for now. + Remember that when all else fails, USE SPACE JUMP. + +2010.08.05 - GNU nano 2.2.5 "Inactivity timeout" is now available. + This release includes slightly less restrictive checkng + when writing files in strange environments (e.g. + when being used out of crontab). For very strange situations + (such as where you cannot change the permissions on the + file you're writing, there is a new rc file option + "allow_insecure_backup" to be even more permissive and + allowing the write to proceed. Also included are + some syntax highlighting updated, and that is about it. + Keep fighting the good fight children. + +2010.04.15 - GNU nano 2.2.4 is nobody's fool. First and foremost, + this relase includes some security fixes due to + an assessment of nano's vulnerability to symlink attacks + on open files. The CVEs fixed with this release are + CVE-2010-1160 and CVE-2010-1161. Also included are fixes + for various crash modes when using the spell checker + on new files in multibuffer mode (surely you've used + that combination recently? No?) as well as a fixing + the 'file was modified' message when saving to a + new filename (since how would nano know?). And + the list would not be complete without our + third-times-the-charm fixes to page up/down due to + the soft wrapping code. The lone new feature + included is a new syntax higlighting definition for + cmake-related files. Please do consider upgrading to + this release if still using the 2.0 series since + fixes for that version are still forthcoming. + + +2010.02.11 - GNU nano 2.2.3 "fumbling toward stability" is released. + This release contains a fix for only one bug, but a + rather irritating one: when paging up/down with smooth + scrolling, the cursor position was not being preserved + due to a bug in 2.2.2. With such a targeted fix + like this what could POSSIBLY go WRONG? Hahaha. + Enjoy and if you find new bugs, as always please + use Savannah's bug tracker. + http://savannah.gnu.org/bugs/?func=additem&group=nano + +2010.01.17 - GNU nano 2.2.2 is released for you, you, you. This + release includes fixes for: crashed when writing + backup files in certain conditions, improper + screen centering when moving up/down in various + combination of smooth scrolling and soft wrapping modes, + a search crash on the armel arch, and issues with + lots of keybinding customizations causing crashing + particularly on FreeBSD. Also included are better + help menu entries for forward/back in the file browser, + some man page tweaks and one assert fix. As always, + share and enjoy! + +2009.12.12 - GNU nano 2.2.1 "DLR strikes back" is open for business. + This release fixes many bugs, including: missing + keybindings for page up/down and GotoDir in the browser, + ^P/^N in the help menu, and restoration of M-W as the + default re-search binding. Other fixes include several + issues with compiler warnings and configure options, and + documentation updates, including the nano texinfo manual, + nano and nanorc man pages, and UPGRADE file, and some + missing syntax highliting entries for the saple nanorc. + And no release would be complete without the latest round + of 'final' soft wrapping fixes! Finally, nano will no + longer print a warning when attempting to insert the + contents of a read-only file into an existing buffer. + Enjoy and Happy Hanukkah. + + +2009.11.30 - GNU nano 2.2.0 "Doc Brown" is released! The culmination + of almost two years of development and hot on the heels + of nano's 10th birthday is available for all your + editing needs! Bugs fixed since the last release + include several fixes for tiny mode (involving both + the help keys and replace menu text), more 'final' + fixes for soft wrapping, and several typo and documentation + updates including nanorc tweaks and a new syntax + highlighting file for makefiles. Also included is a long + standing fix for random crashing when using nanorc on + FreeBSD, and nano will no longer clear the screen on + suspend to maintain compatibility with other *nix editors. + For those who haven't been playing along at home, please + see the official web page for the summary of new + features since 2.0. Special thanks to all who have + submitted bug reports recently in support of our new + stable release, and apologies for all those bugs we + didn't yet find :-) Peace to all. + +2009.11.21 - GNU nano 2.1.99pre2 is available for a special pre-Black + Friday discount. Included are some (hopefully + final) fixes for issues with last page display + caused by the soft wrapping code, and a fix for + a long standing issue with hittig the home key when + going through the search history. On the features + front, nano will now attempt to retain the proper + ownership and permissions when trying to create a + .save file due to receiving a signal. Nano can also + now unbind keys from one or more menus via the 'unbind' + keyword. Finally, passing --fill or --nowrap on + the command line will now override any related + .nanorc entries. Speak now or forever hold your bugs! + +2009.11.15 - GNU nano 2.1.99pre1 "take a bow" is out there, man, it's + out there all right. This release contains mainly + bugfixes, underscoring that we are preparing for the + next stable series release. Included are many fixes + for the new soft wrapping code, compiler warning tweaks, + and the modification time warning no longer triggers + when saving a file as a new name. Also include are + some fixes for various nanorc options, and there are + surely more bugs to find before we call the code base + stable, so please keep those reports coming! + +2009.09.14 - GNU nano 2.1.11 is on very thin ice, very thin ice, very thin + ice. This release includes two new features: first, nano + will check whether the current file is writable when it + is opened, and warn if it is not on the status bar. Secondly, + a new soft-wrapping (AKA full line display) option is + available, which will attempt to fully display the contents + of lines longer than the width of the screen without the + usual truncation and a '$' symbol at the end of the line. + It can be enabled via Meta-$ inside the editor, via the + -$ or --softwrap command line flags, or "set softwrap" + in your .nanorc). As always please report any bugs to the + nano Savannah project page + (http://savannah.gnu.org/bugs/?func=additem&group=nano) + Remember: data loss happens, back up your files. + +2009.07.28 - GNU nano 2.1.10 "Ellie" is released. This version includes + various fixes for portability including some older HP-UX + compiler combos, various compiler warnings, and some crash + fixes in the undo code. On the topic of the latter item, + the undo code is now marked as experimental since it can + cause severe stability and memory issues, and thus now + requires a flag (-u, --undo) in order to enable it. + Please feel free to continue to test the undo code and + thanks again for using nano for your text editing needs. + Go team Nano! + +2009.02.16 - GNU nano 2.1.9 wonders what all that glass is doing on the + floor! This release is primarily meant as a less buggy + version of 2.1.8, particularly for issues with the new + sped-up syntax highlighting code. Other fixes include + configure-time detection of groff HTML support before + attempting to generate the HTML version of man pages, + and using ~ or ~username syntax in .nanorc should now + work again. Also, nano will now only ask for one + acknowledgement of errors it encounters when parsing + nanorc files, and a new flag -q (--quiet) will silence + these messages altogether. Give it a go, and happy + birthday lenny! + +2009.02.07 - GNU nano 2.1.8 "unsafe at any speed" is released. This + release include some long overdue performance + improvements in syntax color highlighting, the ability + to abort running searches (useful mainly when + editing very large files) and the ability to use nano + like a pager for viewing standard input (i.e. "nano -"). + Additionally, there are gentoo syntax highlighting + updates and fixes for issues with reading files + in a directory with strange parent directory permissions. + The key bindings code was also substantially changed + in order to be more ISO-C compatible. Be sure to use + the Savannah page not only for bug reports but for any + features you would like to see before the next stable + series is released. Have fun with it! + + +2008.11.10 - GNU nano 2.1.7 "Effingham" is ready to make good on those + campaign promises of lower bug rates and 50% more pie. + This release includes a new check for external + modifications when saving a file, some code and + documentation cleanups, and more bug fixes for + the new undo code (but we continue to welcome your bug + reports via the Savananh bug page at + http://savannah.gnu.org/bugs/?func=additem&group=nano. + Come get some. + +2008.10.03 - GNU nano 2.1.6 was for new features before it was against + them. This release includes more undo capability, + several new syntax highlighting configurations including + Objective C, OCaml, and Fortran, and a new capability + to activate highlighting based on the 1st line of the + file being edited. Also, the new default configure + options now include color syntax highlighting, .nanorc + support, multibuffer and extras. These items can still + be disabled and are not enabled with --enable-tiny. Bug + fixes include better signal handling under Cygwin, and + that's about it. Again please remember to + submit bug reports via Savannah at + http://savannah.gnu.org/bugs/?func=additem&group=nano + as undo functions certainly need more testing. + Bon appetit. + +2008.08.30 - GNU nano 2.1.5 is ready to lead on day one. This release + contains a better fix for incorrectly reported successful + writes on full filesystems, more helpful messages when + an internal error occurs in the undo code, and fixes for + various combinations of configure-time options and + compiler flags. Also included is new support for + changing the rc file name at configure time, and + using GNU-style regexes for word-boundaries on systems + which do not support them natively, as well as the ever + popular translation updates. Rock the tarball. + +2008.08.09 - GNU nano 2.1.4 "I told you so!" is released. This release + includes fixes for several severe issues with the new + undo/redo code. Also the behavior of writing + files when using backup mode has changed as well: if writing + the backup file fails, nano will not attempt to write the + current file. This should help folks who enjoy "extreme + text editing" i.e. editing files on file systems which + are likely to run out of space; see Savannah bug 24000. + Have fun with it! + +2008.08.04 - GNY nano 2.1.3 "least stable version ever" is released. This + release includes new (and experimental) undo and redo + functionality for most text operations. The default + key bindings are Meta-U for undo and Meta-E for redo, but + these can be remapped using the new 2.1 keybinding code. + Also included are some fixes for configuring using wide + curses, crashing when invoking the help menu with + certain locales, and not saving the search history when + compiled with configure options. + +2008.04.24 - GNU nano 2.1.2 "New York City" is released. This release + contains fixes for binding bad keys, some + configure-specific compilation failures, and more issues + with the new input back end and in particular the status + bar. Also fixed are some long standing issues with + compiling on AIX, and a segfault when making the terminal + window too small. Rest in Peace Tim and George! + +2008.04.01 - GNU nano 2.1.1 wont get fooled again. This release contains + fixes for the new user-rebindable keys (in particular + bracket match which was mis-bound), and various + problems with translations and configure-related + compilation problems are now fixed as well. + It also contains new syntax highlighting + definitions for TCL, PHP, Gentoo and Debian-related + files, and some documentation updates as well. + Please continue to send reports with the key + binding code to the Savannah page + (https://savannah.gnu.org/bugs/?group=nano). + +2008.03.18 - GNU nano 2.1.0 "under old mismanagement" is released. + This first release in the 2.1 development series + introduces rebinadble keys for most actions inside + the editor. Please see the nanorc(5) page for + more information on configuring key bindings. Please + also report all keybinding bugs (crashes, missing + menu functions) using the Savannah bug tracker URL, + https://savannah.gnu.org/bugs/?group=nano and + thanks for sticking with us! + +2007.12.20- GNU nano 2.0.7 keeps its balance. This release fixes + several bugs, among others: a segfault and several + cursor positioning problems when uncutting text or + inserting files into the current buffer; a problem where + the total number of characters would be miscalculated + when replacing single-byte characters with multibyte + ones; several minor issues with the statusbar prompt + involving text display and mouse support; and several + oddities when tab-completing in the middle of a line. + It also improves autodetection of DOS and Mac format + files, properly supports the mouse wheel when using a + version of ncurses built with the --enable-ext-mouse + option, fixes some problems under NetBSD curses, adds a + lot of translation updates, and adds more minor + documentation updates. Slang curses emulation support + has also been changed to turn off all the options that + --enable-tiny does, as it's hopelessly broken otherwise. + Finally, nano is now licensed under the GNU GPL version + 3 or later, and its documentation is now dual-licensed + under the GNU GPL version 3 or later and the GNU FDL + version 1.2 or later. Have fun. + +2007.04.26- GNU nano 2.0.6 "that was quick" is released. This release + fixes a potential segfault after justifying text marked + from the bottom up. It also adds one more minor + documentation update. Enjoy. + +2007.04.22- GNU nano 2.0.5 braces for impact. Among other things, this + release fixes various problems (including a segfault) + when trying to open or save a file in a directory + beginning with "~" that isn't a home directory; fixes a + problem where a file with no name could be saved over an + existing filename with no warning about overwriting it; + properly disallows opening directories or device files + from "include" commands in nanorc files; no longer + displays a misleading prompt when trying to save in + restricted mode with the mark on; and properly supports + the Cancel and Shift-Cancel keys. It also improves + several color syntaxes to highlight trailing whitespace, + just as the Java syntax does, and adds yet more minor + documentation updates. Have fun. + +2007.04.06 - GNU nano 2.0.4 heralds the dawn. This release contains + proper support for the Ctrl-[arrow key], Shift-[arrow + key], and F13-F16 keys under Xfce's Terminal. It also + adds still more minor documentation updates. Enjoy. + +2007.01.29 - GNU nano 2.0.3 flows toward its ending. This release + contains several minor optimizations to make the + executable a little smaller under some circumstances, + some translation updates, improvements to the color + syntax for Python, and still more minor documentation + updates. Have fun. + +2006.12.20 - GNU nano 2.0.2 forges ahead. This release fixes a segfault + when trying to save in a nonexistent directory; fixes + handling of strings containing nulls at the "Write File", + "Insert File", "Execute Command", and "Go to Directory" + prompts; fixes several minor memory leaks; fixes two + more potential compilation warnings; adds a few + translation updates; and adds a few more minor + documentation updates. Enjoy. + +2006.11.20 - GNU nano 2.0.1 emerges from its cocoon. This release + contains several bugfixes: saving one file over another + will now always warn about overwriting it, overwriting + a file is no longer possible when saving a new file in + restricted mode, and zero-length Unicode characters are + now highlighted properly when nano is built without + regular expression support. It also adds several minor + documentation updates. Have fun with it. + +2006.11.06 - GNU nano 2.0.0 does its little dance. This release adds + documentation updates and a few cosmetic tweaks. + For those who haven't been following nano 1.3 + development, there are a ton of new features, including + support for UTF-8, moving to a specified line and column + instead of just a line, improved color syntax + highlighting, inserting previously untypeable characters + using "Verbatim Input" mode, and copying text into the + cutbuffer without cutting it. There are also fixes for + some long-standing bugs, such as the "NumLock glitch" + from nano 1.2.x, and the inability to unjustify text + after resizing. Finally, there are also a ton of + translation updates and new translations, as well as new + color syntaxes. See the UPGRADE file for more + information, and enjoy the new stable release. + +2006.10.25 - GNU nano 1.9.99pre3 learns to appreciate life. This + release fixes a bug where the screen sometimes wouldn't + be updated properly after copying text into the + cutbuffer, fixes a potential warning while compiling, + and fixes a few other minor inconsistencies. Have fun. + +2006.10.02 - GNU nano 1.9.99pre2 crosses the threshold. This release + fixes a few more bugs: cursor positioning after leaving + the statusbar prompt has been fixed, and verbatim input + at the statusbar prompt now properly handles newlines. + Enjoy. + +2006.08.29 - GNU nano 1.9.99pre1 passes through the flames. This + release fixes various bugs in the last version: the + mouse support properly ignores everything except clicks + of the left mouse button; the statusbar is now blanked + properly when it should be; indenting and unindenting + operate on the current line when the mark is off; nano + should build on Tru64, NetBSD, and other systems that + use termcap instead of terminfo in their curses + libraries; the built-in file browser now properly + navigates file lists that take up only one row; the + cursor position is now completely restored after + inserting a file into the current buffer, and after + inserting the output of a command into a new buffer; the + ^X shortcut at the search prompt has been removed, as + official Pico doesn't include it and it's too easily + confused with Exit; the screen is updated properly after + scrolling a line without moving the cursor; the keyboard + input routines behave more consistently; and so on. + Have fun with it. + +2006.06.26 - GNU nano 1.3.12 escapes the darkness. This release + contains the last new features that nano will have + before 2.0: copying text into the cutbuffer without + cutting it, indenting lines of marked text with a single + keystroke, reworked help text that should be easier for + new users, searching for filenames in the file browser, + the ability to include color regexes in files separate + from nanorc files, etc. It also contains many bugfixes. + Text can now be unjustified after justifying it and + resizing the window; the screen is now cleared when + suspending; the "default" color syntax is now handled + properly at all times; lines of text containing tabs are + now wrapped at the right place; double-column characters + are now properly displayed when past the right edge of + the screen; invalid multi-line color regexes are now + ignored; and so on. Enjoy. + +2006.03.30 - GNU nano 1.3.11 awakens from its fever dream. This release + focuses mostly on bugfixes, which include better + handling of the cursor at the statusbar prompt, support + for certain combinations of Shift and keypad keys in + both normal and --rebind-keypad mode, a fix for a minor + display problem after some searches, a real fix for a + long-standing segfault when displaying overly long + lines, and a real fix for nano's not hanging up properly + in xterm under certain circumstances. There are also + several new features, such as the ability to set the + characters used as brackets when searching for matching + brackets, and tab completion of directories at the "Go + To Directory" prompt. Have fun. + +2005.12.23 - GNU nano 1.3.10 rises to the surface. This release + contains several new features as well as fixes for + several longstanding bugs. The former include the + ability to scroll up or down single lines without + scrolling the cursor, reworked bracket searching code + that doesn't require regular expression support, + reworked command execution code that uses $SHELL if + available instead of hardcoding "/bin/sh", and the + ability to no longer add newlines to files that don't + end in them via the -L/--nonewlines option. The latter + include fixes to the statusbar prompt so that mouse + clicks work properly on it, fixes to the Yes/No/All + prompt so that mouse clicks on it work properly when + -O/--morespace is used, and fixes to the resize handling + so that nano dies properly when the terminal is too + small to display a prompt. Enjoy. + +2005.10.23 - GNU nano 1.3.9 breaks through the wall. This release + includes major enhancements as well as bugfixes. The + enhancements include better handling of invalid UTF-8, + expansion of the word count option to also count lines + and characters in the file or selection, more efficient + screen update routines, a readded -K/--rebindkeypad + option to work around numeric keypad problems on + terminals that don't show the usual NumLock glitch, a + new -W/--wordbounds option to properly detect words + containing punctuation when moving among them, and + massive improvements to the color code such as handling + of unspecified foreground colors, more efficient memory + usage for color regexes, and new reserved syntaxes + "default" and "none". The bugfixes include fixes for + the rewritten history code, fixes for potential line + numbering problems on 64-bit platforms, fixes for a few + long-standing minor display problems, a fix for erroneous + hangups occurring while waiting for input, and a fix for + a segfault when displaying certain overly long lines. + Have fun with it. + +2005.06.30 - GNU nano 1.3.8 floats at its own level. This release + contains several new features. Among other things, you + can now move to a specified column number as well as + line number within a file, file backups saved in a + backup directory will have unique names, the search and + replace history routines should work more consistently, + you can get a word count by pressing Meta-D at the edit + window, and there's a new -E/--tabstospaces option to + convert all typed tabs to spaces (--backupdir's short + option has been changed to -C). In terms of bugfixes, + this release contains fixes for minor problems with + screen updates, UTF-8 display, and flow control; a fix + for a segfault when displaying some lines ending with + tabs; better handling of constant cursor position + display; improved color parsing in the rcfile; and + support for the "Regexp" toggle in tiny mode + (-R/--regexp is gone, and --restricted's short option + has been changed to -R), among other things. Enjoy. + +2005.04.10 - GNU nano 1.3.7 claws its way to the top. This release + mostly contains bugfixes for the massive amount of new + code in 1.3.6. Among other things, nano builds with + debug support again; going into the help browser at the + "Read File" prompt no longer kicks you out of the prompt + after you exit the help browser; paragraph searching no + longer skips over certain cases of single-line + paragraphs; the titlebar no longer cuts off some UTF-8 + strings prematurely; and the text displayed in the help + browser is now wrapped as it was in nano 1.2.x, taking + UTF-8 support into account. New features include an + --enable/disable-utf8 configure option to explicitly + turn detection of UTF-8 support on or off, and sample + regexes for C++ as well as C. Have fun. + +2005.03.20 - GNU nano 1.3.6 "shout it from the rooftops" is released. + This release finally includes the long-awaited support + for UTF-8. Other new features include the ability to + insert UTF-8 characters using verbatim input; the + ability to delete all text from the cursor position to + the end of the file via ^W^X as (patched) Pico does; + improvements to input and output so that pasted text + displays faster, improvements to the statusbar prompt so + that more edit window shortcuts, including verbatim + input and previous/next word search, work in it; a new + option to allow using the formerly always-blank second + line of the screen as part of the edit window; and the + ability to refresh the help browser and file browser + windows via Ctrl-L. Notable bug fixes include a fix for + a segfault when using full justify, and a fix for the + long-standing bug where nano would keep running if the + terminal it was in died unexpectedly. Enjoy. + +2004.11.22 - GNU nano 1.3.5 hurls itself forward. New features in this + release include the ability to replace only marked text + when the mark is on, improvements to smooth scrolling so + that it applies everywhere instead of just affecting the + movement keys, improvements to how files are opened so + that they are no longer displayed unnecessarily, support + for multiple +LINE arguments in addition to multiple + filenames on the command line, autodetection of the + format to save a file in based on the format it was in + when it was opened, the ability to toggle both ways + between the "Read File" and "Execute Command" prompts + and the "Search" and "Go to Line" prompts, and support + for cross-compiling nano. As for bug fixes, the + "tabsize" nanorc option works again, mouse clicks on the + shortcut list trigger the right shortcuts again, + tab-completing a filename with %'s in it no longer + causes a segfault, the internal spell checker no longer + skips words after the cursor position when the cursor is + in the middle of the file, and spell checking of only + marked text now works properly. Have fun with it. + +2004.08.17 - GNU nano 1.3.4 marches forth after a false start. This + release mainly features fixes for the bugs that crept + into the last release. Among other things, nano now + compiles again with certain options, quoted justify now + works properly on systems without regex.h, full justify + no longer segfaults when used on a file with no + paragraphs, previous paragraph searching works properly + again, tab completion is properly disabled when needed + in restricted mode, Ctrl-C is no longer disabled after + using the alternate spell checker, the permissions of a + newly created file now match those of nano 1.2.x again, + and replacing all text in a file now properly updates + the screen in all cases. New features include sample + regexes for patch files, improvements to the sample + regexes for C files, and support for strings greater + than 1023 characters and/or containing nulls in + .nano_history. Additionally, the full justify keystroke + has been changed to match current Pico, and whitespace + display mode is now turned off by default. Enjoy. + +2004.06.28 - GNU nano 1.3.3 marches forth. There are several new + features in this release, including a restricted mode + that provides better security than just setting an + operating directory, the ability to justify the entire + file at once, support for a "smart" home key that can + leap from the beginning of text on a line to the true + beginning of the line (or the reverse) in one stroke, + support for specifying an alternative spell checker in + $SPELL, the ability to specify the characters used to + display spaces and tabs so that they can easily be told + apart, and the ability to specify the characters marking + the ends of sentences as used in justification. There + are also several bug fixes; among other things, + justification now keeps spaces at the ends of all but + the last line of a paragraph as Pico does, saving a + marked selection no longer changes the current filename + to the filename the selection was saved under, resizing + now works better and no longer corrupts the screen under + slang, and the movement functions now avoid doing + unnecessary redraws and hence work faster. In short, + there are a lot of new things to play with. Enjoy. + +2004.03.31 - GNU nano 1.3.2 is prepared for the void. New features in + this release include the ability to spell-check only + marked text and the ability to save all backup files in + a specified directory instead of wherever the original + files are. Bug fixes include a fix for a segfault when + replacing certain regular expressions, fixes for some + misbehavior when doing searches, minor fixes to verbatim + input mode and keyboard input in general, better + handling of window resizes at certain times, and + allowing the mark to be saved properly again when + switching between multiple file buffers. nano has also + been ported to the Tandem NonStop Kernel. Have fun. + +2004.01.09 - GNU nano 1.3.1 is outside the gates. This release + features, among other things, fixes for the input + routines to deal with some problems they had, a + reorganized shortcut list for the help browser, minor + Pico compatibility improvements for the file browser, + fixes for misbehavior when replacing certain regular + expressions, and the ability to highlight those regular + expressions properly. It also allows searching without + prompting to work in view mode, adds support for glib + 2.x for those systems that need it, updates the .spec + file for the 1.3 branch, prompts you first when you try + to save a file under a different name, and adds a new + verbatim input mode that acts as ^V does under vi, but + with additional Pico compatibility (explained in the + FAQ). Basically, a bunch of fixes and a few new + features for your editor of choice. Enjoy. + +2003.10.22 - GNU nano 1.3.0 is loosed upon the world. This is the first + release in the unstable 1.3.x series, and as such it + includes a lot of new features, including the addition + of a -d option for those FreeBSD users with Backspace + keys that act like Delete keys, the ability to repeat + the last search without prompting, the ability to search + for the beginning or end of a paragraph, new smooth + paging routines to go with the smooth scrolling + routines, and various improvements to the input and + display routines to make them behave more intuitively. + It also includes the usual load of bugfixes. Enjoy. + +2003.08.11 - GNU nano 1.2.2 is released, only four months since the + last version :-). This release includes fixes for + broken regex detection, search history recall, and + keypad handling with -K. Debugging strings are no + longer translated and comments denote where translations + should be as short as possible (i.e. the statusbar). + There are new examples for syntax highlighting, and + documentation updates and fixes. The 1.3.0 CVS tree + will be opening soon for all your nano desires, so stay + tuned! + +2003.04.19 - Happy Easter! GNU nano 1.2.1 is released. This release + features a new check for broken regexec() + implementations and some variable, function and macro + cleanups. Fixes are included for search history, + cutting marked text, alt keyboard mode, and the usual + translation and documentation updates. + +2003.02.19 - GNU nano 1.2.0 is released. Few changes from pre3, just + some doc and translation updates, and bugfixes for + justify and file conversion. For those of you who + haven't kept up with the 1.1 unstable series, v1.2 + brings nanorc support, color syntax highlighting, + multiple file buffers, search/replace history and much + much more. Please read the UPGRADE file for details, + and enjoy GNU nano 1.2.0. + +2003.02.13 - GNU nano 1.1.99pre3 "The last testing version, no + really!" is released. This release includes fixes for + wrapping (again), resizing, color syntax highlighting, + rcfile parsing, the mouse code, more memory leaks, and + some reversion of the code to get the user's home + directory (nano will now again rely on $HOME). There + are also translation updates, a new manual page for the + nanorc file, and an UPGRADE file detailing the changes + since version 1.0. Please submit reports for any bugs + you might find to the development team + (nano-devel@gnu.org), and enjoy nano almost-1.2.0 ;-) + +2003.02.03 - GNU nano 1.1.99pre2 "bugs in my pockets, bugs in my + shoes" is released. There are, not surprisingly, only + bugfixes in this release as we move toward the stable + 1.2.0 release. Fixes are included for translatable + string format, subexpression replacement, constant + cursor position, invalid search regexes, justify, screen + state on SIGHUP and SIGTERM, cutting to end cuts with + long lines, many file browser and operating directory + bugs, memory and file descriptor leaks, marker code, + spell checker, the mouse code with long lines, multiple + buffers and non-file open errors, replacement string + length, and a silly but serious history message crash. + There is also a drastic improvement in CPU utilization + for the color regex code. + Depending on the number of bugs found in this + release, there may be a 1.1.99pre3 or RC1, or just a + 1.2.0 release. Most of the major bugs seem to have been + worked out, so if you are waiting for a good time to + test nano before the official 1.2.0 release, this would + be the one to use. Happy bug hunting! + +2003.01.17 - GNU nano 1.1.99pre1 "enough already" has been released. + This release is, barring bug fixes and documentation + updates, what version 1.2.0 has looked like, feature + wise. There will very likely be bugs, just due the + volume of changes made in this release. Search and + replace string history has been added, including an + option to log history to ~/.nano_history (-H, + --historylog). Because of this, the Pico incompatible + search/replace string behavior that used to be the + default has been deleted. The old "pico" flag (-p) is + now compatible with Pico's "preserve" mode for allowing + flow control characters; by default this version ignores + both ^Q and ^S. The --disable-wrapping-as-root + configure option has been forward ported from version + 1.0.x, and a new flag to enable all extra options + (--enable-all) has been added. The internal spell + checker has been improved, meaning you will now be + prompted only once for each unique capitalization of a + given word. + There have also been lots of bug fixes, + including the "trying to insert a directory name in + multibuffer mode bug", the ugly spell checker scrolling, + the color code, cutting text crashes, justification, + deleting the "magic line" via replace, and cursor + positioning on the statusbar. There have also been the + usual helping of translation and documentation updates. + Please send all new feedback on this release + direct to the development list (nano-devel@gnu.org). + +10/24/2002 - GNU nano 1.1.12 "Make Jordi happy" is released. This + release demonstrates that nano is starting to freeze for + version 1.2. New features include a Meta-Y toggle for + syntax highlighting, pluralized i18n, and a handler for + SIGTERM. Nano now ignores XOFF (^S) to stop accidental + lock-ups, and no longer references malloc.h. + Also included are fixes for zero-length regex + matches, segfaults with --disable-mouse, justification, + memory corruption with the browser, version and help + cmdline output, and translation updates. Aside from the + (currently up in the air) search history behavior, the + next version of nano should be 1.1.99pre1. Have fun! + +10/01/2002 - GNU nano 1.1.11 "Oddball" is released. This release + features a new version of gettext, a new and improved + syntax highlighting engine, and some updates for the + nanorc.sample file. The toggles for case sensitivity + (Meta-C) and regular expressions (Meta-R) have changed + in the search and replace prompts, multibuffer status is + now displayed and can be toggled from the insert file + menu, and some wrapping behavior that changed in 1.1.10 + has reverted. The --enable-color warning was also made + less severe, as the color syntax code has improved, and + nano now uses extended regexes in the .nanorc file. + Also included are fixes for various memory + leaks, the operating directory option, username tab + completion, the page_up and down arrow, go to previous + word and next word, nanorc parser and line wrapping + code. Have fun! + +07/25/2002 - At long last! GNU nano 1.1.10 "What didn't we break?" is + released. This version of GNU nano features version + 0.11.2 of gettext, building with automake 1.6, some new + code for displaying control characters, browser + improvements, a new backup file option (-B, --backup), a + new option to ignore rc files (-I,--ignorercfiles), + compatibility with -pedantic, handling null characters + before EOF, a slightly sportier nanorc.sample and more. + Fixes are included included for justification, + the reading and writing file routines, resizing and fill + length, millions of memory leaks, the usage screen was + updated, and the the --quotestr and --regexp really work + now ;-) Enjoy :) + +05/12/2002 - GNU nano 1.1.9 is released, happy Mother's Day! This + release includes many new features, including a prepend + mode (^O,M-P), a new "syntax" command in the .nanorc to + allow multiple syntax highlighting types, and a new -Y, + --syntax flag to set a specific one if there's no + filename regex to match it against (i.e. w/mutt). The + ^space and M-space keys will now show up in the help + menu, which itself has been tweaked a bit, and many more + configure options should now cooperate (like the odd + pairing of --enable-tiny and --enable-multibuffer). The + marker should now work when using multiple buffers, and + the huge memory leak in color syntax highlighting has + been fixed. A lot of new stuff for everyone's favorite + text editor ;) Have fun! + +03/30/2002 - GNU nano 1.1.8 is released. New features include an + "Insert Output of External Command", ^R^X, and a .spec + file is now included in the distribution. There are + cleanups in the usage code, fixes for regex parsing, the + file browser, the NO_CONVERT auto-detect, indented + justification, the internal spell checker, and a serious + bug where reading a file of 0 lines would hang nano. + Also, the "show position" code now shows the starting + column as 1 instead of 0. Have fun! + +03/05/2002 - GNU nano 1.1.7 "lets change everything and see what breaks" + is released. New features include new flags + -N,--noconvert to stop any file format conversion and + -Q, --quotestr for the new quoted text justification, a + new tempnam() implementation to avoid silly warnings, + DOS and Mac file options in the Write File dialog, + multiple save files (file.1) for abnormal exits, ^C now + shows column as well as character position, and + multibuffer allows duplicate files, even unnamed ones. + Also, the static shortcut and toggle lengths are + history, nano now reads SYSCONFDIR/nanorc if rc file + support is enabled, and nano is now built with (and + requires for rebuilding) autoconf 2.5. + This release also includes fixes for some memory + leaks, detecting DOS and Mac file format, justification, + suspending keys, search & replace under various + conditions, variable width for shortcuts, and the usual + ton of translation updates. + +01/25/2002 - GNU nano 1.1.6 is released. Lots of new features in this + release. New Meta-keys were added as alternates for + control sequences: Meta-A for the marker key (^^), and + Meta-G for the 'goto dir' key in the file browser (^_). + The color syntax highlighting now supports multiple + lines via start="regex" end="regex" syntax, and the + .nanorc regex format itself has changed. Also, the + gettext code was upgraded to version 0.10.40, and nano + will now display a message if only occurrence of a given + search exists. + For bugfixes, there are fixes for spelling, + stray newlines in the usage() function, suspend issues + with tcsh, auto-indent and wrapping clashes, ugly code + in rcfile.c, global variable compatibility with AIX. + There are also oodles of translation updates. Have fun + with it. + +01/05/2002 - GNU nano 1.1.5 is out. The main new feature in this + release is the changed behavior of the keypad. Nano now + does the Right Thing and used keypad() by default. If + you wish to use the keypad arrow keys in certain + terminals, you may use the -K or --keypad flag to use + the old behavior. Users of other OSes should see better + handling of their non-keypad keys in this release. Other + changes include more Hurd fixes, fixes parsing the + .nanorc, display fixes for the color syntax + highlighting, gettext stabilization and many translation + updates. This is almost like a stable release, much + like in the 0.9.x series when every other release was + the most stable one :) Have fun! + +12/11/2001 - GNU nano 1.1.4 is released. This release contains + rudimentary color syntax support (but it's still + broken), compatibility fixes for the Hurd and FreeBSD, + spell checker and wrapping fixes, and more. It seems + that the amount of interest in the code is inversely + proportional to the amount of time since last release, + so it's time to show the world all the changes since + 1.1.3 ;) Have fun with it! + +10/26/2001 - GNU nano 1.1.3 is released. As far as new features go, + the help system is now available for all functions in + the editor. Also, nano will also now print a message on + the status bar when it automatically converts a file + from Mac or DOS format, and trying to load a file that + has already been loaded in multibuffer mode will now + also cause an error message. There is now a "goto + previous word" which you can use by hitting Meta-Space + Bar. + As for fixes, a SEVERE bug in the null_at code + which discarded the memory address of reallocated memory + has been fixed. This is probably the biggest bug fix in + well over the last year of development. There are also + some display fixes for when the screen shouldn't center + itself on cut or uncut text. Also, the comments in the + header files incorrectly said that nano was distributed + under version 1 of the GPL when the accompanying license + was the GPLv2. + If you're using nano-1.1, it is highly + recommended you upgrade to this release. If using 1.0, + wait for version 1.0.6 which should be available early + next week. Enjoy! + +10/03/2001 - GNU nano 1.1.2 is out there. Many new features in this + release, including support for auto-converting from DOS + and Mac formatted files, as well as toggles for writing + out files in these formats. Pico's -o flag has been + implemented, as has some new smooth scrolling code + (which can be used in place of the default jerky + scrolling behavior). Also, there is now a "find + matching bracket/brace/etc" feature (Meta-]). The + .nanorc file now accepts setting the tabsize, and the + help text at the bottom of the editor is now better + spaced out in the search/replace prompts. There are + also the usual helping of bugfixes, translation updates + and, surely a bug or two. You better get ready! + +07/28/2001 - GNU nano 1.1.1 is released. Our second 1.1 unstable + release features many bugfixes from the initial release, + in particular fixes for the multibuffer code, and + various compiler macro fixes. The shortcut lists for + the search and replace prompts are a little more logical + (with cancel the last option again), and the included + gettext was re-downgraded to 0.10.35 due to problems on + the PPC platform. GNU nano now includes its own aclocal + macros in the m4/ directory to allow rebuilding the + configure script to work on platforms regardless of + their gettext version. + +07/15/2001 - GNU nano 1.1.0 is released. This is the first release + in the 1.1.x unstable series of GNU nano. It + incorporates all changes up to the 1.0.3 release, and + also includes many many new features, including + appending to as well as overwriting files, writing + marked text to a separate file, dynamic wrap length, + lots more compatibility with Pico, and new optional + features like .nanorc file support and multiple file + buffers! All in all, plenty of new stuff that's sure to + introduce lots of bugs ;-) Have fun with it, but be + careful, unstable means unstable. + +07/01/2001 - GNU nano 1.0.3 is the "mutt" release. This release + features oodles of bug fixes with cutting text, + especially with the -k (cut to end) option. There is + also a new suspend handler which should make nano play + better with mutt (the code for which came from mutt + itself; many many thanks to Jordi Mallach and Tom Lear + for working late into the night fixing this). Nano now + also features mutt's case insensitive string compare + function for more speed and less memory usage. Two new + translations are included, Ukrainian and Russian. + +05/12/2001 - GNU nano 1.0.2 is the "just the bugfixes ma'am" release. + The most noticeable fixes are for display errors using + page up/down with the marker code, and view mode (-v) + not stopping the replace function. Other fixes include + being able to use the arrow keys while holding down the + ctrl key in certain TERMs, and there are many + documentation updates and spelling tweaks. We also have + a new Galician translation (provided by Jacobo Tarrío). + Have fun with it! + +04/06/2001 - GNU nano 1.0.1 is out there. The only new feature is a + configure option for those who want to disable all word + wrapping from nano, --disable-wrapping. Bug fixes this + release include some bugs with autoconf and i18n, and + several fixes in the file browser including a segfault + on Solaris, symlinks to directories now work properly, + and nano now sorts files case insensitively like Pilot. + Have fun with it. + +03/22/2001 - GNU Nano 1.0 is released! The autoindent wrapping bug + has been fixed, as well as strange bug when using Pico + mode and regex search. There have also been some minor + spelling and documentation updates. As stated on the + website, there are currently no known bugs with nano, + but some will pop up eventually and they will be + addressed in subsequent releases. We hope you enjoy + this first stable release of nano, and as always, + feedback is welcome! nano@nano-editor.org. + +02/19/2001 - Nano 0.9.99pre3 brings a lot of changes! The most + important being that nano is now officially a GNU + program. Some changes have been made for GNU + compatibility (like the default list of shortcuts, "^G + Get Help" is now Listed and "^_ Goto Line" is not). The + Yes/No/All keys have finally been internationalized + also. All in all, quite a few changes, considering nano + is supposed to be in a code freeze. But there are the + usual helping of bugfixes, a nasty bug when cutting text + in -k mode and some compatibility issues with older + ncurses libraries have also been fixed. All in all, a + lot to see. + +01/31/2001 - Nano 0.9.99pre2 is released. Not surprisingly, all that is + new is bugfixes, bugfixes, bugfixes. There were a few + cleanups in unneeded global variables and duplicate + functions, but most is just fixing. Specifically, there + is now a preliminary (read: needs testing) fix for + resizing the editor in any mode other than normal edit + mode. Other fixes include some more tab completion + segfaults, and an silly segfault that occurred when + successfully writing a file on the 2nd try (i.e. after + an initial write error). Slowly but surely, on toward + 1.0 we travel. + +01/17/2001 - Nano 0.9.99pre1 is released. This is the first pre-1.0 + release of nano, and is also the first release since the + code freeze for nano 1.0. Don't expect (or request) any + new features between now and nano 1.0, only bugfixes, + optimizations and doc/translation updates. For fixes, a + nasty segfault when trying to insert one's home + directory (~), some checks for the NumLock key making + the keypad go awry, window size sanity checks, many + autoconf fixes, and support for the KDE konsole keypad + layout. Have fun. + +01/07/2001 - Nano 0.9.25 is the "Just one more feature I swear!" + release. It includes one new feature that Pico has had + forever, a built-in file browser. Since not everyone + may want this option, there is a --disable-browser + option to the configure script as well. Other changes + include slightly different keypad handling, and a bugfix + for crashes when tab completion in certain instances. + Have fun and Happy New Year! + +12/18/2000 - Nano 0.9.24 is released. This version contains the last of + the security fixes for writing files, as well as for a + nasty segfault when nano is unable to open a file for + reading, among other fixes. Nano also now cowardly + refuses to open device files, to stop silly things like + trying to open /dev/zero. New features include being + Able to use Meta-Meta- as Control-, better + HURD support, and some new flags have been added for + Pico compatibility. Upgrading to this version is highly + recommended. + +12/08/2000 - Nano 0.9.23 is the "race conditions bite" release. The + main reason for this release is the less-than-optimal + fix for the security issue in nano with following + symbolic links. Hopefully this will fix the problem + permanently. The --nofollow option also works again for + those who are real security nuts. There are also some + display and search fixes, and the --disable-spell + function was renamed to --disable-speller to be in line + with nano and Pico's "speller" term. + +12/02/2000 - Nano 0.9.22 is released, with many more changes and + additions than imaginable. The most important change is + a fix for unsafe handling of symbolic links which could + lead to symlink attacks if nano were to exit because of + an error or signal. Also there are better checks when + saving files. + As for new features, username tab completion is now + working well, the internal spell checker code has been + tweaked, you can now unjustify if you don't like how the + justify formatted your text, and there are more options + for configure, including --disable-spell and + --disable-justify and --enable-extra (for those who like + surprises). All in all, a whole lot of changes in a + little over a week. + +11/23/2000 - Happy Thanksgiving! Nano 0.9.21 is our "last version was + a big turkey" release. It fixes several bugs introduced + by the previous version, as well as a few long- standing + display bugs. All 0.9.20 users are strongly encouraged + to upgrade to this release. + +11/18/2000 - Nano 0.9.20 is finally out the door. Probably the biggest + change is the brand new way nano displays previous + search and replace strings (they are now editable!) + This is a break from Pico's (inconsistent) interface, so + if you don't like the new way, "Pico" mode (-p on the + command line or Meta-P within nano) still works the + "old" way. + Other new features include being able to deal with + search strings of any length, a new internal spell + feature (courtesy of Mr. Rocco Corsi) and tab completion + when reading in or writing out files! There's also the + usual billion or so bug fixes. Feedback on this release + is welcome because so much has changed, especially with + the previous string display in search and replace. + Email -> nano@nano-editor.org <-. If you like + something, don't like something, or just want to order a + pizza, let us know! + +10/02/2000 - Nano 0.9.19 is the "Chris is getting married in less than + a week and needs a distraction" release. There are only + a few actual code changes, mainly portability and + compiler warning fixes. Nano now also supports + PDCurses, which enables easily-built nano executables + for Windows NT and 95/98 for the brave. The official + nano site has changed (again) as well, check out + www.nano-editor.org for all the latest nano schtuff. + +09/18/2000 - Nano 0.9.18 is unleashed. It has some new keyboard + handling code, Cygwin support out of the box, and a more + portable handler for the NOHELP toggle. There is also a + fix for a somewhat serious bug whereby trying to insert + a directory instead of a normal file would destroy the + contents of the editor. A must-see. Four stars. + +09/04/2000 - Nano 0.9.17, the Labor Day release, is released after a + quiet spell (almost an entire month since last release!) + New features include better (not yet perfect) binary + display support and toggle support for most of the + program flags (M-c, M-i, M-z, M-x, M-p, M-w, M-m, M-k + and M-e for -c, -i, -x, -p, -w, -k, and -R). + +08/09/2000 - Nano 0.9.16, after some struggling, is released. This + release should fix a few of the holes that 0.9.15 dug. + The "cutting text on the first line" bug is fixed, as is + the "cutting text on the last line" bug. Nice symmetry + there huh? Also the --tabsize argument should now work + as well as by using -T. + +08/03/2000 - Nano 0.9.15 is the "I can't think of a release description" + release. There are the usual gala of display bugfixes, + a fix for the the nasty bug in -k mode that could create + a loop in the file being edited, and some other code + cleanup. Also, the -T option should now work regardless + of the curses library used. Yay. + +07/27/2000 - Nano 0.9.14 is officially the "13 is so unlucky it should + be skipped as a version number" release. One typo + caused unending problems (calling nano with either -t or + -k caused both flags to be used). The -k code is also + now closer in functionality to Pico's -k mode; please + note that this code is not finished yet. Working on + this code has made me realize that there is not enough + abstraction in the code, and I will be working on that + for the next release. Until then, have fun with this + version. + +07/23/2000 - Nano 0.9.13 has a few new bits and bobs, most notably the + -k option from Pico (cut to end of line). The majority + of changes in this release are bugfixes, however, + including the usual display fixes and fixes for writing + to symbolic links and un-writable files. Barring any + other major changes, this should be the feature set for + nano 1.0, whenever it might be released =-) + +07/07/2000 - Nano 0.9.12 (The "lucky day" release) is bursting with new + features, bug fixes, and yummy fruit flavor. For + changes, the alternate replace keystroke ^W^T is now + ^W^R to be compatible with later versions of Pico. ^W^T + is now goto line, again for Pico compatibility. As for + new features, the wonderful/hated magic line code has + returned with a vengeance! Also, regular expression + searches and replaces have been incorporated via the -R + flag. And, of course, there are the usual helping of + display and other bug fixes to top it all off. + +06/20/2000 - Nano 0.9.11 presents drastic rewrites of the most buggy + routines in the program, specifically the wrapping code + and almost all of the display routines. There are many + improvements and bugfixes to the display subsystem in + general, but there may be bugs lurking yet. Also, after + many MANY requests, there is now an option to set the + displayed tab width (-T, --tabsize). Note that this + function just changes the way tabs LOOK in the editor, + the tabs you input are still real tabs of normal width + (usually 8 characters); nano just makes them look + smaller or bigger while in the editor. New in the + translation department is an Indonesian translation + (id). + +06/06/2000 - Nano 0.9.10 is primarily a bugfix for the loss of SIGINT + when using "run and terminate" flags (for example, + --help). There are also some minor documentation + updates. This version of nano is the most stable in + quite some time, and is likely to be the most stable for + awhile. Users are encouraged to upgrade to this + version. + +05/31/2000 - Nano 0.9.9 introduces much better working i18n support, + more portability, and a ton of bugfixes. While nano is + not likely anywhere near 1.0 in terms of code quality, + it gets a quantum leap closer with this release. + +05/18/2000 - Nano 0.9.8 (the 'what broke now?' release) should fix + the resize crash people have been experiencing. It also + offers a new input method that should allow nano to do + things the right way (like ^S, ^Q, custom suspend keys) + and hopefully won't break with non-US keyboards. There + are also the obligatory display fixes and speedups. + Have fun with it. + +05/14/2000 - Nano 0.9.7 (the Mother's Day release) continues in the long + line of display fixes, and also fixes the broken symlink + behavior (i.e. symlinks weren't being followed by + default). Hopefully all major bugs can be worked out + soon and we can have a 1.0 release before the end of the + year, but who knows. + +05/08/2000 - Nano 0.9.6 cleans up a lot of the display bugs that 0.9.5 + uncovered. There are improvements (and some remaining + segfaults) in the wrapping code, and even more display + optimizations. I would still say 0.9.4 or 0.9.2 are the + most stable versions of nano to date, but this one may + not be too bad =-) + +05/01/2000 - Nano 0.9.5 attempts to speed up the display of text + to be at least somewhat reasonable. Much code profiling + has been done to reduce the ridiculous number of + redundant display updates. This will probably expose a + lot of bugs that can then be fixed, so this release is + probably not for the faint of heart. For anyone + curious, I would call nano 0.9.2 the most stable version + recently, so use that if you're not particularly + concerned with being on the bleeding edge. + +04/25/2000 - Nano 0.9.4 fixes some problems in 0.9.3 with the last + line code and related segfaults. It also now has much + better handling for 8-bit characters. The --enable-tiny + code also produces a smaller executable. + +04/19/2000 - Nano 0.9.3 is officially the "Micro$oft" release. It + underscores the recent problem of bugfixes introducing + more bugs than they fix. The most important change to + this version of nano is the removal of the "magic line". + You will no longer see a blank line at the end of the + file. If you want a new line at the end of your file, + you'll have to hit enter to get one. + + NOTE: THIS BREAKS COMPATIBILITY WITH PICO. + Unfortunately, this feature has been causing many many + problems with nano so it is being removed for the time + being, and perhaps indefinitely. + + Other new stuff includes an --enable-tiny option to make + nano ultra small (disabling i18n, detailed help and the + marker and mouse code), and --with-slang to use the + slang libraries instead of ncurses. + +04/15/2000 - Nano 0.9.2 just fixes the serious segfault problem if + nano is invoked any way other than using the absolute + path. The bug was in the new code for checking whether + nano is invoked as 'pico'. + +04/14/2000 - 0.9.1 has some more Pico compatibility built-in. The + option to switch to/from Search and Search/Replace (^T) + is now available, and nano now displays the more + Pico-like shortcut list when invoked as 'pico' (i.e. if + 'pico' is a symlink to nano). There is an important + change to the handling of symbolic links as well. Now, + nano does the "correct" thing and automatically writes + to the object of the symlink, rather than replace the + symlink with the updated file. This behavior is still + available with the --nofollow or -l flags. + Other new things include a fix for the infamous + "recursive replace" bug, and more bugfixes in the + wrapping code. + +04/07/2000 - Nano 0.9.0 has some updates, new language support and + a much better refresh setup (It's still not great, + but...) There should also be more stability editing + long lines, as there was a stupid mistake in the + update_line call. Silly me =) + +03/22/2000 - Nano 0.8.9 is basically just a bugfix release of 0.8.8 + to reflect the current stagnant status of the project. + Most things work, the rest doesn't doesn't work because + (a) I can't fix it or I would have already done so, and + (b) the amount of patches I'm receiving right now is + quite negligible. Fortunately, this release marks the + first release since I have acquired ownership of the + nano pages on SourceForge. Here's hoping SF will get us + some more visibility, translators and patches. + +03/12/2000 - After a hiatus, I have finally moved (not unpacked though) + to my new home into Albany. Thus I should now have more + time to work on nano. Nano 0.8.8, the "dear god what + broke this time?" release, incorporates patches for both + i18n and many bugfixes. It is VERY likely something + broke this version, and it's likely I didn't even apply + the i18n stuff properly, so *it* may not even work. + + I would like to announce that I'm going to need + translations soonish, so if you are fluent in other + languages than English (or even better, if your native + language is not English) and you would like to submit a + translation file to me, please feel free to do so. If + you do, I will list your name and email in the AUTHORS + file as the maintainer of the .po file, and from then on + it is yours to take care of and keep up to date. + +03/01/2000 - Well, to continue my trend of going back on my previous + release's comments, nano 0.8.7 is released. The + crashing behavior was still occurring, and this most + recent fix also fixes some other wrapping problems, so + here you go. There may be another release soon, there + may not be, is that vague enough? =) + +02/25/2000 - More minor bugfixes in 0.8.6, the bizarre behavior at the + end of a page has ceased, thankfully. I'm also moving + next weekend, so don't be shocked if you don't see a new + version of nano next week =-) + +02/11/2000 - Okay, here we go again. Aside from a few minor fixes and + some under-the-hood changes, you won't notice much + different in this version of nano. I haven't gotten + much feedback on the help feature, is it simply amazing + or does no one care? Write and let me know! =) + +02/08/2000 - Nano 0.8.3 marks the first time in a long time that there + has been more than three days since the last release. + New features include an initial help mode (YAY!), + hopefully much more support for i18n out of the box, and + a flag for more Pico compatibility in the shortcut lists + displayed. This release also marks the new nano + distribution site, http://www.asty.org/nano and email + address nano@asty.org for bugs, etc. + +02/02/2000 - Okay, I hate to go back on what I said in the last release, + but I may be changing jobs very soon. I will release + version 0.8.2 as is (no i18n, no help menu (yet). I + expect things to settle down by the end of next week, + and then I can try to start on the i18n support and help + menu; look for these new features in version 0.8.5 to + 0.9.0. + +01/28/2000 - Nano 0.8.1 marks our first official step toward + internationalization (i18n) and the help system (^G). I + will be merging in Jordi's patches for initial i18n in + the next version, and will implement the help system + with i18n built into it shortly after that. Please + don't hesitate to send bug reports, as long as you're + sure the fault lies with nano =-). + +01/25/2000 - Nano 0.8.0 is officially the 'let's try and be at least a + little portable, mmmmkay?' release. There are many + portability checks and fixes; many thanks to Andy Kahn + for his patches. I removed the broken do_spell behavior + with the 'spell' program; for now, we only try to call + 'ispell' until I write a better method to handle the + output of the normal 'spell' command. + +01/24/2000 - Nano 0.7.9 features many new features. Among them are a + new autoindent feature (-i, --autoindent), tempfile flag + like Pico's -t flag (-t, --tempfile), and preliminary + spelling program support. The spelling function tries + to run 'spell' and then 'ispell' in that order, but you + can specify another spelling program with -s or + --speller. + +01/17/00 - Nano 0.7.7 is officially the 'way too much stuff changed this + release' release. It's the busy time at work for me, so + please don't get offended if your patch doesn't get + included in the next immediate version of nano. I'm + sure all the changes in this release will cause a few + bugs, so 0.7.8 will primarily be about fixing those + bugs. + + Things added this release include resizability (kinda), + new -x and -c flags (see nano -h for help), long command + line flag support, and the usual array of bugfixes. + +01/15/00 - Nano 0.7.6 is officially the 'lightning' release. It now + loads large files much faster than previous versions, + and is even much faster than Pico or vi in some rather + rudimentary tests. Many thanks to Adam Rogoyski for the + read_byte patch! + +01/09/00 - As of this version (0.7.4), TIP has officially been renamed + to nano. The new homepage is at + http://faculty.plattsburgh.edu/astyanax/nano. Please + update your bookmarks, tell your friends, and all that + jazz. + +$Id: NEWS 4516 2010-08-11 02:42:32Z astyanax $ diff --git a/README b/README new file mode 100644 index 0000000..abbb892 --- /dev/null +++ b/README @@ -0,0 +1,72 @@ + + GNU nano - an enhanced clone of the Pico text editor. + +Overview + + The nano project was started because of a few "problems" with the + wonderfully easy-to-use and friendly Pico text editor. + + First and foremost is its license: the Pine suite does not use the + GPL or a GPL-friendly license, and has unclear restrictions on + redistribution. Because of this, Pine and Pico are not included + with many GNU/Linux distributions. Also, other features (like go + to line number or search and replace) were unavailable until + recently or require a command line flag. Yuck. + + nano aims to solve these problems by emulating the functionality of + Pico as closely as possible while addressing the problems above and + perhaps providing other extra functionality. + + The nano editor is now an official GNU package. For more + information on GNU and the Free Software Foundation, please see + http://www.gnu.org/. + +How to compile and install nano + + Download the nano source code, then: + tar zxvf nano-x.y.z.tar.gz + cd nano-x.y.z + ./configure + make + make install + + It's that simple. Use --prefix with configure to override the + default installation directory of /usr/local. + + If you configured with the "--enable-nanorc" option, after + installation you might copy the doc/nanorc.sample to your home + directory, rename it to ".nanorc", and then edit it according to + your taste. + +Web Page + + http://www.nano-editor.org/ + +Mailing List and Bug Reports + + Savannah hosts all the nano-related mailing-lists. + + + info-nano@gnu.org is a very low traffic list + used to announce new nano versions or other important + information about the project. + + help-nano@gnu.org is for those seeking to get help without + wanting to hear about the technical details of its + development. + + nano-devel@gnu.org is the list used by the people + that make nano and a general development discussion list, with + moderate traffic. + + To subscribe, send email to nano--request@gnu.org with a + subject of "subscribe", where is the list you want to + subscribe to. + + For general bug reports, send a description of the problem to + nano@nano-editor.org or directly to the development list. + +Current Status + + GNU nano has reached its third stable milestone, 2.0.x. + Development of new features continues in the 2.1.x branch, while + 2.0.x versions are dedicated to bug-fixing and polishing. + +$Id: README 4057 2007-01-29 12:40:48Z dolorous $ diff --git a/README.SVN b/README.SVN new file mode 100644 index 0000000..f5476f2 --- /dev/null +++ b/README.SVN @@ -0,0 +1,87 @@ +INSTRUCTIONS TO COMPILE AND INSTALL NANO CVS VERSIONS +===================================================== + +GNU nano is available from SVN, but building this needs a bit more care +than the official stable and unstable tarballs. + + +Prerequisites +------------- + +To successfully compile GNU nano from CVS, you'll need the following +packages: + +- autoconf (version >= 2.54) +- automake (version >= 1.7) +- gettext (version >= 0.11.5) +- groff (version >= 1.12) +- texinfo (version >= 4.0) +- subversion (aka svn) +- ssh (with support for the SSH version 2 protocol) +- glib 2.x (if your system doesn't have vsnprintf(), which the configure + script will check for) +- make, gcc and the normal development libraries (curses or slang, etc.) + +These should be available on your GNU mirror. Note that you'll need a +version of curses or slang with wide character support if you want nano +to use UTF-8. + + +Download the source +------------------- + +To obtain the current nano development code (called 'trunk'), use the +following command. It will create a copy of the files in a subdirectory +of your current working directory called 'nano': + + $ svn co svn://svn.savannah.gnu.org/nano/trunk/nano + +If you want to download the stable SVN branch instead, use: + + $ svn co svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano + + +Generate the configure script +----------------------------- + +Once you have the sources in the "nano" directory, + + $ cd nano + $ ./autogen.sh + +This will set up a configure script and a Makefile.in file. + + +Configure your build +-------------------- + +To configure your build, run the configure script from the nano source +directory: + + $ ./configure [--add-options-here] + + +Build and install +----------------- + +From the nano source directory, build the code with: + + $ make + +Then, once it's done compiling, run + + $ make install + +which should copy various files (i.e. the nano executable, the info and +man pages, and syntax highlighting pattern files) to their appropriate +directories. + +If you're installing into the default install directory (/usr/local), +you'll need to run that "make install" command with root privileges. + + +Problems? +--------- + +Please submit any bugs in the SVN branch using the Savannah project's +bug tracker (https://savannah.gnu.org/bugs/?group=nano) diff --git a/THANKS b/THANKS new file mode 100644 index 0000000..4efd9ec --- /dev/null +++ b/THANKS @@ -0,0 +1,62 @@ +The following people have helped GNU nano in some way or another. +If we missed you here, let us know! + + +Sharuzzaman Ahmat Raslan + Malay translator +Laurentiu Buzdugan Romanian translator +CHAO Wei-Lun Traditional Chinese translator +Ricardo Cárdenes Medina Spanish translator +Marco Colombo Italian translator +Yavor Doganov Bulgarian translator +Karl Eichwalder German translator +Doruk Fisek Turkish translator +Jean-Philippe Guérard + French translator +Geir Helland Norwegian bokmÃ¥l translator +Tedi Heriyanto Indonesian translator +Václav Haisman Czech translator +Szabolcs Horvath + Hungarian translator +Kalle Kivimaa Finnish Translator +Eivind Kjørstad Norwegian nynorsk translator +Florian König German translator +Wojciech Kotwica Polish translator +Clement Laforet French translator +Gergely Nagy Hungarian translator +Kalle Olavi Niemitalo Finnish Translator +Claudio Neves Brazilian Portuguese translator +Daniel Nylander Swedish Translator +Michael Piefel German translator +Sergey A. Ribalchenko Russian, Ukrainian translator +Michel Robitaille French translator +Christian Rose Swedish translator +Stig E Sandoe Norwegian bokmÃ¥l translator +Benno Schulenberg Dutch translator +Danilo Segan Serbian translator +Keld Simonsen Danish translator +Guus Sliepen Dutch translator +Cezary Sliwa Polish translator +Pierre Tane French translator +Jacobo Tarrío Galician translator +Kjetil Torgrim Homme Norwegian nynorsk translator +Miquel Vidal Catalan translator +Phan Vinh Thinh Vietnamese translator +Pauli Virtanen Finnish translator +Peio Ziarsolo Basque translator + +Ben Armstrong Negative -r value idea, code +Thomas Dickey Curses help and advice +Sven Guckes Advice and Advocacy +Thijs Kinkhorst rnano.1 manpage +Jim Knoble Pico compat for browser +Ryan Krebs Many bug fixes and testing +Roy Lanek Advice and advocacy +Chuck Mead Feedback and RPM stuff +Mike Melanson Bugs +Neil Parks Bug reports and fixes +Jeremy Robichaud Beta tester +Bill Soudan Regex code, etc +Ken Tyler Search fixes and more + +$Id: THANKS 3303 2006-03-15 22:44:43Z jordi $ diff --git a/TODO b/TODO new file mode 100644 index 0000000..5756119 --- /dev/null +++ b/TODO @@ -0,0 +1,99 @@ +TODO file (? means the feature may be implemented, but not definitely) +------------------------------------------------------------------------ + +For the future (no targeted version, catch-all) +- Compatibility with vi/emacs status files so we can let other editors + know we're in a file? +- FriBidi support? +- Port to DJGPP? +- Make matching bracket searches sophisticated enough to skip over + brackets inside comments? +- Allow indentation of marked text by spaces as well as tabs? +- Allow indentation to add just enough columns to reach the nearest + multiple of tabsize, rather than always adding tabsize columns? +- Allow conversion between different character sets. Maybe use glib's + iconv() if the system's iconv() is inadequate, since we already use + glib's vsnprintf() if the system lacks vsnprintf()? +- Allow color syntaxes to apply to more than just color, so that we can + e.g. specify a different alternate spell checker depending on which + file type we have open. +- Allow even better file type detection than we have currently, e.g. + through libmagic? +- Allow setting marks (saved positions, not to be confused with the mark + set via Ctrl-^) at various lines and/or columns in the buffer, and + allow movement between them with a single keystroke? (we're running + out of keystrokes) +- Allow searching for and replacing newlines. +- Fix handling of bad/incomplete UTF-8 sequences to display one Unicode + FFFD (Replacement Character) per sequence instead of one per byte. + +For version 2.4: +- New regression framework built on expect. +- Allow text searches in the help browser. +- Handle window resizes better. After we resize, we should stay + wherever we were before we resized, as Pico does. +- Add the ability to move to different lines of the screen with a single + keystroke, e.g. M-` (M-~) to go to the top line, M-& (M-7) to go to + the center line, and M-' (M-") to go to the last line. +- Detect when we're pasting text, so that we can handle it differently + (i.e. faster than currently with screen redraws) +- Allow piping marked text to an external command and replacing it with + the command's output (as the internal spell checker already does with + the "spell" command)? + +For version 2.2: +- Rebindable keys? [DONE] +- Undo/Redo keys (M-U and M-E)? [DONE] +- Fix problems with color syntaxes' highlighting lines too aggressively [DONE] +- Allow nano to work like a pager (read from stdin) [DONE] +- Allow color syntaxes to be selected based on more than just filename + extension, [DONE] +- Allow soft wrapping as well as hard wrapping? [DONE] + +For version 2.0: +- UTF-8 support. [DONE] +- Support for paragraph searches. [DONE] +- Support for justifying the entire file at once. [DONE] +- Support for filename searches in the file browser. [DONE] +- Keystroke to implement "Add next sequence as raw" like vi's ^V. [DONE] +- Spell check selected text only. [DONE] +- Make "To Line" (^W^T) and "Read from Command" (^R^X) reenter their + parent menu when their keystroke is entered a second time (^W^T^T and + (^R^X^X) (requires figuring out when to keep cursor position and when + not to). [DONE] +- Fix resetstatuspos global which we shouldn't have. [DONE] + +For version 1.2: +- Single line scroll up/down? [DONE] +- Color syntax highlighting? (certainly seems like there's a demand for + it.) [DONE] +- .nanorc [DONE] +- Backup making (filename~)? [DONE] +- Search (etc.) string history [DONE] +- Implement Pico's -j and -g flags, as they are pretty easy to do. + [DONE] +- Make mouse support work with clicking on the shortcuts (-m). Must + make global variable pointing to current shortcut list to determine + what keystroke to ungetch(). [DONE]. +- Implement -o (chroot of sorts) [DONE] +- Allow -r to take a negative argument, meaning right margin instead of + left (allows resizing that way), formerly -W arg. [DONE] + +For version 1.0: +- Implement Spelling [DONE] +- Implement Help [DONE] +- Internationalization [In progress, translators welcome!] +- Allow nano to be resized in X. [DONE] +- On page up/down, put the cursor on the first line (like Pico), not the + center line [DONE] +- Rewrite edit_refresh, if at all possible [DONE] +- Implement justify function [DONE] +- Cut to end of line [DONE] +- Built-in speller command [needed for version 1.0] [DONE] +- Better statusbar interaction (scrolling, tab completion for filename) + [needed for version 1.0] [DONE] +- Now do username completion [DONE]. +- Unjustify command (^U after ^J) [DONE =-]. +- Username completion (~user) [DONE =-]. + +$Id: TODO 4516 2010-08-11 02:42:32Z astyanax $ diff --git a/UPGRADE b/UPGRADE new file mode 100644 index 0000000..72c6d67 --- /dev/null +++ b/UPGRADE @@ -0,0 +1,111 @@ +GNU nano upgrading information +============================== + +Visible changes since 2.0 +------------------------- +* Editor Features + - The ability to rebind (reassign) keys using the nanorc. + - The ability to read standard input like a pager ("nano -"). + - Color syntax highlighting can be set by the first line of a file. + - The ability to silence nanorc error messages (-q). + - Undo/redo operations (-u). + - Soft wrapping of text (-$). + +* File Handling + - Better handling of backup files: if nano can't write a backup file, + it won't try to write the original file afterward. + - Emergency savefiles retain ownerships and permissions when possible. + - Performance improvements in color syntax highlighting. + +Visible changes since 1.2 +------------------------- +* Editor Features + - Support for UTF-8. + - Moving to a specified line and column of a file, instead of just a + line (+LINE,COLUMN). + - Smart home key (-A). + - Creation of unique backup files in a specified directory (-C ). + - Insertion of spaces instead of a tab when Tab is pressed (-E). + - The long option for -K is now --rebindkeypad. + - Regular expression searching can now be toggled when nano is built + with --enable-tiny, so -R now means something else (see below). + - Restricted mode that provides more security than -o (-R). + - Blanking of the statusbar after 1 keystroke instead of 25 (-U). + - Word searches can optionally skip over punctuation (-W). + - Workaround for Delete's acting like Backspace (-d). + - Many more options are supported in the nanorc. + - Improvements to color syntax highlighting support: case insensitive + matching, the ability to include color syntaxes in separate files, + the ability to specify background colors without foreground colors, + etc. + - Insertion of single-byte characters via Esc Esc <000-255>. + - Insertion of all characters via "Verbatim Input" mode. + - Workaround for the "NumLock glitch". + - Meta-W now repeats the last search. Wrapping is now toggled via + Meta-L. + - Replacing and spell checking only selected text. + - Indenting lines with one keystroke. + - Copying text into the cutbuffer without cutting it. + - Scrolling the text up and down single lines without moving the + cursor. + - PageUp and PageDown work more smoothly when using -S. + - Scrolling the help text up and down single lines. + - Cutting all text from the current position to the end of the file + with one keystroke. + - Justifying the entire file with one keystroke. + - Justifying without removing spaces from the ends of lines. + - Unjustifying after justifying and immediately resizing. + - Going to the first or last line of the current paragraph. + - Going to the first or last line of the file without having to go to + the "Search" prompt. + - Searching for filenames in the file browser. + - Displaying spaces and tabs differently to make it easier to tell + them apart. + - Many more functions available at the statusbar prompt: moving to the + next or previous word, searching for matching brackets, "Verbatim + Input" mode, etc. + - The glibc 2.2.3 crashes involving extended regular expressions are + no longer worked around, as they can break anything using extended + regular expressions, and glibc 2.2.3 is old. You should upgrade to + at least glibc 2.2.4. + +* File Handling + - Automatic adding of newlines to the ends of files without them can + now be disabled (-L). + - Converting from and to DOS/Mac file format is now toggled only at + the "Write File" prompt, via Meta-D and Meta-M, and the default file + format to save in is now set depending on what format the file was + originally in. -D now makes nano use bold text instead of reverse + video text, and Meta-D at the edit window now does a + word/line/character count. -O now makes the unused second line of + the screen part of the edit window, and Meta-O at the edit window + now toggles this behavior. + - Converting files that contain a mix of DOS and Mac format lines. + - Automatic switching on of -N with binary files has been removed, as + it causes problems with UTF-8 support. + +Visible changes since 1.0 +------------------------- +* Editor Features + - Complete Pico compatibility (--pico has been removed, and -p means + something else, see below). + - nanorc support (see nanorc.sample included in sources). + - Smooth scrolling (-S). + - Support for searching for matching braces, brackets, etc. + - Help for all editor features. + - Color syntax highlighting support. + - Quote string support, useful for mail agents, etc. (-Q). + - Insertion of output of external commands. + - Optional enabling of XON and XOFF control characters (-p). + - Tons of bugfixes/enhancements for already existing features. + +* File Handling + - Overwriting and appending or prepending to files. + - Writing marked text to separate files. + - Multiple file buffers (-F). + - Converting from and to DOS/Mac file format (-D/-M, -N to disable). + - Better control character handling. + - Creation of backup files (-B). + - Search/replace history (-H). + +See the GNU nano manual for detailed information on each feature. diff --git a/aclocal.m4 b/aclocal.m4 new file mode 100644 index 0000000..f55b305 --- /dev/null +++ b/aclocal.m4 @@ -0,0 +1,960 @@ +# generated automatically by aclocal 1.11.1 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],, +[m4_warning([this file was generated for autoconf 2.65. +You have another version of autoconf. It may work, but is not guaranteed to. +If you have problems, you may need to regenerate the build system entirely. +To do so, use the procedure documented by the package, typically `autoreconf'.])]) + +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.11' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.11.1], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +[AM_AUTOMAKE_VERSION([1.11.1])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is `.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 9 + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 10 + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "GCJ", or "OBJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], UPC, [depcc="$UPC" am_compiler_list=], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +#serial 5 + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each `.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 16 + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.62])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl +]) + +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST(install_sh)]) + +# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 6 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) + +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_MKDIR_P +# --------------- +# Check for `mkdir -p'. +AC_DEFUN([AM_PROG_MKDIR_P], +[AC_PREREQ([2.60])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, +dnl while keeping a definition of mkdir_p for backward compatibility. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of +dnl Makefile.ins that do not define MKDIR_P, so we do our own +dnl adjustment using top_builddir (which is defined more often than +dnl MKDIR_P). +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl +case $mkdir_p in + [[\\/$]]* | ?:[[\\/]]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac +]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# ------------------------------ +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) + +# _AM_SET_OPTIONS(OPTIONS) +# ---------------------------------- +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor `install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in `make install-strip', and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of `v7', `ustar', or `pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. +AM_MISSING_PROG([AMTAR], [tar]) +m4_if([$1], [v7], + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + +m4_include([m4/ac_define_dir.m4]) +m4_include([m4/gettext.m4]) +m4_include([m4/glib-2.0.m4]) +m4_include([m4/iconv.m4]) +m4_include([m4/isc-posix.m4]) +m4_include([m4/lib-ld.m4]) +m4_include([m4/lib-link.m4]) +m4_include([m4/lib-prefix.m4]) +m4_include([m4/progtest.m4]) diff --git a/config.guess b/config.guess new file mode 100755 index 0000000..dc84c68 --- /dev/null +++ b/config.guess @@ -0,0 +1,1501 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 +# Free Software Foundation, Inc. + +timestamp='2009-11-20' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Originally written by Per Bothner. Please send patches (context +# diff format) to and include a ChangeLog +# entry. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=' +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +: ${TMPDIR=/tmp} ; + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ; set_cc_for_build= ;' + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently, or will in the future. + case "${UNAME_MACHINE_ARCH}" in + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ELF__ + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}" + exit ;; + *:OpenBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit ;; + alpha:OSF1:*:*) + case $UNAME_RELEASE in + *4.0) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE="alpha" ;; + "EV4.5 (21064)") + UNAME_MACHINE="alpha" ;; + "LCA4 (21066/21068)") + UNAME_MACHINE="alpha" ;; + "EV5 (21164)") + UNAME_MACHINE="alphaev5" ;; + "EV5.6 (21164A)") + UNAME_MACHINE="alphaev56" ;; + "EV5.6 (21164PC)") + UNAME_MACHINE="alphapca56" ;; + "EV5.7 (21164PC)") + UNAME_MACHINE="alphapca57" ;; + "EV6 (21264)") + UNAME_MACHINE="alphaev6" ;; + "EV6.7 (21264A)") + UNAME_MACHINE="alphaev67" ;; + "EV6.8CB (21264C)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8AL (21264B)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8CX (21264D)") + UNAME_MACHINE="alphaev68" ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE="alphaev69" ;; + "EV7 (21364)") + UNAME_MACHINE="alphaev7" ;; + "EV7.9 (21364A)") + UNAME_MACHINE="alphaev79" ;; + esac + # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + exit ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit ;; + arm:riscos:*:*|arm:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7; exit ;; + esac ;; + s390x:SunOS:*:*) + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + echo i386-pc-auroraux${UNAME_RELEASE} + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + eval $set_cc_for_build + SUN_ARCH="i386" + # If there is a compiler, see if it is configured for 64-bit objects. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. + # This test works for both compilers. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + SUN_ARCH="x86_64" + fi + fi + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } + echo mips-mips-riscos${UNAME_RELEASE} + exit ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit ;; + *:AIX:*:[456]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if [ ${HP_ARCH} = "hppa2.0w" ] + then + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + grep -q __LP64__ + then + HP_ARCH="hppa2.0w" + else + HP_ARCH="hppa64" + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + echo unknown-hitachi-hiuxwe2 + exit ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:FreeBSD:*:*) + case ${UNAME_MACHINE} in + pc98) + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + amd64) + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + *) + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + esac + exit ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit ;; + *:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; + *:Interix*:*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + authenticamd | genuineintel | EM64T) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) + echo ia64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit ;; + 8664:Windows_NT:*) + echo x86_64-pc-mks + exit ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? + echo i586-pc-interix + exit ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + *:GNU:*:*) + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu + exit ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} + exit ;; + arm*:Linux:*:*) + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + echo ${UNAME_MACHINE}-unknown-linux-gnu + else + echo ${UNAME_MACHINE}-unknown-linux-gnueabi + fi + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + cris:Linux:*:*) + echo cris-axis-linux-gnu + exit ;; + crisv32:Linux:*:*) + echo crisv32-axis-linux-gnu + exit ;; + frv:Linux:*:*) + echo frv-unknown-linux-gnu + exit ;; + i*86:Linux:*:*) + LIBC=gnu + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #ifdef __dietlibc__ + LIBC=dietlibc + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` + echo "${UNAME_MACHINE}-pc-linux-${LIBC}" + exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + mips:Linux:*:* | mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef ${UNAME_MACHINE} + #undef ${UNAME_MACHINE}el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=${UNAME_MACHINE}el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=${UNAME_MACHINE} + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } + ;; + or32:Linux:*:*) + echo or32-unknown-linux-gnu + exit ;; + padre:Linux:*:*) + echo sparc-unknown-linux-gnu + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-gnu + exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-gnu ;; + PA8*) echo hppa2.0-unknown-linux-gnu ;; + *) echo hppa-unknown-linux-gnu ;; + esac + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux + exit ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-gnu + exit ;; + x86_64:Linux:*:*) + echo x86_64-unknown-linux-gnu + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 + exit ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit ;; + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i586. + # Note: whatever this is, it MUST be the same as what config.sub + # prints for the "djgpp" host, or else GDB configury will decide that + # this is a cross-build. + echo i586-pc-msdosdjgpp + exit ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + NCR*:*:4.2:* | MPRAS*:*:4.2:*) + OS_REL='.3' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit ;; + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + echo i586-pc-haiku + exit ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + case $UNAME_PROCESSOR in + i386) + eval $set_cc_for_build + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + UNAME_PROCESSOR="x86_64" + fi + fi ;; + unknown) UNAME_PROCESSOR=powerpc ;; + esac + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + exit ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = "x86"; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + exit ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit ;; + NSE-?:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; + NSR-?:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" = "386"; then + UNAME_MACHINE=i386 + else + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; + i*86:AROS:*:*) + echo ${UNAME_MACHINE}-pc-aros + exit ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +eval $set_cc_for_build +cat >$dummy.c < +# include +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix\n"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +# if !defined (ultrix) +# include +# if defined (BSD) +# if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +# else +# if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# endif +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# else + printf ("vax-dec-ultrix\n"); exit (0); +# endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + c34*) + echo c34-convex-bsd + exit ;; + c38*) + echo c38-convex-bsd + exit ;; + c4*) + echo c4-convex-bsd + exit ;; + esac +fi + +cat >&2 < in order to provide the needed +information to handle your system. + +config.guess timestamp = $timestamp + +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = ${UNAME_MACHINE} +UNAME_RELEASE = ${UNAME_RELEASE} +UNAME_SYSTEM = ${UNAME_SYSTEM} +UNAME_VERSION = ${UNAME_VERSION} +EOF + +exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/config.h.in b/config.h.in new file mode 100644 index 0000000..8fbe824 --- /dev/null +++ b/config.h.in @@ -0,0 +1,282 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define this to enable debug messages and assert warnings. */ +#undef DEBUG + +/* Define this to disable the built-in file browser. */ +#undef DISABLE_BROWSER + +/* Define this to disable the help text display. */ +#undef DISABLE_HELP + +/* Define this to disable the justify routines. */ +#undef DISABLE_JUSTIFY + +/* Define this to disable the mouse support. */ +#undef DISABLE_MOUSE + +/* Define this to disable the setting of the operating directory (chroot of + sorts). */ +#undef DISABLE_OPERATINGDIR + +/* Define this to disable text wrapping as root by default. */ +#undef DISABLE_ROOTWRAPPING + +/* Define this to disable the spell checker functions. */ +#undef DISABLE_SPELLER + +/* Define to disable the tab completion functions for files and search + strings. */ +#undef DISABLE_TABCOMP + +/* Define this to disable all text wrapping. */ +#undef DISABLE_WRAPPING + +/* Define this to have syntax highlighting, requires regex.h and ENABLE_NANORC + too! */ +#undef ENABLE_COLOR + +/* Define this to enable multiple file buffers. */ +#undef ENABLE_MULTIBUFFER + +/* Define this to use .nanorc files. */ +#undef ENABLE_NANORC + +/* Define to 1 if translation of program messages to the user's native + language is requested. */ +#undef ENABLE_NLS + +/* Define this if your system has sufficient UTF-8 support (a wide curses + library, iswalnum(), iswpunct(), iswblank() or iswspace(), nl_langinfo, + mblen(), mbstowcs(), mbtowc(), wctomb(), and wcwidth()). */ +#undef ENABLE_UTF8 + +/* Define if the system supports GNU-style word boundaries in regexes. */ +#undef GNU_WORDBOUNDS + +/* Define to 1 if you have the header file. */ +#undef HAVE_CURSES_H + +/* Define if the GNU dcgettext() function is already present or preinstalled. + */ +#undef HAVE_DCGETTEXT + +/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ +#undef HAVE_DOPRNT + +/* Define to 1 if you have the `getdelim' function. */ +#undef HAVE_GETDELIM + +/* Define to 1 if you have the `getline' function. */ +#undef HAVE_GETLINE + +/* Define to 1 if you have the header file. */ +#undef HAVE_GETOPT_H + +/* Define to 1 if you have the `getopt_long' function. */ +#undef HAVE_GETOPT_LONG + +/* Define if the GNU gettext() function is already present or preinstalled. */ +#undef HAVE_GETTEXT + +/* Define if you have the iconv() function. */ +#undef HAVE_ICONV + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the `isblank' function. */ +#undef HAVE_ISBLANK + +/* Define to 1 if you have the `iswalnum' function. */ +#undef HAVE_ISWALNUM + +/* Define to 1 if you have the `iswblank' function. */ +#undef HAVE_ISWBLANK + +/* Define to 1 if you have the `iswpunct' function. */ +#undef HAVE_ISWPUNCT + +/* Define to 1 if you have the `iswspace' function. */ +#undef HAVE_ISWSPACE + +/* Define to 1 if you have the header file. */ +#undef HAVE_LIBINTL_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_LIMITS_H + +/* Define to 1 if you have the `mblen' function. */ +#undef HAVE_MBLEN + +/* Define to 1 if you have the `mbstowcs' function. */ +#undef HAVE_MBSTOWCS + +/* Define to 1 if you have the `mbtowc' function. */ +#undef HAVE_MBTOWC + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_NCURSES_H + +/* Define to 1 if you have the `nl_langinfo' function. */ +#undef HAVE_NL_LANGINFO + +/* Define to 1 if you have the header file. */ +#undef HAVE_REGEX_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDARG_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the `strcasecmp' function. */ +#undef HAVE_STRCASECMP + +/* Define to 1 if you have the `strcasestr' function. */ +#undef HAVE_STRCASESTR + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the `strncasecmp' function. */ +#undef HAVE_STRNCASECMP + +/* Define to 1 if you have the `strnlen' function. */ +#undef HAVE_STRNLEN + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_PARAM_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define this if your curses library has the use_default_colors() command. */ +#undef HAVE_USE_DEFAULT_COLORS + +/* Define to 1 if you have the `vprintf' function. */ +#undef HAVE_VPRINTF + +/* Define to 1 if you have the `vsnprintf' function. */ +#undef HAVE_VSNPRINTF + +/* Define to 1 if you have the header file. */ +#undef HAVE_WCHAR_H + +/* Define to 1 if you have the `wctomb' function. */ +#undef HAVE_WCTOMB + +/* Define to 1 if you have the header file. */ +#undef HAVE_WCTYPE_H + +/* Define to 1 if you have the `wcwidth' function. */ +#undef HAVE_WCWIDTH + +/* Define this to enable extra stuff. */ +#undef NANO_EXTRA + +/* Define this to make the nano executable as small as possible. */ +#undef NANO_TINY + +/* Shut up assert warnings :-) */ +#undef NDEBUG + +/* Define this if you need the _XOPEN_SOURCE_EXTENDED macro for color support + */ +#undef NEED_XOPEN_SOURCE_EXTENDED + +/* Name of package */ +#undef PACKAGE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Where data are placed to. */ +#undef PKGDATADIR + +/* Specify alternate rcfile name (default: .nanorc) */ +#undef RCFILE_NAME + +/* Define this if you know your curses library allows LINES and COLS to be + redefined to deal with a resizing bug */ +#undef REDEFINIG_MACROS_OK + +/* Define as the return type of signal handlers (`int' or `void'). */ +#undef RETSIGTYPE + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define to use the slang wrappers for curses instead of native curses. */ +#undef USE_SLANG + +/* Enable extensions on AIX 3, Interix. */ +#ifndef _ALL_SOURCE +# undef _ALL_SOURCE +#endif +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# undef _GNU_SOURCE +#endif +/* Enable threading extensions on Solaris. */ +#ifndef _POSIX_PTHREAD_SEMANTICS +# undef _POSIX_PTHREAD_SEMANTICS +#endif +/* Enable extensions on HP NonStop. */ +#ifndef _TANDEM_SOURCE +# undef _TANDEM_SOURCE +#endif +/* Enable general extensions on Solaris. */ +#ifndef __EXTENSIONS__ +# undef __EXTENSIONS__ +#endif + + +/* Version number of package */ +#undef VERSION + +/* Number of bits in a file offset, on hosts where this is settable. */ +#undef _FILE_OFFSET_BITS + +/* Define for large files, on AIX-style hosts. */ +#undef _LARGE_FILES + +/* Define to 1 if on MINIX. */ +#undef _MINIX + +/* Define to 2 if the system does not provide POSIX.1 features except with + this defined. */ +#undef _POSIX_1_SOURCE + +/* Define to 1 if you need to in order for `stat' and other things to work. */ +#undef _POSIX_SOURCE diff --git a/config.rpath b/config.rpath new file mode 100755 index 0000000..5ead758 --- /dev/null +++ b/config.rpath @@ -0,0 +1,513 @@ +#! /bin/sh +# Output a system dependent set of variables, describing how to set the +# run time search path of shared libraries in an executable. +# +# Copyright 1996-2002 Free Software Foundation, Inc. +# Taken from GNU libtool, 2001 +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. +# +# The first argument passed to this file is the canonical host specification, +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld +# should be set by the caller. +# +# The set of defined variables is at the end of this script. + +# All known linkers require a `.a' archive for static linking (except M$VC, +# which needs '.lib'). +libext=a +shlibext= + +host="$1" +host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + +wl= +if test "$GCC" = yes; then + wl='-Wl,' +else + case "$host_os" in + aix3* | aix4* | aix5*) + wl='-Wl,' + ;; + hpux9* | hpux10* | hpux11*) + wl='-Wl,' + ;; + irix5* | irix6*) + wl='-Wl,' + ;; + linux*) + echo '__INTEL_COMPILER' > conftest.$ac_ext + if $CC -E conftest.$ac_ext >/dev/null | grep __INTEL_COMPILER >/dev/null + then + : + else + # Intel icc + wl='-Qoption,ld,' + fi + ;; + osf3* | osf4* | osf5*) + wl='-Wl,' + ;; + solaris*) + wl='-Wl,' + ;; + sunos4*) + wl='-Qoption ld ' + ;; + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + if test "x$host_vendor" = xsni; then + wl='-LD' + else + wl='-Wl,' + fi + ;; + esac +fi + +hardcode_libdir_flag_spec= +hardcode_libdir_separator= +hardcode_direct=no +hardcode_minus_L=no + +case "$host_os" in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + openbsd*) + with_gnu_ld=no + ;; +esac + +ld_shlibs=yes +if test "$with_gnu_ld" = yes; then + case "$host_os" in + aix3* | aix4* | aix5*) + # On AIX, the GNU linker is very broken + ld_shlibs=no + ;; + amigaos*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can use + # them. + ld_shlibs=no + ;; + beos*) + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + cygwin* | mingw* | pw32*) + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + ;; + solaris* | sysv5*) + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + sunos4*) + hardcode_direct=yes + ;; + *) + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + esac + if test "$ld_shlibs" = yes; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + fi +else + case "$host_os" in + aix3*) + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + else + aix_use_runtimelinking=no + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix5*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + esac + fi + hardcode_direct=yes + hardcode_libdir_separator=':' + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + hardcode_direct=yes + else + # We have old collect2 + hardcode_direct=unsupported + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + esac + fi + if test "$aix_use_runtimelinking" = yes; then + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + else + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' + fi + fi + ;; + amigaos*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # see comment about different semantics on the GNU ld section + ld_shlibs=no + ;; + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + libext=lib + ;; + darwin* | rhapsody*) + hardcode_direct=yes + ;; + freebsd1*) + ld_shlibs=no + ;; + freebsd2.2*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + freebsd2*) + hardcode_direct=yes + hardcode_minus_L=yes + ;; + freebsd*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + hpux9* | hpux10* | hpux11*) + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_minus_L=yes # Not in the search PATH, but as the default + # location of the library. + ;; + irix5* | irix6*) + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + netbsd*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + newsos6) + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + openbsd*) + hardcode_direct=yes + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + else + case "$host_os" in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + ;; + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + osf3*) + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + osf4* | osf5*) + if test "$GCC" = yes; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + # Both cc and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + ;; + sco3.2v5*) + ;; + solaris*) + hardcode_libdir_flag_spec='-R$libdir' + ;; + sunos4*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + ;; + sysv4) + if test "x$host_vendor" = xsno; then + hardcode_direct=yes # is this really true??? + else + hardcode_direct=no # Motorola manual says yes, but my tests say they lie + fi + ;; + sysv4.3*) + ;; + sysv5*) + hardcode_libdir_flag_spec= + ;; + uts4*) + hardcode_libdir_flag_spec='-L$libdir' + ;; + dgux*) + hardcode_libdir_flag_spec='-L$libdir' + ;; + sysv4*MP*) + if test -d /usr/nec; then + ld_shlibs=yes + fi + ;; + sysv4.2uw2*) + hardcode_direct=yes + hardcode_minus_L=no + ;; + sysv5uw7* | unixware7*) + ;; + *) + ld_shlibs=no + ;; + esac +fi + +# Check dynamic linker characteristics +libname_spec='lib$name' +sys_lib_dlsearch_path_spec="/lib /usr/lib" +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +case "$host_os" in + aix3*) + shlibext=so + ;; + aix4* | aix5*) + shlibext=so + ;; + amigaos*) + shlibext=ixlibrary + ;; + beos*) + shlibext=so + ;; + bsdi4*) + shlibext=so + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + ;; + cygwin* | mingw* | pw32*) + case $GCC,$host_os in + yes,cygwin*) + shlibext=dll.a + ;; + yes,mingw*) + shlibext=dll + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` + ;; + yes,pw32*) + shlibext=dll + ;; + *) + shlibext=dll + ;; + esac + ;; + darwin* | rhapsody*) + shlibext=dylib + ;; + freebsd1*) + ;; + freebsd*) + shlibext=so + ;; + gnu*) + shlibext=so + ;; + hpux9* | hpux10* | hpux11*) + shlibext=sl + ;; + irix5* | irix6*) + shlibext=so + case "$host_os" in + irix5*) + libsuff= shlibsuff= + ;; + *) + case $LD in + *-32|*"-32 ") libsuff= shlibsuff= ;; + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 ;; + *-64|*"-64 ") libsuff=64 shlibsuff=64 ;; + *) libsuff= shlibsuff= ;; + esac + ;; + esac + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + ;; + linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) + ;; + linux-gnu*) + shlibext=so + ;; + netbsd*) + shlibext=so + ;; + newsos6) + shlibext=so + ;; + openbsd*) + shlibext=so + ;; + os2*) + libname_spec='$name' + shlibext=dll + ;; + osf3* | osf4* | osf5*) + shlibext=so + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + sco3.2v5*) + shlibext=so + ;; + solaris*) + shlibext=so + ;; + sunos4*) + shlibext=so + ;; + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + shlibext=so + case "$host_vendor" in + motorola) + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + uts4*) + shlibext=so + ;; + dgux*) + shlibext=so + ;; + sysv4*MP*) + if test -d /usr/nec; then + shlibext=so + fi + ;; +esac + +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' +escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` +escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` +escaped_sys_lib_search_path_spec=`echo "X$sys_lib_search_path_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` +escaped_sys_lib_dlsearch_path_spec=`echo "X$sys_lib_dlsearch_path_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` + +sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <. Submit a context +# diff and a properly formatted GNU ChangeLog entry. +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS + $0 [OPTION] ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit ;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ + kopensolaris*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple | -axis | -knuth | -cray | -microblaze) + os= + basic_machine=$1 + ;; + -bluegene*) + os=-cnk + ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 + ;; + -scout) + ;; + -wrs) + os=-vxworks + basic_machine=$1 + ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5) + os=-sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; + -mint | -mint[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ + | bfin \ + | c4x | clipper \ + | d10v | d30v | dlx | dsp16xx \ + | fido | fr30 | frv \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ + | lm32 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | mcore | mep | metag \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64octeon | mips64octeonel \ + | mips64orion | mips64orionel \ + | mips64r5900 | mips64r5900el \ + | mips64vr | mips64vrel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | moxie \ + | mt \ + | msp430 \ + | nios | nios2 \ + | ns16k | ns32k \ + | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | pyramid \ + | rx \ + | score \ + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu | strongarm \ + | tahoe | thumb | tic4x | tic80 | tron \ + | ubicom32 \ + | v850 | v850e \ + | we32k \ + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ + | z8k | z80) + basic_machine=$basic_machine-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12 | picochip) + # Motorola 68HC11/12. + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + ms1) + basic_machine=mt-unknown + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i*86 | x86_64) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* | avr32-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ + | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | elxsi-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ + | lm32-* \ + | m32c-* | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64octeon-* | mips64octeonel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64r5900-* | mips64r5900el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ + | msp430-* \ + | nios-* | nios2-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | pyramid-* \ + | romp-* | rs6000-* | rx-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ + | tahoe-* | thumb-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ + | tron-* \ + | ubicom32-* \ + | v850-* | v850e-* | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ + | xstormy16-* | xtensa*-* \ + | ymp-* \ + | z8k-* | z80-*) + ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) + basic_machine=$basic_machine-unknown + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 386bsd) + basic_machine=i386-unknown + os=-bsd + ;; + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + a29khif) + basic_machine=a29k-amd + os=-udi + ;; + abacus) + basic_machine=abacus-unknown + ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amd64) + basic_machine=x86_64-pc + ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-unknown + ;; + amigaos | amigados) + basic_machine=m68k-unknown + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + os=-bsd + ;; + aros) + basic_machine=i386-pc + os=-aros + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + blackfin) + basic_machine=bfin-unknown + os=-linux + ;; + blackfin-*) + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + bluegene*) + basic_machine=powerpc-ibm + os=-cnk + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + cegcc) + basic_machine=arm-unknown + os=-cegcc + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | j90) + basic_machine=j90-cray + os=-unicos + ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16) + basic_machine=cr16-unknown + os=-elf + ;; + crds | unos) + basic_machine=m68k-crds + ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + dicos) + basic_machine=i686-pc + os=-dicos + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + os=-ose + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + h8300xray) + basic_machine=h8300-hitachi + os=-xray + ;; + h8500hms) + basic_machine=h8500-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + basic_machine=hppa1.1-hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + hppaosf) + basic_machine=hppa1.1-hp + os=-osf + ;; + hppro) + basic_machine=hppa1.1-hp + os=-proelf + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; +# I'm not sure what "Sysv32" means. Should this be sysv3.2? + i*86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i*86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i*86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i*86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + i386mach) + basic_machine=i386-mach + os=-mach + ;; + i386-vsta | vsta) + basic_machine=i386-unknown + os=-vsta + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m68knommu) + basic_machine=m68k-unknown + os=-linux + ;; + m68knommu-*) + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + microblaze) + basic_machine=microblaze-xilinx + ;; + mingw32) + basic_machine=i386-pc + os=-mingw32 + ;; + mingw32ce) + basic_machine=arm-unknown + os=-mingw32ce + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + monitor) + basic_machine=m68k-rom68k + os=-coff + ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; + msdos) + basic_machine=i386-pc + os=-msdos + ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; + op50n-* | op60c-*) + basic_machine=hppa1.1-oki + os=-proelf + ;; + openrisc | openrisc-*) + basic_machine=or32-unknown + ;; + os400) + basic_machine=powerpc-ibm + os=-os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + os=-ose + ;; + os68k) + basic_machine=m68k-none + os=-os68k + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + parisc) + basic_machine=hppa-unknown + os=-linux + ;; + parisc-*) + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; + pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; + pentium4) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium4-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=power-ibm + ;; + ppc) basic_machine=powerpc-unknown + ;; + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little | ppc64-le | powerpc64-little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + rdos) + basic_machine=i386-pc + os=-rdos + ;; + rom68k) + basic_machine=m68k-rom68k + os=-coff + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; + sa29200) + basic_machine=a29k-amd + os=-udi + ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sh5el) + basic_machine=sh5le-unknown + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + st2000) + basic_machine=m68k-tandem + ;; + stratus) + basic_machine=i860-stratus + os=-sysv4 + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray + os=-unicos + ;; + tic54x | c54x*) + basic_machine=tic54x-unknown + os=-coff + ;; + tic55x | c55x*) + basic_machine=tic55x-unknown + os=-coff + ;; + tic6x | c6x*) + basic_machine=tic6x-unknown + os=-coff + ;; + tile*) + basic_machine=tile-unknown + os=-linux-gnu + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + tpf) + basic_machine=s390x-ibm + os=-tpf + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + os=-none + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + w65*) + basic_machine=w65-wdc + os=-none + ;; + w89k-*) + basic_machine=hppa1.1-winbond + os=-proelf + ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; + z8k-*-coff) + basic_machine=z8k-unknown + os=-sim + ;; + z80-*-coff) + basic_machine=z80-unknown + os=-sim + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + mmix) + basic_machine=mmix-knuth + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -auroraux) + os=-auroraux + ;; + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ + | -sym* | -kopensolaris* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* | -aros* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -openbsd* | -solidbsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* | -cegcc* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) + case $basic_machine in + x86-* | i*86-*) + ;; + *) + os=-nto$os + ;; + esac + ;; + -nto-qnx*) + ;; + -nto*) + os=`echo $os | sed -e 's|nto|nto-qnx|'` + ;; + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -opened*) + os=-openedition + ;; + -os400*) + os=-os400 + ;; + -wince*) + os=-wince + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -atheos*) + os=-atheos + ;; + -syllable*) + os=-syllable + ;; + -386bsd) + os=-bsd + ;; + -ctix* | -uts*) + os=-sysv + ;; + -nova*) + os=-rtmk-nova + ;; + -ns2 ) + os=-nextstep2 + ;; + -nsk*) + os=-nsk + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -tpf*) + os=-tpf + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -ose*) + os=-ose + ;; + -es1800*) + os=-ose + ;; + -xenix) + os=-xenix + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -kaos*) + os=-kaos + ;; + -zvmoe) + os=-zvmoe + ;; + -dicos*) + os=-dicos + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; + *-acorn) + os=-riscix1.2 + ;; + arm*-rebel) + os=-linux + ;; + arm*-semi) + os=-aout + ;; + c4x-* | tic4x-*) + os=-coff + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + # This also exists in the configure program, but was not the + # default. + # os=-sunos4 + ;; + m68*-cisco) + os=-aout + ;; + mep-*) + os=-elf + ;; + mips*-cisco) + os=-elf + ;; + mips*-*) + os=-elf + ;; + or32-*) + os=-coff + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-haiku) + os=-haiku + ;; + *-ibm) + os=-aix + ;; + *-knuth) + os=-mmixware + ;; + *-wec) + os=-proelf + ;; + *-winbond) + os=-proelf + ;; + *-oki) + os=-proelf + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f30[01]-fujitsu | f700-fujitsu) + os=-uxpv + ;; + *-rom68k) + os=-coff + ;; + *-*bug) + os=-coff + ;; + *-apple) + os=-macos + ;; + *-atari*) + os=-mint + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -cnk*|-aix*) + vendor=ibm + ;; + -beos*) + vendor=be + ;; + -hpux*) + vendor=hp + ;; + -mpeix*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs* | -opened*) + vendor=ibm + ;; + -os400*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -tpf*) + vendor=ibm + ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + -hms*) + vendor=hitachi + ;; + -mpw* | -macos*) + vendor=apple + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + vendor=atari + ;; + -vos*) + vendor=stratus + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os +exit + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/configure b/configure new file mode 100755 index 0000000..238dbf9 --- /dev/null +++ b/configure @@ -0,0 +1,9911 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.65 for GNU nano 2.2.6. +# +# Report bugs to . +# +# +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + # We cannot yet assume a decent shell, so we have to provide a + # neutralization value for shells without unset; and this also + # works around shells that cannot unset nonexistent variables. + BASH_ENV=/dev/null + ENV=/dev/null + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and nano-devel@gnu.org +$0: about your system, including any error possibly output +$0: before this message. Then install a modern shell, or +$0: manually run the script under such a shell if you do +$0: have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error ERROR [LINENO LOG_FD] +# --------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with status $?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='GNU nano' +PACKAGE_TARNAME='nano' +PACKAGE_VERSION='2.2.6' +PACKAGE_STRING='GNU nano 2.2.6' +PACKAGE_BUGREPORT='nano-devel@gnu.org' +PACKAGE_URL='http://www.gnu.org/software/nano/' + +ac_unique_file="src/nano.c" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIBOBJS +GROFF_HTML_FALSE +GROFF_HTML_TRUE +CURSES_LIB +GLIB_MKENUMS +GOBJECT_QUERY +GLIB_GENMARSHAL +GLIB_LIBS +GLIB_CFLAGS +PKG_CONFIG +USE_NANORC_FALSE +USE_NANORC_TRUE +USE_COLOR_FALSE +USE_COLOR_TRUE +PKGDATADIR +USE_NLS_FALSE +USE_NLS_TRUE +POSUB +LTLIBINTL +LIBINTL +INTLLIBS +LTLIBICONV +LIBICONV +USE_NLS +MSGMERGE +XGETTEXT +GMSGFMT +MSGFMT +MKINSTALLDIRS +LN_S +EGREP +GREP +CPP +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_os +target_vendor +target_cpu +target +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_dependency_tracking +enable_largefile +with_gnu_ld +enable_rpath +with_libiconv_prefix +enable_nls +with_libintl_prefix +enable_debug +enable_tiny +enable_extra +enable_browser +enable_help +enable_justify +enable_mouse +enable_operatingdir +enable_speller +enable_tabcomp +enable_wrapping +enable_wrapping_as_root +enable_color +enable_multibuffer +enable_nanorc +enable_all +enable_utf8 +with_slang +enable_altrcname +enable_glibtest +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +CPP' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information." + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used." >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures GNU nano 2.2.6 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/nano] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] + --target=TARGET configure for building compilers for TARGET [HOST] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of GNU nano 2.2.6:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + --disable-largefile omit support for large files + --disable-rpath do not hardcode runtime library paths + --disable-nls do not use Native Language Support + --enable-debug Enable debugging (disabled by default) + --enable-tiny Disable features for the sake of size + --disable-extra Disable extra features, currently only easter eggs + --disable-browser Disable built-in file browser + --disable-help Disable help functions + --disable-justify Disable justify/unjustify functions + --disable-mouse Disable mouse support (and -m flag) + --disable-operatingdir Disable setting of operating directory (chroot of sorts) + --disable-speller Disable spell checker functions + --disable-tabcomp Disable tab completion functions + --disable-wrapping Disable all wrapping of text (and -w flag) + --disable-wrapping-as-root Disable wrapping of text as root by default + --disable-color Disable color and syntax highlighting + --disable-multibuffer Disable multiple file buffers + --disable-nanorc Disable use of .nanorc files + --enable-all Enable ALL extra nano functionality (ignored for compatibility as all options default to on) + --enable-utf8 Enable UTF-8 support + --enable-altrcname Specify alternate rcfile name (default: .nanorc) + --disable-glibtest do not try to compile and run a test GLIB program + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-gnu-ld assume the C compiler uses GNU ld default=no + --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib + --without-libiconv-prefix don't search for libiconv in includedir and libdir + --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib + --without-libintl-prefix don't search for libintl in includedir and libdir + --with-slang=DIR Use the slang library instead of curses + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + CPP C preprocessor + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +GNU nano home page: . +General help using GNU software: . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +GNU nano configure 2.2.6 +generated by GNU Autoconf 2.65 + +Copyright (C) 2009 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( cat <<\_ASBOX +## --------------------------------- ## +## Report this to nano-devel@gnu.org ## +## --------------------------------- ## +_ASBOX + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} # ac_fn_c_check_header_mongrel + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} # ac_fn_c_check_header_compile + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} # ac_fn_c_check_func +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by GNU nano $as_me 2.2.6, which was +generated by GNU Autoconf 2.65. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + cat <<\_ASBOX +## ---------------- ## +## Cache variables. ## +## ---------------- ## +_ASBOX + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + cat <<\_ASBOX +## ----------------- ## +## Output variables. ## +## ----------------- ## +_ASBOX + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + cat <<\_ASBOX +## ------------------- ## +## File substitutions. ## +## ------------------- ## +_ASBOX + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + cat <<\_ASBOX +## ----------- ## +## confdefs.h. ## +## ----------- ## +_ASBOX + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + ac_site_file1=$CONFIG_SITE +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + for ac_t in install-sh install.sh shtool; do + if test -f "$ac_dir/$ac_t"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/$ac_t -c" + break 2 + fi + done +done +if test -z "$ac_aux_dir"; then + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if test "${ac_cv_build+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if test "${ac_cv_host+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +$as_echo_n "checking target system type... " >&6; } +if test "${ac_cv_target+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "x$target_alias" = x; then + ac_cv_target=$ac_cv_host +else + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || + as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +$as_echo "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; +esac +target=$ac_cv_target +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_target +shift +target_cpu=$1 +target_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=$* +IFS=$ac_save_IFS +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- +am__api_version='1.11' + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if test "${ac_cv_path_mkdir+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_AWK+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='nano' + VERSION='2.2.6' + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. + +AMTAR=${AMTAR-"${am_missing_run}tar"} + +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' + + + + + +ac_config_headers="$ac_config_headers config.h" + + + + + +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +# Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "no acceptable C compiler found in \$PATH +See \`config.log' for more details." "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ as_fn_set_status 77 +as_fn_error "C compiler cannot create executables +See \`config.log' for more details." "$LINENO" 5; }; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if test "${ac_cv_objext+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot compute suffix of object files: cannot compile +See \`config.log' for more details." "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if test "${ac_cv_c_compiler_gnu+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if test "${ac_cv_prog_cc_g+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if test "${ac_cv_prog_cc_c89+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if test "${ac_cv_prog_CPP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details." "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if test "${ac_cv_path_GREP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if test "${ac_cv_path_EGREP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if test "${ac_cv_header_stdc+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" +if test "x$ac_cv_header_minix_config_h" = x""yes; then : + MINIX=yes +else + MINIX= +fi + + + if test "$MINIX" = yes; then + +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h + + +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h + + +$as_echo "#define _MINIX 1" >>confdefs.h + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# define __EXTENSIONS__ 1 + $ac_includes_default +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_safe_to_define___extensions__=yes +else + ac_cv_safe_to_define___extensions__=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } + test $ac_cv_safe_to_define___extensions__ = yes && + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h + + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h + + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h + + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h + + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "no acceptable C compiler found in \$PATH +See \`config.log' for more details." "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if test "${ac_cv_c_compiler_gnu+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if test "${ac_cv_prog_cc_g+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if test "${ac_cv_prog_cc_c89+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 +$as_echo_n "checking for strerror in -lcposix... " >&6; } +if test "${ac_cv_lib_cposix_strerror+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcposix $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char strerror (); +int +main () +{ +return strerror (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_cposix_strerror=yes +else + ac_cv_lib_cposix_strerror=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 +$as_echo "$ac_cv_lib_cposix_strerror" >&6; } +if test "x$ac_cv_lib_cposix_strerror" = x""yes; then : + LIBS="$LIBS -lcposix" +fi + + + +# Check whether --enable-largefile was given. +if test "${enable_largefile+set}" = set; then : + enableval=$enable_largefile; +fi + +if test "$enable_largefile" != no; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 +$as_echo_n "checking for special C compiler options needed for large files... " >&6; } +if test "${ac_cv_sys_largefile_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_sys_largefile_CC=no + if test "$GCC" != yes; then + ac_save_CC=$CC + while :; do + # IRIX 6.2 and later do not support large files by default, + # so use the C compiler's -n32 option if that helps. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF + if ac_fn_c_try_compile "$LINENO"; then : + break +fi +rm -f core conftest.err conftest.$ac_objext + CC="$CC -n32" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_largefile_CC=' -n32'; break +fi +rm -f core conftest.err conftest.$ac_objext + break + done + CC=$ac_save_CC + rm -f conftest.$ac_ext + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 +$as_echo "$ac_cv_sys_largefile_CC" >&6; } + if test "$ac_cv_sys_largefile_CC" != no; then + CC=$CC$ac_cv_sys_largefile_CC + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 +$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } +if test "${ac_cv_sys_file_offset_bits+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_file_offset_bits=no; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#define _FILE_OFFSET_BITS 64 +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_file_offset_bits=64; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_file_offset_bits=unknown + break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 +$as_echo "$ac_cv_sys_file_offset_bits" >&6; } +case $ac_cv_sys_file_offset_bits in #( + no | unknown) ;; + *) +cat >>confdefs.h <<_ACEOF +#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits +_ACEOF +;; +esac +rm -rf conftest* + if test $ac_cv_sys_file_offset_bits = unknown; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 +$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } +if test "${ac_cv_sys_large_files+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_large_files=no; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#define _LARGE_FILES 1 +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_large_files=1; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_large_files=unknown + break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 +$as_echo "$ac_cv_sys_large_files" >&6; } +case $ac_cv_sys_large_files in #( + no | unknown) ;; + *) +cat >>confdefs.h <<_ACEOF +#define _LARGE_FILES $ac_cv_sys_large_files +_ACEOF +;; +esac +rm -rf conftest* + fi +fi + + + + + + MKINSTALLDIRS= + if test -n "$ac_aux_dir"; then + MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" + fi + if test -z "$MKINSTALLDIRS"; then + MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" + fi + + + + + + # Extract the first word of "msgfmt", so it can be a program name with args. +set dummy msgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_MSGFMT+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case "$MSGFMT" in + /*) + ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && + (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then + ac_cv_path_MSGFMT="$ac_dir/$ac_word" + break + fi + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" + ;; +esac +fi +MSGFMT="$ac_cv_path_MSGFMT" +if test "$MSGFMT" != ":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 +$as_echo "$MSGFMT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + # Extract the first word of "gmsgfmt", so it can be a program name with args. +set dummy gmsgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_GMSGFMT+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $GMSGFMT in + [\\/]* | ?:[\\/]*) + ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" + ;; +esac +fi +GMSGFMT=$ac_cv_path_GMSGFMT +if test -n "$GMSGFMT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 +$as_echo "$GMSGFMT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + # Extract the first word of "xgettext", so it can be a program name with args. +set dummy xgettext; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_XGETTEXT+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case "$XGETTEXT" in + /*) + ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && + (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then + ac_cv_path_XGETTEXT="$ac_dir/$ac_word" + break + fi + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" + ;; +esac +fi +XGETTEXT="$ac_cv_path_XGETTEXT" +if test "$XGETTEXT" != ":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 +$as_echo "$XGETTEXT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + rm -f messages.po + + # Extract the first word of "msgmerge", so it can be a program name with args. +set dummy msgmerge; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_MSGMERGE+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case "$MSGMERGE" in + /*) + ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then + ac_cv_path_MSGMERGE="$ac_dir/$ac_word" + break + fi + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" + ;; +esac +fi +MSGMERGE="$ac_cv_path_MSGMERGE" +if test "$MSGMERGE" != ":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 +$as_echo "$MSGMERGE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + if test "$GMSGFMT" != ":"; then + if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && + (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then + : ; + else + GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 +$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } + GMSGFMT=":" + fi + fi + + if test "$XGETTEXT" != ":"; then + if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && + (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then + : ; + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 +$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } + XGETTEXT=":" + fi + rm -f messages.po + fi + + ac_config_commands="$ac_config_commands default-1" + + + + if test "X$prefix" = "XNONE"; then + acl_final_prefix="$ac_default_prefix" + else + acl_final_prefix="$prefix" + fi + if test "X$exec_prefix" = "XNONE"; then + acl_final_exec_prefix='${prefix}' + else + acl_final_exec_prefix="$exec_prefix" + fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" + prefix="$acl_save_prefix" + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 +$as_echo_n "checking for ld used by GCC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | [A-Za-z]:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the path of ld + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if test "${acl_cv_path_LD+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + acl_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then + test "$with_gnu_ld" != no && break + else + test "$with_gnu_ld" != yes && break + fi + fi + done + IFS="$ac_save_ifs" +else + acl_cv_path_LD="$LD" # Let the user override the test with a path. +fi +fi + +LD="$acl_cv_path_LD" +if test -n "$LD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if test "${acl_cv_prog_gnu_ld+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU ld's only accept -v. +if $LD -v 2>&1 &5; then + acl_cv_prog_gnu_ld=yes +else + acl_cv_prog_gnu_ld=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 +$as_echo "$acl_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$acl_cv_prog_gnu_ld + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 +$as_echo_n "checking for shared library run path origin... " >&6; } +if test "${acl_cv_rpath+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh + . ./conftest.sh + rm -f ./conftest.sh + acl_cv_rpath=done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 +$as_echo "$acl_cv_rpath" >&6; } + wl="$acl_cv_wl" + libext="$acl_cv_libext" + shlibext="$acl_cv_shlibext" + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" + hardcode_direct="$acl_cv_hardcode_direct" + hardcode_minus_L="$acl_cv_hardcode_minus_L" + sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" + sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" + # Check whether --enable-rpath was given. +if test "${enable_rpath+set}" = set; then : + enableval=$enable_rpath; : +else + enable_rpath=yes +fi + + + + + + + + + use_additional=yes + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + +# Check whether --with-libiconv-prefix was given. +if test "${with_libiconv_prefix+set}" = set; then : + withval=$with_libiconv_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + else + additional_includedir="$withval/include" + additional_libdir="$withval/lib" + fi + fi + +fi + + LIBICONV= + LTLIBICONV= + INCICONV= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='iconv ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + if test $use_additional = yes; then + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then + found_dir="$additional_libdir" + found_so="$additional_libdir/lib$name.$shlibext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + else + if test -f "$additional_libdir/lib$name.$libext"; then + found_dir="$additional_libdir" + found_a="$additional_libdir/lib$name.$libext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBICONV; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then + found_dir="$dir" + found_so="$dir/lib$name.$shlibext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + else + if test -f "$dir/lib$name.$libext"; then + found_dir="$dir" + found_a="$dir/lib$name.$libext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$hardcode_direct" = yes; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" + else + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBICONV; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" + fi + if test "$hardcode_minus_L" != no; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" + else + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" + else + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */lib | */lib/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux*) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCICONV; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/lib"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/lib"; then + if test -n "$GCC"; then + case $host_os in + linux*) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBICONV; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBICONV; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" + ;; + esac + done + fi + else + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" + done + fi + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 +$as_echo_n "checking whether NLS is requested... " >&6; } + # Check whether --enable-nls was given. +if test "${enable_nls+set}" = set; then : + enableval=$enable_nls; USE_NLS=$enableval +else + USE_NLS=yes +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +$as_echo "$USE_NLS" >&6; } + + + + LIBINTL= + LTLIBINTL= + POSUB= + + if test "$USE_NLS" = "yes"; then + gt_use_preinstalled_gnugettext=no + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 +$as_echo_n "checking for GNU gettext in libc... " >&6; } +if test "${gt_cv_func_gnugettext2_libc+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +extern int _nl_msg_cat_cntr; +extern int *_nl_domain_bindings; +int +main () +{ +bindtextdomain ("", ""); +return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gt_cv_func_gnugettext2_libc=yes +else + gt_cv_func_gnugettext2_libc=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5 +$as_echo "$gt_cv_func_gnugettext2_libc" >&6; } + + if test "$gt_cv_func_gnugettext2_libc" != "yes"; then + + + + + + am_save_CPPFLAGS="$CPPFLAGS" + + for element in $INCICONV; do + haveit= + for x in $CPPFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" + fi + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 +$as_echo_n "checking for iconv... " >&6; } +if test "${am_cv_func_iconv+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + am_cv_func_iconv="no, consider installing GNU libiconv" + am_cv_lib_iconv=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + am_cv_func_iconv=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$am_cv_func_iconv" != yes; then + am_save_LIBS="$LIBS" + LIBS="$LIBS $LIBICONV" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + am_cv_lib_iconv=yes + am_cv_func_iconv=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$am_save_LIBS" + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 +$as_echo "$am_cv_func_iconv" >&6; } + if test "$am_cv_func_iconv" = yes; then + +$as_echo "#define HAVE_ICONV 1" >>confdefs.h + + fi + if test "$am_cv_lib_iconv" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 +$as_echo_n "checking how to link with libiconv... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 +$as_echo "$LIBICONV" >&6; } + else + CPPFLAGS="$am_save_CPPFLAGS" + LIBICONV= + LTLIBICONV= + fi + + + + + + + use_additional=yes + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + +# Check whether --with-libintl-prefix was given. +if test "${with_libintl_prefix+set}" = set; then : + withval=$with_libintl_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + else + additional_includedir="$withval/include" + additional_libdir="$withval/lib" + fi + fi + +fi + + LIBINTL= + LTLIBINTL= + INCINTL= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='intl ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + if test $use_additional = yes; then + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then + found_dir="$additional_libdir" + found_so="$additional_libdir/lib$name.$shlibext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + else + if test -f "$additional_libdir/lib$name.$libext"; then + found_dir="$additional_libdir" + found_a="$additional_libdir/lib$name.$libext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBINTL; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then + found_dir="$dir" + found_so="$dir/lib$name.$shlibext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + else + if test -f "$dir/lib$name.$libext"; then + found_dir="$dir" + found_a="$dir/lib$name.$libext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$hardcode_direct" = yes; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + else + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBINTL; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" + fi + if test "$hardcode_minus_L" != no; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + else + LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" + else + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */lib | */lib/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux*) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCINTL; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/lib"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/lib"; then + if test -n "$GCC"; then + case $host_os in + linux*) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBINTL; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBINTL; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" + ;; + esac + done + fi + else + LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" + done + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 +$as_echo_n "checking for GNU gettext in libintl... " >&6; } +if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gt_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $INCINTL" + gt_save_LIBS="$LIBS" + LIBS="$LIBS $LIBINTL" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias (); +int +main () +{ +bindtextdomain ("", ""); +return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gt_cv_func_gnugettext2_libintl=yes +else + gt_cv_func_gnugettext2_libintl=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then + LIBS="$LIBS $LIBICONV" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias (); +int +main () +{ +bindtextdomain ("", ""); +return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + LIBINTL="$LIBINTL $LIBICONV" + LTLIBINTL="$LTLIBINTL $LTLIBICONV" + gt_cv_func_gnugettext2_libintl=yes + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + CPPFLAGS="$gt_save_CPPFLAGS" + LIBS="$gt_save_LIBS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5 +$as_echo "$gt_cv_func_gnugettext2_libintl" >&6; } + fi + + if test "$gt_cv_func_gnugettext2_libc" = "yes" \ + || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \ + && test "$PACKAGE" != gettext; }; then + gt_use_preinstalled_gnugettext=yes + else + LIBINTL= + LTLIBINTL= + INCINTL= + fi + + + + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + +$as_echo "#define ENABLE_NLS 1" >>confdefs.h + + else + USE_NLS=no + fi + fi + + if test "$USE_NLS" = "yes"; then + + if test "$gt_use_preinstalled_gnugettext" = "yes"; then + if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 +$as_echo_n "checking how to link with libintl... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 +$as_echo "$LIBINTL" >&6; } + + for element in $INCINTL; do + haveit= + for x in $CPPFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" + fi + done + + fi + + +$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h + + +$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h + + fi + + POSUB=po + fi + + + + INTLLIBS="$LIBINTL" + + + + + + + if test x$USE_NLS = xyes; then + USE_NLS_TRUE= + USE_NLS_FALSE='#' +else + USE_NLS_TRUE='#' + USE_NLS_FALSE= +fi + + + +pkgdatadir=${datadir}/${PACKAGE} + + prefix_NONE= + exec_prefix_NONE= + test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix + test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix + eval ac_define_dir="\"$pkgdatadir\"" + eval ac_define_dir="\"$ac_define_dir\"" + PKGDATADIR="$ac_define_dir" + + +cat >>confdefs.h <<_ACEOF +#define PKGDATADIR "$ac_define_dir" +_ACEOF + + test "$prefix_NONE" && prefix=NONE + test "$exec_prefix_NONE" && exec_prefix=NONE + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if test "${ac_cv_header_stdc+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +for ac_header in getopt.h libintl.h limits.h regex.h sys/param.h wchar.h wctype.h stdarg.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + +# Check whether --enable-debug was given. +if test "${enable_debug+set}" = set; then : + enableval=$enable_debug; if test x$enableval = xyes; then + +$as_echo "#define DEBUG 1" >>confdefs.h + debug_support=yes +fi +fi + + +if test x$debug_support != xyes; then + +$as_echo "#define NDEBUG 1" >>confdefs.h + +fi + +# Check whether --enable-tiny was given. +if test "${enable_tiny+set}" = set; then : + enableval=$enable_tiny; if test x$enableval = xyes; then + +$as_echo "#define NANO_TINY 1" >>confdefs.h + tiny_support=yes + +$as_echo "#define DISABLE_BROWSER 1" >>confdefs.h + + +$as_echo "#define DISABLE_HELP 1" >>confdefs.h + + +$as_echo "#define DISABLE_JUSTIFY 1" >>confdefs.h + + +$as_echo "#define DISABLE_MOUSE 1" >>confdefs.h + + +$as_echo "#define DISABLE_OPERATINGDIR 1" >>confdefs.h + + +$as_echo "#define DISABLE_SPELLER 1" >>confdefs.h + + +$as_echo "#define DISABLE_TABCOMP 1" >>confdefs.h + + +$as_echo "#define DISABLE_WRAPPING 1" >>confdefs.h + +fi +fi + + + +# Check whether --enable-extra was given. +if test "${enable_extra+set}" = set; then : + enableval=$enable_extra; if test x$enableval != xno; then + +$as_echo "#define NANO_EXTRA 1" >>confdefs.h + extra_support=yes +fi +else + if test x$enable_tiny != xyes; then + +$as_echo "#define NANO_EXTRA 1" >>confdefs.h + extra_support=yes + fi +fi + + +# Check whether --enable-browser was given. +if test "${enable_browser+set}" = set; then : + enableval=$enable_browser; if test x$enableval != xyes; then + +$as_echo "#define DISABLE_BROWSER 1" >>confdefs.h + +fi +fi + + +# Check whether --enable-help was given. +if test "${enable_help+set}" = set; then : + enableval=$enable_help; if test x$enableval != xyes; then + +$as_echo "#define DISABLE_HELP 1" >>confdefs.h + +fi +fi + + +# Check whether --enable-justify was given. +if test "${enable_justify+set}" = set; then : + enableval=$enable_justify; if test x$enableval != xyes; then + +$as_echo "#define DISABLE_JUSTIFY 1" >>confdefs.h + +fi +fi + + +# Check whether --enable-mouse was given. +if test "${enable_mouse+set}" = set; then : + enableval=$enable_mouse; if test x$enableval != xyes; then + +$as_echo "#define DISABLE_MOUSE 1" >>confdefs.h + +fi +fi + + +# Check whether --enable-operatingdir was given. +if test "${enable_operatingdir+set}" = set; then : + enableval=$enable_operatingdir; if test x$enableval != xyes; then + +$as_echo "#define DISABLE_OPERATINGDIR 1" >>confdefs.h + +fi +fi + + +# Check whether --enable-speller was given. +if test "${enable_speller+set}" = set; then : + enableval=$enable_speller; if test x$enableval != xyes; then + +$as_echo "#define DISABLE_SPELLER 1" >>confdefs.h + +fi +fi + + +# Check whether --enable-tabcomp was given. +if test "${enable_tabcomp+set}" = set; then : + enableval=$enable_tabcomp; if test x$enableval != xyes; then + +$as_echo "#define DISABLE_TABCOMP 1" >>confdefs.h + +fi +fi + + +# Check whether --enable-wrapping was given. +if test "${enable_wrapping+set}" = set; then : + enableval=$enable_wrapping; if test x$enableval != xyes; then + +$as_echo "#define DISABLE_WRAPPING 1" >>confdefs.h + +fi +fi + + +# Check whether --enable-wrapping-as-root was given. +if test "${enable_wrapping_as_root+set}" = set; then : + enableval=$enable_wrapping_as_root; if test x$enableval != xyes; then + +$as_echo "#define DISABLE_ROOTWRAPPING 1" >>confdefs.h + +fi +fi + + +# Check whether --enable-color was given. +if test "${enable_color+set}" = set; then : + enableval=$enable_color; if test x$enableval != xno; then + if test x$ac_cv_header_regex_h = xyes; then + +$as_echo "#define ENABLE_NANORC 1" >>confdefs.h + nanorc_support=yes + +$as_echo "#define ENABLE_COLOR 1" >>confdefs.h + color_support=yes + else + as_fn_error " +*** The header file regex.h was not found. If you wish to use color +*** support this header file is required. Please either install C +*** libraries that include the regex.h file or call the configure +*** script with --disable-color." "$LINENO" 5 + fi +fi +else + if test x$enable_tiny != xyes; then + if test x$ac_cv_header_regex_h = xyes; then + +$as_echo "#define ENABLE_NANORC 1" >>confdefs.h + nanorc_support=yes + +$as_echo "#define ENABLE_COLOR 1" >>confdefs.h + color_support=yes + else + as_fn_error " +*** The header file regex.h was not found. If you wish to use color +*** support this header file is required. Please either install C +*** libraries that include the regex.h file or call the configure +*** script with --disable-color." "$LINENO" 5 + fi + fi + +fi + + +# Check whether --enable-multibuffer was given. +if test "${enable_multibuffer+set}" = set; then : + enableval=$enable_multibuffer; if test x$enableval != xno; then + +$as_echo "#define ENABLE_MULTIBUFFER 1" >>confdefs.h + multibuffer_support=yes +fi +else + if test x$enable_tiny != xyes; then + +$as_echo "#define ENABLE_MULTIBUFFER 1" >>confdefs.h + multibuffer_support=yes + fi +fi + + +# Check whether --enable-nanorc was given. +if test "${enable_nanorc+set}" = set; then : + enableval=$enable_nanorc; if test x$enableval != xno; then + +$as_echo "#define ENABLE_NANORC 1" >>confdefs.h + nanorc_support=yes +fi +else + if test x$enable_tiny != xyes; then + +$as_echo "#define ENABLE_NANORC 1" >>confdefs.h + nanorc_support=yes + fi +fi + + +# Check whether --enable-all was given. +if test "${enable_all+set}" = set; then : + enableval=$enable_all; if test x$enableval = xyes; then + echo "--enable-all option no longer needed, ignoring for compatibility" +fi +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable UTF-8 support" >&5 +$as_echo_n "checking whether to enable UTF-8 support... " >&6; } +# Check whether --enable-utf8 was given. +if test "${enable_utf8+set}" = set; then : + enableval=$enable_utf8; if test x$enableval = xyes; then + enable_utf8=yes +else + enable_utf8=no +fi +else + enable_utf8=auto +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_utf8" >&5 +$as_echo "$enable_utf8" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use slang" >&5 +$as_echo_n "checking whether to use slang... " >&6; } +CURSES_LIB_NAME="" + +# Check whether --with-slang was given. +if test "${with_slang+set}" = set; then : + withval=$with_slang; case "$with_slang" in + no) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + if test x$with_slang != xyes; then + # Add additional search path + LDFLAGS="-L$with_slang/lib $LDFLAGS" + CPPFLAGS="-I$with_slang/include $CPPFLAGS" + fi + + if test x$enable_utf8 != xno; then + ac_fn_c_check_header_mongrel "$LINENO" "slcurses.h" "ac_cv_header_slcurses_h" "$ac_includes_default" +if test "x$ac_cv_header_slcurses_h" = x""yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLutf8_enable in -lslang" >&5 +$as_echo_n "checking for SLutf8_enable in -lslang... " >&6; } + _libs=$LIBS + LIBS="$LIBS -lslang" + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can not use slang when cross-compiling" >&5 +$as_echo "$as_me: WARNING: *** Can not use slang when cross-compiling" >&2;} +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +int main(void) +{ + SLutf8_enable(1); + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define USE_SLANG 1" >>confdefs.h + slang_support=yes + CURSES_LIB_WIDE=yes + if test x$with_slang != xyes; then + CURSES_LIB="-L${with_slang}/lib -lslang" + else + CURSES_LIB="-lslang" + fi + CURSES_LIB_NAME=slang +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + # We might need the term library + for termlib in ncurses curses termcap terminfo termlib; do + as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5 +$as_echo_n "checking for tputs in -l${termlib}... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l${termlib} $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tputs (); +int +main () +{ +return tputs (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + tcap="-l$termlib" +fi + + test -n "$tcap" && break + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLutf8_enable in -lslang $tcap" >&5 +$as_echo_n "checking for SLutf8_enable in -lslang $tcap... " >&6; } + LIBS="$LIBS $tcap" + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can not use slang when cross-compiling" >&5 +$as_echo "$as_me: WARNING: *** Can not use slang when cross-compiling" >&2;} +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +int main(void) +{ + SLutf8_enable(1); + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define USE_SLANG 1" >>confdefs.h + slang_support=yes + CURSES_LIB_WIDE=yes + if test x$with_slang != xyes; then + CURSES_LIB="-L${with_slang}/lib -lslang $tcap" + else + CURSES_LIB="-lslang $tcap" + fi + CURSES_LIB_NAME=slang +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + # We might need the math library + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLutf8_enable in -lslang $tcap -lm" >&5 +$as_echo_n "checking for SLutf8_enable in -lslang $tcap -lm... " >&6; } + LIBS="$LIBS -lm" + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can not use slang when cross-compiling" >&5 +$as_echo "$as_me: WARNING: *** Can not use slang when cross-compiling" >&2;} +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +int main(void) +{ + SLutf8_enable(1); + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define USE_SLANG 1" >>confdefs.h + slang_support=yes + CURSES_LIB_WIDE=yes + if test x$with_slang != xyes; then + CURSES_LIB="-L${with_slang}/lib -lslang $tcap -lm" + else + CURSES_LIB="-lslang $tcap -lm" + fi + CURSES_LIB_NAME=slang +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +else + as_fn_error " +*** The header file slcurses.h was not found. If you wish to use +*** slang support this header file is required. Please either +*** install a version of slang that includes the slcurses.h file or +*** do not call the configure script with --with-slang." "$LINENO" 5 +fi + + + fi + + if eval "test x$CURSES_LIB_NAME = x"; then + # Reset libs if the above slang tests failed + if test x$enable_utf8 != xno; then + LIBS=$_libs + fi + + ac_fn_c_check_header_mongrel "$LINENO" "slcurses.h" "ac_cv_header_slcurses_h" "$ac_includes_default" +if test "x$ac_cv_header_slcurses_h" = x""yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLtt_initialize in -lslang" >&5 +$as_echo_n "checking for SLtt_initialize in -lslang... " >&6; } + _libs=$LIBS + LIBS="$LIBS -lslang" + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can not use slang when cross-compiling" >&5 +$as_echo "$as_me: WARNING: *** Can not use slang when cross-compiling" >&2;} +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +int main(void) +{ + SLtt_initialize(NULL); + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define USE_SLANG 1" >>confdefs.h + slang_support=yes + if test x$with_slang != xyes; then + CURSES_LIB="-L${with_slang}/lib -lslang" + else + CURSES_LIB="-lslang" + fi + CURSES_LIB_NAME=slang +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + # We might need the term library + for termlib in ncurses curses termcap terminfo termlib; do + as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5 +$as_echo_n "checking for tputs in -l${termlib}... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l${termlib} $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tputs (); +int +main () +{ +return tputs (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + tcap="-l$termlib" +fi + + test -n "$tcap" && break + done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLtt_initialize in -lslang $tcap" >&5 +$as_echo_n "checking for SLtt_initialize in -lslang $tcap... " >&6; } + LIBS="$LIBS $tcap" + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can not use slang when cross-compiling" >&5 +$as_echo "$as_me: WARNING: *** Can not use slang when cross-compiling" >&2;} +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +int main(void) +{ + SLtt_initialize(NULL); + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define USE_SLANG 1" >>confdefs.h + slang_support=yes + if test x$with_slang != xyes; then + CURSES_LIB="-L${with_slang}/lib -lslang $tcap" + else + CURSES_LIB="-lslang $tcap" + fi + CURSES_LIB_NAME=slang +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + # We might need the math library + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLtt_initialize in -lslang $tcap -lm" >&5 +$as_echo_n "checking for SLtt_initialize in -lslang $tcap -lm... " >&6; } + LIBS="$LIBS -lm" + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can not use slang when cross-compiling" >&5 +$as_echo "$as_me: WARNING: *** Can not use slang when cross-compiling" >&2;} +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +int main(void) +{ + SLtt_initialize(NULL); + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define USE_SLANG 1" >>confdefs.h + slang_support=yes + if test x$with_slang != xyes; then + CURSES_LIB="-L${with_slang}/lib -lslang $tcap -lm" + else + CURSES_LIB="-lslang $tcap -lm" + fi + CURSES_LIB_NAME=slang +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +else + as_fn_error " +*** The header file slcurses.h was not found. If you wish to use +*** slang support this header file is required. Please either +*** install a version of slang that includes the slcurses.h file or +*** do not call the configure script with --with-slang." "$LINENO" 5 +fi + + + fi + + if test "${_libs+set}" = "set"; then + LIBS=$_libs + fi + + if test x$with_slang != xyes; then + LDFLAGS=${_ldflags} + fi + ;; + esac +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test x$CURSES_LIB_NAME = xslang; then + +$as_echo "#define NANO_TINY 1" >>confdefs.h + tiny_support=yes + +$as_echo "#define DISABLE_BROWSER 1" >>confdefs.h + + +$as_echo "#define DISABLE_HELP 1" >>confdefs.h + + +$as_echo "#define DISABLE_JUSTIFY 1" >>confdefs.h + + +$as_echo "#define DISABLE_MOUSE 1" >>confdefs.h + + +$as_echo "#define DISABLE_OPERATINGDIR 1" >>confdefs.h + + +$as_echo "#define DISABLE_SPELLER 1" >>confdefs.h + + +$as_echo "#define DISABLE_TABCOMP 1" >>confdefs.h + + +$as_echo "#define DISABLE_WRAPPING 1" >>confdefs.h + +fi + + if test x$color_support = xyes; then + USE_COLOR_TRUE= + USE_COLOR_FALSE='#' +else + USE_COLOR_TRUE='#' + USE_COLOR_FALSE= +fi + + if test x$nanorc_support = xyes; then + USE_NANORC_TRUE= + USE_NANORC_FALSE='#' +else + USE_NANORC_TRUE='#' + USE_NANORC_FALSE= +fi + + +# Check whether --enable-altrcname was given. +if test "${enable_altrcname+set}" = set; then : + enableval=$enable_altrcname; if test x$enableval != no; then + +cat >>confdefs.h <<_ACEOF +#define RCFILE_NAME "$enableval" +_ACEOF + rcfilename=$enableval +fi +fi + + + +for ac_func in getdelim getline isblank strcasecmp strcasestr strncasecmp strnlen vsnprintf +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + +if test x$enable_utf8 != xno; then + for ac_func in iswalnum iswblank iswpunct iswspace nl_langinfo mblen mbstowcs mbtowc wctomb wcwidth +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +fi + +if test x$ac_cv_func_vsnprintf = xno; then + # Check whether --enable-glibtest was given. +if test "${enable_glibtest+set}" = set; then : + enableval=$enable_glibtest; +else + enable_glibtest=yes +fi + + + pkg_config_args=glib-2.0 + for module in . glib + do + case "$module" in + gmodule) + pkg_config_args="$pkg_config_args gmodule-2.0" + ;; + gmodule-no-export) + pkg_config_args="$pkg_config_args gmodule-no-export-2.0" + ;; + gobject) + pkg_config_args="$pkg_config_args gobject-2.0" + ;; + gthread) + pkg_config_args="$pkg_config_args gthread-2.0" + ;; + esac + done + + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + no_glib="" + + if test x$PKG_CONFIG != xno ; then + if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then + : + else + echo *** pkg-config too old; version 0.7 or better required. + no_glib=yes + PKG_CONFIG=no + fi + else + no_glib=yes + fi + + min_glib_version=2.0.0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5 +$as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; } + + if test x$PKG_CONFIG != xno ; then + ## don't try to run the test against uninstalled libtool libs + if $PKG_CONFIG --uninstalled $pkg_config_args; then + echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" + enable_glibtest=no + fi + + if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then + : + else + no_glib=yes + fi + fi + + if test x"$no_glib" = x ; then + GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` + GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` + GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` + + GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` + GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` + glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` + glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` + glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` + if test "x$enable_glibtest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GLIB_CFLAGS" + LIBS="$GLIB_LIBS $LIBS" + rm -f conf.glibtest + if test "$cross_compiling" = yes; then : + echo $ac_n "cross compiling; assumed OK... $ac_c" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include + +int +main () +{ + int major, minor, micro; + char *tmp_version; + + system ("touch conf.glibtest"); + + /* HP/UX 9 (%@#!) writes to sscanf strings */ + tmp_version = g_strdup("$min_glib_version"); + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + printf("%s, bad version string\n", "$min_glib_version"); + exit(1); + } + + if ((glib_major_version != $glib_config_major_version) || + (glib_minor_version != $glib_config_minor_version) || + (glib_micro_version != $glib_config_micro_version)) + { + printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", + $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, + glib_major_version, glib_minor_version, glib_micro_version); + printf ("*** was found! If pkg-config was correct, then it is best\n"); + printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); + printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); + printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); + printf("*** required on your system.\n"); + printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); + printf("*** to point to the correct configuration files\n"); + } + else if ((glib_major_version != GLIB_MAJOR_VERSION) || + (glib_minor_version != GLIB_MINOR_VERSION) || + (glib_micro_version != GLIB_MICRO_VERSION)) + { + printf("*** GLIB header files (version %d.%d.%d) do not match\n", + GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); + printf("*** library (version %d.%d.%d)\n", + glib_major_version, glib_minor_version, glib_micro_version); + } + else + { + if ((glib_major_version > major) || + ((glib_major_version == major) && (glib_minor_version > minor)) || + ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) + { + return 0; + } + else + { + printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", + glib_major_version, glib_minor_version, glib_micro_version); + printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", + major, minor, micro); + printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); + printf("***\n"); + printf("*** If you have already installed a sufficiently new version, this error\n"); + printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); + printf("*** being found. The easiest way to fix this is to remove the old version\n"); + printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); + printf("*** correct copy of pkg-config. (In this case, you will have to\n"); + printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); + printf("*** so that the correct libraries are found at run-time))\n"); + } + } + return 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + no_glib=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_glib" = x ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 +$as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; } + : + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + if test "$PKG_CONFIG" = "no" ; then + echo "*** A new enough version of pkg-config was not found." + echo "*** See http://www.freedesktop.org/software/pkgconfig/" + else + if test -f conf.glibtest ; then + : + else + echo "*** Could not run GLIB test program, checking why..." + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GLIB_CFLAGS" + LIBS="$LIBS $GLIB_LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main () +{ + return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding GLIB or finding the wrong" + echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" + echo "*** to the installed location Also, make sure you have run ldconfig if that" + echo "*** is required on your system" + echo "***" + echo "*** If you have an old version installed, it is best to remove it, although" + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" +else + echo "*** The test program failed to compile or link. See the file config.log for the" + echo "*** exact error that occured. This usually means GLIB is incorrectly installed." +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + GLIB_CFLAGS="" + GLIB_LIBS="" + GLIB_GENMARSHAL="" + GOBJECT_QUERY="" + GLIB_MKENUMS="" + as_fn_error " +*** vsnprintf() not found. GLIB 2.x not found either. You should +*** install the GLIB 2.x library which can be found at +*** ftp://ftp.gtk.org/." "$LINENO" 5 + fi + + + + + + rm -f conf.glibtest + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 +$as_echo_n "checking return type of signal handlers... " >&6; } +if test "${ac_cv_type_signal+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include + +int +main () +{ +return *(signal (0, 0)) (0) == 1; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_type_signal=int +else + ac_cv_type_signal=void +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 +$as_echo "$ac_cv_type_signal" >&6; } + +cat >>confdefs.h <<_ACEOF +#define RETSIGTYPE $ac_cv_type_signal +_ACEOF + + +for ac_func in vprintf +do : + ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" +if test "x$ac_cv_func_vprintf" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_VPRINTF 1 +_ACEOF + +ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" +if test "x$ac_cv_func__doprnt" = x""yes; then : + +$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h + +fi + +fi +done + + +for ac_func in getopt_long +do : + ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" +if test "x$ac_cv_func_getopt_long" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GETOPT_LONG 1 +_ACEOF + +fi +done + + +if eval "test x$CURSES_LIB_NAME = x"; then + for ac_header in ncurses.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" +if test "x$ac_cv_header_ncurses_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_NCURSES_H 1 +_ACEOF + +fi + +done + + + if test x$enable_utf8 != xno; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for get_wch in -lncursesw" >&5 +$as_echo_n "checking for get_wch in -lncursesw... " >&6; } +if test "${ac_cv_lib_ncursesw_get_wch+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lncursesw $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char get_wch (); +int +main () +{ +return get_wch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ncursesw_get_wch=yes +else + ac_cv_lib_ncursesw_get_wch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_get_wch" >&5 +$as_echo "$ac_cv_lib_ncursesw_get_wch" >&6; } +if test "x$ac_cv_lib_ncursesw_get_wch" = x""yes; then : + CURSES_LIB="-lncursesw" CPPFLAGS="-I/usr/include/ncursesw $CPPFLAGS" CURSES_LIB_NAME=ncursesw CURSES_LIB_WIDE=yes +fi + + fi + + if eval "test x$CURSES_LIB_NAME = x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5 +$as_echo_n "checking for initscr in -lncurses... " >&6; } +if test "${ac_cv_lib_ncurses_initscr+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lncurses $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char initscr (); +int +main () +{ +return initscr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ncurses_initscr=yes +else + ac_cv_lib_ncurses_initscr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5 +$as_echo "$ac_cv_lib_ncurses_initscr" >&6; } +if test "x$ac_cv_lib_ncurses_initscr" = x""yes; then : + CURSES_LIB="-lncurses" CURSES_LIB_NAME=ncurses +fi + + fi +fi + +if eval "test x$CURSES_LIB_NAME = x"; then + for ac_header in curses.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" +if test "x$ac_cv_header_curses_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_CURSES_H 1 +_ACEOF + +fi + +done + + + if test x$enable_utf8 != xno; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for get_wch in -lcurses" >&5 +$as_echo_n "checking for get_wch in -lcurses... " >&6; } +if test "${ac_cv_lib_curses_get_wch+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcurses $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char get_wch (); +int +main () +{ +return get_wch (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_curses_get_wch=yes +else + ac_cv_lib_curses_get_wch=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_get_wch" >&5 +$as_echo "$ac_cv_lib_curses_get_wch" >&6; } +if test "x$ac_cv_lib_curses_get_wch" = x""yes; then : + CURSES_LIB="-lcurses" CURSES_LIB_NAME=curses CURSES_LIB_WIDE=yes +fi + + fi + + if eval "test x$CURSES_LIB_NAME = x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5 +$as_echo_n "checking for initscr in -lcurses... " >&6; } +if test "${ac_cv_lib_curses_initscr+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcurses $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char initscr (); +int +main () +{ +return initscr (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_curses_initscr=yes +else + ac_cv_lib_curses_initscr=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5 +$as_echo "$ac_cv_lib_curses_initscr" >&6; } +if test "x$ac_cv_lib_curses_initscr" = x""yes; then : + CURSES_LIB="-lcurses" CURSES_LIB_NAME=curses +fi + + fi +fi + +if eval "test x$CURSES_LIB_NAME = x"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +*** No curses lib available. Consider getting the official ncurses +*** distribution from ftp://ftp.gnu.org/pub/gnu/ncurses if you get +*** errors compiling nano." >&5 +$as_echo "$as_me: WARNING: +*** No curses lib available. Consider getting the official ncurses +*** distribution from ftp://ftp.gnu.org/pub/gnu/ncurses if you get +*** errors compiling nano." >&2;} +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CURSES_LIB_NAME as the curses library" >&5 +$as_echo "Using $CURSES_LIB_NAME as the curses library" >&6; } +fi + +as_ac_Lib=`$as_echo "ac_cv_lib_$CURSES_LIB_NAME''_use_default_colors" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_default_colors in -l$CURSES_LIB_NAME" >&5 +$as_echo_n "checking for use_default_colors in -l$CURSES_LIB_NAME... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$CURSES_LIB_NAME $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char use_default_colors (); +int +main () +{ +return use_default_colors (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + +$as_echo "#define HAVE_USE_DEFAULT_COLORS 1" >>confdefs.h + +fi + + + +LIBS="$LIBS $CURSES_LIB" + + + +if test "x$GLIB_CFLAGS" != "x"; then + CFLAGS="$CFLAGS $GLIB_CFLAGS" +fi +if test "x$GLIB_LIBS" != "x"; then + LDFLAGS="$LDFLAGS $GLIB_LIBS" +fi + +if test x$enable_utf8 != xno && \ + test x$CURSES_LIB_WIDE = xyes && \ + test x$ac_cv_func_iswalnum = xyes && \ + test x$ac_cv_func_iswpunct = xyes && \ + (test x$ac_cv_func_iswblank = xyes || test x$ac_cv_func_iswspace = xyes) && \ + test x$ac_cv_func_nl_langinfo = xyes && \ + test x$ac_cv_func_mblen = xyes && \ + test x$ac_cv_func_mbstowcs = xyes && \ + test x$ac_cv_func_mbtowc = xyes && \ + test x$ac_cv_func_wctomb = xyes && \ + test x$ac_cv_func_wcwidth = xyes; then + +$as_echo "#define ENABLE_UTF8 1" >>confdefs.h + +else + if test x$enable_utf8 = xyes; then + as_fn_error " +*** UTF-8 support was requested, but insufficient UTF-8 support was +*** detected in your curses and/or C libraries. Please verify that your +*** slang was built with UTF-8 support or your curses was built with +*** wide character support, and that your C library was built with wide +*** character support." "$LINENO" 5 + elif test x$enable_utf8 != xno; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +*** Insufficient UTF-8 support was detected in your curses and/or C +*** libraries. If you want UTF-8 support, please verify that your slang +*** was built with UTF-8 support or your curses was built with wide +*** character support, and that your C library was built with wide +*** character support." >&5 +$as_echo "$as_me: WARNING: +*** Insufficient UTF-8 support was detected in your curses and/or C +*** libraries. If you want UTF-8 support, please verify that your slang +*** was built with UTF-8 support or your curses was built with wide +*** character support, and that your C library was built with wide +*** character support." >&2;} + fi +fi + +if test x$color_support = xyes; then + # now check for the end of word boundary support (/< and />) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU-style word boundary regex support" >&5 +$as_echo_n "checking for GNU-style word boundary regex support... " >&6; } + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can't check for GNU-style word boundary support when cross-compiling" >&5 +$as_echo "$as_me: WARNING: *** Can't check for GNU-style word boundary support when cross-compiling" >&2;} + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#include +int main(void) +{ + regex_t r; + size_t nmatch; + regmatch_t pmatch; + + if (regcomp(&r, "\\\\>", REG_EXTENDED|REG_NOSUB)) + return 1; + if (regexec(&r, "word boundary", nmatch, &pmatch, 0)) + return 1; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define GNU_WORDBOUNDS 1" >>confdefs.h + gnu_wordbounds=yes +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +# if test x$CURSES_LIB_NAME = xcurses; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE_EXTENDED is needed" >&5 +$as_echo_n "checking whether _XOPEN_SOURCE_EXTENDED is needed... " >&6; } + if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can't check need for _XOPEN_SOURCE_EXTENDED when cross-compiling" >&5 +$as_echo "$as_me: WARNING: *** Can't check need for _XOPEN_SOURCE_EXTENDED when cross-compiling" >&2;} +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +int main(void) +{ + int testcolor = COLOR_WHITE; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + if test "$cross_compiling" = yes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot run test program while cross compiling +See \`config.log' for more details." "$LINENO" 5; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#ifndef _XOPEN_SOURCE_EXTENDED +#define _XOPEN_SOURCE_EXTENDED 1 +#endif +#include +int main(void) +{ + int testcolor = COLOR_WHITE; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define NEED_XOPEN_SOURCE_EXTENDED 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not sure" >&5 +$as_echo "not sure" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't successfully compile basic color test with or without _XOPEN_SOURCE_EXTENDED" >&5 +$as_echo "$as_me: WARNING: *** Couldn't successfully compile basic color test with or without _XOPEN_SOURCE_EXTENDED" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** This build may not compile. Consider configuring with --disable-color or installing ncurses" >&5 +$as_echo "$as_me: WARNING: *** This build may not compile. Consider configuring with --disable-color or installing ncurses" >&2;} +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi +#fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LINES and COLS can be redefined" >&5 +$as_echo_n "checking whether LINES and COLS can be redefined... " >&6; } +if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can't check for macro redefinability when cross-compiling" >&5 +$as_echo "$as_me: WARNING: *** Can't check for macro redefinability when cross-compiling" >&2;} +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +int main(void) +{ + LINES = 80; + COLS = 25; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +$as_echo "#define REDEFINIG_MACROS_OK 1" >>confdefs.h + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + + +# Check for groff html support +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HTML support in groff" >&5 +$as_echo_n "checking for HTML support in groff... " >&6; } +groff -t -mandoc -Thtml /dev/null +if test $? -ne 0 ; then + echo "no" + echo "*** Will not generate HTML version of man pages ***" + echo "*** Consider installing a newer version of groff with HTML support ***" + groff_html_support=no +else + echo "yes" + groff_html_support=yes +fi + if test x$groff_html_support = xyes; then + GROFF_HTML_TRUE= + GROFF_HTML_FALSE='#' +else + GROFF_HTML_TRUE='#' + GROFF_HTML_FALSE= +fi + + + +ac_config_files="$ac_config_files Makefile doc/Makefile doc/nanorc.sample doc/man/Makefile doc/man/fr/Makefile doc/syntax/Makefile doc/texinfo/Makefile m4/Makefile po/Makefile.in src/Makefile nano.spec" + + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + test "x$cache_file" != "x/dev/null" && + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + cat confcache >$cache_file + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${USE_NLS_TRUE}" && test -z "${USE_NLS_FALSE}"; then + as_fn_error "conditional \"USE_NLS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${USE_COLOR_TRUE}" && test -z "${USE_COLOR_FALSE}"; then + as_fn_error "conditional \"USE_COLOR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${USE_NANORC_TRUE}" && test -z "${USE_NANORC_FALSE}"; then + as_fn_error "conditional \"USE_NANORC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${GROFF_HTML_TRUE}" && test -z "${GROFF_HTML_FALSE}"; then + as_fn_error "conditional \"GROFF_HTML\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: ${CONFIG_STATUS=./config.status} +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error ERROR [LINENO LOG_FD] +# --------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with status $?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by GNU nano $as_me 2.2.6, which was +generated by GNU Autoconf 2.65. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to . +GNU nano home page: . +General help using GNU software: ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +GNU nano config.status 2.2.6 +configured by $0, generated by GNU Autoconf 2.65, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2009 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" +# Capture the value of obsolete ALL_LINGUAS because we need it to compute + # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it + # from automake. + eval 'ALL_LINGUAS''="$ALL_LINGUAS"' + # Capture the value of LINGUAS because we need it to compute CATALOGS. + LINGUAS="${LINGUAS-%UNSET%}" + + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; + "doc/nanorc.sample") CONFIG_FILES="$CONFIG_FILES doc/nanorc.sample" ;; + "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; + "doc/man/fr/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/fr/Makefile" ;; + "doc/syntax/Makefile") CONFIG_FILES="$CONFIG_FILES doc/syntax/Makefile" ;; + "doc/texinfo/Makefile") CONFIG_FILES="$CONFIG_FILES doc/texinfo/Makefile" ;; + "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; + "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "nano.spec") CONFIG_FILES="$CONFIG_FILES nano.spec" ;; + + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= + trap 'exit_status=$? + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ + || as_fn_error "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/ +s/:*\${srcdir}:*/:/ +s/:*@srcdir@:*/:/ +s/^\([^=]*=[ ]*\):*/\1/ +s/:*$// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_t=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_t"; then + break + elif $ac_last_try; then + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$tmp/stdin" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&2;} + + rm -f "$tmp/stdin" + case $ac_file in + -) cat "$tmp/out" && rm -f "$tmp/out";; + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; + esac \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" + } >"$tmp/config.h" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$tmp/config.h" "$ac_file" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "default-1":C) + for ac_file in $CONFIG_FILES; do + # Support "outfile[:infile[:infile...]]" + case "$ac_file" in + *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + esac + # PO directories have a Makefile.in generated from Makefile.in.in. + case "$ac_file" in */Makefile.in) + # Adjust a relative srcdir. + ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` + ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" + ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` + # In autoconf-2.13 it is called $ac_given_srcdir. + # In autoconf-2.50 it is called $srcdir. + test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" + case "$ac_given_srcdir" in + .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; + /*) top_srcdir="$ac_given_srcdir" ;; + *) top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then + rm -f "$ac_dir/POTFILES" + test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" + cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" + # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend + # on $ac_dir but don't depend on user-specified configuration + # parameters. + if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then + # The LINGUAS file contains the set of available languages. + if test -n "$ALL_LINGUAS"; then + test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" + fi + ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` + # Hide the ALL_LINGUAS assigment from automake. + eval 'ALL_LINGUAS''=$ALL_LINGUAS_' + fi + case "$ac_given_srcdir" in + .) srcdirpre= ;; + *) srcdirpre='$(srcdir)/' ;; + esac + POFILES= + GMOFILES= + UPDATEPOFILES= + DUMMYPOFILES= + for lang in $ALL_LINGUAS; do + POFILES="$POFILES $srcdirpre$lang.po" + GMOFILES="$GMOFILES $srcdirpre$lang.gmo" + UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" + DUMMYPOFILES="$DUMMYPOFILES $lang.nop" + done + # CATALOGS depends on both $ac_dir and the user's LINGUAS + # environment variable. + INST_LINGUAS= + if test -n "$ALL_LINGUAS"; then + for presentlang in $ALL_LINGUAS; do + useit=no + if test "%UNSET%" != "$LINGUAS"; then + desiredlanguages="$LINGUAS" + else + desiredlanguages="$ALL_LINGUAS" + fi + for desiredlang in $desiredlanguages; do + # Use the presentlang catalog if desiredlang is + # a. equal to presentlang, or + # b. a variant of presentlang (because in this case, + # presentlang can be used as a fallback for messages + # which are not translated in the desiredlang catalog). + case "$desiredlang" in + "$presentlang"*) useit=yes;; + esac + done + if test $useit = yes; then + INST_LINGUAS="$INST_LINGUAS $presentlang" + fi + done + fi + CATALOGS= + if test -n "$INST_LINGUAS"; then + for lang in $INST_LINGUAS; do + CATALOGS="$CATALOGS $lang.gmo" + done + fi + test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" + sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" + for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do + if test -f "$f"; then + case "$f" in + *.orig | *.bak | *~) ;; + *) cat "$f" >> "$ac_dir/Makefile" ;; + esac + fi + done + fi + ;; + esac + done ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit $? +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..6388c03 --- /dev/null +++ b/configure.ac @@ -0,0 +1,616 @@ +# Configuration for GNU nano - a small and user-friendly text editor +# +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 +# Free Software Foundation, Inc. +# +# GNU nano is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 3, or (at your option) any +# later version. +# +# GNU nano is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU nano; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, +# USA. +# +# $Id: configure.ac 4516 2010-08-11 02:42:32Z astyanax $ + +AC_INIT([GNU nano], [2.2.6], [nano-devel@gnu.org], [nano]) +AC_CONFIG_SRCDIR([src/nano.c]) +AC_CANONICAL_TARGET([]) +AM_INIT_AUTOMAKE +AC_CONFIG_HEADERS([config.h]) + +AC_PREREQ(2.54) + +dnl Checks for programs. + +AC_GNU_SOURCE +AC_PROG_CC +AC_PROG_LN_S +AC_ISC_POSIX +AC_SYS_LARGEFILE + +dnl Internationalization macros. + +AM_GNU_GETTEXT_VERSION(0.11.5) +AM_GNU_GETTEXT([external], [need-ngettext]) +AM_CONDITIONAL(USE_NLS, test x$USE_NLS = xyes) + +dnl Data location. + +pkgdatadir=${datadir}/${PACKAGE} +AC_DEFINE_DIR([PKGDATADIR], [pkgdatadir], [Where data are placed to.]) + +dnl Checks for header files. + +AC_HEADER_STDC +AC_CHECK_HEADERS(getopt.h libintl.h limits.h regex.h sys/param.h wchar.h wctype.h stdarg.h) + +dnl Checks for options. + +AC_ARG_ENABLE(debug, +[ --enable-debug Enable debugging (disabled by default)], +[if test x$enableval = xyes; then + AC_DEFINE(DEBUG, 1, [Define this to enable debug messages and assert warnings.]) debug_support=yes +fi]) + +if test x$debug_support != xyes; then + AC_DEFINE(NDEBUG, 1, [Shut up assert warnings :-)]) +fi + +AC_ARG_ENABLE(tiny, +[ --enable-tiny Disable features for the sake of size], +[if test x$enableval = xyes; then + AC_DEFINE(NANO_TINY, 1, [Define this to make the nano executable as small as possible.]) tiny_support=yes + AC_DEFINE(DISABLE_BROWSER, 1, [Define this to disable the built-in file browser.]) + AC_DEFINE(DISABLE_HELP, 1, [Define this to disable the help text display.]) + AC_DEFINE(DISABLE_JUSTIFY, 1, [Define this to disable the justify routines.]) + AC_DEFINE(DISABLE_MOUSE, 1, [Define this to disable the mouse support.]) + AC_DEFINE(DISABLE_OPERATINGDIR, 1, [Define this to disable the setting of the operating directory (chroot of sorts).]) + AC_DEFINE(DISABLE_SPELLER, 1, [Define this to disable the spell checker functions.]) + AC_DEFINE(DISABLE_TABCOMP, 1, [Define to disable the tab completion functions for files and search strings.]) + AC_DEFINE(DISABLE_WRAPPING, 1, [Define this to disable all text wrapping.]) +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, +[ --disable-browser Disable built-in file browser], +[if test x$enableval != xyes; then + AC_DEFINE(DISABLE_BROWSER, 1, [Define this to disable the built-in file browser.]) +fi]) + +AC_ARG_ENABLE(help, +[ --disable-help Disable help functions], +[if test x$enableval != xyes; then + AC_DEFINE(DISABLE_HELP, 1, [Define this to disable the help text display.]) +fi]) + +AC_ARG_ENABLE(justify, +[ --disable-justify Disable justify/unjustify functions], +[if test x$enableval != xyes; then + AC_DEFINE(DISABLE_JUSTIFY, 1, [Define this to disable the justify routines.]) +fi]) + +AC_ARG_ENABLE(mouse, +[ --disable-mouse Disable mouse support (and -m flag)], +[if test x$enableval != xyes; then + AC_DEFINE(DISABLE_MOUSE, 1, [Define this to disable the mouse support.]) +fi]) + +AC_ARG_ENABLE(operatingdir, +[ --disable-operatingdir Disable setting of operating directory (chroot of sorts)], +[if test x$enableval != xyes; then + AC_DEFINE(DISABLE_OPERATINGDIR, 1, [Define this to disable the setting of the operating directory (chroot of sorts).]) +fi]) + +AC_ARG_ENABLE(speller, +[ --disable-speller Disable spell checker functions], +[if test x$enableval != xyes; then + AC_DEFINE(DISABLE_SPELLER, 1, [Define this to disable the spell checker functions.]) +fi]) + +AC_ARG_ENABLE(tabcomp, +[ --disable-tabcomp Disable tab completion functions], +[if test x$enableval != xyes; then + AC_DEFINE(DISABLE_TABCOMP, 1, [Define to disable the tab completion functions for files and search strings.]) +fi]) + +AC_ARG_ENABLE(wrapping, +[ --disable-wrapping Disable all wrapping of text (and -w flag)], +[if test x$enableval != xyes; then + AC_DEFINE(DISABLE_WRAPPING, 1, [Define this to disable all text wrapping.]) +fi]) + +AC_ARG_ENABLE(wrapping-as-root, +[ --disable-wrapping-as-root Disable wrapping of text as root by default], +[if test x$enableval != xyes; then + AC_DEFINE(DISABLE_ROOTWRAPPING, 1, [Define this to disable text wrapping as root by default.]) +fi]) + +AC_ARG_ENABLE(color, +[ --disable-color Disable color and syntax highlighting], +if test x$enableval != 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 + AC_DEFINE(ENABLE_COLOR, 1, [Define this to have syntax highlighting, requires regex.h and ENABLE_NANORC too!]) color_support=yes + else + AC_MSG_ERROR([ +*** The header file regex.h was not found. If you wish to use color +*** support this header file is required. Please either install C +*** libraries that include the regex.h file or call the configure +*** script with --disable-color.]) + fi +fi, + if test x$enable_tiny != 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_COLOR, 1, [Define this to have syntax highlighting, requires regex.h and ENABLE_NANORC too!]) color_support=yes + else + AC_MSG_ERROR([ +*** The header file regex.h was not found. If you wish to use color +*** support this header file is required. Please either install C +*** libraries that include the regex.h file or call the configure +*** script with --disable-color.]) + fi + fi +) + +AC_ARG_ENABLE(multibuffer, +[ --disable-multibuffer Disable multiple file buffers], +[if test x$enableval != xno; then + AC_DEFINE(ENABLE_MULTIBUFFER, 1, [Define this to enable multiple file buffers.]) multibuffer_support=yes +fi], + [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, +[ --disable-nanorc Disable use of .nanorc files], +[if test x$enableval != xno; then + AC_DEFINE(ENABLE_NANORC, 1, [Define this to use .nanorc files.]) nanorc_support=yes +fi], + [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, +[ --enable-all Enable ALL extra nano functionality (ignored for compatibility as all options default to on)], +[if test x$enableval = xyes; then + echo "--enable-all option no longer needed, ignoring for compatibility" +fi]) + +AC_MSG_CHECKING([whether to enable UTF-8 support]) +AC_ARG_ENABLE(utf8, +[ --enable-utf8 Enable UTF-8 support], +[if test x$enableval = xyes; then + enable_utf8=yes +else + enable_utf8=no +fi], +[enable_utf8=auto]) +AC_MSG_RESULT($enable_utf8) + +AC_MSG_CHECKING([whether to use slang]) +CURSES_LIB_NAME="" +AC_ARG_WITH(slang, +[ --with-slang[=DIR] Use the slang library instead of curses], +[ case "$with_slang" in + no) + AC_MSG_RESULT(no) + ;; + *) + AC_MSG_RESULT(yes) + + if test x$with_slang != xyes; then + # Add additional search path + LDFLAGS="-L$with_slang/lib $LDFLAGS" + CPPFLAGS="-I$with_slang/include $CPPFLAGS" + fi + + if test x$enable_utf8 != xno; then + AC_CHECK_HEADER(slcurses.h, + AC_MSG_CHECKING([for SLutf8_enable in -lslang]) + _libs=$LIBS + LIBS="$LIBS -lslang" + AC_TRY_RUN([ +#include +int main(void) +{ + SLutf8_enable(1); + return 0; +}], + [AC_MSG_RESULT(yes) + AC_DEFINE(USE_SLANG, 1, [Define to use the slang wrappers for curses instead of native curses.]) slang_support=yes + CURSES_LIB_WIDE=yes + if test x$with_slang != xyes; then + CURSES_LIB="-L${with_slang}/lib -lslang" + else + CURSES_LIB="-lslang" + fi + CURSES_LIB_NAME=slang], + [AC_MSG_RESULT(no) + + # We might need the term library + for termlib in ncurses curses termcap terminfo termlib; do + AC_CHECK_LIB([${termlib}], tputs, [tcap="-l$termlib"]) + test -n "$tcap" && break + done + + AC_MSG_CHECKING([for SLutf8_enable in -lslang $tcap]) + LIBS="$LIBS $tcap" + AC_TRY_RUN([ +#include +int main(void) +{ + SLutf8_enable(1); + return 0; +}], + [AC_MSG_RESULT(yes) + AC_DEFINE(USE_SLANG, 1, [Define to use the slang wrappers for curses instead of native curses.]) slang_support=yes + CURSES_LIB_WIDE=yes + if test x$with_slang != xyes; then + CURSES_LIB="-L${with_slang}/lib -lslang $tcap" + else + CURSES_LIB="-lslang $tcap" + fi + CURSES_LIB_NAME=slang], + [AC_MSG_RESULT(no) + + # We might need the math library + AC_MSG_CHECKING([for SLutf8_enable in -lslang $tcap -lm]) + LIBS="$LIBS -lm" + AC_TRY_RUN([ +#include +int main(void) +{ + SLutf8_enable(1); + return 0; +}], + [AC_MSG_RESULT(yes) + AC_DEFINE(USE_SLANG, 1, [Define to use the slang wrappers for curses instead of native curses.]) slang_support=yes + CURSES_LIB_WIDE=yes + if test x$with_slang != xyes; then + CURSES_LIB="-L${with_slang}/lib -lslang $tcap -lm" + else + CURSES_LIB="-lslang $tcap -lm" + fi + CURSES_LIB_NAME=slang], + [AC_MSG_RESULT(no)], + AC_MSG_WARN([*** Can not use slang when cross-compiling]))], + AC_MSG_WARN([*** Can not use slang when cross-compiling]))], + AC_MSG_WARN([*** Can not use slang when cross-compiling])), + AC_MSG_ERROR([ +*** The header file slcurses.h was not found. If you wish to use +*** slang support this header file is required. Please either +*** install a version of slang that includes the slcurses.h file or +*** do not call the configure script with --with-slang.])) + fi + + if eval "test x$CURSES_LIB_NAME = x"; then + # Reset libs if the above slang tests failed + if test x$enable_utf8 != xno; then + LIBS=$_libs + fi + + AC_CHECK_HEADER(slcurses.h, + AC_MSG_CHECKING([for SLtt_initialize in -lslang]) + _libs=$LIBS + LIBS="$LIBS -lslang" + AC_TRY_RUN([ +#include +int main(void) +{ + SLtt_initialize(NULL); + return 0; +}], + [AC_MSG_RESULT(yes) + AC_DEFINE(USE_SLANG, 1, [Define to use the slang wrappers for curses instead of native curses.]) slang_support=yes + if test x$with_slang != xyes; then + CURSES_LIB="-L${with_slang}/lib -lslang" + else + CURSES_LIB="-lslang" + fi + CURSES_LIB_NAME=slang], + [AC_MSG_RESULT(no) + + # We might need the term library + for termlib in ncurses curses termcap terminfo termlib; do + AC_CHECK_LIB([${termlib}], tputs, [tcap="-l$termlib"]) + test -n "$tcap" && break + done + + AC_MSG_CHECKING([for SLtt_initialize in -lslang $tcap]) + LIBS="$LIBS $tcap" + AC_TRY_RUN([ +#include +int main(void) +{ + SLtt_initialize(NULL); + return 0; +}], + [AC_MSG_RESULT(yes) + AC_DEFINE(USE_SLANG, 1, [Define to use the slang wrappers for curses instead of native curses.]) slang_support=yes + if test x$with_slang != xyes; then + CURSES_LIB="-L${with_slang}/lib -lslang $tcap" + else + CURSES_LIB="-lslang $tcap" + fi + CURSES_LIB_NAME=slang], + [AC_MSG_RESULT(no) + + # We might need the math library + AC_MSG_CHECKING([for SLtt_initialize in -lslang $tcap -lm]) + LIBS="$LIBS -lm" + AC_TRY_RUN([ +#include +int main(void) +{ + SLtt_initialize(NULL); + return 0; +}], + [AC_MSG_RESULT(yes) + AC_DEFINE(USE_SLANG, 1, [Define to use the slang wrappers for curses instead of native curses.]) slang_support=yes + if test x$with_slang != xyes; then + CURSES_LIB="-L${with_slang}/lib -lslang $tcap -lm" + else + CURSES_LIB="-lslang $tcap -lm" + fi + CURSES_LIB_NAME=slang], + [AC_MSG_RESULT(no)], + AC_MSG_WARN([*** Can not use slang when cross-compiling]))], + AC_MSG_WARN([*** Can not use slang when cross-compiling]))], + AC_MSG_WARN([*** Can not use slang when cross-compiling])), + AC_MSG_ERROR([ +*** The header file slcurses.h was not found. If you wish to use +*** slang support this header file is required. Please either +*** install a version of slang that includes the slcurses.h file or +*** do not call the configure script with --with-slang.])) + fi + + if test "${_libs+set}" = "set"; then + LIBS=$_libs + fi + + if test x$with_slang != xyes; then + LDFLAGS=${_ldflags} + fi + ;; + esac], [AC_MSG_RESULT(no)]) + +if test x$CURSES_LIB_NAME = xslang; then + AC_DEFINE(NANO_TINY, 1, [Define this to make the nano executable as small as possible.]) tiny_support=yes + AC_DEFINE(DISABLE_BROWSER, 1, [Define this to disable the built-in file browser.]) + AC_DEFINE(DISABLE_HELP, 1, [Define this to disable the help text display.]) + AC_DEFINE(DISABLE_JUSTIFY, 1, [Define this to disable the justify routines.]) + AC_DEFINE(DISABLE_MOUSE, 1, [Define this to disable the mouse support.]) + AC_DEFINE(DISABLE_OPERATINGDIR, 1, [Define this to disable the setting of the operating directory (chroot of sorts).]) + AC_DEFINE(DISABLE_SPELLER, 1, [Define this to disable the spell checker functions.]) + AC_DEFINE(DISABLE_TABCOMP, 1, [Define to disable the tab completion functions for files and search strings.]) + AC_DEFINE(DISABLE_WRAPPING, 1, [Define this to disable all text wrapping.]) +fi + +AM_CONDITIONAL(USE_COLOR, test x$color_support = xyes) +AM_CONDITIONAL(USE_NANORC, test x$nanorc_support = xyes) + +AC_ARG_ENABLE(altrcname, +[ --enable-altrcname Specify alternate rcfile name (default: .nanorc)], +[if test x$enableval != no; then + AC_DEFINE_UNQUOTED(RCFILE_NAME, "$enableval", [Specify alternate rcfile name (default: .nanorc)]) rcfilename=$enableval +fi]) + +dnl Checks for functions. + +AC_CHECK_FUNCS(getdelim getline isblank strcasecmp strcasestr strncasecmp strnlen vsnprintf) + +if test x$enable_utf8 != xno; then + AC_CHECK_FUNCS(iswalnum iswblank iswpunct iswspace nl_langinfo mblen mbstowcs mbtowc wctomb wcwidth) +fi + +if test x$ac_cv_func_vsnprintf = xno; then + AM_PATH_GLIB_2_0(2.0.0,, + AC_MSG_ERROR([ +*** vsnprintf() not found. GLIB 2.x not found either. You should +*** install the GLIB 2.x library which can be found at +*** ftp://ftp.gtk.org/.]), + glib) +fi + +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Checks for library functions. +AC_TYPE_SIGNAL +AC_FUNC_VPRINTF +AC_CHECK_FUNCS(getopt_long) +dnl Checks for libraries. + +if eval "test x$CURSES_LIB_NAME = x"; then + AC_CHECK_HEADERS(ncurses.h) + + if test x$enable_utf8 != xno; then + AC_CHECK_LIB(ncursesw, get_wch, [CURSES_LIB="-lncursesw" CPPFLAGS="-I/usr/include/ncursesw $CPPFLAGS" CURSES_LIB_NAME=ncursesw CURSES_LIB_WIDE=yes]) + fi + + if eval "test x$CURSES_LIB_NAME = x"; then + AC_CHECK_LIB(ncurses, initscr, [CURSES_LIB="-lncurses" CURSES_LIB_NAME=ncurses]) + fi +fi + +if eval "test x$CURSES_LIB_NAME = x"; then + AC_CHECK_HEADERS(curses.h) + + if test x$enable_utf8 != xno; then + AC_CHECK_LIB(curses, get_wch, [CURSES_LIB="-lcurses" CURSES_LIB_NAME=curses CURSES_LIB_WIDE=yes]) + fi + + if eval "test x$CURSES_LIB_NAME = x"; then + AC_CHECK_LIB(curses, initscr, [CURSES_LIB="-lcurses" CURSES_LIB_NAME=curses]) + fi +fi + +if eval "test x$CURSES_LIB_NAME = x"; then + AC_MSG_WARN([ +*** No curses lib available. Consider getting the official ncurses +*** distribution from ftp://ftp.gnu.org/pub/gnu/ncurses if you get +*** errors compiling nano.]) +else + AC_MSG_RESULT([Using $CURSES_LIB_NAME as the curses library]) +fi + +AC_CHECK_LIB([$CURSES_LIB_NAME], use_default_colors, AC_DEFINE(HAVE_USE_DEFAULT_COLORS, 1, [Define this if your curses library has the use_default_colors() command.])) + +dnl Parse any configure options. + +LIBS="$LIBS $CURSES_LIB" + +AC_SUBST(CURSES_LIB) + +if test "x$GLIB_CFLAGS" != "x"; then + CFLAGS="$CFLAGS $GLIB_CFLAGS" +fi +if test "x$GLIB_LIBS" != "x"; then + LDFLAGS="$LDFLAGS $GLIB_LIBS" +fi + +if test x$enable_utf8 != xno && \ + test x$CURSES_LIB_WIDE = xyes && \ + test x$ac_cv_func_iswalnum = xyes && \ + test x$ac_cv_func_iswpunct = xyes && \ + (test x$ac_cv_func_iswblank = xyes || test x$ac_cv_func_iswspace = xyes) && \ + test x$ac_cv_func_nl_langinfo = xyes && \ + test x$ac_cv_func_mblen = xyes && \ + test x$ac_cv_func_mbstowcs = xyes && \ + test x$ac_cv_func_mbtowc = xyes && \ + test x$ac_cv_func_wctomb = xyes && \ + test x$ac_cv_func_wcwidth = xyes; then + AC_DEFINE(ENABLE_UTF8, 1, [Define this if your system has sufficient UTF-8 support (a wide curses library, iswalnum(), iswpunct(), iswblank() or iswspace(), nl_langinfo, mblen(), mbstowcs(), mbtowc(), wctomb(), and wcwidth()).]) +else + if test x$enable_utf8 = xyes; then + AC_MSG_ERROR([ +*** UTF-8 support was requested, but insufficient UTF-8 support was +*** detected in your curses and/or C libraries. Please verify that your +*** slang was built with UTF-8 support or your curses was built with +*** wide character support, and that your C library was built with wide +*** character support.]) + elif test x$enable_utf8 != xno; then + AC_MSG_WARN([ +*** Insufficient UTF-8 support was detected in your curses and/or C +*** libraries. If you want UTF-8 support, please verify that your slang +*** was built with UTF-8 support or your curses was built with wide +*** character support, and that your C library was built with wide +*** character support.]) + fi +fi + +if test x$color_support = xyes; then + # now check for the end of word boundary support (/< and />) + AC_MSG_CHECKING([for GNU-style word boundary regex support]) + AC_TRY_RUN([ +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#include +int main(void) +{ + regex_t r; + size_t nmatch; + regmatch_t pmatch; + + if (regcomp(&r, "\\\\>", REG_EXTENDED|REG_NOSUB)) + return 1; + if (regexec(&r, "word boundary", nmatch, &pmatch, 0)) + return 1; + return 0; +}], + AC_MSG_RESULT(yes) + AC_DEFINE(GNU_WORDBOUNDS, 1, [Define if the system supports GNU-style word boundaries in regexes.]) gnu_wordbounds=yes, + AC_MSG_RESULT(no), + AC_MSG_WARN([*** Can't check for GNU-style word boundary support when cross-compiling]) +) +# if test x$CURSES_LIB_NAME = xcurses; then + AC_MSG_CHECKING([whether _XOPEN_SOURCE_EXTENDED is needed]) + AC_TRY_RUN([ +#include +int main(void) +{ + int testcolor = COLOR_WHITE; + return 0; +}], AC_MSG_RESULT(no), + AC_TRY_RUN([ +#ifndef _XOPEN_SOURCE_EXTENDED +#define _XOPEN_SOURCE_EXTENDED 1 +#endif +#include +int main(void) +{ + int testcolor = COLOR_WHITE; + return 0; +}], + AC_DEFINE(NEED_XOPEN_SOURCE_EXTENDED, 1, [Define this if you need the _XOPEN_SOURCE_EXTENDED macro for color support]) + AC_MSG_RESULT(yes), + AC_MSG_RESULT(not sure) + AC_MSG_WARN([*** Couldn't successfully compile basic color test with or without _XOPEN_SOURCE_EXTENDED]) + AC_MSG_WARN([*** This build may not compile. Consider configuring with --disable-color or installing ncurses])), + AC_MSG_WARN([*** Can't check need for _XOPEN_SOURCE_EXTENDED when cross-compiling])) + fi +#fi + +AC_MSG_CHECKING([whether LINES and COLS can be redefined]) +AC_TRY_RUN([ +#include +int main(void) +{ + LINES = 80; + COLS = 25; + return 0; +}], +AC_DEFINE(REDEFINIG_MACROS_OK, 1, [Define this if you know your curses library allows LINES and COLS to be redefined to deal with a resizing bug]) +AC_MSG_RESULT(yes), +AC_MSG_RESULT(no), +AC_MSG_WARN([*** Can't check for macro redefinability when cross-compiling])) + + +# Check for groff html support +AC_MSG_CHECKING([for HTML support in groff]) +groff -t -mandoc -Thtml /dev/null +if test $? -ne 0 ; then + echo "no" + echo "*** Will not generate HTML version of man pages ***" + echo "*** Consider installing a newer version of groff with HTML support ***" + groff_html_support=no +else + echo "yes" + groff_html_support=yes +fi +AM_CONDITIONAL(GROFF_HTML, test x$groff_html_support = xyes) + + +AC_CONFIG_FILES([ +Makefile +doc/Makefile +doc/nanorc.sample +doc/man/Makefile +doc/man/fr/Makefile +doc/syntax/Makefile +doc/texinfo/Makefile +m4/Makefile +po/Makefile.in +src/Makefile +nano.spec +]) + +AC_OUTPUT diff --git a/depcomp b/depcomp new file mode 100755 index 0000000..df8eea7 --- /dev/null +++ b/depcomp @@ -0,0 +1,630 @@ +#! /bin/sh +# depcomp - compile a program generating dependencies as side-effects + +scriptversion=2009-04-28.21; # UTC + +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free +# Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Alexandre Oliva . + +case $1 in + '') + echo "$0: No command. Try \`$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: depcomp [--help] [--version] PROGRAM [ARGS] + +Run PROGRAMS ARGS to compile a file, generating dependencies +as side-effects. + +Environment variables: + depmode Dependency tracking mode. + source Source file read by `PROGRAMS ARGS'. + object Object file output by `PROGRAMS ARGS'. + DEPDIR directory where to store dependencies. + depfile Dependency file to output. + tmpdepfile Temporary file to use when outputing dependencies. + libtool Whether libtool is used (yes/no). + +Report bugs to . +EOF + exit $? + ;; + -v | --v*) + echo "depcomp $scriptversion" + exit $? + ;; +esac + +if test -z "$depmode" || test -z "$source" || test -z "$object"; then + echo "depcomp: Variables source, object and depmode must be set" 1>&2 + exit 1 +fi + +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. +depfile=${depfile-`echo "$object" | + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} + +rm -f "$tmpdepfile" + +# Some modes work just like other modes, but use different flags. We +# parameterize here, but still list the modes in the big case below, +# to make depend.m4 easier to write. Note that we *cannot* use a case +# here, because this file can only contain one case statement. +if test "$depmode" = hp; then + # HP compiler uses -M and no extra arg. + gccflag=-M + depmode=gcc +fi + +if test "$depmode" = dashXmstdout; then + # This is just like dashmstdout with a different argument. + dashmflag=-xM + depmode=dashmstdout +fi + +cygpath_u="cygpath -u -f -" +if test "$depmode" = msvcmsys; then + # This is just like msvisualcpp but w/o cygpath translation. + # Just convert the backslash-escaped backslashes to single forward + # slashes to satisfy depend.m4 + cygpath_u="sed s,\\\\\\\\,/,g" + depmode=msvisualcpp +fi + +case "$depmode" in +gcc3) +## gcc 3 implements dependency tracking that does exactly what +## we want. Yay! Note: for some reason libtool 1.4 doesn't like +## it if -MD -MP comes after the -MF stuff. Hmm. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon +## the command line argument order; so add the flags where they +## appear in depend2.am. Note that the slowdown incurred here +## affects only configure: in makefiles, %FASTDEP% shortcuts this. + for arg + do + case $arg in + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; + *) set fnord "$@" "$arg" ;; + esac + shift # fnord + shift # $arg + done + "$@" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + mv "$tmpdepfile" "$depfile" + ;; + +gcc) +## There are various ways to get dependency output from gcc. Here's +## why we pick this rather obscure method: +## - Don't want to use -MD because we'd like the dependencies to end +## up in a subdir. Having to rename by hand is ugly. +## (We might end up doing this anyway to support other compilers.) +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like +## -MM, not -M (despite what the docs say). +## - Using -M directly means running the compiler twice (even worse +## than renaming). + if test -z "$gccflag"; then + gccflag=-MD, + fi + "$@" -Wp,"$gccflag$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz +## The second -e expression handles DOS-style file names with drive letters. + sed -e 's/^[^:]*: / /' \ + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" +## This next piece of magic avoids the `deleted header file' problem. +## The problem is that when a header file which appears in a .P file +## is deleted, the dependency causes make to die (because there is +## typically no way to rebuild the header). We avoid this by adding +## dummy dependencies for each header file. Too bad gcc doesn't do +## this for us directly. + tr ' ' ' +' < "$tmpdepfile" | +## Some versions of gcc put a space before the `:'. On the theory +## that the space means something, we add a space to the output as +## well. +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +sgi) + if test "$libtool" = yes; then + "$@" "-Wp,-MDupdate,$tmpdepfile" + else + "$@" -MDupdate "$tmpdepfile" + fi + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files + echo "$object : \\" > "$depfile" + + # Clip off the initial element (the dependent). Don't try to be + # clever and replace this with sed code, as IRIX sed won't handle + # lines with more than a fixed number of characters (4096 in + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; + # the IRIX cc adds comments like `#:fec' to the end of the + # dependency line. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ + tr ' +' ' ' >> "$depfile" + echo >> "$depfile" + + # The second pass generates a dummy entry for each header file. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ + >> "$depfile" + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +aix) + # The C for AIX Compiler uses -M and outputs the dependencies + # in a .u file. In older versions, this file always lives in the + # current directory. Also, the AIX compiler puts `$object:' at the + # start of each line; $object doesn't have directory information. + # Version 6 uses the directory in both cases. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" = "x$object" && dir= + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` + if test "$libtool" = yes; then + tmpdepfile1=$dir$base.u + tmpdepfile2=$base.u + tmpdepfile3=$dir.libs/$base.u + "$@" -Wc,-M + else + tmpdepfile1=$dir$base.u + tmpdepfile2=$dir$base.u + tmpdepfile3=$dir$base.u + "$@" -M + fi + stat=$? + + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + # Each line is of the form `foo.o: dependent.h'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" + # That's a tab and a space in the []. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +icc) + # Intel's C compiler understands `-MD -MF file'. However on + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c + # ICC 7.0 will fill foo.d with something like + # foo.o: sub/foo.c + # foo.o: sub/foo.h + # which is wrong. We want: + # sub/foo.o: sub/foo.c + # sub/foo.o: sub/foo.h + # sub/foo.c: + # sub/foo.h: + # ICC 7.1 will output + # foo.o: sub/foo.c sub/foo.h + # and will wrap long lines using \ : + # foo.o: sub/foo.c ... \ + # sub/foo.h ... \ + # ... + + "$@" -MD -MF "$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + # Each line is of the form `foo.o: dependent.h', + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" + # Some versions of the HPUX 10.20 sed can't process this invocation + # correctly. Breaking it into two sed invocations is a workaround. + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | + sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp2) + # The "hp" stanza above does not work with aCC (C++) and HP's ia64 + # compilers, which have integrated preprocessors. The correct option + # to use with these is +Maked; it writes dependencies to a file named + # 'foo.d', which lands next to the object file, wherever that + # happens to be. + # Much of this is similar to the tru64 case; see comments there. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" = "x$object" && dir= + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` + if test "$libtool" = yes; then + tmpdepfile1=$dir$base.d + tmpdepfile2=$dir.libs/$base.d + "$@" -Wc,+Maked + else + tmpdepfile1=$dir$base.d + tmpdepfile2=$dir$base.d + "$@" +Maked + fi + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" + # Add `dependent.h:' lines. + sed -ne '2,${ + s/^ *// + s/ \\*$// + s/$/:/ + p + }' "$tmpdepfile" >> "$depfile" + else + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" "$tmpdepfile2" + ;; + +tru64) + # The Tru64 compiler uses -MD to generate dependencies as a side + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put + # dependencies in `foo.d' instead, so we check for that too. + # Subdirectories are respected. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" = "x$object" && dir= + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` + + if test "$libtool" = yes; then + # With Tru64 cc, shared objects can also be used to make a + # static library. This mechanism is used in libtool 1.4 series to + # handle both shared and static libraries in a single compilation. + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. + # + # With libtool 1.5 this exception was removed, and libtool now + # generates 2 separate objects for the 2 libraries. These two + # compilations output dependencies in $dir.libs/$base.o.d and + # in $dir$base.o.d. We have to check for both files, because + # one of the two compilations can be disabled. We should prefer + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is + # automatically cleaned when .libs/ is deleted, while ignoring + # the former would cause a distcleancheck panic. + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 + tmpdepfile2=$dir$base.o.d # libtool 1.5 + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 + "$@" -Wc,-MD + else + tmpdepfile1=$dir$base.o.d + tmpdepfile2=$dir$base.d + tmpdepfile3=$dir$base.d + tmpdepfile4=$dir$base.d + "$@" -MD + fi + + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" + # That's a tab and a space in the []. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" + else + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +#nosideeffect) + # This comment above is used by automake to tell side-effect + # dependency tracking mechanisms from slower ones. + +dashmstdout) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout, regardless of -o. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + test -z "$dashmflag" && dashmflag=-M + # Require at least two characters before searching for `:' + # in the target name. This is to cope with DOS-style filenames: + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. + "$@" $dashmflag | + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + tr ' ' ' +' < "$tmpdepfile" | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +dashXmstdout) + # This case only exists to satisfy depend.m4. It is never actually + # run, as this mode is specially recognized in the preamble. + exit 1 + ;; + +makedepend) + "$@" || exit $? + # Remove any Libtool call + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + # X makedepend + shift + cleared=no eat=no + for arg + do + case $cleared in + no) + set ""; shift + cleared=yes ;; + esac + if test $eat = yes; then + eat=no + continue + fi + case "$arg" in + -D*|-I*) + set fnord "$@" "$arg"; shift ;; + # Strip any option that makedepend may not understand. Remove + # the object too, otherwise makedepend will parse it as a source file. + -arch) + eat=yes ;; + -*|$object) + ;; + *) + set fnord "$@" "$arg"; shift ;; + esac + done + obj_suffix=`echo "$object" | sed 's/^.*\././'` + touch "$tmpdepfile" + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + sed '1,2d' "$tmpdepfile" | tr ' ' ' +' | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" "$tmpdepfile".bak + ;; + +cpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + "$@" -E | + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | + sed '$ s: \\$::' > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + cat < "$tmpdepfile" >> "$depfile" + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvisualcpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + IFS=" " + for arg + do + case "$arg" in + -o) + shift + ;; + $object) + shift + ;; + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") + set fnord "$@" + shift + shift + ;; + *) + set fnord "$@" "$arg" + shift + shift + ;; + esac + done + "$@" -E 2>/dev/null | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" + echo " " >> "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvcmsys) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +none) + exec "$@" + ;; + +*) + echo "Unknown depmode $depmode" 1>&2 + exit 1 + ;; +esac + +exit 0 + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 0000000..15f35ee --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,7 @@ +if USE_COLOR +SUBDIRS = man syntax texinfo +else +SUBDIRS = man texinfo +endif + +EXTRA_DIST = faq.html diff --git a/doc/Makefile.in b/doc/Makefile.in new file mode 100644 index 0000000..b30918f --- /dev/null +++ b/doc/Makefile.in @@ -0,0 +1,562 @@ +# Makefile.in generated by automake 1.11.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +target_triplet = @target@ +subdir = doc +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + $(srcdir)/nanorc.sample.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/ac_define_dir.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glib-2.0.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/isc-posix.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/progtest.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = nanorc.sample +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = man texinfo syntax +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CURSES_LIB = @CURSES_LIB@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLLIBS = @INTLLIBS@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKGDATADIR = @PKGDATADIR@ +PKG_CONFIG = @PKG_CONFIG@ +POSUB = @POSUB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target = @target@ +target_alias = @target_alias@ +target_cpu = @target_cpu@ +target_os = @target_os@ +target_vendor = @target_vendor@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +@USE_COLOR_FALSE@SUBDIRS = man texinfo +@USE_COLOR_TRUE@SUBDIRS = man syntax texinfo +EXTRA_DIST = faq.html +all: all-recursive + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu doc/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +nanorc.sample: $(top_builddir)/config.status $(srcdir)/nanorc.sample.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-recursive + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ + install-am install-strip tags-recursive + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am check check-am clean clean-generic ctags \ + ctags-recursive distclean distclean-generic distclean-tags \ + distdir dvi dvi-am html html-am info info-am install \ + install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \ + tags-recursive uninstall uninstall-am + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/doc/faq.html b/doc/faq.html new file mode 100644 index 0000000..70baba5 --- /dev/null +++ b/doc/faq.html @@ -0,0 +1,331 @@ + + + + The GNU nano editor FAQ + + + +

The GNU nano editor FAQ

+

Table of Contents

+

1. General

+

1.1 About this FAQ
+ 1.2. How do I contribute to it?
+ 1.3. What is GNU nano?
+ 1.4. What is the history behind nano?
+ 1.5. Why the name change from TIP?
+ 1.6. What is the current version of nano?
+ 1.7. I want to read the manpage without having to download the program!

+

2. Where to get GNU nano.

+

2.1. FTP and WWW sites that carry nano.
+ 2.2. RedHat and derivatives (.rpm) packages.
+ 2.3. Debian (.deb) packages.
+ 2.4. By subversion (for the brave).

+

3. Installation and Configuration

+

3.1. How do I install the RPM or DEB package?
+ 3.2. Compiling from source: WHAT THE HECK DO I DO NOW?
+ 3.3. Why does everything go into /usr/local?
+ 3.4. I get errors about 'bindtextdomain','gettext', and/or 'gettextdomain'. What can I do about it?
+ 3.5. nano should automatically run strip on the binary when installing it!
+ 3.6. How can I make the executable smaller? This is too bloated!
+ 3.7. Tell me more about this multibuffer stuff!
+ 3.8. Tell me more about this verbatim input stuff!
+ 3.9. How do I make a .nanorc file that nano will read when I start it?
+ 3.9.1. How about in Win32?

+

4. Running

+

4.1. How do I open a file with a name beginning with '+' from the command line?
+ 4.2. Ack! My Backspace/Delete/Enter/Meta/double bucky key doesn't seem to work! What can I do?
+ 4.3. Ack! My numeric keypad's keys don't work properly when NumLock is off! What can I do?
+ 4.4. Ack! When I hold down a Meta key combination for a while, the character of the held key gets inserted now and then. What gives?
+ 4.5. How do I type the F13-F16 keys shown in the help browser? My keyboard only has F1-F12!
+ 4.6. nano crashes when I type <insert keystroke here>!
+ 4.7. nano crashes when I resize my window. How can I fix that?
+ 4.8. [version 1.3.12 and later] I'm using glibc 2.2.3, and nano crashes when I use color support or do regular expression searches. How can I fix that?
+ 4.9. [version 1.1.12 and earlier] Why does nano show ^\ in the shortcut list instead of ^J?
+ 4.10a. [version 1.1.12 and earlier] When I type in a search string, the string I last searched for is already in front of my cursor! What happened?!
+ 4.10b. [version 1.1.99pre1 and later] Hey, the search string behavior has reverted, it's now like Pico, what happened to the consistency?
+ 4.11. How do I make nano my default editor (in Pine, mutt, etc.)?
+ 4.12. I've compiled nano with color support, but I don't see any color when I run it!
+ 4.13. How do I select text for or paste text from the clipboard in an X terminal when I'm running nano in one and nano's mouse support is turned on?
+ 4.14. When I paste text into a document, each line gets indented further than the last. Why does nano do this, and how can I avoid it?

+

5. Internationalization

+

5.1. There's no translation for my language!
+ 5.2. I don't like the translation for <x> in my language. How can I fix it?
+ 5.3. What is the status of Unicode support?

+

6. Advocacy and Licensing

+

6.1. Why should I use nano instead of Pico?
+ 6.2. Why should I use Pico instead of nano?
+ 6.3. What is so bad about the older Pine license?
+ 6.4. Okay, well, what mail program should I use then?

+

7. Miscellaneous

+

7.1. nano-related mailing lists.
+ 7.2. I want to send the development team a big load of cash (or just a thank you).
+ 7.3. How do I submit a bug report or patch?
+ 7.4. How do I join the development team?
+ 7.5. Can I have write access to the subversion tree?

+

8. ChangeLog

+
+

1. General

+

1.1 About this FAQ

+

This FAQ was originally written and maintained by Chris Allegretta <chrisa@asty.org>, who also happens to be the creator of nano. It was then maintained by David Lawrence Ramsey <pooka109@gmail.com>. Maybe someone else will volunteer to maintain this FAQ someday, who knows...

+

1.2. How do I contribute to it?

+

Your best bet is to send it to the nano email address, nano@nano-editor.org and if it is useful enough it will be included in future versions.

+

1.3. What is GNU nano?

+

GNU nano is designed to be a free replacement for the Pico text editor, part of the Pine email suite from The University of Washington. It aims to "emulate Pico as closely as possible and perhaps include extra functionality".

+

1.4. What is the history behind nano?

+

Funny you should ask!

+

In the beginning...

+

For years Pine was THE program used to read email on a Unix system. The Pico text editor is the portion of the program one would use to compose his or her mail messages. Many beginners to Unix flocked to Pico and Pine because of their well organized, easy to use interfaces. With the proliferation of GNU/Linux in the mid to late 90's, many University students became intimately familiar with the strengths (and weaknesses) of Pine and Pico.

+

Then came Debian...

+

The Debian GNU/Linux distribution, known for its strict standards in distributing truly "free" software (i.e. software with no restrictions on redistribution), would not include a binary package for Pine or Pico. Many people had a serious dilemma: they loved these programs, but the versions available at the time were not truly free software in the GNU sense of the word.

+

The event...

+

It was in late 1999 when Chris Allegretta (our hero) was yet again complaining to himself about the less-than-perfect license Pico was distributed under, the 1000 makefiles that came with it and how just a few small improvements could make it the Best Editor in the World (TM). Having been a convert from Slackware to Debian, he missed having a simple binary package that included Pine and Pico, and had grown tired of downloading them himself.

+

Finally something snapped inside and Chris coded and hacked like a madman for many hours straight one weekend to make a (barely usable) Pico clone, at the time called TIP (Tip Isn't Pico). The program could not be invoked without a filename, could not save files, had no help text display, spell checker, and so forth. But over time it improved, and with the help of a few great coders it matured to the (hopefully) stable state it is today.

+

In February 2001, nano was declared an official GNU program by Richard Stallman. nano also reached its first production release on March 22, 2001.

+

1.5. Why the name change from TIP?

+

On January 10, 2000, TIP was officially renamed to nano because of a namespace conflict with another program called 'tip'. The original 'tip' program "establishes a full duplex terminal connection to a remote host", and was included with many older Unix systems (and newer ones like Solaris). The conflict was not noticed at first because there is no 'tip' utility included with most GNU/Linux distributions (where nano was developed).

+

1.6. What is the current version of nano?

+

The current version of nano *should* be 2.2.0. Of course, you should always check the nano homepage to see what the latest and greatest version is.

+

1.7. I want to read the man page without having to download the program!

+

Jeez, demanding, aren't we? Okay, look here.

+
+

2. Where to get GNU nano.

+

2.1. FTP and WWW sites that carry nano.

+

The nano distribution can be downloaded at the following fine web and ftp sites:

+ +
+

2.2. RedHat and derivatives (.rpm) packages.

+
+ +
+

2.3. Debian (.deb) packages.

+

Debian users can check out the current nano packages for:

+ +

You can also have a look at the Package Pool to see all the available binary and source packages.

+

Note that versions < 0.9.10 are probably not for those wanting to get serious work done, so if you are using Debian 2.2, check that you have updated to 2.2r3, which comes with nano 0.9.23. If you're tracking unstable, you probably have the newest version already.

+

2.4. By subversion (for the brave).

+

For the 'bleeding edge' current version of nano, you can use subversion to download the current source code. Note: believe it or not, by downloading code that has not yet stabilized into an official release, there could quite possibly be bugs, in fact the code may not even compile! Anyway, see the nano SVN document for info on anonymous SVN access to the nano source.

+
+

3. Installation and Configuration

+

3.1. How do I install the RPM or DEB package?

+

It's simple really! As root, type rpm -Uvh nano-x.y.z-1.i386.rpm if you have a RedHat-ish system or dpkg -i nano_x.y.z-1.deb if you have a Debian-ish system, where x.y.z is the release of nano. There are other programs to install packages, and if you wish to use those, knock yourself out.

+

3.2. Compiling from source: WHAT THE HECK DO I DO NOW?

+

Okay, take a deep breath, this really isn't hard. Unpack the nano source with a command like:

+

tar -zxvf nano-x.y.z.tar.gz

+

If you get error messages about the -z option, try this:

+

gzip -dc nano-x.y.z.tar.gz | tar xvf -

+

(again, where x.y.z is the version number in question). Then you need to run configure with any options you might want (if any).

+

The average case is this:

+

cd nano-x.y.z/
+ ./configure
+ make
+ make install (as root, of course)

+

3.3. Why does everything go into /usr/local?

+

Well, that's what the configure script defaults to. If you wish to change this, simply do this:

+

./configure --prefix=/usr

+

to put nano into /usr/bin when you run make install.

+

3.4. I get errors about 'bindtextdomain', 'gettext', and/or 'gettextdomain'. What can I do about it?

+

Try doing a ./configure --with-included-gettext and see if that solves your problem. You may need to do a make clean; make to get it to work fully.

+

3.5. nano should automatically run strip on the binary when installing it!

+

Actually, it does, but you have to use make install-strip. The default make install does not, and will not, run strip automatically.

+

3.6. How can I make the executable smaller? This is too bloated!

+

Actually, there are several parts of the editor that can be disabled. You can pass arguments to the configure script that disable certain features. Here's a brief list:

+
+  --disable-tabcomp       Disable tab completion functions
+  --disable-justify       Disable justify/unjustify functions
+  --disable-speller       Disable spell checker functions
+  --disable-help          Disable help functions
+  --disable-browser       Disable built-in file browser
+  --disable-wrapping      Disable all wrapping of text (and -w flag)
+  --disable-mouse         Disable mouse support (and -m flag)
+  --disable-operatingdir  Disable setting of operating directory
+

There's also the --enable-tiny option which disables everything above, as well as some larger chunks of the program (like the marker code that you use Control-^ to select with). Also, if you know you aren't going to be using other languages you can use --disable-nls to disable internationalization and save a few K to a few dozen K depending on if you have locale support on your system. And finally there's always good old strip to strip all debugging code and code that exists in libraries on your system.

+

If, on the other hand, you can't live without bells and whistles, you could try:

+
+  --enable-extra          Enable extra features, currently only easter eggs
+  --enable-nanorc         Enable use of .nanorc files
+  --enable-color          Enable color and syntax highlighting
+  --enable-multibuffer    Enable having multiple file buffers open
+  --enable-all            Enable all of the above features
+  --disable-wrapping-as-root
+                          Disable text wrapping by default when the user is
+                          root
+

3.7. Tell me more about this multibuffer stuff!

+

To use multiple file buffers, you must be using nano 1.1.0 or newer, and you must have configured nano with --enable-multibuffer (use nano -V to check). Then when you want to enable inserting a file into its own buffer instead of into the current file, just hit Meta-F, then insert the file as normal with ^R. If you always want files to be loaded into their own buffers, use the --multibuffer or -F flag when you invoke nano.

+

You can move between the buffers you have open with the Meta-< and Meta-> keys, or more easily with Meta-, and Meta-. (clear as mud, right? =-). When you have more than one file buffer open, the ^X shortcut will say "Close", instead of the normal "Exit" when only one buffer is open.

+

3.8. Tell me more about this verbatim input stuff!

+

To use verbatim input, you must be using nano 1.3.1 or newer. When you want to insert a literal character into the file you're editing, such as a control character that nano usually treats as a command, first press Meta-V. (If you're not at a prompt, you'll get the message "Verbatim Input".) Then press the key(s) that generate the character you want.

+

Alternatively, if you've enabled Unicode support (see section 5.3), you can press Meta-V and then type a six-digit hexadecimal code from 000000 to 10FFFF (case-insensitive), and the character with the corresponding value will be inserted instead. The prompt will change to "Unicode Input" when you do this.

+

3.9. How do I make a .nanorc file that nano will read when I start it?

+

It's not hard at all! But, your version of nano must have been compiled with --enable-nanorc, and again must be version 1.1.12 or newer (use nano -V to check your version and compiled features). Then simply copy the nanorc.sample that came with the nano source or your nano package (most likely in /usr/doc/nano) to .nanorc in your home directory. If you didn't get one, the syntax is simple. Flags are turned on and off by using the word set and the getopt_long flag for the feature, for example "set nowrap" or "set suspend".

+

3.9. How about in Win32?

+

If you're using the official nano .zip file and have extracted all the files, you should take the file nano.rc and place it somewhere on your Win32 system (for example if you have write permission to do so, at the top of C:\). Then you must create an Environment variable called HOME which points to the directory where you put nano.rc. In Windows XP, you can get to Environment variables by right-clicking "My Computer" either on the desktop or in the Start Menu, and selecting Properties. This should bring up the System Properties panel. Then click the Advanced Tab, and there should be a button called Environment Variables. Click that to bring up the Environment Variables section. Now, under User Variables you should be able to click the New button, and make a new Variables Name called HOME, with the Variable Value of whatever path you copied nano.rc into (just the directory name; don't add nano.rc onto the end).

+

We're still working on documentatino for enabling synax highlighting on Win32; please bear with us

+

Note that the nano.rc file must remain Unix formated in order for nano to unerstand it. In other words, you should use probably only use nano to edit its config file. Other programs like Wordpad and Notepad will either convert the file to DOS format when saving, and the latter does not even properly read Unix-formatted files to begin with.

+
+

4. Running

+

4.1. How do I open a file with a name beginning with '+' from the command line?

+

If a command line option that begins with '+' is followed by another option, the former is always treated as a starting line and column number and the latter is always treated as a filename. If a command line option that begins with '+' isn't followed by another option, it's always treated as a filename. Examples:

+

To open '+filename.txt' starting on line 1: nano +filename.txt
+ To open '+filename.txt' starting on line 10: nano +10 +filename.txt
+ To open '+filename.txt' starting on line 1, column 20: nano +,20 +filename.txt
+ To open '+filename.txt' starting on line 10, column 20: nano +10,20 +filename.txt
+ To open '+filename.txt' starting on line 1 and 'filename.txt' starting on line 10 (if nano has been compiled with multibuffer support): nano +1 +filename.txt +20 filename.txt

+

4.2. Ack! My Backspace/Delete/Enter/Meta/double bucky key doesn't seem to work! What can I do?

+

Try setting your $TERM variable to 'vt100'. nano doesn't yet support every term entry under the sun.

+

Bourne shell users (bash and sh): export TERM=vt100
+ C Shell users (tcsh and csh): setenv TERM vt100

+

4.3. Ack! My numeric keypad's keys don't work properly when NumLock is off! What can I do?

+

You can use the -K or --rebindkeypad options on the command line, or add the line set rebindkeypad to your .nanorc. However, nano's mouse support won't work properly if you do any of these things.

+

4.4. Ack! When I hold down a Meta key combination for a while, the character of the held key gets inserted now and then. What gives?

+

This is a bug in the terminal, not in nano. When a key is repeating faster than nano can process it, the keyboard buffer becomes full and starts dropping incoming keystrokes. Unfortunately, it doesn't just drop whole keystrokes; it can also drop parts of multibyte key combinations, resulting in nano's receiving a wrong key.

+

4.5. How do I type the F13-F16 keys shown in the help browser? My keyboard only has F1-F12!

+

It depends on the terminal type you're using. On some terminals, such as the FreeBSD console, xterm, konsole, and gnome-terminal, Shift-F1 to Shift-F4 will generate F13 to F16. On other terminals, such as the Linux console, rxvt, and Eterm, Shift-F3 to Shift-F6 will generate F13 to F16.

+

4.6. nano crashes when I type <insert keystroke here>!

+

If you aren't trying some bizarre keystroke combination with some bizarre $TERM entry, chances are you have found a bug. You are welcome to submit it to the nano-devel list or to nano@nano-editor.org.

+

4.7. nano crashes when I resize my window. How can I fix that?

+

Older versions of nano had this problem, please upgrade to a newer version (at least 0.9.9 would be great, 0.9.12 is recommended).

+

4.8. [version 1.3.12 and later] I'm using glibc 2.2.3, and nano crashes when I use color support or do regular expression searches. How can I fix that?

+

It's a bug in glibc 2.2.3. You should upgrade to at least glibc 2.2.4.

+

4.9. [version 1.1.12 and earlier] Why does nano show ^\ in the shortcut list instead of ^J?

+

The help (^G) and justify (^J) function were among the last to be written. To show the improvements that nano had over Pico (go to line # and replace), ^_ and ^\ were put on the shortcut list. Later, ^G came back in place of ^_ as it proved to be very valuable for new Unix users. If you use the -p option to nano (or hit Meta-P) you will get the same shortcuts at the bottom as Pico.

+

4.10a. [version 1.1.12 and earlier] When I type in a search string, the string I last searched for is already in front of my cursor! What happened?!

+

In nano version 0.9.20, the default is to have a completely consistent user interface across all user input functions. This means that regardless of whether you're being asked for a filename to insert or write, or a string to search for, the previous value is already inserted before the cursor. If you prefer the old behavior, use the Pico emulation mode (-p or --pico) or just hit Meta-P while in nano (see the ^G help text for more details).

+

4.10b. [version 1.1.99pre1 and later] Hey, the search string behavior has reverted, it's now like Pico, what happened to the consistency?

+

It was decided that consistency was nice, but people are used to Pico's inconsistent behavior. Also, in version 1.1.99pre1, search and replace history was introduced. If you wish to edit your previous search/replace entry (or any previous entry), you can do so by hitting the up arrow to cycle through your history. This method allows the best of both worlds: You don't need to erase the previous string if you want to enter a new one, but you can with one keystroke recall previous entries for editing. Therefore there is now no "Pico mode", nano is and has always been a Pico clone, and clones by default should be compatible.

+

4.11. How do I make nano my default editor (in Pine, mutt, etc.)?

+

You need to make nano your $EDITOR. If you want this to be saved, you should put a line like this in your .bashrc if you use bash (or .zshrc if you believe in zsh):

+

export EDITOR=/usr/local/bin/nano

+

or, if you use tcsh, put this in your .cshrc file:

+

setenv EDITOR /usr/local/bin/nano

+

Change /usr/local/bin/nano to wherever nano is installed on your system. Type "which nano" to find out. This will not take effect until the next time you login. So log out and back in again.

+

Then, on top of that, if you use Pine, you must go into setup (type S at the main menu), and then configure (type C). Hit Enter on the lines that say:

+

[ ] enable-alternate-editor-cmd
+ [ ] enable-alternate-editor-implicitly

+

Then exit (E) and select Yes (Y).

+

If you're a mutt user, you should see an effect immediately the next time you log in. No further configuration is needed. However, if you want to let people know you use nano to compose your email messages, you can put a line like this in your .muttrc:

+

my_hdr X-Composer: nano x.y.z

+

Again, replace x.y.z with the version of nano you use.

+

4.12. I've compiled nano with color support, but I don't see any color when I run it!

+

If you want nano to actually use color, you have to specify the color configurations you want it to use in your .nanorc. Some example configurations are in the nanorc.sample that comes with the nano source or your nano package. See Section 3.9.

+

4.13. How do I select text for or paste text from the clipboard in an X terminal when I'm running nano in one and nano's mouse support is turned on?

+

Try holding down the Shift key and selecting or pasting the text as you normally would.

+

4.14. When I paste text into a document, each line gets indented further than the last. Why does nano do this, and how can I avoid it?

+

You have the autoindent feature turned on. Hit Meta-I to turn it off, paste your text, and then hit Meta-I again to turn it back on.

+
+

5. Internationalization

+

5.1. There's no translation for my language!

+

On June of 2001, GNU nano entered the Free Translation Project and since then, translations should be managed from there.

+

If there isn't a translation for your language, you could ask your language team to translate nano, or better still, join your team and do it yourself. Joining a team is easy. You just need to ask the TP coordinator to add you to your team, and send a translation disclaimer to the FSF (this is necessary as nano is an official GNU package, but it does not mean that you transfer the rights of your work to the FSF, it's just so the FSF can legally manage them).

+

In any case, translating nano is very easy. Just grab the nano.pot file from the latest and greatest nano distribution (it's in the po/ directory) and translate each line into your native language on the msgstr line. When you're done, you should send it to the TP's central po repository.

+

5.2. I don't like the translation for <x> in my language. How can I fix it?

+

The best way would probably be to e-mail the person listed in the Last-Translator: field in the <your_language>.po file with your suggested corrections and they can make the changes reach the nano-devel list.

+

5.3. What is the status of Unicode support?

+

In version 1.3.12 or later, Unicode should be usable. With your terminal, locale (LC_ALL and similar environment variables), and encoding configured to properly support UTF-8, you should be able to enter and save Unicode text.

+
+

6. Advocacy and Licensing

+

6.1. Why should I use nano instead of Pico?

+

There are many reasons to use nano instead of Pico. A more complete list can be found at the nano homepage.

+

6.2. Why should I use Pico instead of nano?

+

Again, check out the nano homepage for a good summary of reasons. It really is a matter of personal preference as to which editor you should use. If you're the type of person who likes using the original version of a program, then Pico is the editor for you. If you don't mind sacrificing mailer integration with Pine, and are looking for a few more features, as well as a 'better' license in terms of adding your own changes, nano is the way to go.

Note that the last of these no longer applies to the new version of Pine, Alpine, which is under the Apache License, version 2.0.

+

6.3. What is so bad about the older Pine license?

+

The U of W license for older versions of Pine and Pico is not considered truly Free Software according to both the Free Software Foundation and the Debian Free Software Guidelines. The main problem regards the limitations on distributing derived works: according to UW, you can distribute their software, and you can modify it, but you can not do both, i.e. distribute modified binaries.

+

6.4. Okay, well, what mail program should I use then?

+

If you are looking to use a Free Software program similar to Pine, and Emacs is not your thing, you should definitely take a look at mutt. It is a full-screen, console based mail program that actually has a lot more flexibility than Pine, but has a keymap included in the distribution that allows you to use the same keystrokes as Pine would to send and receive mail. It's also under the GNU General Public License, version 2.0.

+Of course, due to the license change you can now use the Alpine distribution of PINE as it is now considered Free Software, but you would be sacrificing many of nano's features to do so.

+
+

7. Miscellaneous

+

7.1. nano-related mailing lists.

+

There are three mailing lists for nano hosted at Savannah, info-nano, help-nano and nano-devel. info-nano is a very low traffic list where new versions of nano are announced (surprise!). help-nano is for getting help with the editor without needing to hear all of the development issues surrounding it. nano-devel is a normally low, sometimes high traffic list for discussing the present and future development of nano. Here are links to where you can sign up for a given list:

+

info-nano - http://mail.gnu.org/mailman/listinfo/info-nano/
+ help-nano - http://mail.gnu.org/mailman/listinfo/help-nano/
+ nano-devel - http://mail.gnu.org/mailman/listinfo/nano-devel/

+

7.2. I want to send the development team a big load of cash (or just a thank you).

+

That's fine. Send it our way! Better yet, fix a bug in the program or implement a cool feature and send us that instead (though cash is fine too).

+

7.3. How do I submit a bug report or patch?

+
+

The best place to submit bugs is to the Savannah bug tracker as you can check whether the bug you are submitting has already been submitted. +

Please submit patches for nano via the Savannah project's patch manager for the nano project.

+

7.4. How do I join the development team?

+

The easiest way is to consistently send in good patches that add some needed functionality, fix a bug or two and/or make the program more optimized/efficient. Then ask nicely and you will probably be added to the Savannah development list and be given SVN write access after awhile. There is a lot of responsibility that goes along with being a team member, so don't think it's just something to add to your resume.

+

7.5. Can I have write access to the subversion tree?

+

Re-read Section 7.4 and you should know the answer.

+

8. ChangeLog

+

2009/11/30 - Update various bits for nano 2.2.x. (DLR)
+2009/11/18 - Typo fix. (j.mader@gmail.com)
+2008/03/16 - Update docs to refer to subversion instead of CVS, add more words about Alpine, and refer to Savannah for bugs and patches. (chrisa)
+2007/12/21 - Update maintainer information. (DLR)
+2007/12/09 - Add minor punctuation and wording fixes, and update various sections to account for Alpine. (DLR)
+2007/08/26 - Update links to the Free Translation Project. (DLR)
+2007/07/29 - Update RPM links for nano 2.0.x. (DLR)
+2007/04/18 - Add a new section 4.14 to explain how autoindent affects pasted text. (John M. Gabriele, minor tweaks by DLR)
+2007/04/04 - Update email address. (DLR)
+2007/01/01 - Update section 4.1 to describe how to open files with names beginning with '+' at specified columns as well as lines. (DLR)
+2006/11/25 - Add miscellaneous wording and capitalization fixes. (DLR)
+2006/10/28 - Update various links for the 2.0 branch of nano. (DLR)
+2006/10/06 - Update the question in section 4.13 to match the version of it in the answer section. (DLR)
+2006/07/25 - Update section 5.3 again to not state "the latest development version" before 1.3.12, as it's no longer accurate. Also add some minor spacing fixes. (DLR)
+2006/06/12 - Update section 5.3, due to the display fix for two-column Unicode characters. (DLR)
+2006/06/05 - Add a new section 4.8, and move all section 4 entries after it down one number, to explain how to deal with glibc 2.2.3's crashes involving extended regular expressions. (DLR)
+2006/06/04 - Add minor punctuation, wording, and typo fixes. (DLR)
+2006/05/27 - Update section 3.8 to mention the new "Unicode Input" prompt, and how Unicode input only works when Unicode support is enabled. (DLR)
+2006/05/12 - Remove section 4.4, and move all section 4 entries after it up one number, since it no longer applies. Meta-] and Meta-[ are no longer used to indent and unindent marked text, since they require that the bracket matching key change to Ctrl-], which is used as the telnet escape key (found by Chris). Also, make the link to the nano CVS page a bit more readable. (DLR)
+2006/05/08 - Add a new section 4.5, and move all section 4 entries after it down one number, to explain a problem that can occur when holding down keys to generate Meta sequences. Also add a few more capitalization and wording fixes. (Benno Schulenberg, minor tweaks by DLR)
+2006/05/01 - Add a new section 4.4, and move all section 4 entries after it down one number, to explain how to deal with problems typing Meta-[. Also add a few capitalization and wording fixes. (DLR)
+2006/04/14 - Clarify section 1.4: help menu -> help text display. (DLR, suggested by Benno Schulenberg)
+2006/03/16 - Update the Free Translation Project's address, change the character set to UTF-8, and remove broken links to contributed RedHat nano packages. (DLR)
+2005/11/21 - Clarify section 5.3 to better explain how to enable Unicode support, and remove the mention of quirks, since they turned out to not be a nano problem. (Mike Frysinger and DLR)
+2005/11/19 - Add a new section 5.3 to explain the status of nano's Unicode support. (Mike Frysinger, minor tweaks by DLR)
+2005/08/27 - Update email address. (DLR)
+2005/08/10 - Add a new section 4.3, and move all section 4 entries after it down one number, to explain how to deal with numeric keypad problems. (DLR)
+2005/08/08 - Update section 3.8 to mention that verbatim input mode now takes a six-digit hexadecimal number. (DLR)
+2005/07/04 - Update section 4.10 to mention that pasting from the X clipboard via the middle mouse button also works when the Shift key is used. (DLR)
+2005/06/15 - Update description of --enable-extra, and add missing line breaks. (DLR)
+2005/06/13 - Minor capitalization and wording fixes. (DLR)
+2005/06/08 - Updated section 1.1 to mention the current maintainer. (DLR)
+2005/03/09 - Added question about opening files with names beginning with '+'s, and added a few more miscellaneous cosmetic fixes. (DLR)
+2005/01/03 - Removed now-inaccurate note about verbatim input's not working at prompts, and update its description to mention that it handles hexadecimal values now. (DLR)
+2004/11/21 - Listed sh as an example of a Bourne shell. (DLR)
+2004/11/05 - Fixed inaccuracy: Pico compatibility mode was made the default in nano 1.1.99pre1, not 1.2.2. Also added question about how to type F13-F16 on terminals lacking keys past F12 (suggested by Chris), question about how to select text for the clipboard in X terminals with nano's mouse support turned on (answer found by Joseph Birthisel), and misc. fixes and link updates. (DLR)
+2004/04/07 - Removed NumLock glitch question, as it's no longer needed. (DLR)
+2004/01/30 - Fixed inaccuracy: multibuffer mode was first in nano 1.1.0, not 1.1.12. (DLR)
+2003/12/31 - Added question about the new verbatim input function, and a few minor fixes. Removed reference to "set pico" (DLR).
+2003/07/02 - Added question about nano's not showing color when it's compiled with color support (DLR; suggested by Jordi).
+2003/02/23 - Updated RPM links for nano 1.2.x (DLR).
+2003/01/16 - Split section 4.5 into 4.5a and 4.5b for search string behavior. Added --enable-all docs.
+2002/12/28 - More misc. fixes (David Benbennick, DLR).
+2002/10/25 - Misc. fixes and link updates (DLR).
+2002/09/10 - Another typo fix (DLR).
+2002/05/15 - Typo fix (DLR).
+2001/12/26 - Misc. fixes (Aaron S. Hawley, DLR).
+2001/10/02 - Update for Free Translation Project.
+2001/10/02 - Assorted fixes, Debian additions.
+2001/06/30 - Silly typo fix.
+2001/05/05 - Spelling fixes by David Lawrence Ramsey.
+2001/05/02 - Misc fixes.
+2001/03/26 - Typo fix in an URL.
+2001/02/17 - Advocacy updates.
+2001/02/15 - Added GNU notes for 0.9.99pre3.
+2001/02/06 - Typo fixes.
+2001/01/14 - Added note about NumLock glitch.
+2001/01/10 - Linux -> GNU/Linux.
+2001/01/09 - Added "making exe smaller" section.
+2000/12/19 - Typo and assorted error fixes.
+2000/11/28 - Added blurb about make install-strip.
+2000/11/19 - Changed Debian frozen to stable.
+2000/11/18 - Previous string display (4.5).
+2000/09/27 - Moved addresses to nano-editor.org.
+2000/06/31 - Initial framework.

+

$Id: faq.html 4521 2010-11-15 06:58:22Z astyanax $

+ + diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am new file mode 100644 index 0000000..fbcdce8 --- /dev/null +++ b/doc/man/Makefile.am @@ -0,0 +1,35 @@ +if USE_NLS +SUBDIRS = fr +else +SUBDIRS = +endif + +if USE_NANORC +man_MANS = nano.1 nanorc.5 rnano.1 +if GROFF_HTML +BUILT_SOURCES = nano.1.html nanorc.5.html rnano.1.html +endif +else +man_MANS = nano.1 rnano.1 +if GROFF_HTML +BUILT_SOURCES = nano.1.html rnano.1.html +endif +endif + +nano_man_mans = nano.1 nanorc.5 rnano.1 +if GROFF_HTML +htmlman_DATA = nano.1.html nanorc.5.html rnano.1.html +htmlmandir = $(datadir)/nano/man-html +nano_built_sources = nano.1.html nanorc.5.html rnano.1.html + +nano.1.html: nano.1 + groff -t -mandoc -Thtml < $? > $@ +nanorc.5.html: nanorc.5 + groff -t -mandoc -Thtml < $? > $@ +rnano.1.html: rnano.1 + groff -t -mandoc -Thtml < $? > $@ + +EXTRA_DIST = $(nano_man_mans) $(nano_built_sources) +else +EXTRA_DIST = $(nano_man_mans) +endif diff --git a/doc/man/Makefile.in b/doc/man/Makefile.in new file mode 100644 index 0000000..a48d914 --- /dev/null +++ b/doc/man/Makefile.in @@ -0,0 +1,725 @@ +# Makefile.in generated by automake 1.11.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +target_triplet = @target@ +subdir = doc/man +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/ac_define_dir.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glib-2.0.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/isc-posix.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/progtest.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +man1dir = $(mandir)/man1 +am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man5dir)" \ + "$(DESTDIR)$(htmlmandir)" +man5dir = $(mandir)/man5 +NROFF = nroff +MANS = $(man_MANS) +DATA = $(htmlman_DATA) +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = fr +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CURSES_LIB = @CURSES_LIB@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLLIBS = @INTLLIBS@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKGDATADIR = @PKGDATADIR@ +PKG_CONFIG = @PKG_CONFIG@ +POSUB = @POSUB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target = @target@ +target_alias = @target_alias@ +target_cpu = @target_cpu@ +target_os = @target_os@ +target_vendor = @target_vendor@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +@USE_NLS_FALSE@SUBDIRS = +@USE_NLS_TRUE@SUBDIRS = fr +@USE_NANORC_FALSE@man_MANS = nano.1 rnano.1 +@USE_NANORC_TRUE@man_MANS = nano.1 nanorc.5 rnano.1 +@GROFF_HTML_TRUE@@USE_NANORC_FALSE@BUILT_SOURCES = nano.1.html rnano.1.html +@GROFF_HTML_TRUE@@USE_NANORC_TRUE@BUILT_SOURCES = nano.1.html nanorc.5.html rnano.1.html +nano_man_mans = nano.1 nanorc.5 rnano.1 +@GROFF_HTML_TRUE@htmlman_DATA = nano.1.html nanorc.5.html rnano.1.html +@GROFF_HTML_TRUE@htmlmandir = $(datadir)/nano/man-html +@GROFF_HTML_TRUE@nano_built_sources = nano.1.html nanorc.5.html rnano.1.html +@GROFF_HTML_FALSE@EXTRA_DIST = $(nano_man_mans) +@GROFF_HTML_TRUE@EXTRA_DIST = $(nano_man_mans) $(nano_built_sources) +all: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) all-recursive + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/man/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu doc/man/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +install-man1: $(man_MANS) + @$(NORMAL_INSTALL) + test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" + @list=''; test -n "$(man1dir)" || exit 0; \ + { for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.1[a-z]*$$/p'; \ + } | while read p; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; echo "$$p"; \ + done | \ + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ + sed 'N;N;s,\n, ,g' | { \ + list=; while read file base inst; do \ + if test "$$base" = "$$inst"; then list="$$list $$file"; else \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ + fi; \ + done; \ + for i in $$list; do echo "$$i"; done | $(am__base_list) | \ + while read files; do \ + test -z "$$files" || { \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ + done; } + +uninstall-man1: + @$(NORMAL_UNINSTALL) + @list=''; test -n "$(man1dir)" || exit 0; \ + files=`{ for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.1[a-z]*$$/p'; \ + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ + test -z "$$files" || { \ + echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(man1dir)" && rm -f $$files; } +install-man5: $(man_MANS) + @$(NORMAL_INSTALL) + test -z "$(man5dir)" || $(MKDIR_P) "$(DESTDIR)$(man5dir)" + @list=''; test -n "$(man5dir)" || exit 0; \ + { for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.5[a-z]*$$/p'; \ + } | while read p; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; echo "$$p"; \ + done | \ + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ + sed 'N;N;s,\n, ,g' | { \ + list=; while read file base inst; do \ + if test "$$base" = "$$inst"; then list="$$list $$file"; else \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst" || exit $$?; \ + fi; \ + done; \ + for i in $$list; do echo "$$i"; done | $(am__base_list) | \ + while read files; do \ + test -z "$$files" || { \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man5dir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(man5dir)" || exit $$?; }; \ + done; } + +uninstall-man5: + @$(NORMAL_UNINSTALL) + @list=''; test -n "$(man5dir)" || exit 0; \ + files=`{ for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.5[a-z]*$$/p'; \ + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ + test -z "$$files" || { \ + echo " ( cd '$(DESTDIR)$(man5dir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(man5dir)" && rm -f $$files; } +install-htmlmanDATA: $(htmlman_DATA) + @$(NORMAL_INSTALL) + test -z "$(htmlmandir)" || $(MKDIR_P) "$(DESTDIR)$(htmlmandir)" + @list='$(htmlman_DATA)'; test -n "$(htmlmandir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmlmandir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(htmlmandir)" || exit $$?; \ + done + +uninstall-htmlmanDATA: + @$(NORMAL_UNINSTALL) + @list='$(htmlman_DATA)'; test -n "$(htmlmandir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(htmlmandir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(htmlmandir)" && rm -f $$files + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @list='$(MANS)'; if test -n "$$list"; then \ + list=`for p in $$list; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ + if test -n "$$list" && \ + grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ + echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \ + grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ + echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ + echo " typically \`make maintainer-clean' will remove them" >&2; \ + exit 1; \ + else :; fi; \ + else :; fi + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-recursive +all-am: Makefile $(MANS) $(DATA) +installdirs: installdirs-recursive +installdirs-am: + for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(htmlmandir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) +clean: clean-recursive + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-recursive + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: install-htmlmanDATA install-man + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: install-man1 install-man5 + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: uninstall-htmlmanDATA uninstall-man + +uninstall-man: uninstall-man1 uninstall-man5 + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check \ + ctags-recursive install install-am install-strip \ + tags-recursive + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am check check-am clean clean-generic ctags \ + ctags-recursive distclean distclean-generic distclean-tags \ + distdir dvi dvi-am html html-am info info-am install \ + install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-htmlmanDATA install-info \ + install-info-am install-man install-man1 install-man5 \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \ + tags-recursive uninstall uninstall-am uninstall-htmlmanDATA \ + uninstall-man uninstall-man1 uninstall-man5 + + +@GROFF_HTML_TRUE@nano.1.html: nano.1 +@GROFF_HTML_TRUE@ groff -t -mandoc -Thtml < $? > $@ +@GROFF_HTML_TRUE@nanorc.5.html: nanorc.5 +@GROFF_HTML_TRUE@ groff -t -mandoc -Thtml < $? > $@ +@GROFF_HTML_TRUE@rnano.1.html: rnano.1 +@GROFF_HTML_TRUE@ groff -t -mandoc -Thtml < $? > $@ + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/doc/man/fr/Makefile.am b/doc/man/fr/Makefile.am new file mode 100644 index 0000000..7a43052 --- /dev/null +++ b/doc/man/fr/Makefile.am @@ -0,0 +1,33 @@ +mandir = @mandir@/fr + +if USE_NANORC +man_MANS = nano.1 nanorc.5 rnano.1 +if GROFF_HTML +BUILT_SOURCES = nano.1.html nanorc.5.html rnano.1.html +endif +else +man_MANS = nano.1 rnano.1 +if GROFF_HTML +BUILT_SOURCES = nano.1.html rnano.1.html +endif +endif + +nano_man_mans = nano.1 nanorc.5 rnano.1 +if GROFF_HTML +htmlman_DATA = nano.1.html nanorc.5.html rnano.1.html +htmlmandir = $(datadir)/nano/man-html/fr + +nano_built_sources = nano.1.html nanorc.5.html rnano.1.html + +nano.1.html: nano.1 + groff -t -mandoc -Thtml < $? > $@ +nanorc.5.html: nanorc.5 + groff -t -mandoc -Thtml < $? > $@ +rnano.1.html: rnano.1 + groff -t -mandoc -Thtml < $? > $@ + +EXTRA_DIST = $(nano_man_mans) $(nano_built_sources) +else +EXTRA_DIST = $(nano_man_mans) +endif + diff --git a/doc/man/fr/Makefile.in b/doc/man/fr/Makefile.in new file mode 100644 index 0000000..79d5987 --- /dev/null +++ b/doc/man/fr/Makefile.in @@ -0,0 +1,521 @@ +# Makefile.in generated by automake 1.11.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +target_triplet = @target@ +subdir = doc/man/fr +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/ac_define_dir.m4 \ + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glib-2.0.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/isc-posix.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/progtest.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +man1dir = $(mandir)/man1 +am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man5dir)" \ + "$(DESTDIR)$(htmlmandir)" +man5dir = $(mandir)/man5 +NROFF = nroff +MANS = $(man_MANS) +DATA = $(htmlman_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CURSES_LIB = @CURSES_LIB@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLLIBS = @INTLLIBS@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKGDATADIR = @PKGDATADIR@ +PKG_CONFIG = @PKG_CONFIG@ +POSUB = @POSUB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@/fr +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target = @target@ +target_alias = @target_alias@ +target_cpu = @target_cpu@ +target_os = @target_os@ +target_vendor = @target_vendor@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +@USE_NANORC_FALSE@man_MANS = nano.1 rnano.1 +@USE_NANORC_TRUE@man_MANS = nano.1 nanorc.5 rnano.1 +@GROFF_HTML_TRUE@@USE_NANORC_FALSE@BUILT_SOURCES = nano.1.html rnano.1.html +@GROFF_HTML_TRUE@@USE_NANORC_TRUE@BUILT_SOURCES = nano.1.html nanorc.5.html rnano.1.html +nano_man_mans = nano.1 nanorc.5 rnano.1 +@GROFF_HTML_TRUE@htmlman_DATA = nano.1.html nanorc.5.html rnano.1.html +@GROFF_HTML_TRUE@htmlmandir = $(datadir)/nano/man-html/fr +@GROFF_HTML_TRUE@nano_built_sources = nano.1.html nanorc.5.html rnano.1.html +@GROFF_HTML_FALSE@EXTRA_DIST = $(nano_man_mans) +@GROFF_HTML_TRUE@EXTRA_DIST = $(nano_man_mans) $(nano_built_sources) +all: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/man/fr/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu doc/man/fr/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +install-man1: $(man_MANS) + @$(NORMAL_INSTALL) + test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" + @list=''; test -n "$(man1dir)" || exit 0; \ + { for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.1[a-z]*$$/p'; \ + } | while read p; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; echo "$$p"; \ + done | \ + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ + sed 'N;N;s,\n, ,g' | { \ + list=; while read file base inst; do \ + if test "$$base" = "$$inst"; then list="$$list $$file"; else \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ + fi; \ + done; \ + for i in $$list; do echo "$$i"; done | $(am__base_list) | \ + while read files; do \ + test -z "$$files" || { \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ + done; } + +uninstall-man1: + @$(NORMAL_UNINSTALL) + @list=''; test -n "$(man1dir)" || exit 0; \ + files=`{ for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.1[a-z]*$$/p'; \ + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ + test -z "$$files" || { \ + echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(man1dir)" && rm -f $$files; } +install-man5: $(man_MANS) + @$(NORMAL_INSTALL) + test -z "$(man5dir)" || $(MKDIR_P) "$(DESTDIR)$(man5dir)" + @list=''; test -n "$(man5dir)" || exit 0; \ + { for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.5[a-z]*$$/p'; \ + } | while read p; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; echo "$$p"; \ + done | \ + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ + sed 'N;N;s,\n, ,g' | { \ + list=; while read file base inst; do \ + if test "$$base" = "$$inst"; then list="$$list $$file"; else \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst" || exit $$?; \ + fi; \ + done; \ + for i in $$list; do echo "$$i"; done | $(am__base_list) | \ + while read files; do \ + test -z "$$files" || { \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man5dir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(man5dir)" || exit $$?; }; \ + done; } + +uninstall-man5: + @$(NORMAL_UNINSTALL) + @list=''; test -n "$(man5dir)" || exit 0; \ + files=`{ for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.5[a-z]*$$/p'; \ + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ + test -z "$$files" || { \ + echo " ( cd '$(DESTDIR)$(man5dir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(man5dir)" && rm -f $$files; } +install-htmlmanDATA: $(htmlman_DATA) + @$(NORMAL_INSTALL) + test -z "$(htmlmandir)" || $(MKDIR_P) "$(DESTDIR)$(htmlmandir)" + @list='$(htmlman_DATA)'; test -n "$(htmlmandir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmlmandir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(htmlmandir)" || exit $$?; \ + done + +uninstall-htmlmanDATA: + @$(NORMAL_UNINSTALL) + @list='$(htmlman_DATA)'; test -n "$(htmlmandir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(htmlmandir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(htmlmandir)" && rm -f $$files +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @list='$(MANS)'; if test -n "$$list"; then \ + list=`for p in $$list; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ + if test -n "$$list" && \ + grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ + echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \ + grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ + echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ + echo " typically \`make maintainer-clean' will remove them" >&2; \ + exit 1; \ + else :; fi; \ + else :; fi + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-am +all-am: Makefile $(MANS) $(DATA) +installdirs: + for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(htmlmandir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) +clean: clean-am + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-htmlmanDATA install-man + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: install-man1 install-man5 + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-htmlmanDATA uninstall-man + +uninstall-man: uninstall-man1 uninstall-man5 + +.MAKE: all check install install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic distclean \ + distclean-generic distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-htmlmanDATA install-info \ + install-info-am install-man install-man1 install-man5 \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \ + uninstall-htmlmanDATA uninstall-man uninstall-man1 \ + uninstall-man5 + + +@GROFF_HTML_TRUE@nano.1.html: nano.1 +@GROFF_HTML_TRUE@ groff -t -mandoc -Thtml < $? > $@ +@GROFF_HTML_TRUE@nanorc.5.html: nanorc.5 +@GROFF_HTML_TRUE@ groff -t -mandoc -Thtml < $? > $@ +@GROFF_HTML_TRUE@rnano.1.html: rnano.1 +@GROFF_HTML_TRUE@ groff -t -mandoc -Thtml < $? > $@ + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/doc/man/fr/nano.1 b/doc/man/fr/nano.1 new file mode 100644 index 0000000..f840374 --- /dev/null +++ b/doc/man/fr/nano.1 @@ -0,0 +1,326 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 +.\" Free Software Foundation, Inc. +.\" +.\" Le travail d'adaptation française de cette page de manuel a été +.\" réalisé par Jean-Philippe Guérard, en 2003, 2004, 2005, 2006 et 2007. +.\" Ce travail d'adaptation est dans le domaine public. Attention, la +.\" page traduite reste soumise au droit d'auteur de ses auteurs +.\" originaux. +.\" +.\" The French translation of this document is a public domain work of +.\" Jean-Philippe Guérard. This translation work was made in 2003, 2004, +.\" 2005, 2006 and 2007. The translated man page in itself is still +.\" subject to the copyright of its original authors. +.\" +.\" This document is dual-licensed. You may distribute and/or modify it +.\" under the terms of either of the following licenses: +.\" +.\" * The GNU General Public License, as published by the Free Software +.\" Foundation, version 3 or (at your option) any later version. You +.\" should have received a copy of the GNU General Public License +.\" along with this program. If not, see +.\" . +.\" +.\" * The GNU Free Documentation License, as published by the Free +.\" Software Foundation, version 1.2 or (at your option) any later +.\" version, with no Invariant Sections, no Front-Cover Texts, and no +.\" Back-Cover Texts. You should have received a copy of the GNU Free +.\" Documentation License along with this program. If not, see +.\" . +.\" +.\" Ce document est publié sous une double licence. Vous pouvez +.\" le distribuer et le modifier selon les termes de l'une des deux +.\" licences ci-dessous : +.\" +.\" * La Licence publique générale GNU (GNU GPL) version 3 ou, à +.\" votre choix, supérieure, telle que publiée par la Free +.\" Software Foundation. Vous devriez avoir reçu une copie de la +.\" Licence publique générale GNU avec ce programme. Si ce n'est pas +.\" le cas, consultez . +.\" +.\" * La Licence de documentation libre GNU (GNU FDL), version 1.2 ou, +.\" à votre choix, supérieure, telle que publiée par la Free +.\" Software Foundation, sans section invariante, ni texte de +.\" première ou de quatrième de couverture. Vous devriez avoir reçu +.\" une copie de la Licence de documentation libre GNU avec ce +.\" programme. Si ce n'est pas le cas, consultez +.\" . +.\" +.\" $Id: nano.1 4443 2009-11-27 02:50:12Z astyanax $ +.TH NANO 1 "version 2.0.0" "29\ novembre\ 2007" +.\" Please adjust this date whenever revising the manpage. +.\" Merci de modifier ces dates à chaque mise à jour de cette page. +.\" + +.SH NOM +nano \- NAno un NOuvel éditeur, un clone libre et amélioré de Pico + +.SH SYNOPSIS +.B nano +.I [OPTIONS]\ [[\+LIGNE,COLONNE]\ FICHIER]... +.br + +.SH DESCRIPTION +Cette page de manuel décrit brièvement la commande \fBnano\fR. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invoke bold face and italics, +.\" respectively. +\fBnano\fR est un éditeur petit, sympathique et libre, qui vise à remplacer +Pico, l'éditeur par défaut du logiciel non libre Pine. \fBnano\fR ne se +contentant pas de copier l'interface et l'ergonomie de Pico, il offre +également certaines fonctions manquantes (ou désactivées par défaut) +dans Pico. Ces fonctionnalités sont, par exemple, les fonctions de +recherche et de remplacement, et la possibilité de sauter directement à +une ligne et à une colonne précise. + +.SH OPTIONS +.TP +.B \+\fILIGNE\fP,\fICOLONNE\fP +Démarre avec le curseur positionné à la colonne \fICOLONNE\fP de +la ligne \fILIGNE\fR (l'un des deux, au moins, devant être spécifié) au +lieu de démarrer à la colonne\ 1, ligne\ 1. +.TP +.B \-? +Identique à \fB-h (\-\-help)\fP. +.TP +.B \-A (\-\-smarthome) +Rend plus malin le fonctionnement de la touche «\ Début\ ». Lorsque l'on +appuie sur cette touche à n'importe quel endroit excepté au tout début +du texte d'une ligne (i.\ e. au premier caractère non blanc), le curseur +se positionnera au début du texte de la ligne (qu'il soit en avant ou en +arrière). Si le curseur est déjà là, il se placera au vrai début de la +ligne. +.TP +.B \-B (\-\-backup) +Lors de l'écriture d'un fichier, crée une copie de sécurité de la +version précédente, en ajoutant un tilde (~) au nom du fichier. +.TP +.B \-D (\-\-boldtext) +Utilise des caractères gras à la place de la vidéo inverse. +.TP +.B \-C \fIrépertoire\fP (\-\-backupdir=\fIrépertoire\fP) +Définit le répertoire utilisé par \fBnano\fP pour enregistrer les copies +de sécurité uniques si celles-ci sont activées. +.TP +.B \-E (\-\-tabstospaces) +Convertit les tabulations clavier en espaces. +.TP +.B \-F (\-\-multibuffer) +Active le mode multi-espace, autorisant l'édition simultanée de +plusieurs fichiers, si ce mode est disponible. +.TP +.B \-H (\-\-historylog) +Enregistre les chaînes ayant fait l'objet d'une recherche ou d'un +remplacement dans le fichier \fI~/.nano_history\fR afin de permettre leur +réutilisation. Ceci n'est possible que si \fBnano\fR est configuré pour +utiliser les fichiers nanorc. +.TP +.B \-I (\-\-ignorercfiles) +Ne pas utiliser pas les fichiers \fISYSCONFDIR/nanorc\fR et +\fI~/.nanorc\fR (si \fBnano\fR est capable de les utiliser). +.TP +.B \-K (\-\-rebindkeypad) +Interprète les touches du pavé numérique afin qu'elles fonctionnent +toutes correctement. Vous ne devriez utiliser cette option que si ce +n'est pas le cas, car nano ne sera plus capable d'utiliser la souris +correctement lorsque cette option sera activée. +.TP +.B \-L (\-\-nonewlines) +Ne pas ajouter de passage à la ligne à la fin des fichiers. +.TP +.B \-N (\-\-noconvert) +Désactive la conversion automatique des fichiers depuis les formats Mac et +DOS. +.TP +.B \-O (\-\-morespace) +Utiliser la ligne blanche située sous la ligne de titre comme +espace supplémentaire d'édition. +.TP +.B \-Q \fIchaîne\fP (\-\-quotestr=\fIchaîne\fP) +Définit le préfixe par défaut des citations. Nano utilise ce préfixe +pour réaliser une justification correcte des citations. Si nano est +capable d'utiliser des expressions rationnelles, le préfixe par défaut +sera "\fI^([\ \\t]*[#:>\\|}])+\fP", sinon, ce sera "\fI>\ \fP". Dans +l'expression rationnelle précédente, «\ \fI\\t\fP\ » représente une +tabulation. +.TP +.B \-R (\-\-restricted) +Mode restreint\ : aucune lecture ou écriture de fichiers non indiqués +sur la ligne de commande, pas de lecture des fichiers nanorc, +interdiction de suspendre, interdiction d'ajouter au début, à la fin, +de sauvegarder un fichier ayant déjà un nom sous un nom différent, +d'utiliser une copie de sécurité ou le correcteur orthographique. Cette +option peut aussi être activée en appelant \fBnano\fP sous un nom +commençant par «\ r\ » (par exemple «\ rnano\ »). +.TP +.B \-S (\-\-smooth) +Active le défilement progressif. Le texte défilera ligne-par-ligne au lieu +de défiler morceau-par-morceau. +.TP +.B \-T \fInombre\fP (\-\-tabsize=\fInombre\fP) +Définit la taille (largeur) des tabulations en nombre de colonnes. Le +nombre indiqué doit être strictement supérieur à 0. La valeur par défaut +est de 8. +.TP +.B \-U (\-\-quickblank) +Effacement rapide de la ligne d'état. Les messages affichés par la ligne +d'état disparaîtront après une frappe clavier au lieu de 25. Notez que +l'option \fB-c\fP prend le pas sur cette option. +.TP +.B \-V (\-\-version) +Affiche la version, puis s'arrête. +.TP +.B \-W (\-\-wordbounds) +Détection plus précise des limites de mots, obtenue en considérant les +caractères de ponctuation comme faisant partie des mots. +.TP +.B \-Y \fIchaîne\fP (\-\-syntax=\fIchaîne\fP) +Indique quel mode de colorisation syntaxique adopter, parmi les modes +définis dans le fichier \fI.nanorc\fR, si cette fonctionnalité est +disponible. +.TP +.B \-c (\-\-const) +Affiche en permanence la position du curseur. Notez que cette option +prend le pas sur l'option \fB-U\fP. +.TP +.B \-d (\-\-rebinddelete) +Interprète différemment la touche «\ Supprimer\ », afin que les touches +«\ Effacement arrière\ » et «\ Supprimer\ » fonctionnent correctement. +Vous ne devriez avoir besoin de cette option que si, sur votre système, +la touche «\ Effacement arrière\ » produit l'effet de la touche +«\ Supprimer\ ». +.TP +.B \-h (\-\-help) +Affiche un résumé des options de lancement de nano, puis s'arrête. +.TP +.B \-i (\-\-autoindent) +Indentation automatique. Commence chaque nouvelle ligne au même niveau que +la ligne précédente. Utile pour l'édition de code source. +.TP +.B \-k (\-\-cut) +Coupe le texte du curseur à la fin de la ligne, au lieu de couper la +ligne entière. +.TP +.B \-l (\-\-nofollow) +Si le fichier édité est un lien symbolique, au lieu de le suivre, +remplace le lien par le nouveau fichier. Sans doute utile pour éditer +les fichiers de \fI/tmp\fR, non\ ? +.TP +.B \-m (\-\-mouse) +Active l'utilisation de la souris, si elle est disponible pour votre +système. Lorsque celle-ci est activée, il est possible d'utiliser la +souris pour positionner le curseur, pour marquer le texte (avec un +double-clic) et pour lancer les fonctions correspondant aux raccourcis. +Il est possible d'utiliser la souris sous X\ Window ou en mode console +avec gpm. +.TP +.B \-o \fIrépertoire\fP (\-\-operatingdir=\fIrépertoire\fP) +Définit le répertoire de travail. Demande à \fBnano\fP de mettre en place +quelque chose de similaire à un environnement d'exécution restreint +(\fIchroot\fR). +.TP +.B \-p (\-\-preserve) +Préserve les séquences XON et XOFF (^Q et ^S), afin qu'elle soient reçues +par le terminal. +.TP +.B \-r \fIcolonne\fP (\-\-fill=\fIcolonne\fP) +Passe automatiquement à la ligne une fois arrivé à la colonne +\fIcolonne\fR. Si la valeur indiquée est de 0 ou moins, le point de +passage à la ligne aura lieu à la taille de l'écran moins \fIcolonne\fR. +Cela permet de faire varier le point de passage à la ligne lorsque l'on +change la taille de l'écran. La valeur par défaut est de \-8. +.TP +.B \-s \fIprogramme\fP (\-\-speller=\fIprogramme\fP) +Choix d'un correcteur orthographique de remplacement. +.TP +.B \-t (\-\-tempfile) +S'il a été modifié, le fichier sera sauvegardé automatiquement sans +demande de confirmation. Identique à l'option \fB-t\fP de Pico. +.TP +.B \-v (\-\-view) +Mode visualisation (lecture seule). +.TP +.B \-w (\-\-nowrap) +Désactive le passage automatique à la ligne. +.TP +.B \-x (\-\-nohelp) +Désactive la barre d'aide affichée en bas de l'écran. +.TP +.B \-z (\-\-suspend) +Autorise à suspendre l'éditeur. +.TP +.B \-a, \-b, \-e, \-f, \-g, \-j +Ignoré, pour être compatible avec Pico. + +.SH "FICHIERS D'INITIALISATION" +\fBnano\fR lit les fichiers d'initialisation dans l'ordre suivant\ : +\fISYSCONFDIR/nanorc\fR, puis \fI~/.nanorc\fR. Référez-vous à la page de +manuel de \fBnanorc(5)\fR et au fichier d'exemple \fInanorc.sample\fR, +qui devraient tous les deux être livrés avec \fBnano\fR. + +.SH NOTES +Si aucun correcteur orthographique de remplacement n'est indiqué dans la +ligne de commande ou dans l'un des fichiers nanorc, \fBnano\fR prendra +la commande indiquée par la variable d'environnement \fBSPELL\fR si +elle est définie. + +Dans certains cas, \fBnano\fR essaiera de sauvegarder le fichier en cours +d'édition dans un fichier de secours. Cela arrivera principalement si +\fBnano\fR reçoit un signal SIGHUP ou SIGTERM, ou bien se trouve à court de +mémoire. Le nom de ce fichier de secours sera \fInano.save\fR si le fichier en +cours n'avait pas encore de nom, ou sera composé du nom du fichier en cours +suivi du suffixe «\ .save\ ». Si un fichier de ce nom existe déjà dans +le répertoire, un «\ .save\ » et un nombre seront ajoutés à la fin du +nom du fichier en cours afin de le rendre unique (par exemple, +«\ .save.1\ »). En mode multi-espace, \fBnano\fR réalisera une +sauvegarde de tous les fichiers en cours dans leurs fichiers de secours +respectifs. + +.SH BOGUES +Merci de nous faire parvenir vos commentaires et de nous signaler les +bogues, en écrivant, en anglais, à \fBnano@nano-editor.org\fR. + +La liste de discussion anglophone \fBnano\fR est disponible à l'adresse +\fBnano-devel@gnu.org\fR. + +Pour vous abonner, envoyez un courrier électronique à +\fBnano-devel-request@gnu.org\fR, ayant pour objet «\ subscribe\ ». + +N'hésitez pas également à envoyez vos commentaires, suggestions et +corrections relatives à l'adaptation française de cette page de manuel +ou du logiciel à \fBjean-philippe.guerard@tigreraye.org\fR. + +.SH "SITE INTERNET" +http://www.nano-editor.org/ + +.SH "VOIR AUSSI" +.PD 0 +.TP +\fBnanorc\fR(5) +.PP +\fI/usr/share/doc/nano/\fR (ou son équivalent sur votre système) + +.SH AUTEUR +Chris Allegretta et d'autres (voir les fichiers +\fIAUTHORS\fR et \fITHANKS\fR pour plus d'information). Cette page de +manuel a été initialement rédigée par Jordi Mallach pour +le système Debian (mais elle peut être utilisée par d'autres). + +.SH TRADUCTION +Cette adaptation française a été réalisée par Jean-Philippe\ Guérard + le 29\ novembre\ 2007 à partir +de la version 1.54 du 11\ octobre\ 2007 de la page de manuel de nano +2.0.0. Cette page a été relue par Gérard Delafond. + +Un maximum de soin a été apporté lors de l'élaboration de cette +traduction\ ; néanmoins, quelques imperfections peuvent subsister. Si +vous en rencontrez, que ce soit dans la version française ou dans la +version originale, n'hésitez pas à les signaler à l'auteur ou au +traducteur. + +La version originale la plus à jour de ce document est toujours +consultable via la commande\ : + +LANGUAGE=en man nano diff --git a/doc/man/fr/nano.1.html b/doc/man/fr/nano.1.html new file mode 100644 index 0000000..e8f9548 --- /dev/null +++ b/doc/man/fr/nano.1.html @@ -0,0 +1,560 @@ + + + + + + + + + +NANO + + + + +

NANO

+ +NOM
+SYNOPSIS
+DESCRIPTION
+OPTIONS
+FICHIERS D’INITIALISATION
+NOTES
+BOGUES
+SITE INTERNET
+VOIR AUSSI
+AUTEUR
+TRADUCTION
+ +
+ + +

NOM + +

+ + +

nano − +NAno un NOuvel éditeur, un clone libre et +amélioré de Pico

+ +

SYNOPSIS + +

+ + +

nano +[OPTIONS] [[+LIGNE,COLONNE] FICHIER]...

+ +

DESCRIPTION + +

+ + +

Cette page de +manuel décrit brièvement la commande +nano.

+ +

nano est +un éditeur petit, sympathique et libre, qui vise +à remplacer Pico, l’éditeur par +défaut du logiciel non libre Pine. nano ne se +contentant pas de copier l’interface et +l’ergonomie de Pico, il offre également +certaines fonctions manquantes (ou désactivées +par défaut) dans Pico. Ces fonctionnalités +sont, par exemple, les fonctions de recherche et de +remplacement, et la possibilité de sauter directement +à une ligne et à une colonne +précise.

+ +

OPTIONS + +

+ + + +

+LIGNE,COLONNE

+ +

Démarre avec le curseur +positionné à la colonne COLONNE de la +ligne LIGNE (l’un des deux, au moins, devant +être spécifié) au lieu de +démarrer à la colonne 1, +ligne 1.

+ + + + + + + + +
+ + +

−?

+ + +

Identique à -h (−−help).

+
+ +

−A +(−−smarthome)

+ +

Rend plus malin le +fonctionnement de la touche +« Début ». Lorsque l’on +appuie sur cette touche à n’importe quel +endroit excepté au tout début du texte +d’une ligne (i. e. au premier caractère +non blanc), le curseur se positionnera au début du +texte de la ligne (qu’il soit en avant ou en +arrière). Si le curseur est déjà +là, il se placera au vrai début de la +ligne.

+ +

−B +(−−backup)

+ +

Lors de l’écriture +d’un fichier, crée une copie de +sécurité de la version +précédente, en ajoutant un tilde (~) au nom du +fichier.

+ +

−D +(−−boldtext)

+ +

Utilise des caractères +gras à la place de la vidéo inverse.

+ +

−C +répertoire +(−−backupdir=répertoire)

+ +

Définit le +répertoire utilisé par nano pour +enregistrer les copies de sécurité uniques si +celles-ci sont activées.

+ +

−E +(−−tabstospaces)

+ +

Convertit les tabulations +clavier en espaces.

+ +

−F +(−−multibuffer)

+ +

Active le mode multi-espace, +autorisant l’édition simultanée de +plusieurs fichiers, si ce mode est disponible.

+ +

−H +(−−historylog)

+ +

Enregistre les chaînes +ayant fait l’objet d’une recherche ou d’un +remplacement dans le fichier ~/.nano_history afin de +permettre leur réutilisation. Ceci n’est +possible que si nano est configuré pour +utiliser les fichiers nanorc.

+ +

−I +(−−ignorercfiles)

+ +

Ne pas utiliser pas les +fichiers SYSCONFDIR/nanorc et ~/.nanorc (si +nano est capable de les utiliser).

+ +

−K +(−−rebindkeypad)

+ +

Interprète les touches +du pavé numérique afin qu’elles +fonctionnent toutes correctement. Vous ne devriez utiliser +cette option que si ce n’est pas le cas, car nano ne +sera plus capable d’utiliser la souris correctement +lorsque cette option sera activée.

+ +

−L +(−−nonewlines)

+ +

Ne pas ajouter de passage +à la ligne à la fin des fichiers.

+ +

−N +(−−noconvert)

+ +

Désactive la conversion +automatique des fichiers depuis les formats Mac et DOS.

+ +

−O +(−−morespace)

+ +

Utiliser la ligne blanche +située sous la ligne de titre comme espace +supplémentaire d’édition.

+ +

−Q +chaîne +(−−quotestr=chaîne)

+ +

Définit le +préfixe par défaut des citations. Nano utilise +ce préfixe pour réaliser une justification +correcte des citations. Si nano est capable d’utiliser +des expressions rationnelles, le préfixe par +défaut sera +"^([ \t]*[#:>\|}])+", sinon, ce +sera "". Dans l’expression +rationnelle précédente, +« \t » représente une +tabulation.

+ +

−R +(−−restricted)

+ +

Mode restreint : aucune +lecture ou écriture de fichiers non indiqués +sur la ligne de commande, pas de lecture des fichiers +nanorc, interdiction de suspendre, interdiction +d’ajouter au début, à la fin, de +sauvegarder un fichier ayant déjà un nom sous +un nom différent, d’utiliser une copie de +sécurité ou le correcteur orthographique. +Cette option peut aussi être activée en +appelant nano sous un nom commençant par +« r » (par exemple +« rnano »).

+ +

−S +(−−smooth)

+ +

Active le défilement +progressif. Le texte défilera ligne-par-ligne au lieu +de défiler morceau-par-morceau.

+ +

−T nombre +(−−tabsize=nombre)

+ +

Définit la taille +(largeur) des tabulations en nombre de colonnes. Le nombre +indiqué doit être strictement supérieur +à 0. La valeur par défaut est de 8.

+ +

−U +(−−quickblank)

+ +

Effacement rapide de la ligne +d’état. Les messages affichés par la +ligne d’état disparaîtront après +une frappe clavier au lieu de 25. Notez que l’option +-c prend le pas sur cette option.

+ +

−V +(−−version)

+ +

Affiche la version, puis +s’arrête.

+ +

−W +(−−wordbounds)

+ +

Détection plus +précise des limites de mots, obtenue en +considérant les caractères de ponctuation +comme faisant partie des mots.

+ +

−Y +chaîne +(−−syntax=chaîne)

+ +

Indique quel mode de +colorisation syntaxique adopter, parmi les modes +définis dans le fichier .nanorc, si cette +fonctionnalité est disponible.

+ +

−c +(−−const)

+ +

Affiche en permanence la +position du curseur. Notez que cette option prend le pas sur +l’option -U.

+ +

−d +(−−rebinddelete)

+ +

Interprète +différemment la touche +« Supprimer », afin que les touches +« Effacement arrière » et +« Supprimer » fonctionnent +correctement. Vous ne devriez avoir besoin de cette option +que si, sur votre système, la touche +« Effacement arrière » produit +l’effet de la touche +« Supprimer ».

+ +

−h +(−−help)

+ +

Affiche un résumé +des options de lancement de nano, puis +s’arrête.

+ +

−i +(−−autoindent)

+ +

Indentation automatique. +Commence chaque nouvelle ligne au même niveau que la +ligne précédente. Utile pour +l’édition de code source.

+ +

−k +(−−cut)

+ +

Coupe le texte du curseur +à la fin de la ligne, au lieu de couper la ligne +entière.

+ +

−l +(−−nofollow)

+ +

Si le fichier +édité est un lien symbolique, au lieu de le +suivre, remplace le lien par le nouveau fichier. Sans doute +utile pour éditer les fichiers de /tmp, +non ?

+ +

−m +(−−mouse)

+ +

Active l’utilisation de +la souris, si elle est disponible pour votre système. +Lorsque celle-ci est activée, il est possible +d’utiliser la souris pour positionner le curseur, pour +marquer le texte (avec un double-clic) et pour lancer les +fonctions correspondant aux raccourcis. Il est possible +d’utiliser la souris sous X Window ou en mode +console avec gpm.

+ +

−o +répertoire +(−−operatingdir=répertoire)

+ +

Définit le +répertoire de travail. Demande à nano +de mettre en place quelque chose de similaire à un +environnement d’exécution restreint +(chroot).

+ +

−p +(−−preserve)

+ +

Préserve les +séquences XON et XOFF (^Q et ^S), afin qu’elle +soient reçues par le terminal.

+ +

−r colonne +(−−fill=colonne)

+ +

Passe automatiquement à +la ligne une fois arrivé à la colonne +colonne. Si la valeur indiquée est de 0 ou +moins, le point de passage à la ligne aura lieu +à la taille de l’écran moins +colonne. Cela permet de faire varier le point de +passage à la ligne lorsque l’on change la +taille de l’écran. La valeur par défaut +est de −8.

+ +

−s +programme +(−−speller=programme)

+ +

Choix d’un correcteur +orthographique de remplacement.

+ +

−t +(−−tempfile)

+ +

S’il a été +modifié, le fichier sera sauvegardé +automatiquement sans demande de confirmation. Identique +à l’option -t de Pico.

+ +

−v +(−−view)

+ +

Mode visualisation (lecture +seule).

+ +

−w +(−−nowrap)

+ +

Désactive le passage +automatique à la ligne.

+ +

−x +(−−nohelp)

+ +

Désactive la barre +d’aide affichée en bas de +l’écran.

+ +

−z +(−−suspend)

+ +

Autorise à suspendre +l’éditeur.

+ +

−a, −b, +−e, −f, −g, −j

+ +

Ignoré, pour être +compatible avec Pico.

+ +

FICHIERS D’INITIALISATION + +

+ + +

nano lit +les fichiers d’initialisation dans l’ordre +suivant : SYSCONFDIR/nanorc, puis +~/.nanorc. Référez-vous à la +page de manuel de nanorc(5) et au fichier +d’exemple nanorc.sample, qui devraient tous les +deux être livrés avec nano.

+ +

NOTES + +

+ + +

Si aucun +correcteur orthographique de remplacement n’est +indiqué dans la ligne de commande ou dans l’un +des fichiers nanorc, nano prendra la commande +indiquée par la variable d’environnement +SPELL si elle est définie.

+ +

Dans certains +cas, nano essaiera de sauvegarder le fichier en cours +d’édition dans un fichier de secours. Cela +arrivera principalement si nano reçoit un +signal SIGHUP ou SIGTERM, ou bien se trouve à court +de mémoire. Le nom de ce fichier de secours sera +nano.save si le fichier en cours n’avait pas +encore de nom, ou sera composé du nom du fichier en +cours suivi du suffixe « .save ». Si +un fichier de ce nom existe déjà dans le +répertoire, un « .save » et un +nombre seront ajoutés à la fin du nom du +fichier en cours afin de le rendre unique (par exemple, +« .save.1 »). En mode multi-espace, +nano réalisera une sauvegarde de tous les +fichiers en cours dans leurs fichiers de secours +respectifs.

+ +

BOGUES + +

+ + +

Merci de nous +faire parvenir vos commentaires et de nous signaler les +bogues, en écrivant, en anglais, à +nano@nano-editor.org.

+ +

La liste de +discussion anglophone nano est disponible à +l’adresse nano-devel@gnu.org.

+ +

Pour vous +abonner, envoyez un courrier électronique à +nano-devel-request@gnu.org, ayant pour objet +« subscribe ».

+ + +

N’hésitez +pas également à envoyez vos commentaires, +suggestions et corrections relatives à +l’adaptation française de cette page de manuel +ou du logiciel à +jean-philippe.guerard@tigreraye.org.

+ +

SITE INTERNET + +

+ + + +

http://www.nano-editor.org/

+ +

VOIR AUSSI + +

+ + + +

nanorc(5) +
+/usr/share/doc/nano/
(ou son équivalent sur votre +système)

+ +

AUTEUR + +

+ + +

Chris +Allegretta <chrisa@asty.org> et d’autres (voir +les fichiers AUTHORS et THANKS pour plus +d’information). Cette page de manuel a +été initialement rédigée par +Jordi Mallach <jordi@gnu.org> pour le système +Debian (mais elle peut être utilisée par +d’autres).

+ +

TRADUCTION + +

+ + +

Cette +adaptation française a été +réalisée par Jean-Philippe Guérard +<jean-philippe.guerard@tigreraye.org> le +29 novembre 2007 à partir de la version +1.54 du 11 octobre 2007 de la page de manuel de +nano 2.0.0. Cette page a été relue par +Gérard Delafond.

+ +

Un maximum de +soin a été apporté lors de +l’élaboration de cette traduction ; +néanmoins, quelques imperfections peuvent subsister. +Si vous en rencontrez, que ce soit dans la version +française ou dans la version originale, +n’hésitez pas à les signaler à +l’auteur ou au traducteur.

+ +

La version +originale la plus à jour de ce document est toujours +consultable via la commande :

+ +

LANGUAGE=en man +nano

+
+ + diff --git a/doc/man/fr/nanorc.5 b/doc/man/fr/nanorc.5 new file mode 100644 index 0000000..0607045 --- /dev/null +++ b/doc/man/fr/nanorc.5 @@ -0,0 +1,376 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" Copyright (C) 2003, 2004, 2005, 2006, 2007 +.\" Free Software Foundation, Inc. +.\" +.\" Le travail d'adaptation française de cette page de manuel a été +.\" réalisé par Jean-Philippe Guérard, en 2003, 2004, 2005, 2006 et 2007. +.\" Ce travail d'adaptation est dans le domaine public. Attention, la +.\" page traduite reste soumise au droit d'auteur de ses auteurs +.\" originaux. +.\" +.\" The French translation of this document is a public domain work of +.\" Jean-Philippe Guérard. This translation work was made in 2003, 2004, +.\" 2005, 2006 and 2007. The translated man page in itself is still +.\" subject to the copyright of its original authors. +.\" +.\" This document is dual-licensed. You may distribute and/or modify it +.\" under the terms of either of the following licenses: +.\" +.\" * The GNU General Public License, as published by the Free Software +.\" Foundation, version 3 or (at your option) any later version. You +.\" should have received a copy of the GNU General Public License +.\" along with this program. If not, see +.\" . +.\" +.\" * The GNU Free Documentation License, as published by the Free +.\" Software Foundation, version 1.2 or (at your option) any later +.\" version, with no Invariant Sections, no Front-Cover Texts, and no +.\" Back-Cover Texts. You should have received a copy of the GNU Free +.\" Documentation License along with this program. If not, see +.\" . +.\" +.\" Ce document est publié sous une double licence. Vous pouvez +.\" le distribuer et le modifier selon les termes de l'une des deux +.\" licences ci-dessous : +.\" +.\" * La Licence publique générale GNU (GNU GPL) version 3 ou, à +.\" votre choix, supérieure, telle que publiée par la Free +.\" Software Foundation. Vous devriez avoir reçu une copie de la +.\" Licence publique générale GNU avec ce programme. Si ce n'est +.\" pas le cas, consultez . +.\" +.\" * La Licence de documentation libre GNU (GNU FDL), version 1.2 +.\" ou, à votre choix, supérieure, telle que publiée par la Free +.\" Software Foundation, sans section invariante, ni texte de +.\" première ou de quatrième de couverture. Vous devriez avoir reçu +.\" une copie de la Licence de documentation libre GNU avec ce +.\" programme. Si ce n'est pas le cas, consultez +.\" . +.\" +.\" $Id: nanorc.5 4443 2009-11-27 02:50:12Z astyanax $ +.TH NANORC 5 "version 2.0.0" "29\ novembre\ 2007" +.\" Please adjust this date whenever revising the manpage. +.\" Merci de modifier ces dates à chaque mise à jour de cette page. + +.SH NOM +nanorc \- fichier de configuration de l'éditeur nano du projet GNU + +.SH DESCRIPTION +Cette page de manuel décrit brièvement le fichier de configuration de +l'éditeur \fBnano\fP GNU. +.PP +\fBnano\fP est un petit éditeur sympathique et libre, qui vise à +remplacer Pico, l'éditeur par défaut du logiciel non libre Pine. +\fBnano\fP ne se contentant pas de copier l'interface et l'ergonomie de +Pico, il offre également certaines fonctionnalités manquantes (ou +désactivées par défaut) de Pico. Ces fonctionnalités sont, par exemple, +les fonctions de recherche et de remplacement et la possibilité de +sauter directement à une ligne et à une colonne précise. +.PP +Le fichier \fInanorc\fP contient les paramètres par défaut de +\fBnano\fP. Il ne doit pas être au format DOS ou Mac. Lors de son +démarrage, nano commencera par lire le fichier de configuration général +\fISYSCONFDIR/nanorc\fP, puis lira le fichier de configuration personnel +de l'utilisateur \fI~/.nanorc\fP. + +.SH OPTIONS +Le fichier de configuration accepte une série de commandes \fBset\fP +(activer) et \fBunset\fP (désactiver), qui permettent de définir le +paramétrage de nano au démarrage sans avoir à utiliser d'options de +ligne de commande. De plus, les mots clefs \fBsyntax\fP (syntaxe), +\fBcolor\fP (couleur) et \fBicolor\fP (couleur insensible à la casse) +sont utilisés pour définir les règles de colorisation pour différents +motifs de texte. \fBnano\fP lit une commande par ligne. + +Les options du fichier de configuration ont priorité sur les valeurs par +défaut utilisées par nano. Les options de la ligne de commande sont +prioritaires par rapport aux options du fichier de configuration. Les +options sont désactivées (unset) par défaut, sauf les options prenant un +argument. + +Les apostrophes («\ \fI'\fP\ ») et les guillemets droits («\ \fI"\fP\ ») +présents dans des chaînes de caractères utilisées comme paramètres n'ont +pas besoin d'être précédées d'une barre oblique inversée +(«\ \fI\\\fP\ »). La chaîne sera terminée par le dernier guillemet +droit. Par exemple, pour l'option \fBbrackets\fP, "\fI"')>]}\fP" +correspondra à \fI"\fP, \fI'\fP, \fI)\fP, \fI>\fP, \fI]\fP et \fI}\fP. + +Les commandes et arguments reconnus sont\ : + +.TP 3 +.B set/unset autoindent +Active l'indentation automatique. +.TP +.B set/unset backup +Crée des copies de sécurité nommées +.IR nom_du_fichier~ . +.TP +.B set backupdir "\fIrépertoire\fP" +Définit le répertoire utilisé par \fBnano\fP pour enregistrer les copies +de sécurité uniques, si l'enregistrement de copies de sécurité est +activé. +.TP +.B set/unset backwards +Par défaut, les recherches se font vers l'arrière. +.TP +.B set/unset boldtext +Utilise des caractères gras à la place de la vidéo inverse. +.TP +.B set brackets "\fIchaîne\fP" +Définit les caractères considérés comme des crochets fermants lors de la +justification des paragraphes. Ces caractères ne doivent pas contenir +d'espaces. Seules les ponctuations terminales, éventuellement suivies +de crochets fermants, peuvent terminer une phrase. + +La valeur par défaut de cette option est\ : "\fI"')>]}\fP". + +N.D.T.\ : reportez-vous au paragraphe sur l'option \fBpunct\fR pour +plus d'informations. + +.TP +.B set/unset casesensitive +Par défaut, les recherches ne tiennent pas compte de la casse. +.TP +.B set/unset const +Affiche en permanence la position du curseur dans la ligne d'état. +.TP +.B set/unset cut +Par défaut, coupe le texte du curseur à la fin de la ligne, au lieu de +couper la ligne entière. +.TP +.B set fill \fIn\fP +Passe automatiquement à la ligne une fois arrivé à la colonne +\fIn\fR. Si la valeur indiquée est de 0 ou moins, le point de passage à +la ligne aura lieu à la taille de l'écran moins \fIn\fR. Cela permet de +faire varier le point de passage à la ligne lorsque l'on change la +taille de l'écran. La valeur par défaut est de \-8. +.TP +.B set/unset historylog +Active l'utilisation de +.I ~/.nano_history +pour enregistrer et relire les chaînes ayant fait l'objet d'une +recherche ou d'un remplacement. +.TP +.B set matchbrackets "\fIchaîne\fP" +Définit les crochets ouvrants et fermant pour la recherche de crochets +correspondants. Cette liste ne doit pas contenir de blancs. L'ensemble +des crochets ouvrants doit être indiqué en premier, suivi de l'ensemble +des crochets fermant, qui doit être dans le même ordre. La valeur par +défaut de cette option est "\fI(<[{)>]}\fP". +.TP +.B set/unset morespace +Utiliser la ligne blanche située sous la ligne de titre comme espace +supplémentaire d'édition. +.TP +.B set/unset mouse +Active l'utilisation de la souris, si elle est disponible pour votre +système. Lorsque celle-ci est activée, il est possible d'utiliser la +souris pour positionner le curseur, pour marquer le texte (avec un +double-clic) et pour lancer les fonctions correspondant aux raccourcis. +Il est possible d'utiliser la souris sous X\ Window ou en mode console +avec gpm. +.TP +.B set/unset multibuffer +Mode multi-espace\ : permet de charger les fichiers dans leur propre +espace. +.TP +.B set/unset noconvert +Pas de conversion depuis les formats DOS et Mac. +.TP +.B set/unset nofollow +Ne suit pas les liens symboliques lors de l'écriture des fichiers. +.TP +.B set/unset nohelp +Désactive les lignes d'aide affichée en bas de l'écran. +.TP +.B set/unset nonewlines +Ne pas ajouter de passage à la ligne à la fin des fichiers. +.TP +.B set/unset nowrap +Désactive le passage automatique à la ligne. +.TP +.B set operatingdir "\fIrépertoire\fP" +\fBnano\fP ne lira et n'écrira des fichiers qu'à l'intérieur du +\fIrépertoire\fP et de ses sous-répertoires. De plus, celui-ci devient +le répertoire courant, afin que les fichiers soient lus depuis ce +répertoire. Par défaut, cette fonction est désactivée. +.TP +.B set/unset preserve +Préserve les séquences XON et XOFF (^Q et ^S). +.TP +.B set punct "\fIchaîne\fP" +Définit les caractères interprétés comme des ponctuations terminales +lors de la justification des paragraphes. Ces caractères ne peuvent +inclure de blancs. Seules les ponctuations terminales, éventuellement +suivies de crochets fermants, peuvent terminer une phrase. La valeur par +défaut de cette option est "\fI!.?\fP". + +N.D.T.\ : ce réglage permet, lors de la justification, de conserver +2\ espaces au lieu d'une derrière les ponctuations terminales, ce qui +correspond aux normes typographiques anglo-saxonnes, mais n'a pas lieu +d'être en français. Pour le français, le plus simple est d'indiquer, +dans le fichier nanorc, une chaîne vide pour ce paramètre. +.TP +.B set/unset quickblank +Effacement rapide de la ligne d'état. Les messages affichés par la ligne +d'état disparaîtront après une frappe clavier au lieu de 25. +.TP +.B set quotestr "\fIchaîne\fP" +Définit le préfixe par défaut utilisé pour les citations dans les +courriers électroniques. Ce préfixe est utilisé pour réaliser une +justification correcte de ces citations. Il s'agira, si votre système le +permet, d'une expression rationnelle étendue. Dans le cas +contraire, il s'agira d'une chaîne de texte brut. Si vous disposez des +expressions rationnelles, la valeur par défaut de cette option sera +"\fI^([\ \\t]*[#:>\\|}])+\fP", sinon, ce sera ">\ ". Notez que le +«\ \\t\ » ci-dessus correspond à un caractère de tabulation. +.TP +.B set/unset rebinddelete +Interprète différemment la touche «\ Supprimer\ », afin que les touches +«\ Effacement arrière\ » et «\ Supprimer\ » fonctionnent correctement. +Vous ne devriez avoir besoin de cette option que si, sur votre système, +la touche «\ Effacement arrière\ » produit l'effet de la touche «\ +Supprimer\ ». +.TP +.B set/unset rebindkeypad +Interprète les touches du pavé numérique afin qu'elles fonctionnent +toutes correctement. Vous ne devriez utiliser cette option que si ce +n'est pas le cas, car nano ne sera plus capable d'utiliser la souris +correctement lorsque cette option sera activée. +.TP +.B set/unset regexp +Utilise par défaut des expressions rationnelles étendues pour les +recherches. +.TP +.B set/unset smarthome +Rend plus malin le fonctionnement de la touche «\ Début\ ». Lorsque +cette touche est pressée à n'importe quel endroit excepté au tout début +du texte d'une ligne (i.\ e. au premier caractère non blanc), le curseur +se positionnera au début du texte de la ligne (qu'il soit en avant ou en +arrière). Si le curseur est déjà là, il se placera au vrai début de la +ligne. +.TP +.B set/unset smooth +Active le défilement ligne-par-ligne du texte. +.TP +.B set speller "\fIprogramme\fP" +Utilise le correcteur orthographique \fIprogramme\fP au lieu du +correcteur intégré, qui s'appuie sur \fIspell\fP. +.TP +.B set/unset suspend +Autorise à suspendre \fBnano\fP. +.TP +.B set tabsize \fIn\fP +Utilise une taille de tabulation de \fIn\fP colonnes. Cette valeur doit +être strictement supérieure à 0. La valeur par défaut est de\ 8. +.TP +.B set/unset tabstospaces +Convertit les tabulations clavier en espaces. +.TP +.B set/unset tempfile +S'il a été modifié, le fichier sera sauvegardé automatiquement en +quittant, sans demande de confirmation. +.TP +.B set/unset view +Interdit de modifier les fichiers. +.TP +.B set whitespace "\fIchaîne\fP" +Définit les deux caractères utilisés pour afficher les premiers +caractères des tabulations et des espaces. Ces deux caractères doivent +être mono-colonne. +.TP +.B set/unset wordbounds +Détection plus précise des limites de mots, obtenue en considérant les +caractères de ponctuation comme faisant partie des mots. +.TP +.B syntax "\fIchaîne\fP" ["\fImotif_de_fichier\fP" ... ] +Définit une syntaxe nommée \fIchaîne\fP qui pourra être activé via +l'option \fB-Y\fP (ou \fB--syntax\fP) ou qui sera automatiquement +activée si le nom du fichier en cours correspond à l'expression +rationnelle étendue \fImotif_de_fichier\fP. Toutes les instructions +suivantes de colorisation \fBcolor\fP ou \fBicolor\fP s'appliqueront à +cette syntaxe, jusqu'à la définition d'une nouvelle syntaxe. + +La syntaxe nommée \fInone\fP (aucune) est réservée\ ; si elle est +indiquée dans la ligne de commande, cela revient à ne définir aucune +syntaxe. La syntaxe nommée \fIdefault\fP (par défaut) est spéciale, elle +ne nécessite aucun motif de \fImotif_de_fichier\fP, et s'applique aux +fichiers ne correspondant à aucun des \fImotif_de_fichier\fP des autres +syntaxes. +.TP +.B color \fIcouleur_texte\fP[,\fIcouleur_fond\fP] "\fImotif\fP" ... +Pour la syntaxe en cours, affiche toutes les expressions correspondant à +l'expression rationnelle étendue \fImotif\fP en utilisant la couleur de +texte \fIcouleur_texte\fP et la couleur de fond \fIcouleur_fond\fP, +l'une de ces deux couleurs au moins devant être définie. Les couleurs +acceptées par \fBnano\fP pour le texte et le fond sont\ : \fIwhite\fP +(blanc), \fIblack\fP (noir), \fIred\fP (rouge), \fIblue\fP (bleu), +\fIgreen\fP (vert), \fIyellow\fP (jaune), \fImagenta\fP, et \fIcyan\fP. +Pour la couleur du texte, vous pouvez ajouter à ces couleurs le préfixe +\fIbright\fP (lumineux) pour obtenir une couleur plus lumineuse. Si +votre terminal est capable de gérer la transparence, ne pas spécifier de +\fIcouleur_fond\fP indique à \fBnano\fP d'essayer d'utiliser un fond +transparent. +.TP +.B icolor \fIcouleur_texte\fP[,\fIcouleur_fond\fP] "\fImotif\fP" ... +Comme ci-dessus, mais la recherche des motifs est effectuée sans tenir +compte de la casse. +.TP +.B color \fIcouleur_texte\fP[,\fIcouleur_fond\fP] start="\fImotif_début\fP" end="\fImotif_fin\fP" +Affiche les expressions commençant par l'expression rationnelle étendue +\fImotif_début\fP et se terminant par l'expression rationnelle étendue +\fImotif_fin\fP en utilisant la couleur de texte \fIcouleur_texte\fP +et la couleur de fond \fIcouleur_fond\fP, l'une de ces deux couleurs au +moins devant être définie. Cela permet à la colorisation syntaxique de +s'étendre sur plusieurs lignes. Notez que toutes les occurrences +successives de \fImotif_début\fP après le \fImotif_début\fP initial +seront surlignées jusqu'à la prochaine instance de \fImotif_fin\fP. +.TP +.B icolor \fIcouleur_texte\fP[,\fIcouleur_fond\fP] start="\fImotif_début\fP" end="\fImotif_fin\fP" +Comme ci-dessus, mais la recherche des motifs est effectuée sans tenir +compte de la casse. +.TP +.B include "\fIfichier_de_syntaxes\fP" +Lit le fichier \fIfichier_de_syntaxes\fP contenant une liste +autosuffisante de définitions de syntaxes. Ce fichier ne doit contenir +que des commandes \fBsyntax\fP, \fBcolor\fP et \fBicolor\fP. + +.SH FICHIERS +.TP +.I $SYSCONFDIR/nanorc +Fichier de configuration général +.TP +.I ~/.nanorc +Fichier de configuration personnel + +.SH VOIR AUSSI +.PD 0 +.TP +\fBnano\fP(1) +.PP +\fI/usr/share/doc/nano/examples/nanorc.sample\fP (ou son équivalent sur +votre système) + +.SH AUTEUR +Chris Allegretta et d'autres (voir les fichiers +\fIAUTHORS\fP et \fITHANKS\fP pour plus d'information). Cette page de +manuel a été initialement rédigée par Jordi Mallach pour +le système Debian (mais elle peut être utilisée par d'autres). + +.SH TRADUCTION +Cette adaptation française a été réalisée par Jean-Philippe\ Guérard + le 29\ novembre\ 2007 à partir de +la version 1.56 du 11\ octobre\ 2007 de la page de manuel de nanorc +(pour la version 2.0.0 de nano). Cette page a été relue par Gérard +Delafond. + +Un maximum de soin a été apporté lors de l'élaboration de cette +traduction\ ; néanmoins, quelques imperfections peuvent subsister. Si +vous en rencontrez, que ce soit dans la version française ou dans la +version originale, n'hésitez pas à les signaler à l'auteur ou au +traducteur. + +La version originale la plus à jour de ce document est toujours +consultable via la commande\ : + +LANGUAGE=en man nano diff --git a/doc/man/fr/nanorc.5.html b/doc/man/fr/nanorc.5.html new file mode 100644 index 0000000..e438be8 --- /dev/null +++ b/doc/man/fr/nanorc.5.html @@ -0,0 +1,590 @@ + + + + + + + + + +NANORC + + + + +

NANORC

+ +NOM
+DESCRIPTION
+OPTIONS
+FICHIERS
+VOIR AUSSI
+AUTEUR
+TRADUCTION
+ +
+ + +

NOM + +

+ + +

nanorc − +fichier de configuration de l’éditeur nano du +projet GNU

+ +

DESCRIPTION + +

+ + +

Cette page de +manuel décrit brièvement le fichier de +configuration de l’éditeur nano GNU.

+ +

nano est +un petit éditeur sympathique et libre, qui vise +à remplacer Pico, l’éditeur par +défaut du logiciel non libre Pine. nano ne se +contentant pas de copier l’interface et +l’ergonomie de Pico, il offre également +certaines fonctionnalités manquantes (ou +désactivées par défaut) de Pico. Ces +fonctionnalités sont, par exemple, les fonctions de +recherche et de remplacement et la possibilité de +sauter directement à une ligne et à une +colonne précise.

+ +

Le fichier +nanorc contient les paramètres par +défaut de nano. Il ne doit pas être au +format DOS ou Mac. Lors de son démarrage, nano +commencera par lire le fichier de configuration +général SYSCONFDIR/nanorc, puis lira le +fichier de configuration personnel de l’utilisateur +~/.nanorc.

+ +

OPTIONS + +

+ + +

Le fichier de +configuration accepte une série de commandes +set (activer) et unset (désactiver), +qui permettent de définir le paramétrage de +nano au démarrage sans avoir à utiliser +d’options de ligne de commande. De plus, les mots +clefs syntax (syntaxe), color (couleur) et +icolor (couleur insensible à la casse) sont +utilisés pour définir les règles de +colorisation pour différents motifs de texte. +nano lit une commande par ligne.

+ +

Les options du +fichier de configuration ont priorité sur les valeurs +par défaut utilisées par nano. Les options de +la ligne de commande sont prioritaires par rapport aux +options du fichier de configuration. Les options sont +désactivées (unset) par défaut, sauf +les options prenant un argument.

+ +

Les apostrophes +(« ’ ») et les guillemets +droits (« ») +présents dans des chaînes de caractères +utilisées comme paramètres n’ont pas +besoin d’être précédées +d’une barre oblique inversée +(« »). La chaîne sera +terminée par le dernier guillemet droit. Par exemple, +pour l’option brackets, +""’)>]}" correspondra +à ", , ), +>, ] et }.

+ +

Les commandes +et arguments reconnus sont :
+set/unset autoindent

+ +

Active l’indentation +automatique.

+ +

set/unset backup

+ +

Crée des copies de +sécurité nommées +nom_du_fichier~.

+ +

set backupdir +répertoire

+ +

Définit le +répertoire utilisé par nano pour +enregistrer les copies de sécurité uniques, si +l’enregistrement de copies de sécurité +est activé.

+ +

set/unset backwards

+ +

Par défaut, les +recherches se font vers l’arrière.

+ +

set/unset boldtext

+ +

Utilise des caractères +gras à la place de la vidéo inverse.

+ +

set brackets +chaîne

+ +

Définit les +caractères considérés comme des +crochets fermants lors de la justification des paragraphes. +Ces caractères ne doivent pas contenir +d’espaces. Seules les ponctuations terminales, +éventuellement suivies de crochets fermants, peuvent +terminer une phrase.

+ +

La valeur par +défaut de cette option est : +""’)>]}".

+ +

N.D.T. : +reportez-vous au paragraphe sur l’option punct +pour plus d’informations.

+ +

set/unset +casesensitive

+ +

Par défaut, les +recherches ne tiennent pas compte de la casse.

+ +

set/unset const

+ +

Affiche en permanence la +position du curseur dans la ligne d’état.

+ +

set/unset cut

+ +

Par défaut, coupe le +texte du curseur à la fin de la ligne, au lieu de +couper la ligne entière.

+ +

set fill n

+ +

Passe automatiquement à +la ligne une fois arrivé à la colonne +n. Si la valeur indiquée est de 0 ou moins, le +point de passage à la ligne aura lieu à la +taille de l’écran moins n. Cela permet +de faire varier le point de passage à la ligne +lorsque l’on change la taille de l’écran. +La valeur par défaut est de −8.

+ +

set/unset historylog

+ +

Active l’utilisation de +~/.nano_history pour enregistrer et relire les +chaînes ayant fait l’objet d’une recherche +ou d’un remplacement.

+ +

set matchbrackets +chaîne

+ +

Définit les crochets +ouvrants et fermant pour la recherche de crochets +correspondants. Cette liste ne doit pas contenir de blancs. +L’ensemble des crochets ouvrants doit être +indiqué en premier, suivi de l’ensemble des +crochets fermant, qui doit être dans le même +ordre. La valeur par défaut de cette option est +"(<[{)>]}".

+ +

set/unset morespace

+ +

Utiliser la ligne blanche +située sous la ligne de titre comme espace +supplémentaire d’édition.

+ +

set/unset mouse

+ +

Active l’utilisation de +la souris, si elle est disponible pour votre système. +Lorsque celle-ci est activée, il est possible +d’utiliser la souris pour positionner le curseur, pour +marquer le texte (avec un double-clic) et pour lancer les +fonctions correspondant aux raccourcis. Il est possible +d’utiliser la souris sous X Window ou en mode +console avec gpm.

+ +

set/unset +multibuffer

+ +

Mode multi-espace : permet +de charger les fichiers dans leur propre espace.

+ +

set/unset noconvert

+ +

Pas de conversion depuis les +formats DOS et Mac.

+ +

set/unset nofollow

+ +

Ne suit pas les liens +symboliques lors de l’écriture des +fichiers.

+ +

set/unset nohelp

+ +

Désactive les lignes +d’aide affichée en bas de +l’écran.

+ +

set/unset nonewlines

+ +

Ne pas ajouter de passage +à la ligne à la fin des fichiers.

+ +

set/unset nowrap

+ +

Désactive le passage +automatique à la ligne.

+ +

set operatingdir +répertoire

+ +

nano ne lira et +n’écrira des fichiers qu’à +l’intérieur du répertoire et de +ses sous-répertoires. De plus, celui-ci devient le +répertoire courant, afin que les fichiers soient lus +depuis ce répertoire. Par défaut, cette +fonction est désactivée.

+ +

set/unset preserve

+ +

Préserve les +séquences XON et XOFF (^Q et ^S).

+ +

set punct +chaîne

+ +

Définit les +caractères interprétés comme des +ponctuations terminales lors de la justification des +paragraphes. Ces caractères ne peuvent inclure de +blancs. Seules les ponctuations terminales, +éventuellement suivies de crochets fermants, peuvent +terminer une phrase. La valeur par défaut de cette +option est "!.?".

+ +

N.D.T. : +ce réglage permet, lors de la justification, de +conserver 2 espaces au lieu d’une derrière +les ponctuations terminales, ce qui correspond aux normes +typographiques anglo-saxonnes, mais n’a pas lieu +d’être en français. Pour le +français, le plus simple est d’indiquer, dans +le fichier nanorc, une chaîne vide pour ce +paramètre.

+ +

set/unset quickblank

+ +

Effacement rapide de la ligne +d’état. Les messages affichés par la +ligne d’état disparaîtront après +une frappe clavier au lieu de 25.

+ +

set quotestr +chaîne

+ +

Définit le +préfixe par défaut utilisé pour les +citations dans les courriers électroniques. Ce +préfixe est utilisé pour réaliser une +justification correcte de ces citations. Il s’agira, +si votre système le permet, d’une expression +rationnelle étendue. Dans le cas contraire, il +s’agira d’une chaîne de texte brut. Si +vous disposez des expressions rationnelles, la valeur par +défaut de cette option sera +"^([ \t]*[#:>\|}])+", sinon, ce +sera "> ". Notez que le +« \t » ci-dessus correspond à +un caractère de tabulation.

+ +

set/unset +rebinddelete

+ +

Interprète +différemment la touche +« Supprimer », afin que les touches +« Effacement arrière » et +« Supprimer » fonctionnent +correctement. Vous ne devriez avoir besoin de cette option +que si, sur votre système, la touche +« Effacement arrière » produit +l’effet de la touche «  +Supprimer ».

+ +

set/unset +rebindkeypad

+ +

Interprète les touches +du pavé numérique afin qu’elles +fonctionnent toutes correctement. Vous ne devriez utiliser +cette option que si ce n’est pas le cas, car nano ne +sera plus capable d’utiliser la souris correctement +lorsque cette option sera activée.

+ +

set/unset regexp

+ +

Utilise par défaut des +expressions rationnelles étendues pour les +recherches.

+ +

set/unset smarthome

+ +

Rend plus malin le +fonctionnement de la touche +« Début ». Lorsque cette touche +est pressée à n’importe quel endroit +excepté au tout début du texte d’une +ligne (i. e. au premier caractère non blanc), le +curseur se positionnera au début du texte de la ligne +(qu’il soit en avant ou en arrière). Si le +curseur est déjà là, il se placera au +vrai début de la ligne.

+ +

set/unset smooth

+ +

Active le défilement +ligne-par-ligne du texte.

+ +

set speller +programme

+ +

Utilise le correcteur +orthographique programme au lieu du correcteur +intégré, qui s’appuie sur +spell.

+ +

set/unset suspend

+ +

Autorise à suspendre +nano.

+ +

set tabsize n

+ +

Utilise une taille de +tabulation de n colonnes. Cette valeur doit +être strictement supérieure à 0. La +valeur par défaut est de 8.

+ +

set/unset +tabstospaces

+ +

Convertit les tabulations +clavier en espaces.

+ +

set/unset tempfile

+ +

S’il a été +modifié, le fichier sera sauvegardé +automatiquement en quittant, sans demande de +confirmation.

+ +

set/unset view

+ +

Interdit de modifier les +fichiers.

+ +

set whitespace +chaîne

+ +

Définit les deux +caractères utilisés pour afficher les premiers +caractères des tabulations et des espaces. Ces deux +caractères doivent être mono-colonne.

+ +

set/unset wordbounds

+ +

Détection plus +précise des limites de mots, obtenue en +considérant les caractères de ponctuation +comme faisant partie des mots.

+ +

syntax +chaîne +["motif_de_fichier" ... ]

+ +

Définit une syntaxe +nommée chaîne qui pourra être +activé via l’option -Y (ou +--syntax) ou qui sera automatiquement activée +si le nom du fichier en cours correspond à +l’expression rationnelle étendue +motif_de_fichier. Toutes les instructions suivantes +de colorisation color ou icolor +s’appliqueront à cette syntaxe, +jusqu’à la définition d’une +nouvelle syntaxe.

+ +

La syntaxe +nommée none (aucune) est +réservée ; si elle est indiquée +dans la ligne de commande, cela revient à ne +définir aucune syntaxe. La syntaxe nommée +default (par défaut) est spéciale, elle +ne nécessite aucun motif de motif_de_fichier, +et s’applique aux fichiers ne correspondant à +aucun des motif_de_fichier des autres syntaxes.

+ +

color +couleur_texte[,couleur_fond] +motif ...

+ +

Pour la syntaxe en cours, +affiche toutes les expressions correspondant à +l’expression rationnelle étendue motif +en utilisant la couleur de texte couleur_texte et la +couleur de fond couleur_fond, l’une de ces deux +couleurs au moins devant être définie. Les +couleurs acceptées par nano pour le texte et +le fond sont : white (blanc), black +(noir), red (rouge), blue (bleu), green +(vert), yellow (jaune), magenta, et +cyan. Pour la couleur du texte, vous pouvez ajouter +à ces couleurs le préfixe bright +(lumineux) pour obtenir une couleur plus lumineuse. Si votre +terminal est capable de gérer la transparence, ne pas +spécifier de couleur_fond indique à +nano d’essayer d’utiliser un fond +transparent.

+ +

icolor +couleur_texte[,couleur_fond] +motif ...

+ +

Comme ci-dessus, mais la +recherche des motifs est effectuée sans tenir compte +de la casse.

+ +

color +couleur_texte[,couleur_fond] +start="motif_début" +end="motif_fin"

+ +

Affiche les expressions +commençant par l’expression rationnelle +étendue motif_début et se terminant par +l’expression rationnelle étendue +motif_fin en utilisant la couleur de texte +couleur_texte et la couleur de fond +couleur_fond, l’une de ces deux couleurs au +moins devant être définie. Cela permet à +la colorisation syntaxique de s’étendre sur +plusieurs lignes. Notez que toutes les occurrences +successives de motif_début après le +motif_début initial seront surlignées +jusqu’à la prochaine instance de +motif_fin.

+ +

icolor +couleur_texte[,couleur_fond] +start="motif_début" +end="motif_fin"

+ +

Comme ci-dessus, mais la +recherche des motifs est effectuée sans tenir compte +de la casse.

+ +

include +fichier_de_syntaxes

+ +

Lit le fichier +fichier_de_syntaxes contenant une liste +autosuffisante de définitions de syntaxes. Ce fichier +ne doit contenir que des commandes syntax, +color et icolor.

+ +

FICHIERS + +

+ + + +

$SYSCONFDIR/nanorc

+ +

Fichier de configuration +général

+ +

~/.nanorc

+ +

Fichier de configuration +personnel

+ +

VOIR AUSSI + +

+ + +

nano(1) +
+/usr/share/doc/nano/examples/nanorc.sample
(ou son +équivalent sur votre système)

+ +

AUTEUR + +

+ + +

Chris +Allegretta <chrisa@asty.org> et d’autres (voir +les fichiers AUTHORS et THANKS pour plus +d’information). Cette page de manuel a +été initialement rédigée par +Jordi Mallach <jordi@gnu.org> pour le système +Debian (mais elle peut être utilisée par +d’autres).

+ +

TRADUCTION + +

+ + +

Cette +adaptation française a été +réalisée par Jean-Philippe Guérard +<jean-philippe.guerard@tigreraye.org> le +29 novembre 2007 à partir de la version +1.56 du 11 octobre 2007 de la page de manuel de +nanorc (pour la version 2.0.0 de nano). Cette page a +été relue par Gérard Delafond.

+ +

Un maximum de +soin a été apporté lors de +l’élaboration de cette traduction ; +néanmoins, quelques imperfections peuvent subsister. +Si vous en rencontrez, que ce soit dans la version +française ou dans la version originale, +n’hésitez pas à les signaler à +l’auteur ou au traducteur.

+ +

La version +originale la plus à jour de ce document est toujours +consultable via la commande :

+ +

LANGUAGE=en man +nano

+
+ + diff --git a/doc/man/fr/rnano.1 b/doc/man/fr/rnano.1 new file mode 100644 index 0000000..2f64367 --- /dev/null +++ b/doc/man/fr/rnano.1 @@ -0,0 +1,154 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. +.\" Skeleton based on nano-tiny.1: +.\" Copyright (C) 2002 Free Software Foundation, Inc. +.\" +.\" Le travail d'adaptation française de cette page de manuel a été +.\" réalisé par Jean-Philippe Guérard, en 2006 et 2007. Ce travail +.\" d'adaptation est dans le domaine public. Attention, la page traduite +.\" reste soumise au droit d'auteur de ses auteurs originaux. +.\" +.\" The French translation of this document is a public domain work of +.\" Jean-Philippe Guérard. This translation work was made in 2006 and +.\" 2007. The translated man page in itself is still subject to the +.\" copyright of its original authors. +.\" +.\" This document is dual-licensed. You may distribute and/or modify it +.\" under the terms of either of the following licenses: +.\" +.\" * The GNU General Public License, as published by the Free Software +.\" Foundation, version 3 or (at your option) any later version. You +.\" should have received a copy of the GNU General Public License +.\" along with this program. If not, see +.\" . +.\" +.\" * The GNU Free Documentation License, as published by the Free +.\" Software Foundation, version 1.2 or (at your option) any later +.\" version, with no Invariant Sections, no Front-Cover Texts, and no +.\" Back-Cover Texts. You should have received a copy of the GNU Free +.\" Documentation License along with this program. If not, see +.\" . +.\" +.\" Ce document est publié sous une double licence. Vous pouvez +.\" le distribuer et le modifier selon les termes de l'une des deux +.\" licences ci-dessous : +.\" +.\" * La Licence publique générale GNU (GNU GPL) version 3 ou, à +.\" votre choix, supérieure, telle que publiée par la Free +.\" Software Foundation. Vous devriez avoir reçu une copie de la +.\" Licence publique générale GNU avec ce programme. Si ce n'est pas +.\" le cas, consultez . +.\" +.\" * La Licence de documentation libre GNU (GNU FDL), version 1.2 ou, +.\" à votre choix, supérieure, telle que publiée par la Free +.\" Software Foundation, sans section invariante, ni texte de +.\" première ou de quatrième de couverture. Vous devriez avoir reçu +.\" une copie de la Licence de documentation libre GNU avec ce +.\" programme. Si ce n'est pas le cas, consultez +.\" . +.\" +.\" $Id: rnano.1 4188 2007-12-08 04:27:44Z dolorous $ +.TH RNANO 1 "version 2.0.0" "29\ novembre\ 20O7" +.\" Please adjust this date whenever revising the manpage. +.\" Merci de modifier ces dates à chaque mise à jour de cette page. +.\" +.SH NOM +rnano \- Le mode restreint de NAno un NOuvel éditeur, un clone libre et +amélioré de Pico + +.SH SYNOPSIS +.B rnano +.I [OPTIONS]\ [[\+LIGNE,COLONNE]\ FICHIER]... +.br + +.SH DESCRIPTION +Cette page de manuel décrit brièvement la commande \fBrnano\fR. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invoke bold face and italics, +.\" respectively. +\fBnano\fR est un éditeur petit, sympathique et libre, qui vise à +remplacer Pico, l'éditeur par défaut du logiciel non libre Pine. +\fBnano\fR ne se contentant pas de copier l'interface et l'ergonomie de +Pico, il offre également certaines fonctions manquantes (ou désactivées +par défaut) dans Pico. Ces fonctionnalités sont, par exemple, les +fonctions de recherche et de remplacement, et la possibilité de sauter +directement à une ligne et à une colonne précise.. +.PP +\fBrnano\fP est une version de \fBnano\fP fonctionnant en mode +restreint, qui ne permet d'éditer que les fichiers indiqués et qui +n'autorise pas l'utilisateur à accéder au système de fichier ou à un +interpréteur de commandes. +.PP +En mode restreint, \fBnano\fP refusera\ : +.IP \[bu] 2 +de lire ou d'écrire dans un fichier n'ayant pas été indiqué dans la +ligne de commande\ ; +.IP \[bu] +de lire un fichier nanorc\ ; +.IP \[bu] +de permettre de suspendre l'édition\ ; +.IP \[bu] +de permettre d'ajouter en début ou en fin d'un fichier, ou de +l'enregistrer sous un nom différent\ ; +.IP \[bu] +l'utilisation de copies de sécurité ou de la correction orthographique. + +.SH OPTIONS +.TP +.B \+\fILIGNE\fP,\fICOLONNE\fP +Démarre avec le curseur positionné à la colonne \fICOLONNE\fP de +la ligne \fILIGNE\fR (l'un des deux, au moins, devant être spécifié) au +lieu de démarrer à la colonne\ 1, ligne\ 1. +.TP +.B \-? +Identique à \fB-h (\-\-help)\fP. +.TP +.B \-h (\-\-help) +Affiche un résumé des options de lancement de nano, puis s'arrête. +.TP +.B \-V (\-\-version) +Affiche la version, puis s'arrête. +.PP +Reportez-vous à la page de manuel \fBnano\fP(1) si vous souhaitez +consulter la documentation complète de \fBnano\fP. + +.SH BOGUES +Merci de nous faire parvenir vos commentaires et de nous signaler les +bogues, en écrivant, en anglais, à \fBnano@nano-editor.org\fR. + +La liste de discussion anglophone \fBnano\fR est disponible à l'adresse +\fBnano-devel@gnu.org\fR. + +Pour vous abonner, envoyez un courrier électronique à +\fBnano-devel-request@gnu.org\fR, ayant pour objet «\ subscribe\ ». + +N'hésitez pas également à envoyez vos commentaires, suggestions et +corrections relatives à l'adaptation française de cette page de manuel +ou du logiciel à \fBjean-philippe.guerard@tigreraye.org\fR. + +.SH "SITE INTERNET" +http://www.nano-editor.org/ + +.SH AUTEUR +Chris Allegretta et d'autres (voir le fichier +\fIAUTHORS\fR). Cette page de manuel a été initialement rédigée par +Thijs Kinkhorst , pour le système GNU Debian (mais +elle peut être utilisée par d'autres). + +.SH TRADUCTION +Cette adaptation française a été réalisée par Jean-Philippe\ Guérard + le 29\ novembre\ 2007 à partir +de la version 1.19 du 6\ novembre\ 2007 de la page de manuel de rnano +(pour la version 2.0.0 de nano). + +Un maximum de soin a été apporté lors de l'élaboration de cette +traduction\ ; néanmoins, quelques imperfections peuvent subsister. Si +vous en rencontrez, que ce soit dans la version française ou dans la +version originale, n'hésitez pas à les signaler à l'auteur ou au +traducteur. + +La version originale la plus à jour de ce document est toujours +consultable via la commande\ : + +LANGUAGE=en man nano diff --git a/doc/man/fr/rnano.1.html b/doc/man/fr/rnano.1.html new file mode 100644 index 0000000..26c2d1b --- /dev/null +++ b/doc/man/fr/rnano.1.html @@ -0,0 +1,278 @@ + + + + + + + + + +RNANO + + + + +

RNANO

+ +NOM
+SYNOPSIS
+DESCRIPTION
+OPTIONS
+BOGUES
+SITE INTERNET
+AUTEUR
+TRADUCTION
+ +
+ + +

NOM + +

+ + +

rnano − +Le mode restreint de NAno un NOuvel éditeur, un clone +libre et amélioré de Pico

+ +

SYNOPSIS + +

+ + +

rnano +[OPTIONS] [[+LIGNE,COLONNE] FICHIER]...

+ +

DESCRIPTION + +

+ + +

Cette page de +manuel décrit brièvement la commande +rnano.

+ +

nano est +un éditeur petit, sympathique et libre, qui vise +à remplacer Pico, l’éditeur par +défaut du logiciel non libre Pine. nano ne se +contentant pas de copier l’interface et +l’ergonomie de Pico, il offre également +certaines fonctions manquantes (ou désactivées +par défaut) dans Pico. Ces fonctionnalités +sont, par exemple, les fonctions de recherche et de +remplacement, et la possibilité de sauter directement +à une ligne et à une colonne +précise..

+ +

rnano +est une version de nano fonctionnant en mode +restreint, qui ne permet d’éditer que les +fichiers indiqués et qui n’autorise pas +l’utilisateur à accéder au +système de fichier ou à un interpréteur +de commandes.

+ +

En mode +restreint, nano refusera :

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +

+ + +

de lire ou d’écrire dans un fichier +n’ayant pas été indiqué dans la +ligne de commande ;

+ + +

+ + +

de lire un fichier nanorc ;

+ + +

+ + +

de permettre de suspendre +l’édition ;

+ + +

+ + +

de permettre d’ajouter en début ou en fin +d’un fichier, ou de l’enregistrer sous un nom +différent ;

+ + +

+ + +

l’utilisation de copies de sécurité +ou de la correction orthographique.

+ +

OPTIONS + +

+ + + +

+LIGNE,COLONNE

+ +

Démarre avec le curseur +positionné à la colonne COLONNE de la +ligne LIGNE (l’un des deux, au moins, devant +être spécifié) au lieu de +démarrer à la colonne 1, +ligne 1.

+ + + + + + + + +
+ + +

−?

+ + +

Identique à -h (−−help).

+
+ +

−h +(−−help)

+ +

Affiche un résumé +des options de lancement de nano, puis +s’arrête.

+ +

−V +(−−version)

+ +

Affiche la version, puis +s’arrête.

+ +

Reportez-vous +à la page de manuel nano(1) si vous souhaitez +consulter la documentation complète de +nano.

+ +

BOGUES + +

+ + +

Merci de nous +faire parvenir vos commentaires et de nous signaler les +bogues, en écrivant, en anglais, à +nano@nano-editor.org.

+ +

La liste de +discussion anglophone nano est disponible à +l’adresse nano-devel@gnu.org.

+ +

Pour vous +abonner, envoyez un courrier électronique à +nano-devel-request@gnu.org, ayant pour objet +« subscribe ».

+ + +

N’hésitez +pas également à envoyez vos commentaires, +suggestions et corrections relatives à +l’adaptation française de cette page de manuel +ou du logiciel à +jean-philippe.guerard@tigreraye.org.

+ +

SITE INTERNET + +

+ + + +

http://www.nano-editor.org/

+ +

AUTEUR + +

+ + +

Chris +Allegretta <chrisa@asty.org> et d’autres (voir +le fichier AUTHORS). Cette page de manuel a +été initialement rédigée par +Thijs Kinkhorst <thijs@kinkhorst.com>, pour le +système GNU Debian (mais elle peut être +utilisée par d’autres).

+ +

TRADUCTION + +

+ + +

Cette +adaptation française a été +réalisée par Jean-Philippe Guérard +<jean-philippe.guerard@tigreraye.org> le +29 novembre 2007 à partir de la version +1.19 du 6 novembre 2007 de la page de manuel de +rnano (pour la version 2.0.0 de nano).

+ +

Un maximum de +soin a été apporté lors de +l’élaboration de cette traduction ; +néanmoins, quelques imperfections peuvent subsister. +Si vous en rencontrez, que ce soit dans la version +française ou dans la version originale, +n’hésitez pas à les signaler à +l’auteur ou au traducteur.

+ +

La version +originale la plus à jour de ce document est toujours +consultable via la commande :

+ +

LANGUAGE=en man +nano

+
+ + diff --git a/doc/man/nano.1 b/doc/man/nano.1 new file mode 100644 index 0000000..6921431 --- /dev/null +++ b/doc/man/nano.1 @@ -0,0 +1,262 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, +.\" 2008, 2009 Free Software Foundation, Inc. +.\" +.\" This document is dual-licensed. You may distribute and/or modify it +.\" under the terms of either of the following licenses: +.\" +.\" * The GNU General Public License, as published by the Free Software +.\" Foundation, version 3 or (at your option) any later version. You +.\" should have received a copy of the GNU General Public License +.\" along with this program. If not, see +.\" . +.\" +.\" * The GNU Free Documentation License, as published by the Free +.\" Software Foundation, version 1.2 or (at your option) any later +.\" version, with no Invariant Sections, no Front-Cover Texts, and no +.\" Back-Cover Texts. You should have received a copy of the GNU Free +.\" Documentation License along with this program. If not, see +.\" . +.\" +.\" $Id: nano.1 4502 2010-04-14 21:55:39Z astyanax $ +.TH NANO 1 "version 2.2.0" "November 30, 2009" +.\" Please adjust this date whenever revising the manpage. +.\" + +.SH NAME +nano \- Nano's ANOther editor, an enhanced free Pico clone + +.SH SYNOPSIS +.B nano +.I [OPTIONS]\ [[\+LINE,COLUMN]\ FILE]... +.br + +.SH DESCRIPTION +This manual page briefly documents the \fBnano\fP command. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invoke bold face and italics, +.\" respectively. +\fBnano\fP is a small, free and friendly editor which aims to replace +Pico, the default editor included in the non-free Pine package. Rather +than just copying Pico's look and feel, \fBnano\fP also implements some +missing (or disabled by default) features in Pico, such as "search and +replace" and "go to line and column number". + +.SH OPTIONS +.TP +.B \+\fILINE\fP,\fICOLUMN\fP +Places cursor at line number \fILINE\fP and column number \fICOLUMN\fP +(at least one of which must be specified) on startup, instead of the +default of line 1, column 1. +.TP +.B \-? +Same as \fB-h (\-\-help)\fP. +.TP +.B \-A (\-\-smarthome) +Make the Home key smarter. When Home is pressed anywhere but at the +very beginning of non-whitespace characters on a line, the cursor will +jump to that beginning (either forwards or backwards). If the cursor is +already at that position, it will jump to the true beginning of the +line. +.TP +.B \-B (\-\-backup) +When saving a file, back up the previous version of it to the current +filename suffixed with a ~. +.TP +.B \-C \fIdir\fP (\-\-backupdir=\fIdir\fP) +Set the directory where \fBnano\fP puts unique backup files if file +backups are enabled. +.TP +.B \-D (\-\-boldtext) +Use bold text instead of reverse video text. +.TP +.B \-E (\-\-tabstospaces) +Convert typed tabs to spaces. +.TP +.B \-F (\-\-multibuffer) +Enable multiple file buffers, if available. +.TP +.B \-H (\-\-historylog) +Log search and replace strings to \fI~/.nano_history\fP, so they can be +retrieved in later sessions, if \fInanorc\fP support is available. +.TP +.B \-I (\-\-ignorercfiles) +Don't look at \fISYSCONFDIR/nanorc\fP or \fI~/.nanorc\fP, if +\fInanorc\fP support is available. +.TP +.B \-K (\-\-rebindkeypad) +Interpret the numeric keypad keys so that they all work properly. You +should only need to use this option if they don't, as mouse support +won't work properly with this option enabled. +.TP +.B \-L (\-\-nonewlines) +Don't add newlines to the ends of files. +.TP +.B \-N (\-\-noconvert) +Disable automatic conversion of files from DOS/Mac format. +.TP +.B \-O (\-\-morespace) +Use the blank line below the titlebar as extra editing space. +.TP +.B \-Q \fIstr\fP (\-\-quotestr=\fIstr\fP) +Set the quoting string for justifying. The default is +"\fI^([\ \\t]*[#:>\\|}])+\fP" if extended regular expression support is +available, or "\fI>\ \fP" otherwise. Note that \fI\\t\fP stands for a +Tab. +.TP +.B \-R (\-\-restricted) +Restricted mode: don't read or write to any file not specified on the +command line; read any \fInanorc\fP files; allow suspending; allow a +file to be appended to, prepended to, or saved under a different name if +it already has one; or use backup files or spell checking. Also +accessible by invoking \fBnano\fP with any name beginning with 'r' (e.g. +"rnano"). +.TP +.B \-S (\-\-smooth) +Enable smooth scrolling. Text will scroll line-by-line, instead of the +usual chunk-by-chunk behavior. +.TP +.B \-T \fIcols\fP (\-\-tabsize=\fIcols\fP) +Set the size (width) of a tab to \fIcols\fP columns. The value of +\fIcols\fP must be greater than 0. The default value is 8. +.TP +.B \-U (\-\-quickblank) +Do quick statusbar blanking. Statusbar messages will disappear after 1 +keystroke instead of 25. Note that \fB-c\fP overrides this. +.TP +.B \-V (\-\-version) +Show the current version number and exit. +.TP +.B \-W (\-\-wordbounds) +Detect word boundaries more accurately by treating punctuation +characters as part of a word. +.TP +.B \-Y \fIstr\fP (\-\-syntax=\fIstr\fP) +Specify a specific syntax highlighting from the \fInanorc\fP to use, if +available. +.TP +.B \-c (\-\-const) +Constantly show the cursor position. Note that this overrides \fB-U\fP. +.TP +.B \-d (\-\-rebinddelete) +Interpret the Delete key differently so that both Backspace and Delete +work properly. You should only need to use this option if Backspace +acts like Delete on your system. +.TP +.B \-h (\-\-help) +Show a summary of command line options and exit. +.TP +.B \-i (\-\-autoindent) +Indent new lines to the previous line's indentation. Useful when +editing source code. +.TP +.B \-k (\-\-cut) +Enable cut from cursor to end of line. +.TP +.B \-l (\-\-nofollow) +If the file being edited is a symbolic link, replace the link with +a new file instead of following it. Good for editing files in +\fI/tmp\fP, perhaps? +.TP +.B \-m (\-\-mouse) +Enable mouse support, if available for your system. When enabled, mouse +clicks can be used to place the cursor, set the mark (with a double +click), and execute shortcuts. The mouse will work in the X Window +System, and on the console when gpm is running. +.TP +.B \-o \fIdir\fP (\-\-operatingdir=\fIdir\fP) +Set operating directory. Makes \fBnano\fP set up something similar to a +chroot. +.TP +.B \-p (\-\-preserve) +Preserve the XON and XOFF sequences (^Q and ^S) so they will be caught +by the terminal. +.TP +.B \-q (\-\-quiet) +Do not report errors in the \fInanorc\fP file and ask them to be +acknowledged by pressing Enter at startup. +.TP +.B \-r \fIcols\fP (\-\-fill=\fIcols\fP) +Wrap lines at column \fIcols\fP. If this value is 0 or less, wrapping +will occur at the width of the screen less \fIcols\fP columns, allowing +the wrap point to vary along with the width of the screen if the screen +is resized. The default value is \-8. +.TP +.B \-s \fIprog\fP (\-\-speller=\fIprog\fP) +Enable alternative spell checker command. +.TP +.B \-t (\-\-tempfile) +Always save changed buffer without prompting. Same as Pico's \fB-t\fP +option. +.TP +.B \-u (\-\-undo) +Enable experimental generic-purpose undo code. By default, the undo and redo +shortcuts are Meta-U and Meta-E, respectively. +.TP +.B \-v (\-\-view) +View file (read only) mode. +.TP +.B \-w (\-\-nowrap) +Disable wrapping of long lines. +.TP +.B \-x (\-\-nohelp) +Disable help screen at bottom of editor. +.TP +.B \-z (\-\-suspend) +Enable suspend ability. +.TP +.B \-$ (\-\-softwrap) +Enable 'soft wrapping'. \fBnano\fP will attempt to display the entire +contents of a line, even if it is longer than the screen width. Since +\&'$' normally refers to a variable in the Unix shell, you should specify +this option last when using other options (e.g. 'nano \-wS$') or pass it +separately (e.g. 'nano \-wS \-$'). +.TP +.B \-a, \-b, \-e, \-f, \-g, \-j +Ignored, for compatibility with Pico. + +.SH INITIALIZATION FILE +\fBnano\fP will read initialization files in the following order: +\fISYSCONFDIR/nanorc\fP, then \fI~/.nanorc\fP. Please see +\fBnanorc(5)\fP and the example file \fBnanorc.sample\fP, both of which +should be provided with \fBnano\fP. + +.SH NOTES +If no alternative spell checker command is specified on the command +line or in one of the \fInanorc\fP files, \fBnano\fP will check the +\fBSPELL\fP environment variable for one. + +In some cases \fBnano\fP will try to dump the buffer into an emergency +file. This will happen mainly if \fBnano\fP receives a SIGHUP or +SIGTERM or runs out of memory. It will write the buffer into a file +named \fInano.save\fP if the buffer didn't have a name already, or will +add a ".save" suffix to the current filename. If an emergency file with +that name already exists in the current directory, it will add ".save" +plus a number (e.g. ".save.1") to the current filename in order to make +it unique. In multibuffer mode, \fBnano\fP will write all the open +buffers to their respective emergency files. + +.SH BUGS +Please send any comments or bug reports to \fBnano@nano-editor.org\fP. + +The \fBnano\fP mailing list is available from \fBnano-devel@gnu.org\fP. + +To subscribe, email to \fBnano-devel-request@gnu.org\fP with a subject +of "subscribe". + +.SH HOMEPAGE +http://www.nano-editor.org/ + +.SH SEE ALSO +.PD 0 +.TP +\fBnanorc\fP(5) +.PP +\fI/usr/share/doc/nano/\fP (or equivalent on your system) + +.SH AUTHOR +Chris Allegretta , et al (see \fIAUTHORS\fP and +\fITHANKS\fP for details). This manual page was originally written by +Jordi Mallach , for the Debian system (but may be used by +others). diff --git a/doc/man/nano.1.html b/doc/man/nano.1.html new file mode 100644 index 0000000..cb1101e --- /dev/null +++ b/doc/man/nano.1.html @@ -0,0 +1,468 @@ + + + + + + + + + +NANO + + + + +

NANO

+ +NAME
+SYNOPSIS
+DESCRIPTION
+OPTIONS
+INITIALIZATION FILE
+NOTES
+BUGS
+HOMEPAGE
+SEE ALSO
+AUTHOR
+ +
+ + +

NAME + +

+ + +

nano − +Nano’s ANOther editor, an enhanced free Pico clone

+ +

SYNOPSIS + +

+ + +

nano +[OPTIONS] [[+LINE,COLUMN] FILE]...

+ +

DESCRIPTION + +

+ + +

This manual +page briefly documents the nano command.

+ +

nano is +a small, free and friendly editor which aims to replace +Pico, the default editor included in the non-free Pine +package. Rather than just copying Pico’s look and +feel, nano also implements some missing (or disabled +by default) features in Pico, such as "search and +replace" and "go to line and column +number".

+ +

OPTIONS + +

+ + + +

+LINE,COLUMN

+ +

Places cursor at line number +LINE and column number COLUMN (at least one of +which must be specified) on startup, instead of the default +of line 1, column 1.

+ + + + + + + + +
+ + +

−?

+ + +

Same as -h (−−help).

+
+ +

−A +(−−smarthome)

+ +

Make the Home key smarter. When +Home is pressed anywhere but at the very beginning of +non-whitespace characters on a line, the cursor will jump to +that beginning (either forwards or backwards). If the cursor +is already at that position, it will jump to the true +beginning of the line.

+ +

−B +(−−backup)

+ +

When saving a file, back up the +previous version of it to the current filename suffixed with +a ~.

+ +

−C dir +(−−backupdir=dir)

+ +

Set the directory where +nano puts unique backup files if file backups are +enabled.

+ +

−D +(−−boldtext)

+ +

Use bold text instead of +reverse video text.

+ +

−E +(−−tabstospaces)

+ +

Convert typed tabs to +spaces.

+ +

−F +(−−multibuffer)

+ +

Enable multiple file buffers, +if available.

+ +

−H +(−−historylog)

+ +

Log search and replace strings +to ~/.nano_history, so they can be retrieved in later +sessions, if nanorc support is available.

+ +

−I +(−−ignorercfiles)

+ +

Don’t look at +SYSCONFDIR/nanorc or ~/.nanorc, if +nanorc support is available.

+ +

−K +(−−rebindkeypad)

+ +

Interpret the numeric keypad +keys so that they all work properly. You should only need to +use this option if they don’t, as mouse support +won’t work properly with this option enabled.

+ +

−L +(−−nonewlines)

+ +

Don’t add newlines to the +ends of files.

+ +

−N +(−−noconvert)

+ +

Disable automatic conversion of +files from DOS/Mac format.

+ +

−O +(−−morespace)

+ +

Use the blank line below the +titlebar as extra editing space.

+ +

−Q str +(−−quotestr=str)

+ +

Set the quoting string for +justifying. The default is +"^([ \t]*[#:>\|}])+" if extended +regular expression support is available, or +"" otherwise. Note that \t +stands for a Tab.

+ +

−R +(−−restricted)

+ +

Restricted mode: don’t +read or write to any file not specified on the command line; +read any nanorc files; allow suspending; allow a file +to be appended to, prepended to, or saved under a different +name if it already has one; or use backup files or spell +checking. Also accessible by invoking nano with any +name beginning with ’r’ (e.g. +"rnano").

+ +

−S +(−−smooth)

+ +

Enable smooth scrolling. Text +will scroll line-by-line, instead of the usual +chunk-by-chunk behavior.

+ +

−T cols +(−−tabsize=cols)

+ +

Set the size (width) of a tab +to cols columns. The value of cols must be +greater than 0. The default value is 8.

+ +

−U +(−−quickblank)

+ +

Do quick statusbar blanking. +Statusbar messages will disappear after 1 keystroke instead +of 25. Note that -c overrides this.

+ +

−V +(−−version)

+ +

Show the current version number +and exit.

+ +

−W +(−−wordbounds)

+ +

Detect word boundaries more +accurately by treating punctuation characters as part of a +word.

+ +

−Y str +(−−syntax=str)

+ +

Specify a specific syntax +highlighting from the nanorc to use, if +available.

+ +

−c +(−−const)

+ +

Constantly show the cursor +position. Note that this overrides -U.

+ +

−d +(−−rebinddelete)

+ +

Interpret the Delete key +differently so that both Backspace and Delete work properly. +You should only need to use this option if Backspace acts +like Delete on your system.

+ +

−h +(−−help)

+ +

Show a summary of command line +options and exit.

+ +

−i +(−−autoindent)

+ +

Indent new lines to the +previous line’s indentation. Useful when editing +source code.

+ +

−k +(−−cut)

+ +

Enable cut from cursor to end +of line.

+ +

−l +(−−nofollow)

+ +

If the file being edited is a +symbolic link, replace the link with a new file instead of +following it. Good for editing files in /tmp, +perhaps?

+ +

−m +(−−mouse)

+ +

Enable mouse support, if +available for your system. When enabled, mouse clicks can be +used to place the cursor, set the mark (with a double +click), and execute shortcuts. The mouse will work in the X +Window System, and on the console when gpm is running.

+ +

−o dir +(−−operatingdir=dir)

+ +

Set operating directory. Makes +nano set up something similar to a chroot.

+ +

−p +(−−preserve)

+ +

Preserve the XON and XOFF +sequences (^Q and ^S) so they will be caught by the +terminal.

+ +

−q +(−−quiet)

+ +

Do not report errors in the +nanorc file and ask them to be acknowledged by +pressing Enter at startup.

+ +

−r cols +(−−fill=cols)

+ +

Wrap lines at column +cols. If this value is 0 or less, wrapping will occur +at the width of the screen less cols columns, +allowing the wrap point to vary along with the width of the +screen if the screen is resized. The default value is +−8.

+ +

−s prog +(−−speller=prog)

+ +

Enable alternative spell +checker command.

+ +

−t +(−−tempfile)

+ +

Always save changed buffer +without prompting. Same as Pico’s -t +option.

+ +

−u +(−−undo)

+ +

Enable experimental +generic-purpose undo code. By default, the undo and redo +shortcuts are Meta-U and Meta-E, respectively.

+ +

−v +(−−view)

+ +

View file (read only) mode.

+ +

−w +(−−nowrap)

+ +

Disable wrapping of long +lines.

+ +

−x +(−−nohelp)

+ +

Disable help screen at bottom +of editor.

+ +

−z +(−−suspend)

+ +

Enable suspend ability.

+ +

−$ +(−−softwrap)

+ +

Enable ’soft +wrapping’. nano will attempt to display the +entire contents of a line, even if it is longer than the +screen width. Since ’$’ normally refers to a +variable in the Unix shell, you should specify this option +last when using other options (e.g. ’nano +−wS$’) or pass it separately (e.g. ’nano +−wS −$’).

+ +

−a, −b, +−e, −f, −g, −j

+ +

Ignored, for compatibility with +Pico.

+ +

INITIALIZATION FILE + +

+ + +

nano +will read initialization files in the following order: +SYSCONFDIR/nanorc, then ~/.nanorc. Please see +nanorc(5) and the example file nanorc.sample, +both of which should be provided with nano.

+ +

NOTES + +

+ + +

If no +alternative spell checker command is specified on the +command line or in one of the nanorc files, +nano will check the SPELL environment variable +for one.

+ +

In some cases +nano will try to dump the buffer into an emergency +file. This will happen mainly if nano receives a +SIGHUP or SIGTERM or runs out of memory. It will write the +buffer into a file named nano.save if the buffer +didn’t have a name already, or will add a +".save" suffix to the current filename. If an +emergency file with that name already exists in the current +directory, it will add ".save" plus a number (e.g. +".save.1") to the current filename in order to +make it unique. In multibuffer mode, nano will write +all the open buffers to their respective emergency +files.

+ +

BUGS + +

+ + +

Please send any +comments or bug reports to nano@nano-editor.org.

+ +

The nano +mailing list is available from +nano-devel@gnu.org.

+ +

To subscribe, +email to nano-devel-request@gnu.org with a subject of +"subscribe".

+ +

HOMEPAGE + +

+ + + +

http://www.nano-editor.org/

+ +

SEE ALSO + +

+ + + +

nanorc(5) +
+/usr/share/doc/nano/
(or equivalent on your system)

+ +

AUTHOR + +

+ + +

Chris +Allegretta <chrisa@asty.org>, et al (see +AUTHORS and THANKS for details). This manual +page was originally written by Jordi Mallach +<jordi@gnu.org>, for the Debian system (but may be +used by others).

+
+ + diff --git a/doc/man/nanorc.5 b/doc/man/nanorc.5 new file mode 100644 index 0000000..3c69209 --- /dev/null +++ b/doc/man/nanorc.5 @@ -0,0 +1,567 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 +.\" Free Software Foundation, Inc. +.\" +.\" This document is dual-licensed. You may distribute and/or modify it +.\" under the terms of either of the following licenses: +.\" +.\" * The GNU General Public License, as published by the Free Software +.\" Foundation, version 3 or (at your option) any later version. You +.\" should have received a copy of the GNU General Public License +.\" along with this program. If not, see +.\" . +.\" +.\" * The GNU Free Documentation License, as published by the Free +.\" Software Foundation, version 1.2 or (at your option) any later +.\" version, with no Invariant Sections, no Front-Cover Texts, and no +.\" Back-Cover Texts. You should have received a copy of the GNU Free +.\" Documentation License along with this program. If not, see +.\" . +.\" +.\" $Id: nanorc.5 4508 2010-06-21 03:10:10Z astyanax $ +.TH NANORC 5 "version 2.0.0" "August 23, 2007" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +nanorc \- GNU nano's rcfile +.SH DESCRIPTION +This manual page briefly documents GNU \fBnano\fP's rcfile. +.PP +\fBnano\fP is a small, free and friendly editor which aims to replace +Pico, the default editor included in the non-free Pine package. Rather +than just copying Pico's look and feel, \fBnano\fP also implements some +missing (or disabled by default) features in Pico, such as "search and +replace" and "go to line and column number". +.PP +The \fInanorc\fP file contains the default settings for \fBnano\fP. It +should not be in DOS or Mac format. During startup, \fBnano\fP will +first read its system-wide settings from \fISYSCONFDIR/nanorc\fP, and +then user-specific settings from \fI~/.nanorc\fP. + +.SH OPTIONS +The configuration file accepts a series of \fBset\fP and \fBunset\fP +commands, which can be used to configure nano on startup without using +the command line options. Additionally, the \fBsyntax\fP, \fBcolor\fP, +and \fBicolor\fP keywords are used to define syntax highlighting rules +for different text patterns. \fBnano\fP will read one command per line. + +Options in \fInanorc\fP files take precedence over nano's defaults, and +command line options override \fInanorc\fP settings. Also, options are +unset by default, except for those that take arguments. + +Quotes inside string parameters don't have to be escaped with +backslashes. The last double quote in the string will be treated as its +end. For example, for the \fBbrackets\fP option, "\fI"')>]}\fP" will +match \fI"\fP, \fI'\fP, \fI)\fP, \fI>\fP, \fI]\fP, and \fI}\fP. + +The supported commands and arguments are: + +.TP 3 +.B set/unset allow_insecure_backup +When backing up files, allow the backup to succeed even if its permissions +can't be (re)set due to special OS considerations. You should +NOT enable this option unless you are sure you need it. +.TP +.B set/unset autoindent +Use auto-indentation. +.TP +.B set/unset backup +Create backup files in \fIfilename~\fP. +.TP +.B set backupdir "\fIdirectory\fP" +Set the directory where \fBnano\fP puts unique backup files if file +backups are enabled. +.TP +.B set/unset backwards +Do backwards searches by default. +.TP +.B set/unset boldtext +Use bold text instead of reverse video text. +.TP +.B set brackets "\fIstring\fP" +Set the characters treated as closing brackets when justifying +paragraphs. They cannot contain blank characters. Only closing +punctuation, optionally followed by closing brackets, can end sentences. +The default value is "\fI"')>]}\fP". +.TP +.B set/unset casesensitive +Do case sensitive searches by default. +.TP +.B set/unset const +Constantly display the cursor position in the status bar. +.TP +.B set/unset cut +Use cut to end of line by default. +.TP +.B set fill \fIn\fP +Wrap lines at column number \fIn\fP. If \fIn\fP is 0 or less, the +maximum line length will be the screen width less \fIn\fP columns. The +default value is \-8. +.TP +.B set/unset historylog +Enable \fI~/.nano_history\fP for saving and reading search/replace +strings. +.TP +.B set matchbrackets "\fIstring\fP" +Set the opening and closing brackets that can be found by bracket +searches. They cannot contain blank characters. The former set must +come before the latter set, and both must be in the same order. The +default value is "\fI(<[{)>]}\fP". +.TP +.B set/unset morespace +Use the blank line below the titlebar as extra editing space. +.TP +.B set/unset mouse +Enable mouse support, if available for your system. When enabled, mouse +clicks can be used to place the cursor, set the mark (with a double +click), and execute shortcuts. The mouse will work in the X Window +System, and on the console when gpm is running. +.TP +.B set/unset multibuffer +Allow inserting files into their own buffers. +.TP +.B set/unset noconvert +Don't convert files from DOS/Mac format. +.TP +.B set/unset nofollow +Don't follow symlinks when writing files. +.TP +.B set/unset nohelp +Don't display the help lists at the bottom of the screen. +.TP +.B set/unset nonewlines +Don't add newlines to the ends of files. +.TP +.B set/unset nowrap +Don't wrap text at all. +.TP +.B set operatingdir "\fIdirectory\fP" +\fBnano\fP will only read and write files inside \fIdirectory\fP and its +subdirectories. Also, the current directory is changed to here, so +files are inserted from this diractory. By default, the operating +directory feature is turned off. +.TP +.B set/unset preserve +Preserve the XON and XOFF keys (^Q and ^S). +.TP +.B set punct "\fIstring\fP" +Set the characters treated as closing punctuation when justifying +paragraphs. They cannot contain blank characters. Only closing +punctuation, optionally followed by closing brackets, can end sentences. +The default value is "\fI!.?\fP". +.TP +.B set/unset quiet +\fBnano\fP will not report errors in the \fInanorc\fP file and ask them +to be acknowledged by pressing enter at startup. If this is used it +should be placed at the top of the file to be fully effective. +.TP +.B set/unset quickblank +Do quick statusbar blanking. Statusbar messages will disappear after 1 +keystroke instead of 25. +.TP +.B set quotestr "\fIstring\fP" +The email-quote string, used to justify email-quoted paragraphs. This +is an extended regular expression if your system supports them, +otherwise a literal string. The default value is +"\fI^([\ \\t]*[#:>\\|}])+\fP" if you have extended regular expression +support, or "\fI>\ \fP" otherwise. Note that '\\t' stands for a literal +Tab character. +.TP +.B set/unset rebinddelete +Interpret the Delete key differently so that both Backspace and Delete +work properly. You should only need to use this option if Backspace +acts like Delete on your system. +.TP +.B set/unset rebindkeypad +Interpret the numeric keypad keys so that they all work properly. You +should only need to use this option if they don't, as mouse support +won't work properly with this option enabled. +.TP +.B set/unset regexp +Do extended regular expression searches by default. +.TP +.B set/unset smarthome +Make the Home key smarter. When Home is pressed anywhere but at the +very beginning of non-whitespace characters on a line, the cursor will +jump to that beginning (either forwards or backwards). If the cursor is +already at that position, it will jump to the true beginning of the +line. +.TP +.B set/unset smooth +Use smooth scrolling by default. +.TP +.B set/unset softwrap +Enable soft line wrapping for easier viewing of very long lones. +.TP +.B set speller "\fIspellprog\fP" +Use spelling checker \fIspellprog\fP instead of the built-in one, which +calls \fIspell\fP. +.TP +.B set/unset suspend +Allow \fBnano\fP to be suspended. +.TP +.B set tabsize \fIn\fP +Use a tab size of \fIn\fP columns. The value of \fIn\fP must be greater +than 0. The default value is 8. +.TP +.B set/unset tabstospaces +Convert typed tabs to spaces. +.TP +.B set/unset tempfile +Save automatically on exit, don't prompt. +.TP +.B set/unset undo +Enable experimental generic-purpose undo code. +.TP +.B set/unset view +Disallow file modification. +.TP +.B set/unset softwrap +Enable soft line wrapping for easier viewing of very long lones. +.TP +.B set whitespace "\fIstring\fP" +Set the two characters used to display the first characters of tabs and +spaces. They must be single-column characters. +.TP +.B set/unset wordbounds +Detect word boundaries more accurately by treating punctuation +characters as parts of words. +.TP +.B syntax "\fIstr\fP" ["\fIfileregex\fP" ... ] +Defines a syntax named \fIstr\fP which can be activated via the +\-Y/\-\-syntax command line option, or will be automatically activated if +the current filename matches the extended regular expression +\fIfileregex\fP. All following \fBcolor\fP and \fBicolor\fP statements +will apply to \fIsyntax\fP until a new syntax is defined. + +The \fInone\fP syntax is reserved; specifying it on the command line is +the same as not having a syntax at all. The \fIdefault\fP syntax is +special: it takes no \fIfileregex\fP, and applies to files that don't +match any other syntax's \fIfileregex\fP. +.TP +.B color \fIfgcolor\fP,\fIbgcolor\fP "\fIregex\fP" ... +For the currently defined syntax, display all expressions matching +the extended regular expression \fIregex\fP with foreground color +\fIfgcolor\fP and background color \fIbgcolor\fP, at least one of which +must be specified. Legal colors for foreground and background color +are: white, black, red, blue, green, yellow, magenta, and cyan. You may +use the prefix "bright" to force a stronger color highlight for the +foreground. If your terminal supports transparency, not specifying a +\fIbgcolor\fP tells \fBnano\fP to attempt to use a transparent +background. +.TP +.B icolor \fIfgcolor\fP,\fIbgcolor\fP "\fIregex\fP" ... +Same as above, except that the expression matching is case insensitive. +.TP +.B color \fIfgcolor\fP,\fIbgcolor\fP start="\fIsr\fP" end="\fIer\fP" +Display expressions which start with the extended regular expression +\fIsr\fP and end with the extended regular expression \fIer\fP with +foreground color \fIfgcolor\fP and background color \fIbgcolor\fP, +at least one of which must be specified. This allows syntax +highlighting to span multiple lines. Note that all subsequent instances +of \fIsr\fP after an initial \fIsr\fP is found will be highlighted until +the first instance of \fIer\fP. +.TP +.B icolor \fIfgcolor\fP,\fIbgcolor\fP start="\fIsr\fP" end="\fIer\fP" +Same as above, except that the expression matching is case insensitive. +.TP +.B include "\fIsyntaxfile\fP" +Read in self-contained color syntaxes from \fIsyntaxfile\fP. Note that +\fIsyntaxfile\fP can only contain \fBsyntax\fP, \fBcolor\fP, and +\fBicolor\fP commands. +.SH KEY BINDINGS +Key bindings may be reassigned via the following commands: +.TP +.B bind \fIkey\fP \fIfunction\fP \fImenu\fP +Rebinds the key \fIkey\fP to a new function named \fIfunction\fP in the +context of menu \fImenu\fP. The format of \fIkey\fP should be one of: +.TP +.B ^ +followed by an alpha character or the word "Space". +Example: ^C +.TP +.B M- +followed by a printable character or the word "Space". +Example: M-C +.TP +.B F +followed by a numeric value from 1 to 16. +Example: F10 +.TP +Valid function names to be bound include: +.TP 3 +.B help +Invoke the help menu. +.TP +.B cancel +Cancel the current command. +.TP +.B exit +Exit from the program. +.TP +.B writeout +Write the current buffer to disk. +.TP +.B justify +Justify the current text. +.TP +.B insert +Insert a file into the current buffer (or into a new buffer when multibuffer +is enabled). +.TP +.B whereis +Search for text in the current buffer. +.TP +.B searchagain +Repeat the last search command. +.TP +.B up +Move up in the editor or browser. +.TP +.B down +Move down in the editor or browser. +.TP +.B left +Move left in the editor or browser. +.TP +.B right +Move right in the editor or browser. +.TP +.B cut +Cut the current line of text and store it. +.TP +.B uncut +Copy the currently stored text into the current buffer position. +.TP +.B curpos +Show the current line, column, word positions in the file. +.TP +.B firstline +Move to the first line of the file. +.TP +.B lastline +Move to the last line of the file. +.TP +.B gotoline +Move to a specific line (and column if specified). +.TP +.B replace +Interactively replace text within the current buffer. +.TP +.B mark +Begin selecting text for cutting or pasting at the current position. +.TP +.B copytext +Copy the currently marked text without deleting it. +.TP +.B indent +Indent the currently marked text (shift to the right). +.TP +.B unindent +Un-indent the currently marked text (shift to the left). +.TP +.B nextword +Move the cursor to the beginning of the next word. +.TP +.B prevword +Move the cursor to the beginning of the previous word. +.TP +.B home +Move the cursor to the beginning of the current line. +.TP +.B end +Move the cursor to the end of the current line. +.TP +.B beginpara +Move the cursor to the beginning of the current paragraph. +.TP +.B endpara +Move the cursor to the end of the current paragraph. +.TP +.B findbracket +Move the cursor to the matching bracket (brace, parenthesis, etc.) of the one +under the cursor. +.TP +.B scrollup +Scroll up one line of text from the current position. +.TP +.B scrolldown +Scroll down one line of text from the current position. +.TP +.B prevbuf +Switch to editing/viewing the previous buffer when using multibuffer mode. +.TP +.B nextbuf +Switch to editing/viewing the next buffer when using multibuffer mode. +.TP +.B verbatim +Insert the next character verbatim into the file. +.TP +.B tab +Insert a tab at the current cursor location. +.TP +.B enter +Insert a new line below the current one. +.TP +.B delete +Delete the character under the cursor. +.TP +.B fulljustify +Justify the entire current file. +.TP +.B wordcount +Count the number of words in the current buffer. +.TP +.B refresh +Refresh the screen. +.TP +.B undo +Undo the text action peformed (add text, delete text, etc). +.TP +.B redo +Redo the last undone action (i.e., undo an undo). +.TP +.B suspend +Suspend the editor (if the suspend function is enabled, see the +"suspendenable" entry below). +.TP +.B casesens +Toggle case sensitivity in searching (search/replace menus only). +.TP +.B regexp +Toggle whether searching/replacing is based on literal strings or regular expressions. +.TP +.B prevhistory +Show the previous history entry in the prompt menus (e.g. search). +.TP +.B nexthistory +Show the next history entry in the prompt menus (e.g. search). +.TP +.B dontreplace +Switch back to searching instead of replacing. +.TP +.B gototext +Search for files matching a string in the file browser (reading or writing files). +.TP +.B dosformat +When writing a file, switch to writing a DOS format (CR/LF). +.TP +.B macformat +When writing a file, switch to writing a Mac format. +.TP +.B append +When writing a file, append to the end instead of overwriting. +.TP +.B prepend +When writing a file, 'prepend' (write at the beginning) instead of overwriting. +.TP +.B backup +When writing a file, create a backup of the current file. +.TP +.B firstfile +Move to the first file when using the file browser (reading or writing files). +.TP +.B lastfile +Move to the last file when using the file browser (reading or writing files). +.TP +.B nohelp +Toggle showing/hiding the two-line list of key bindings at the bottom of the screen. +.TP +.B constupdate +Constantly display the current line, column, word positions. +.TP +.B morespace +Toggle showing/hiding the blank line which 'separates' the 'title' from the file text. +.TP +.B smoothscroll +Toggle smooth scrolling when moving via the arrow keys. +.TP +.B whitespacedisplay +Toggle whether whitespace is shown. +.TP +.B smarthome +Toggle whether the smart home key function is enabled. +.TP +.B autoindent +Toggle whether new lines will contain the same amount of whitespace as the line above. +.TP +.B cuttoend +Toggle whether cutting text will cut the whole line or just from the current cursor +position to the end of the line. +.TP +.B nowrap +Toggle whether long lines will be wrapped to the next line. +.TP +.B suspendenable +Toggle whether the suspend sequence (normally ^Z) will suspend the editor window. +.TP + +Valid menu sections are: +.TP +.B main +The main editor window where text is entered. +.TP +.B search +The search menu (AKA whereis). +.TP +.B replace +The 'search to replace' menu. +.TP +.B replacewith +The 'replace with' menu, which comes up after 'search to replace'. +.TP +.B gotoline +The 'goto line (and column)' menu. +.TP +.B writeout +The 'write file' menu. +.TP +.B insert +The 'insert file' menu. +.TP +.B extcmd +The menu for inserting output from an external comman, reached from the insert menu. +.TP +.B help +The help menu. +.TP +.B spell +The interactive spell checker Yes/no menu. +.TP +.B browser +The file browser for inserting or writing a file. +.TP +.B whereisfile +The 'search for a file' menu in the file browser. +.TP +.B gotodir +The 'go to directory' menu. +.TP +.B all +A special name meaning: apply to all menus where this function exists. + +.TP +.B unbind \fIkey\fP \fImenu\fP +Unbind the key \fIkey\fP from the menu named \fImenu\fP or from all +menus by using \fIall\fP. Same key syntax as for binding. +Rebinds the key \fIkey\fP to a new function named \fIfunction\fP in the +context of menu \fImenu\fP. The format of \fIkey\fP should be one of: +.SH FILES +.TP +.I SYSCONFDIR/nanorc +System-wide configuration file +.TP +.I ~/.nanorc +Per-user configuration file +.SH SEE ALSO +.PD 0 +.TP +\fBnano\fP(1) +.PP +\fI/usr/share/doc/nano/examples/nanorc.sample\fP (or equivalent on your +system) +.SH AUTHOR +Chris Allegretta , et al (see \fIAUTHORS\fP and +\fITHANKS\fP for details). This manual page was originally written by +Jordi Mallach , for the Debian system (but may be used by +others). diff --git a/doc/man/nanorc.5.html b/doc/man/nanorc.5.html new file mode 100644 index 0000000..94e2b6d --- /dev/null +++ b/doc/man/nanorc.5.html @@ -0,0 +1,959 @@ + + + + + + + + + +NANORC + + + + +

NANORC

+ +NAME
+DESCRIPTION
+OPTIONS
+KEY BINDINGS
+FILES
+SEE ALSO
+AUTHOR
+ +
+ + +

NAME + +

+ + +

nanorc − +GNU nano’s rcfile

+ +

DESCRIPTION + +

+ + +

This manual +page briefly documents GNU nano’s rcfile.

+ +

nano is +a small, free and friendly editor which aims to replace +Pico, the default editor included in the non-free Pine +package. Rather than just copying Pico’s look and +feel, nano also implements some missing (or disabled +by default) features in Pico, such as "search and +replace" and "go to line and column +number".

+ +

The +nanorc file contains the default settings for +nano. It should not be in DOS or Mac format. During +startup, nano will first read its system-wide +settings from SYSCONFDIR/nanorc, and then +user-specific settings from ~/.nanorc.

+ +

OPTIONS + +

+ + +

The +configuration file accepts a series of set and +unset commands, which can be used to configure nano +on startup without using the command line options. +Additionally, the syntax, color, and +icolor keywords are used to define syntax +highlighting rules for different text patterns. nano +will read one command per line.

+ +

Options in +nanorc files take precedence over nano’s +defaults, and command line options override nanorc +settings. Also, options are unset by default, except for +those that take arguments.

+ +

Quotes inside +string parameters don’t have to be escaped with +backslashes. The last double quote in the string will be +treated as its end. For example, for the brackets +option, ""’)>]}" will match +", , ), >, +], and }.

+ +

The supported +commands and arguments are:
+set/unset allow_insecure_backup

+ +

When backing up files, allow +the backup to succeed even if its permissions can’t be +(re)set due to special OS considerations. You should NOT +enable this option unless you are sure you need it.

+ +

set/unset autoindent

+ +

Use auto-indentation.

+ +

set/unset backup

+ +

Create backup files in +filename~.

+ +

set backupdir +directory

+ +

Set the directory where +nano puts unique backup files if file backups are +enabled.

+ +

set/unset backwards

+ +

Do backwards searches by +default.

+ +

set/unset boldtext

+ +

Use bold text instead of +reverse video text.

+ +

set brackets +string

+ +

Set the characters treated as +closing brackets when justifying paragraphs. They cannot +contain blank characters. Only closing punctuation, +optionally followed by closing brackets, can end sentences. +The default value is +""’)>]}".

+ +

set/unset +casesensitive

+ +

Do case sensitive searches by +default.

+ +

set/unset const

+ +

Constantly display the cursor +position in the status bar.

+ +

set/unset cut

+ +

Use cut to end of line by +default.

+ +

set fill n

+ +

Wrap lines at column number +n. If n is 0 or less, the maximum line length +will be the screen width less n columns. The default +value is −8.

+ +

set/unset historylog

+ +

Enable ~/.nano_history +for saving and reading search/replace strings.

+ +

set matchbrackets +string

+ +

Set the opening and closing +brackets that can be found by bracket searches. They cannot +contain blank characters. The former set must come before +the latter set, and both must be in the same order. The +default value is "(<[{)>]}".

+ +

set/unset morespace

+ +

Use the blank line below the +titlebar as extra editing space.

+ +

set/unset mouse

+ +

Enable mouse support, if +available for your system. When enabled, mouse clicks can be +used to place the cursor, set the mark (with a double +click), and execute shortcuts. The mouse will work in the X +Window System, and on the console when gpm is running.

+ +

set/unset +multibuffer

+ +

Allow inserting files into +their own buffers.

+ +

set/unset noconvert

+ +

Don’t convert files from +DOS/Mac format.

+ +

set/unset nofollow

+ +

Don’t follow symlinks +when writing files.

+ +

set/unset nohelp

+ +

Don’t display the help +lists at the bottom of the screen.

+ +

set/unset nonewlines

+ +

Don’t add newlines to the +ends of files.

+ +

set/unset nowrap

+ +

Don’t wrap text at +all.

+ +

set operatingdir +directory

+ +

nano will only read and +write files inside directory and its subdirectories. +Also, the current directory is changed to here, so files are +inserted from this diractory. By default, the operating +directory feature is turned off.

+ +

set/unset preserve

+ +

Preserve the XON and XOFF keys +(^Q and ^S).

+ +

set punct +string

+ +

Set the characters treated as +closing punctuation when justifying paragraphs. They cannot +contain blank characters. Only closing punctuation, +optionally followed by closing brackets, can end sentences. +The default value is "!.?".

+ +

set/unset quiet

+ +

nano will not report +errors in the nanorc file and ask them to be +acknowledged by pressing enter at startup. If this is used +it should be placed at the top of the file to be fully +effective.

+ +

set/unset quickblank

+ +

Do quick statusbar blanking. +Statusbar messages will disappear after 1 keystroke instead +of 25.

+ +

set quotestr +string

+ +

The email-quote string, used to +justify email-quoted paragraphs. This is an extended regular +expression if your system supports them, otherwise a literal +string. The default value is +"^([ \t]*[#:>\|}])+" if you have +extended regular expression support, or +"" otherwise. Note that +’\t’ stands for a literal Tab character.

+ +

set/unset +rebinddelete

+ +

Interpret the Delete key +differently so that both Backspace and Delete work properly. +You should only need to use this option if Backspace acts +like Delete on your system.

+ +

set/unset +rebindkeypad

+ +

Interpret the numeric keypad +keys so that they all work properly. You should only need to +use this option if they don’t, as mouse support +won’t work properly with this option enabled.

+ +

set/unset regexp

+ +

Do extended regular expression +searches by default.

+ +

set/unset smarthome

+ +

Make the Home key smarter. When +Home is pressed anywhere but at the very beginning of +non-whitespace characters on a line, the cursor will jump to +that beginning (either forwards or backwards). If the cursor +is already at that position, it will jump to the true +beginning of the line.

+ +

set/unset smooth

+ +

Use smooth scrolling by +default.

+ +

set/unset softwrap

+ +

Enable soft line wrapping for +easier viewing of very long lones.

+ +

set speller +spellprog

+ +

Use spelling checker +spellprog instead of the built-in one, which calls +spell.

+ +

set/unset suspend

+ +

Allow nano to be +suspended.

+ +

set tabsize n

+ +

Use a tab size of n +columns. The value of n must be greater than 0. The +default value is 8.

+ +

set/unset +tabstospaces

+ +

Convert typed tabs to +spaces.

+ +

set/unset tempfile

+ +

Save automatically on exit, +don’t prompt.

+ +

set/unset undo

+ +

Enable experimental +generic-purpose undo code.

+ +

set/unset view

+ +

Disallow file modification.

+ +

set/unset softwrap

+ +

Enable soft line wrapping for +easier viewing of very long lones.

+ +

set whitespace +string

+ +

Set the two characters used to +display the first characters of tabs and spaces. They must +be single-column characters.

+ +

set/unset wordbounds

+ +

Detect word boundaries more +accurately by treating punctuation characters as parts of +words.

+ +

syntax str +["fileregex" ... ]

+ +

Defines a syntax named +str which can be activated via the +−Y/−−syntax command line option, or will +be automatically activated if the current filename matches +the extended regular expression fileregex. All +following color and icolor statements will +apply to syntax until a new syntax is defined.

+ +

The none +syntax is reserved; specifying it on the command line is the +same as not having a syntax at all. The default +syntax is special: it takes no fileregex, and applies +to files that don’t match any other syntax’s +fileregex.

+ +

color +fgcolor,bgcolor regex ...

+ +

For the currently defined +syntax, display all expressions matching the extended +regular expression regex with foreground color +fgcolor and background color bgcolor, at least +one of which must be specified. Legal colors for foreground +and background color are: white, black, red, blue, green, +yellow, magenta, and cyan. You may use the prefix +"bright" to force a stronger color highlight for +the foreground. If your terminal supports transparency, not +specifying a bgcolor tells nano to attempt to +use a transparent background.

+ +

icolor +fgcolor,bgcolor regex ...

+ +

Same as above, except that the +expression matching is case insensitive.

+ +

color +fgcolor,bgcolor +start="sr" +end="er"

+ +

Display expressions which start +with the extended regular expression sr and end with +the extended regular expression er with foreground +color fgcolor and background color bgcolor, at +least one of which must be specified. This allows syntax +highlighting to span multiple lines. Note that all +subsequent instances of sr after an initial sr +is found will be highlighted until the first instance of +er.

+ +

icolor +fgcolor,bgcolor +start="sr" +end="er"

+ +

Same as above, except that the +expression matching is case insensitive.

+ +

include +syntaxfile

+ +

Read in self-contained color +syntaxes from syntaxfile. Note that syntaxfile +can only contain syntax, color, and +icolor commands.

+ +

KEY BINDINGS + +

+ + +

Key bindings +may be reassigned via the following commands:
+bind
key function menu

+ +

Rebinds the key key to a +new function named function in the context of menu +menu. The format of key should be one of:

+ + + + + + + + + + + + + + + + + +
+ + +

^

+ + +

followed by an alpha character or the word +"Space". Example: ^C

+ + +

M-

+ + +

followed by a printable character or the word +"Space". Example: M-C

+ + +

F

+ + +

followed by a numeric value from 1 to 16. Example: +F10

+ +

Valid function names to be +bound include:
+help

+ +

Invoke the help menu.

+ +

cancel

+ +

Cancel the current command.

+ +

exit

+ +

Exit from the program.

+ +

writeout

+ +

Write the current buffer to +disk.

+ +

justify

+ +

Justify the current text.

+ +

insert

+ +

Insert a file into the current +buffer (or into a new buffer when multibuffer is +enabled).

+ +

whereis

+ +

Search for text in the current +buffer.

+ +

searchagain

+ +

Repeat the last search +command.

+ + + + + + + + +
+ + +

up

+ + +

Move up in the editor or browser.

+
+ +

down

+ +

Move down in the editor or +browser.

+ +

left

+ +

Move left in the editor or +browser.

+ +

right

+ +

Move right in the editor or +browser.

+ +

cut

+ +

Cut the current line of text +and store it.

+ +

uncut

+ +

Copy the currently stored text +into the current buffer position.

+ +

curpos

+ +

Show the current line, column, +word positions in the file.

+ +

firstline

+ +

Move to the first line of the +file.

+ +

lastline

+ +

Move to the last line of the +file.

+ +

gotoline

+ +

Move to a specific line (and +column if specified).

+ +

replace

+ +

Interactively replace text +within the current buffer.

+ +

mark

+ +

Begin selecting text for +cutting or pasting at the current position.

+ +

copytext

+ +

Copy the currently marked text +without deleting it.

+ +

indent

+ +

Indent the currently marked +text (shift to the right).

+ +

unindent

+ +

Un-indent the currently marked +text (shift to the left).

+ +

nextword

+ +

Move the cursor to the +beginning of the next word.

+ +

prevword

+ +

Move the cursor to the +beginning of the previous word.

+ +

home

+ +

Move the cursor to the +beginning of the current line.

+ +

end

+ +

Move the cursor to the end of +the current line.

+ +

beginpara

+ +

Move the cursor to the +beginning of the current paragraph.

+ +

endpara

+ +

Move the cursor to the end of +the current paragraph.

+ +

findbracket

+ +

Move the cursor to the matching +bracket (brace, parenthesis, etc.) of the one under the +cursor.

+ +

scrollup

+ +

Scroll up one line of text from +the current position.

+ +

scrolldown

+ +

Scroll down one line of text +from the current position.

+ +

prevbuf

+ +

Switch to editing/viewing the +previous buffer when using multibuffer mode.

+ +

nextbuf

+ +

Switch to editing/viewing the +next buffer when using multibuffer mode.

+ +

verbatim

+ +

Insert the next character +verbatim into the file.

+ +

tab

+ +

Insert a tab at the current +cursor location.

+ +

enter

+ +

Insert a new line below the +current one.

+ +

delete

+ +

Delete the character under the +cursor.

+ +

fulljustify

+ +

Justify the entire current +file.

+ +

wordcount

+ +

Count the number of words in +the current buffer.

+ +

refresh

+ +

Refresh the screen.

+ +

undo

+ +

Undo the text action peformed +(add text, delete text, etc).

+ +

redo

+ +

Redo the last undone action +(i.e., undo an undo).

+ +

suspend

+ +

Suspend the editor (if the +suspend function is enabled, see the +"suspendenable" entry below).

+ +

casesens

+ +

Toggle case sensitivity in +searching (search/replace menus only).

+ +

regexp

+ +

Toggle whether +searching/replacing is based on literal strings or regular +expressions.

+ +

prevhistory

+ +

Show the previous history entry +in the prompt menus (e.g. search).

+ +

nexthistory

+ +

Show the next history entry in +the prompt menus (e.g. search).

+ +

dontreplace

+ +

Switch back to searching +instead of replacing.

+ +

gototext

+ +

Search for files matching a +string in the file browser (reading or writing files).

+ +

dosformat

+ +

When writing a file, switch to +writing a DOS format (CR/LF).

+ +

macformat

+ +

When writing a file, switch to +writing a Mac format.

+ +

append

+ +

When writing a file, append to +the end instead of overwriting.

+ +

prepend

+ +

When writing a file, +’prepend’ (write at the beginning) instead of +overwriting.

+ +

backup

+ +

When writing a file, create a +backup of the current file.

+ +

firstfile

+ +

Move to the first file when +using the file browser (reading or writing files).

+ +

lastfile

+ +

Move to the last file when +using the file browser (reading or writing files).

+ +

nohelp

+ +

Toggle showing/hiding the +two-line list of key bindings at the bottom of the +screen.

+ +

constupdate

+ +

Constantly display the current +line, column, word positions.

+ +

morespace

+ +

Toggle showing/hiding the blank +line which ’separates’ the ’title’ +from the file text.

+ +

smoothscroll

+ +

Toggle smooth scrolling when +moving via the arrow keys.

+ +

whitespacedisplay

+ +

Toggle whether whitespace is +shown.

+ +

smarthome

+ +

Toggle whether the smart home +key function is enabled.

+ +

autoindent

+ +

Toggle whether new lines will +contain the same amount of whitespace as the line above.

+ +

cuttoend

+ +

Toggle whether cutting text +will cut the whole line or just from the current cursor +position to the end of the line.

+ +

nowrap

+ +

Toggle whether long lines will +be wrapped to the next line.

+ +

suspendenable

+ +

Toggle whether the suspend +sequence (normally ^Z) will suspend the editor window.

+ +

Valid menu +sections are:
+main

+ +

The main editor window where +text is entered.

+ +

search

+ +

The search menu (AKA +whereis).

+ +

replace

+ +

The ’search to +replace’ menu.

+ +

replacewith

+ +

The ’replace with’ +menu, which comes up after ’search to +replace’.

+ +

gotoline

+ +

The ’goto line (and +column)’ menu.

+ +

writeout

+ +

The ’write file’ +menu.

+ +

insert

+ +

The ’insert file’ +menu.

+ +

extcmd

+ +

The menu for inserting output +from an external comman, reached from the insert menu.

+ +

help

+ +

The help menu.

+ +

spell

+ +

The interactive spell checker +Yes/no menu.

+ +

browser

+ +

The file browser for inserting +or writing a file.

+ +

whereisfile

+ +

The ’search for a +file’ menu in the file browser.

+ +

gotodir

+ +

The ’go to +directory’ menu.

+ +

all

+ +

A special name meaning: apply +to all menus where this function exists.

+ +

unbind key +menu

+ +

Unbind the key key from +the menu named menu or from all menus by using +all. Same key syntax as for binding. Rebinds the key +key to a new function named function in the +context of menu menu. The format of key should +be one of:

+ +

FILES + +

+ + + +

SYSCONFDIR/nanorc

+ +

System-wide configuration +file

+ +

~/.nanorc

+ +

Per-user configuration file

+ +

SEE ALSO + +

+ + +

nano(1) +
+/usr/share/doc/nano/examples/nanorc.sample
(or +equivalent on your system)

+ +

AUTHOR + +

+ + +

Chris Allegretta +<chrisa@asty.org>, et al (see AUTHORS and +THANKS for details). This manual page was originally +written by Jordi Mallach <jordi@gnu.org>, for the +Debian system (but may be used by others).

+
+ + diff --git a/doc/man/rnano.1 b/doc/man/rnano.1 new file mode 100644 index 0000000..6b8a9b8 --- /dev/null +++ b/doc/man/rnano.1 @@ -0,0 +1,98 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. +.\" Skeleton based on nano-tiny.1: +.\" Copyright (C) 2002 Free Software Foundation, Inc. +.\" +.\" This document is dual-licensed. You may distribute and/or modify it +.\" under the terms of either of the following licenses: +.\" +.\" * The GNU General Public License, as published by the Free Software +.\" Foundation, version 3 or (at your option) any later version. You +.\" should have received a copy of the GNU General Public License +.\" along with this program. If not, see +.\" . +.\" +.\" * The GNU Free Documentation License, as published by the Free +.\" Software Foundation, version 1.2 or (at your option) any later +.\" version, with no Invariant Sections, no Front-Cover Texts, and no +.\" Back-Cover Texts. You should have received a copy of the GNU Free +.\" Documentation License along with this program. If not, see +.\" . +.\" +.\" $Id: rnano.1 4188 2007-12-08 04:27:44Z dolorous $ +.TH RNANO 1 "version 2.0.0" "August 23, 2007" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +rnano \- Restricted mode for Nano's ANOther editor, an enhanced free +Pico clone + +.SH SYNOPSIS +.B rnano +.I [OPTIONS]\ [[\+LINE,COLUMN]\ FILE]... +.br + +.SH DESCRIPTION +This manual page briefly documents the \fBrnano\fP command. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invoke bold face and italics, +.\" respectively. +\fBnano\fP is a small, free and friendly editor which aims to replace +Pico, the default editor included in the non-free Pine package. Rather +than just copying Pico's look and feel, \fBnano\fP also implements some +missing (or disabled by default) features in Pico, such as "search and +replace" and "go to line and column number". +.PP +\fBrnano\fP is a restricted version of \fBnano\fP, which only edits +specific files and doesn't allow the user access to the filesystem or a +command shell. +.PP +In restricted mode, \fBnano\fP will \fInot\fP: +.IP \[bu] 2 +read or write to any file not specified on the command line; +.IP \[bu] +read any nanorc files; +.IP \[bu] +allow suspending; +.IP \[bu] +allow a file to be appended to, prepended to, or saved under a different +name; +.IP \[bu] +use backup files or spell checking. + +.SH OPTIONS +.TP +.B \+\fILINE\fP,\fICOLUMN\fP +Places cursor at line number \fILINE\fP and column number \fICOLUMN\fP +(at least one of which must be specified) on startup, instead of the +default of line 1, column 1. +.TP +.B \-? +Same as \fB-h (\-\-help)\fP. +.TP +.B \-h (\-\-help) +Show a summary of command line options and exit. +.TP +.B \-V (\-\-version) +Show the current version number and exit. +.PP +See the \fBnano\fP(1) manpage for the complete documentation of +\fBnano\fP. + +.SH BUGS +Please send any comments or bug reports to \fBnano@nano-editor.org\fP. + +The \fBnano\fP mailing list is available from \fBnano-devel@gnu.org\fP. + +To subscribe, email to \fBnano-devel-request@gnu.org\fP with a subject +of "subscribe". + +.SH HOMEPAGE +http://www.nano-editor.org/ + +.SH AUTHOR +Chris Allegretta , et al (see AUTHORS for details). +This manual page was originally written by Thijs Kinkhorst +, for the Debian system (but may be used by +others). diff --git a/doc/man/rnano.1.html b/doc/man/rnano.1.html new file mode 100644 index 0000000..5fc5991 --- /dev/null +++ b/doc/man/rnano.1.html @@ -0,0 +1,219 @@ + + + + + + + + + +RNANO + + + + +

RNANO

+ +NAME
+SYNOPSIS
+DESCRIPTION
+OPTIONS
+BUGS
+HOMEPAGE
+AUTHOR
+ +
+ + +

NAME + +

+ + +

rnano − +Restricted mode for Nano’s ANOther editor, an enhanced +free Pico clone

+ +

SYNOPSIS + +

+ + +

rnano +[OPTIONS] [[+LINE,COLUMN] FILE]...

+ +

DESCRIPTION + +

+ + +

This manual +page briefly documents the rnano command.

+ +

nano is +a small, free and friendly editor which aims to replace +Pico, the default editor included in the non-free Pine +package. Rather than just copying Pico’s look and +feel, nano also implements some missing (or disabled +by default) features in Pico, such as "search and +replace" and "go to line and column +number".

+ +

rnano is +a restricted version of nano, which only edits +specific files and doesn’t allow the user access to +the filesystem or a command shell.

+ +

In restricted +mode, nano will not:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +

+ + +

read or write to any file not specified on the command +line;

+ + +

+ + +

read any nanorc files;

+ + +

+ + +

allow suspending;

+ + +

+ + +

allow a file to be appended to, prepended to, or saved +under a different name;

+ + +

+ + +

use backup files or spell checking.

+ +

OPTIONS + +

+ + + +

+LINE,COLUMN

+ +

Places cursor at line number +LINE and column number COLUMN (at least one of +which must be specified) on startup, instead of the default +of line 1, column 1.

+ + + + + + + + +
+ + +

−?

+ + +

Same as -h (−−help).

+
+ +

−h +(−−help)

+ +

Show a summary of command line +options and exit.

+ +

−V +(−−version)

+ +

Show the current version number +and exit.

+ +

See the +nano(1) manpage for the complete documentation of +nano.

+ +

BUGS + +

+ + +

Please send any +comments or bug reports to nano@nano-editor.org.

+ +

The nano +mailing list is available from +nano-devel@gnu.org.

+ +

To subscribe, +email to nano-devel-request@gnu.org with a subject of +"subscribe".

+ +

HOMEPAGE + +

+ + + +

http://www.nano-editor.org/

+ +

AUTHOR + +

+ + +

Chris +Allegretta <chrisa@asty.org>, et al (see AUTHORS for +details). This manual page was originally written by Thijs +Kinkhorst <thijs@kinkhorst.com>, for the Debian system +(but may be used by others).

+
+ + diff --git a/doc/nanorc.sample.in b/doc/nanorc.sample.in new file mode 100644 index 0000000..f164c26 --- /dev/null +++ b/doc/nanorc.sample.in @@ -0,0 +1,312 @@ +## Sample initialization file for GNU nano. +## +## Please note that you must have configured nano with --enable-nanorc +## for this file to be read! Also note that this file should not be in +## DOS or Mac format, and that characters specially interpreted by the +## shell should not be escaped here. +## +## To make sure a value is disabled, use "unset