configury: improve dlsym underscore detection.
[m4/ericb.git] / README
blobd875011c1511961991f7da4fa7749e6d02cb9a69
1 GNU `m4' is an implementation of the traditional Unix macro
2 processor.  It is mostly SVR4 compatible, although it has some
3 extensions (for example, handling more than 9 positional parameters
4 to macros).  `m4' also has builtin functions for including files,
5 running shell commands, doing arithmetic, etc.  Autoconf needs GNU
6 `m4' for generating `configure' scripts, but not for running them.
8 GNU `m4' was originally written by Rene' Seindal, from Denmark.
10 GNU `m4' has a web site at http://www.gnu.org/software/m4/.
12 If GNU `m4' is meant to serve GNU `autoconf', beware that `m4'
13 should be fully installed *prior to* configuring `autoconf' itself.
14 Likewise, if you intend on hacking GNU `m4' from git, the bootstrap
15 process requires that you first install a released copy of GNU `m4'.
17 If you are just trying to build `m4' from a released tarball, you
18 should not normally need to run `./bootstrap' or `autoreconf'; just go
19 ahead and start with `./configure'.  If you are trying to build `m4'
20 from git, more information can be found in the version-control-only
21 file HACKING.
23 In the subdirectories `tests' and `doc/examples' you will find various
24 m4 files, ranging from trivial test files to rather advanced macros.  If
25 you intend to use m4 seriously, you might find useful material down
26 there.
28 See file `COPYING' for copying conditions.  Note that M4 is distributed
29 under the GNU Public License version 3 or later.  Some files in the
30 distribution are copied from the gnulib project, and hence bear the
31 designation version 2 or later because they are unmodified from gnulib;
32 however, if you modify these files using M4 rather than gnulib as the
33 source, you must update the license to be GPLv3 or later.
34 See file `INSTALL' for compilation and installation instructions.
35 See file `ABOUT-NLS' for how to customize this program to your language.
36 See file `NEWS' for a list of major changes in the current release.
37 See file `AUTHORS' for the names of maintainers.
38 See file `THANKS' for a list of contributors.
40 By using `./configure --with-gmp, you get multiple precision integral
41 and rational arithmetic using mpeval.  The implementation depends on the
42 GNU gmp v2 library.
44 By using `./configure --with-modules=`foo bar baz', you get an m4 with only
45 the named modules preloaded.  The default modules (preloaded if you do not
46 use this option) are sufficient to do the job of GNU m4-1.4.  Additional
47 modules may be desirable, or necessary if libltdl does not support your
48 host architecture.  The implementation uses libltdl interface, details of
49 which are in the libtool manual.  See file `modules/README' for a more
50 detailed description.
52 By default, the `syscmd' and `esyscmd' macros try to use the first
53 instance of `sh' found by `command -p getconf PATH' at configure time,
54 with a default of `/bin/sh'.  If that default is inappropriate, you
55 can use `./configure --with-syscmd-shell=location' to specify the
56 shell to use.
58 By using `./configure --with-dmalloc', GNU m4 is linked with Gray
59 Watson's dmalloc package.  It is a debugging option for finding memory
60 management problems.  Gray Watson's dmalloc package is available at
61 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz.
63 GNU M4 uses GNU Libtool in order to build shared libraries on a
64 variety of systems.  While this is very nice for making usable
65 binaries, it can be a pain when trying to debug a program. For that
66 reason, compilation of shared libraries can be turned off by
67 specifying the `--disable-shared' option to `configure'.  However,
68 without shared libraries, modules that are not preloaded will not be
69 available for use.
71 Send bug reports, comments or ideas to `bug-m4@gnu.org'.  A bug report
72 is an adequate description of the problem: your input, what you
73 expected, what you got, and why this is wrong.  Diffs are welcome, but
74 they only describe a solution, from which the problem might be uneasy to
75 infer.  Don't forget all relevant information about your operating
76 system, compiler, libraries, ...
78 The easiest way to remember this information is by using the
79 testsuite.  Any test failures are automatically logged, along with
80 lots of useful information about your setup; simply mailing
81 tests/testsuite.log to `bug-m4@gnu.org' is a good start.  If you want
82 to dive in and debug a failure, you may find it useful to fine-tune
83 the execution of the testsuite.  For example, running test 12 in
84 verbose mode can be done with:
86 make check TESTSUITEFLAGS='-v -d -x 12'
88 The testsuite understands --help to tell you more about the current
89 set of tests.
91 For any copyright year range specified as YYYY-ZZZZ in this package
92 note that the range specifies every single year in that closed interval.
94 ========================================================================
96 Copyright (C) 2000, 2005-2011, 2013-2014 Free Software Foundation, Inc.
98 Permission is granted to copy, distribute and/or modify this document
99 under the terms of the GNU Free Documentation License, Version 1.3 or
100 any later version published by the Free Software Foundation; with no
101 Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
102 Texts.  A copy of the license is included in the ``GNU Free
103 Documentation License'' file as part of this distribution.