* configure.ac (gl_MODULES): Add assert to support a
[m4/ericb.git] / NEWS
blob8bdc0fd59c10b37ac2cb038487f9489e33b0e820
1 GNU m4 NEWS - History of user-visible changes.          -*- outline -*-
2 Copyright 1992, 1993, 1994, 1998, 2000, 2001 Free Software Foundation, Inc.
4 Version beta 1.4r - ???, by ???
6 * If the POSIXLY_CORRECT environment variable is set, m4 now disables
7   GNU extensions that are incompatible with POSIX.
9 * POSIXLY_CORRECT and `m4 --traditional' now makes the `define' builtin
10   replace all `pushdef'ed values of a macro, as POSIX requires.
12 * The `defn' builtin now allows any number of arguments, as POSIX requires.
14 * The '$' syntax class is now enabled.  See the info docs for examples.
16 Version beta 1.4q - August 2001, by Gary V. Vaughan
18 * Support for the experimental `changeword' has been dropped.
20 * `m4 --hashsize' and `-H' are still accepted, but have no effect.  M4
21   will grow its internal symbol table if the symbol density is having
22   an effect on performance.
24 * `configure --without-modules' will build an m4 binary with no preloaded
25   modules.  At startup it will search for and load modules `m4' and either
26   `gnu' or `traditional'.  This mode of operation can be used for
27   development and debugging of the base modules without the need to
28   recompile all of m4 with each modification.
30 * `configure --with-modules="gnu m4 traditional load"', for example,
31   will build an m4 binary with the named modules preloaded, ready to
32   be activated (even on static lib only machines) with the `-m' option
33   or using the `load' builtin.
35 * M4 has no builtins or macros in core, they are all loaded from modules
36   at startup.  This means that modules are no longer optional, though
37   the standard build will statically link the modules `m4', `gnu' and
38   `traditional', so even on machines with no ltdl support, all of the
39   functionality from previous releases is available.
41 * New builtin `load' to dynamically load modules which can define new
42   builtins and user macros.
44 * New builtin `unload' to remove loaded modules (and the builtins and user
45   macros they define) from the running m4 interpreter.
47 * New builtins `eregexp' and `epatsubst' to use Extended Regular Expressions
48   syntax in lieu of Basic Regular Expressions as used by `regexp' and
49   `patsubst'.
51 * The names of all currently loaded modules are returned by the new
52   builtin, ``modules''.
54 * Loadable modules can define new builtin functions or text expansion
55   macros.
57 * The module code has been rewritten to use libltdl, the libtool dynamic
58   loader, which means GNU m4 can now load (and unload) modules just about
59   anywhere which it can be built.  This includes obscure hosts such as
60   cygwin and BeOS, and also on hosts which do not have shared libraries,
61   through preloading (see libtool manual) and GNU dld.
63 * Modules can now be built without the m4 source being available using the
64   installed m4module.h header file (and some other headers that it includes
65   for you), and the installed libm4.la libtool library.  All symbols
66   exported from libm4.la have a prefix of `m4_' or `M4_'.  See the modules
67   directory for examples of usage.
69 * A new V2 format for frozen files that saves module and syntax information.
71 Version beta 1.4o - January 2000, by Rene' Seindal
73 * Modules can be loaded from the command line with --load-module
75 * Modules now use libtool's wrapper libltdl.
77 * Bug fixes.
79 Version beta 1.4n - November 1998, by Rene' Seindal
81 * The module code has been reorganised yet again, and now compiles
82   correctly on GNU/Linux, HPUX 9 and 10, SunOS 5 and Solaris 5.
84 * When configured --with-gmp a new builtin `mpeval' is now defined.  The
85   builtin `eval' retains its normal behaviour.
87 * m4 --version also shows which options were used for compilation, such as:
88   "GNU m4 1.4n (options: modules gmp changeword)"
90 * New option --import-environment defines all environment variables as
91   macros.  This is done before -D and -U are handled, so the macros can be
92   changed through these options.
94 * Error messages now always print program name before input file name as
95   specified by GNU coding standards.  Reported by Akim Demaille
96   <demaille@inf.enst.fr>.
98 * Bug fixed: "undivert(0)" could cause m4 to read standard output.  A call
99   of "undivert(0)" is now silently ignored.
101 * Bug fixed: when compiling --with-included-gettext, <libintl.h> wasn't
102   found in intl/ directory.  Reported by Andrew Bettison
103   <andrewb@zip.com.au>.
105 Version beta 1.4m - November 1998, by Rene' Seindal
107 * Using libtool for compiling modules and for linking main app.
109 * Reorganised the dynamic module code to encapsulate system dependencies
110   better.  The code for HPUX shl_load() still needs testing and debugging.
111   A dld interface is also missing.  Any volunteers?
113 * The files from the GNU m4 web-site is now in examples/WWW as a more
114   complete example of what GNU m4 can do.
116 Version beta 1.4l - November 1998, by Rene' Seindal
118 * GNU m4 now has an escape syntax category.  If a character is marked as
119   an escape, words are only recognised as macros if preceded by an escape
120   character.  It is a bit like -P, but dynamic: it can be turned on and
121   off.  The GNU m4 web-site on http://www.seindal.dk/rene/gnu/ is
122   maintained with this feature - the m4 source is available on the site.
124 * The module interface is improved, thanks to "Brian J. Fox"
125   <bfox@datawave.net>, who have contributed some code from Meta-HTML.  The
126   modules now build automatically and installs properly, by default in
127   /usr/local/libexec/m4.  There is a preliminary, untested support for
128   shl_load().
130 * There is now a __m4_version__ macro that expands to the current version
131   number.
133 Version beta 1.4k - November 1998, by Erick Branderhorst and Rene' Seindal
135 * GNU m4 now uses gettext to support internationalization.
137 * GNU m4 now uses automake to control Makefile.in generation.  This
138   should make it more consistent with the GNU standards.
140 * GNU m4 will use the gmp library for multiple precision integral and
141   rational arithmetic in `eval' if configured with `--with-gmp'.  If
142   configured without `--with-gmp' or if gmp is not available, and the type
143   `long long int' is, GNU m4 will use that for `eval' arithmetic.
145 * GNU m4 now parses the input according to a syntax table, that can be
146   modified through the new builtin `changesyntax'.  It is a generalisation
147   of the existing builtins `changecom' and `changequote'.  The changes are
148   completely backwards compatible (except for the existence of
149   `changesyntax').
151 * Sync lines can be turned on and off with the `syncoutput' builtin.  The
152   builtin `syncoutput' is a GNU extension.
154 * New experimental feature: dynamically loadable modules.  New builtin
155   `loadmodules' loads shared libraries, that can define new builtin
156   macros, ie, new macros can be written in C.  Depends on the dlopen()
157   interface, and is currently only tested on Linux.  Enabled at configure
158   time with `--with-modules'.  Documentation is in src/module.c and
159   module/README.
161 * Implement a GNU message catalog for French (Franc,ois Pinard).
163 * Filenames found through path searches are now correctly reflected in
164   error and debug messages and through the `__file__' macro.
166 Bugs fixed
168 * All 8-bit characters can now be used for quotes.
171 Version 1.4 - October 1994, by Franc,ois Pinard
173 (No user visible changes)
176 Version 1.3 - September 1994, by Franc,ois Pinard
178 * Diversions are created as needed.  Option `-N' is still accepted, but
179 otherwise ignored.  Users should use only negative diversion numbers,
180 instead of high positive numbers, for diverting to nowhere.
182 * Diversions should also work faster.  No temporary files will be needed
183 at all if all diversions taken altogether do not use more than 512K.
185 * Frozen state files may be produced with the `--freeze-state' (-F)
186 option and later brought back through the `--reload-state' (-R) option.
189 Version 1.2 - July 1994, by Franc,ois Pinard
191 * In patsubst(STRING, REGEXP, REPLACEMENT), \& in REPLACEMENT has been
192 changed to represent this part of STRING matched by the whole REGEXP,
193 instead of the whole STRING as before.  \0 does the same, but emits a
194 diagnostic saying it will disappear in some subsequent release.
196 * eval(EXPR) emits a diagnostic if EXPR has suffixed crumb.  The same for
197 other numeric conversions in incr(), decr(), divert(), etc.
199 * `--fatal-warnings' (-E) stops execution at first warning.
201 * `--nesting-limit=LEVEL' (-L LEVEL) sets a limit to macro nesting.
202 It is initially fixed at 250.
204 * `--word-regexp=REGEXP' (-W REGEXP) modifies macro name syntax, like
205 does the new `changeword(REGEXP)' macro.  This feature is experimental,
206 tell me your opinions about it.  You do need --enable-changeword at
207 configure time to get these things.  Do *not* depend on them yet.
209 * Trace output format is scannable by GNU Emacs' next-error function.
211 * Stack overflow is detected and diagnosed on some capable systems.
213 * Various bugs have been corrected, m4 should be more portable.  See the
214 ChangeLog for details.
217 Version 1.1 - November 1993, by Franc,ois Pinard
219 Changes which might affect existing GNU m4 scripts:
221 * Option `-V' has been removed, use `--version' instead.  `--version'
222 writes on standard output instead of standard error, and inhibits any
223 script execution.
225 * `--no-gnu-extensions' has been renamed `--traditional'.
227 * In `eval', `^' used to indicate exponentiation, use `**' instead.
229 * The automatic undiversion which takes place at end of all input is
230 forced into the main output stream.
232 Changes which are unlikely to affect existing scripts:
234 * `--help' prints an usage summary on standard output.  Script execution
235 is then inhibited.
237 * `--prefix-builtins' (-P) prefixes all builtin macros by `m4_'.
239 * Most builtin macros for which arguments are mandatory, called without
240 any arguments, are no more recognized as builtin macros: they are
241 consequently copied verbatim to the output stream.
243 * `define' and `pushdef' are usable with only one argument, they give
244 this argument an empty definition.
246 * `eval' new operators for binary representation handling: `^' for
247 exclusive-or, `~' for the bitwise negation, `<<' and `>>' for shifts.
249 * `eval' recognizes the notation 0bDIGITS for binary numbers and the
250 notation 0rRADIX:DIGITS for numbers in any radix from 1 to 36.
252 Version 1.0.3 - December 1992, by Franc,ois Pinard
254 Changes for the user:
256 * `dnl' outputs a diagnostic if immediately followed by `('.  Usually,
257 `dnl' is followed by newline or whitespace.
259 * `ifelse' accepts without complaining the common idiom of having only
260 one argument.  This is useful for introducing long comments.
262 * `eval' always expresses values as signed, whatever the radix.
264 * M4OPTS environment variable is no longer obeyed.
266 * `--no-warnings' option is renamed `--silent'.
268 * Debug lines use a new format more compatible with GNU standards.
270 * Various bugs have been corrected.  See the ChangeLog for details.
272 Changes for the installer:
274 * GNU m4 now uses an Autoconf-generated configure script, and should be
275 more easily portable in many ways.  (Cray is not supported yet).
277 * `make check' has been made more portable, expect no errors.
279 Changes for the programmer:
281 * Sources have been fully reindented to comply with GNU standards, and
282 cleaned up in many ways.
284 * Sources have been protoized.  Non-ANSI compilers are automatically
285 detected, then sources are unprotoized on the fly before compilation.
287 * GNU m4 uses newer versions of obstack, regex, getopt, etc.
289 Version 1.0 - October 1991, by Rene' Seindal
291 * Uses GNU configure, taken from the gdb distribution.
293 * Uses GNU getopt(), with long option names.
295 * The -Q/+quiet option is added, which suppresses warnings about missing
296 or superflous arguments to builtin macros.
298 * Added default options via the M4OPTS environment variable.
300 * Several minor bugs have been fixed.
302 Version 0.99 - July 1991, by Rene' Seindal
304 * The builtins `incr' and `decr' are now implemented without use of
305 `eval'.
307 * The builtin `indir' is added, to allow for indirect macro calls
308 (allows use of "illegal" macro names).
310 * The debugging and tracing facilities has been enhanced considerably.
311 See the manual for details.
313 * The -tMACRO option is added, marks MACRO for tracing as soon as it
314 is defined.
316 * Builtins are traced after renaming iff they were before.
318 * Named files can now be undiverted.
320 * The -Nnum option can be used to increase the number of divertions
321 available.
323 * Calling changecom without arguments now disables all comment handling.
325 * A bug in `dnl' is fixed.
327 * A bug in the multi-character quoting code is fixed.
329 * Several typos in the manual has been corrected.  More probably persist.
331 Version 0.75 - November 1990, by Rene' Seindal
333 * Implemented search path for include files (-I option and M4PATH
334 environment variable).
336 * Implemented builtin `format' for printf-like formatting.
338 * Implemented builtin `regexp' for searching for regular expressions.
340 * Implemented builtin `patsubst' for substitution with regular
341 expressions.
343 * Implemented builtin `esyscmd', which expands to a shell commands output.
345 * Implemented `__file__' and `__line__' for use in error messages.
347 * Implemented character ranges in `translit'.
349 * Implemented control over debugging output.
351 * Implemented multi-character quotes.
353 * Implemented multi-character comment delimiters.
355 * Changed predefined macro `gnu' to `__gnu__'.
357 * Changed predefined macro `unix' to `__unix__', when the -G option is
358 not used.  With -G, `unix' is still defined.
360 * Added program name to error messages.
362 * Fixed two missing null bytes bugs.
364 Version 0.50 - January 1990, by Rene' Seindal
366 * Initial beta release.
368 Local Variables:
369 fill-column: 75
370 End: