Commit Graph

6237 Commits

Author SHA1 Message Date
Joel James Adamson
df346df6a0 Add a paragraph to FAQ on Debugging configure scripts.
* doc/autoconf.texi (Debugging): Mention inspecting config.log.
* THANKS: Update.

Signed-off-by: Eric Blake <eblake@redhat.com>
2010-04-22 11:57:25 -06:00
Mike Frysinger
f2298ccb8f manual: fix minor typo in AC_CONFIG_SUBDIRS example
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-04-21 08:03:56 -06:00
Eric Blake
456953a61b Fix m4_cr_all for EBCDIC.
* lib/m4sugar/m4sugar.m4 (m4_cr_all): Swap * and $, so that we
don't end up with $* in EBCDIC.
* NEWS: Document the fix.
* THANKS: Update.
Reported by Steve Goetze.

Signed-off-by: Eric Blake <eblake@redhat.com>
2010-04-05 08:06:17 -06:00
Ralf Wildenhues
c22b5e03a9 Do not use @acronym in the manual.
* doc/autoconf.texi: Remove all usage of @acronym.
Suggested by Karl Berry.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-03-28 17:55:44 +02:00
Ralf Wildenhues
6bfa3fe3e0 Do not use @sc in the manual.
* doc/autoconf.texi: Remove all usage of @sc in the manual.
Suggested by Karl Berry.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-03-28 17:54:39 +02:00
Ralf Wildenhues
80019ca5bd Fix wrong comment in testsuite.
* tests/m4sugar.at (m4@&t@_warn): Remove copy&pasted comment.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-03-12 07:02:48 +01:00
Ralf Wildenhues
e8069104ae Formatting cleanups in macro comments.
For a list of candidate unaligned underlines, use this script:

for f in `git ls-files`; do
  awk '{ len[NR] = length($0) }
       /----*/ && len[NR-1] != 0 {
         if (len[NR-1] != len[NR])
           print FILENAME ":" NR ":" $0
       }' $f
done

* lib/autoconf/c.m4, lib/autoconf/erlang.m4,
lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
lib/autoconf/general.m4, lib/autoconf/lang.m4,
lib/autoconf/programs.m4, lib/autoconf/specific.m4,
lib/autoconf/status.m4, lib/autoconf/types.m4,
lib/autotest/general.m4, lib/autotest/specific.m4,
lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4,
tests/autotest.at, tests/local.at, tests/m4sh.at,
tests/semantics.at, tests/tools.at, tests/torture.at: Fix macro
comment format.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-03-12 06:58:46 +01:00
Ralf Wildenhues
07156c06ae manual: index strings containing colon in non-info outputs.
* doc/autoconf.texi (Quadrigraphs, Shell Substitutions): Produce
index entries for concepts containing a colon in output formats
other than info.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-03-06 00:09:52 +01:00
Ralf Wildenhues
eb3ce30632 Update copyright years for files generated by mktests.sh.
* tests/mktests.sh: Update copyright years for generated files.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-03-06 00:08:58 +01:00
Eric Blake
d93bd4bfbb Document AC_LANG_CONFTEST semantic change.
* doc/autoconf.texi (Generating Sources) <AC_LANG_CONFTEST>:
Enhance documentation, to show that semantic change in 2.63b was
intentional.
* THANKS: Update.
Reported by Brian J. Murrell, analyzed by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
2010-03-04 08:58:51 -07:00
Peter Johansson
2f018ebb04 Autoconf Macro Archive URL has changed.
* doc/autoconf.texi (Introduction, Coding Style, Defining
Directories): The Autoconf Macro Archive is officially `GNU'.
Update URL.

Signed-off-by: Eric Blake <eblake@redhat.com>
2010-03-04 08:54:32 -07:00
Eric Blake
d174a5362e Fix shell code in AS_TR_SH documentation.
* doc/autoconf.texi (Common Shell Constructs) <AS_TR_SH>: Fix
example to expand to valid shell code.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
2010-03-02 15:39:58 -07:00
Eric Blake
026070fea8 Improve documentation on AC_{COMPILE,LINK}_IFELSE.
* doc/autoconf.texi (Running the Compiler): Mention that the
object file is available after a successful compile.
(Running the Linker): Likewise for the linker output.
Suggested by Paolo Bonzini.

Signed-off-by: Eric Blake <eblake@redhat.com>
2010-03-02 14:32:07 -07:00
Eric Blake
dcd879464e Fix typo in docs.
* doc/autoconf.texi (Conditional constructs) <m4_ifblank>: Fix
typo.

Signed-off-by: Eric Blake <eblake@redhat.com>
2010-03-02 14:31:09 -07:00
Ralf Wildenhues
cffdc39470 Fix AS_ERROR for FreeBSD sh.
* lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): Rewrite as_fn_error
to take additional first argument STATUS instead of transporting
$? across shell function entry, which does not work with FreeBSD
sh.  Shift all other arguments by one, adjust.
(AS_ERROR): Pass EXIT-STATUS, defaulting to $?, to as_fn_error.
Report by Václav Haisman.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-03-02 20:19:32 +01:00
Ralf Wildenhues
c5f58b373f Fix `autom4te cache creation' testsuite failure on FreeBSD.
* tests/tools.at (autom4te cache creation): Normalize exit
status of failed redirection to 1, may be 2 with FreeBSD sh.
* THANKS: Update.
Report by Václav Haisman.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-03-02 07:50:19 +01:00
Ralf Wildenhues
475ccc750c Fix Autotest tracing of shell pipelines for FreeBSD sh.
* lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Do not trace
commands that contain [^|]|[^|], a likely shell pipeline.
* tests/local.at (_AT_CHECK_ENV): Turn off tracing for egrep |
grep pipeline.
* doc/autoconf.texi (File Descriptors): Document limitation.
* tests/autotest.at (Trace output): New test.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-03-02 07:48:42 +01:00
Eric Blake
346e5876eb Update file flow diagram to mention Automake.
* doc/autoconf.texi (Making configure Scripts): Avoid confusion
with listing Makefile.in twice on one line.  Add a diagram showing
how automake fits into the picture.
Reported by santilín.

Signed-off-by: Eric Blake <eblake@redhat.com>
2010-03-01 10:56:06 -07:00
Eric Blake
b4d3a51a96 Optimize AC_REPLACE_FUNCS.
* lib/autoconf/functions.m4 (_AC_REPLACE_FUNC): New helper macro.
(AC_REPLACE_FUNCS): Use it to reduce forks when checking for
replacements, by using literal rather than shell variable.

Signed-off-by: Eric Blake <eblake@redhat.com>
2010-02-26 16:18:52 -07:00
Eric Blake
534a64aef3 Document how to safely override CFLAGS default.
* doc/autoconf.texi (C Compiler) <AC_PROG_CC>: Document a way to
change the default CFLAGS.
(C++ Compiler) <AC_PROG_CXX>: Likewise, for CXXFLAGS.
Reported by Monty Taylor; wording suggested by Paolo Bonzini.

Signed-off-by: Eric Blake <eblake@redhat.com>
2010-02-26 10:00:45 -07:00
Eric Blake
41ec811b56 Document that Autoconf relies on IFS.
* doc/autoconf.texi (Special Shell Variables) <IFS>: Add details
about use of IFS within configure script.
* THANKS: Update.
Reported by Arkadiusz Miskiewicz.

Signed-off-by: Eric Blake <eblake@redhat.com>
2010-02-26 09:48:24 -07:00
Eric Blake
4a8168ae1e Recommend latest m4 release.
* README: Bump recommendation to m4 1.4.14 (minimum remains
1.4.6).
* doc/autoconf.texi (Introduction): Likewise.
* m4/m4.m4 (AC_PROG_GNU_M4): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
2010-02-26 09:47:10 -07:00
Ralf Wildenhues
d8004ca5f5 Fix testsuite failures due to setting of $U.
* tests/local.at (_AT_CHECK_ENV): Ignore setting of $U.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-02-23 06:53:09 +01:00
Eric Blake
64deec9dfb Avoid uninitialized use of $U.
Automake sets up $U in AM_C_PROTOTYPES, but we can't assume that
automake is always in use.

* lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Ensure $U is
set if automake did not define it.
* THANKS: Update.
Reported by Heiko Schlichting, via Julien Élie.

Signed-off-by: Eric Blake <ebb9@byu.net>
2010-02-10 06:47:28 -07:00
Ralf Wildenhues
a2889ee464 Fix substitution of carriage return on Darwin.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Set
ac_cs_awk_cr to '\\r', so that sed portably expands this to '\r'
rather than a literal carriage return, to fix substitution on
Darwin.  Regression introduced in 2.63b.
Report by Peter O'Gorman.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-01-24 09:33:25 +01:00
Dmitry V. Levin
7dbbe5693d Fix test failure when a shell uses $TMPDIR for here-documents.
* tests/tools.at (autotools and whitespace in file names): Create
$TMPDIR before potential use like in other whitespace tests.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Eric Blake <ebb9@byu.net>
2010-01-21 06:38:51 -07:00
Paolo Bonzini
e51c9919f2 Add recommendation on (not) unsetting IFS.
* doc/autoconf.texi (Special shell variables): Explain why it's
better not to unset IFS.
2010-01-21 12:16:42 +01:00
Ralf Wildenhues
57b9bc399f config.status: consistent exit status with nonexistent config file input.
* lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Ensure we
exit with status 1 rather than with that of 'false', for
reproducibility.
(AC_OUTPUT): Ensure to exit 1 in case of config.status failure.
* tests/torture.at (Missing templates): Also test code path
for $srcdir != '.'.
Report by Tim Rice.
2010-01-19 07:28:48 +01:00
Eric Blake
56f5b9bc6a Fix previous example.
* doc/autoconf.texi (Here-Documents): Touch up the example to
match output to sample command line.

Signed-off-by: Eric Blake <ebb9@byu.net>
2010-01-14 06:55:49 -07:00
Eric Blake
f4fc1ad9bb Document here-doc pitfall.
* doc/autoconf.texi (Here-Documents): Mention problem with <<-
operator.
Reported by Jim Meyering.

Signed-off-by: Eric Blake <ebb9@byu.net>
2010-01-13 06:10:31 -07:00
Eric Blake
a21c6c2ea6 Typo fix in earlier commit.
* doc/autoconf.texi (Autoconf Language): Fix typo.

Signed-off-by: Eric Blake <ebb9@byu.net>
2010-01-12 20:52:31 -07:00
Ralf Wildenhues
957768d52d Allow AC_FUNC_MKTIME to work with C++.
* lib/autoconf/functions.m4 (AC_FUNC_MKTIME): ANSIfy KnR function
definitions.  Use `const char*' for character literals; cast them
to `char*' for putenv.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-01-12 19:43:04 +01:00
Ralf Wildenhues
9795fe906c Export AUTOM4TE in tests/atlocal.in, for aclocal.
* tests/atlocal.in: Set and export $AUTOM4TE, for aclocal.
Report by Tim Rice.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-01-12 19:42:00 +01:00
Eric Blake
d99296e426 Make autotest example act better with automake.
* doc/autoconf.texi (Making testsuite Scripts): Rely on automake
feature for recommended autotest snippet, following our own use.

Signed-off-by: Eric Blake <ebb9@byu.net>
2010-01-08 14:35:54 -07:00
Eric Blake
ed2446ed30 Clarify language on handling of opening parenthesis.
* doc/autoconf.texi (Autoconf Language): Give an example of
improper argument passing.
* THANKS: Update.
Reported by Juan Carlos Hurtado.

Signed-off-by: Eric Blake <ebb9@byu.net>
2010-01-08 14:34:54 -07:00
Ralf Wildenhues
87ccb0b79c Don't fail autom4te preselection test due to different Automake.
* tests/tools.at (autom4te preselections): If the cache test
fails, extract the Automake version from the toplevel
Makefile.in file of the source tree; skip, rather than fail
the test group if the automake program has a different version.
* THANKS: Update.
Report by Dieter Jurzitza, fix suggested by Eric Blake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-01-06 20:26:04 +01:00
Peter Breitenlohner
13e3570bc9 Fix AC_CONFIG_LINKS to generated files when srcdir is absolute.
* lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Check $ac_source,
not $srcdir, for being relative or absolute.
* tests/torture.at (AC_CONFIG_LINKS): New test.
(AC_CONFIG_LINKS and identical files): Extend test, avoid some
forks.
Report, patch and testcase example by Peter Breitenlohner.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-01-06 20:14:53 +01:00
Eric Blake
acf0439102 Improve release automation.
* maint.mk (gnulib_dir, gnulib-version, bootstrap-tools)
(announcement): Copy from latest gnulib maint.mk.
* cfg.mk (announce_gen, gpg_key_ID): Delete.
(bootstrap-tools): Override the default.

Signed-off-by: Eric Blake <ebb9@byu.net>
2010-01-05 21:31:32 -07:00
Eric Blake
2b43774de1 Update upstream files.
* GNUmakefile: Update via 'make fetch'.
* build-aux/announce-gen: Likewise.
* build-aux/config.guess: Likewise.
* build-aux/config.sub: Likewise.
* build-aux/gendocs.sh: Likewise.
* build-aux/gnupload: Likewise.
* build-aux/move-if-change: Likewise.
* build-aux/update-copyright: Likewise.
* build-aux/vc-list-files: Likewise.
* doc/standards.texi: Likewise.
* cfg.mk (update-copyright-env): Enforce wrap column.

Signed-off-by: Eric Blake <ebb9@byu.net>
2010-01-05 21:13:38 -07:00
Eric Blake
b95a1aea40 Update copyright year.
All files changed to add 2010, via 'make update-copyright'.

Signed-off-by: Eric Blake <ebb9@byu.net>
2010-01-05 20:59:55 -07:00
Bruno Haible
6c11abd6fc Improve documentation on Solaris tr bugs.
* doc/autoconf.texi (Limitations of Usual Tools) <tr>: Refine
description of NUL handling by Solaris tr.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-12-31 06:50:44 -07:00
Eric Blake
57aa091236 Another tr tweak.
* doc/autoconf.texi (Limitations of Usual Tools) <tr>: Clarify
previous commit.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-12-31 05:32:27 -07:00
Eric Blake
8c323c07b5 Improve documentation on tr portability.
* doc/autoconf.texi (Limitations of Usual Tools) <tr>: Refine
description of NUL handling.  Document set size issue.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-12-29 20:49:58 -07:00
Eric Blake
b562e95c9e Fix comment in AC_CHECK_DECLS.
* lib/autoconf/general.m4 (AC_CHECK_DECL): Document the includes
argument to the shell function.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-12-29 20:49:55 -07:00
Ralf Wildenhues
81074eaa20 Add testsuite exposure for shtool usage.
* tests/foreign.at (shtool): New test.
Report by Dmitry Grebeniuk.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-12-15 06:52:19 +01:00
Eric Blake
3fbac862d7 Improve wording about m4 quote characters.
* doc/autoconf.texi (Autoconf Language): Autoconf quote characters
come from m4sugar, not raw m4.
(Active Characters): Mention that it is m4sugar which changes
quotes from `' to [].
* THANKS: Update.
Suggested by Josef Vukovic.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-12-12 07:11:55 -07:00
Ralf Wildenhues
d30a7f6691 Revert "Improve AC_CONFIG_AUX_DIRS a bit." to fix shtool usage.
* lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Revert test for
shtool as install script.  Regression introduced in 2.64.
* NEWS, THANKS: Update.
Report by Dmitry Grebeniuk.

This reverts commit 93d9386de9.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-12-12 08:44:10 +01:00
Ralf Wildenhues
918c278978 Fix NEWS description for AC_FUNC_MMAP entry.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-12-09 19:53:47 +01:00
Ralf Wildenhues
83ee5bc460 Fix 2.64 AC_TYPE_INT*_T macro body text regression.
* lib/autoconf/types.m4 (_AC_TYPE_INT_BODY): Move helper enum
definition to prologue section, to avoid syntax error.
* NEWS, THANKS: Update.
Report by Pierre Ynard.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-12-09 19:53:46 +01:00
Paolo Bonzini
9900c34046 Fix `recursion' test failure.
* tests/m4sugar.at (recursion): Use empty diversion, not 0.
2009-12-09 10:23:16 +01:00