Commit Graph

6009 Commits

Author SHA1 Message Date
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
Stefano Lattarini
d4fdf04459 Document Solaris/Heirloom sh set -e issue with command substitutions.
* doc/autoconf.texi (Limitations of Builtins): Fix typos `set -d'
in previous example.  Document failure to honor && lists with set -e
and a command substitution in the failing command.
Report and initial patch by Stefano Lattarini against Automake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-12-05 14:00:42 +01:00
Eric Blake
b4f0a5079d Warn if using unnamed diversion.
* lib/m4sugar/m4sugar.m4 (_m4_divert, m4_divert_push): Add
optional parameter, which controls warning.
(m4_divert_pop, m4_cleardivert, m4_divert_require)
(_m4_require_call): Adjust callers.
* lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
* tests/m4sh.at (AT_DATA_LINENO): Avoid triggering the warning.
* tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, m4@&t@_append)
(m4@&t@_text_wrap, recursion): Likewise.
(m4@&t@_warn, m4@&t@_divert_stack): Adjust expected output.
* tests/tools.at (autom4te and whitespace in file names)
(autoconf: the empty token): Avoid triggering the warning.
(autoconf: AC_PRESERVE_HELP_ORDER): New test.
* tests/mktests.sh (ac_exclude_list): Retire prior test.
* NEWS: Document the warning.
* doc/autoconf.texi (Redefined M4 Macros) <m4_divert>,
<m4_undivert>: Make even more explicit that using these directly
is discouraged.
(Diversion support): Further warn against improper diversion
changes.
<m4_divert_text>: Give an example of proper use.
Reported by Mike Frysinger.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-12-04 21:18:07 -07:00
Ralf Wildenhues
8edd55bbea manual: AC_SEARCH_LIBS also prepends to LIBS.
* doc/autoconf.texi (Libraries): Document that AC_SEARCH_LIBS
prepends to LIBS, just like AC_CHECK_LIB.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-11-30 21:37:00 +01:00
Paolo Bonzini
4a814e40ee Bump m4.m4 serial number.
* m4/m4: Bump serial number to 10.
2009-11-27 15:17:29 +01:00
Harald van Dijk
7f75858f57 Fix m4 detection test on dash.
* m4/m4 (AC_PROG_GNU_M4): Use AS_ECHO.
2009-11-27 11:54:07 +01:00
Ralf Wildenhues
119e8f8a2d Fix AC_FUNC_MMAP regression with C++ compiler in 2.65.
* lib/autoconf/functions.m4 (AC_FUNC_MMAP): Use const char*
for the constant string.  Cast void* to char* for assignment.
* NEWS, THANKS: Update.
Report by Michal Čihař.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-11-24 11:36:53 +01:00
Ralf Wildenhues
5372e97391 Add pgfortran to list of Fortran 95+ compilers.
* lib/autoconf/fortran.m4 (_AC_F95_FC): Add pgfortran before
pgf95.
Based on report by Jeff Squyres.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-11-24 11:13:47 +01:00
Paolo Bonzini
6e39718f9e Fix failure of test 35 when the user has a .autom4te.cfg file.
* tests/tools.at (autom4te cache creation): Skip the test if the
user has a .autom4te.cfg file.
2009-11-22 18:41:29 +01:00
Eric Blake
ba59c324a2 ./.prev-version: Record previous version: 2.65. 2009-11-21 07:35:34 -07:00
Eric Blake
a352bb1568 Release Version 2.65.
* NEWS: Mention the release.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-11-21 06:53:03 -07:00
Eric Blake
1d1145256a Prepare for release.
* build-aux/announce-gen: Sync from upstream.
* build-aux/config.guess: Likewise.
* build-aux/config.sub: Likewise.
* cfg.mk (gnu_rel_host, url_dir_list): Move...
* maint.mk: ...here, copying ideas from gnulib.
(major): Rename...
(stable): ...to this, copying gnulib.
* HACKING (release): Document changes in process.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-11-21 06:52:48 -07:00
Eric Blake
f6ae910220 Avoid spurious newline in traced macros.
* bin/autoreconf.in (tracing): Drop newline before parsing traced
arguments; regression from 2009-11-14.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-11-21 06:46:24 -07:00
Eric Blake
d1af860e3f Allow absolute names in AT_TESTED.
* lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Check for
absolute names before path walk.
* THANKS: Update.
Suggested by Allan Clark.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-11-20 15:29:38 -07:00
Ralf Wildenhues
8733bad075 Fix AC_CONFIG_SUBDIRS tracing in autoreconf.
* bin/autoreconf.in (autoreconf_current_directory): Collapse
newlines in the autoconf trace output, similar to how automake
invokes autoconf, so that newlines do not matter in the argument
to AC_CONFIG_SUBDIRS.
* tests/torture.at (Deep Package): Expose this issue in the
test.
* THANKS: Update.
Report by Nathan Schulte.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-11-14 14:18:48 +01:00
Eric Blake
19629fa9fc Fix AC_FUNC_MMAP for cygwin.
* lib/autoconf/functions.m4 (AC_FUNC_MMAP): Make the test more
portable: Actually check for <sys/param.h>, and only use MAP_FIXED
on an address previously returned from mmap.
* THANKS: Update.
Reported by Corinna Vinschen.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-11-09 21:46:30 -07:00
Eric Blake
9d6e4a750d Redocument AS_DIRNAME, even with its flaws.
* doc/autoconf.texi (Common Shell Constructs) <AS_DIRNAME>:
Restore documenatation, since dirname mentions it.
Reported by Peter Johansson.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-11-04 19:44:38 -07:00
Eric Blake
cda3ab518c Update upstream files.
* build-aux/announce-gen: Synchronize from upstream.
* build-aux/config.guess: Likewise.
* build-aux/config.sub: Likewise.
* build-aux/gendocs.sh: Likewise.
* build-aux/git-version-gen: Likewise.
* build-aux/texinfo.tex: Likewise.
* build-aux/update-copyright: Likewise.
* doc/standards.texi: Likewise.
* lib/Autom4te/Channels.pm: Likewise.
* lib/Autom4te/Configure_ac.pm: Likewise.
* lib/Autom4te/FileUtils.pm: Likewise.
* lib/Autom4te/Struct.pm: Likewise.
* lib/Autom4te/XFile.pm: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-11-04 19:38:49 -07:00
Ralf Wildenhues
7bfadd4153 Coverage for autom4te cache creation issues.
* tests/tools.at (autom4te cache creation): New test.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-11-04 19:42:58 +01:00
Ralf Wildenhues
1e90a10dbc Fix testsuite failures with SHELL=zsh.
* tests/statesave.m4 (AC_STATE_SAVE): Ignore argv and ARGC when
comparing configure variables.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-11-03 22:06:12 +01:00
Eric Blake
e92bd133de Update NEWS for recent fixes.
* NEWS: Add some entries.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-11-03 06:23:50 -07:00
Ralf Wildenhues
096220df5d Micro-optimization of config.status substitution.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): No need to
concatenate an empty second string, when we have exactly 148
characters to substitute.
* tests/torture.at (Substitute a 2000-byte string): Add test
exposure for runs of backslashes near the 148 character limit.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-11-01 01:04:31 +01:00
Ralf Wildenhues
0d37b401f1 Fix testsuite failure on AIX 4.3.3.
* lib/autoconf/general.m4 (_AC_RUN_LOG_LIMIT): Remove conftest.err
also if it is empty.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-11-01 01:03:21 +01:00
Ralf Wildenhues
c78135a4de Fix testsuite failure on IRIX and AIX.
* tests/torture.at (Substitute and define special characters):
Double the backslash before the double-quote in
AC_DEFINE_UNQUOTED, as documented for here-documents.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-11-01 01:02:18 +01:00
Ralf Wildenhues
5f17d8f0d3 Fix AC_OPENMP configure message for non-C compilers.
* lib/autoconf/lang.m4 (AC_LANG_DEFINE): Accept as additional
fourth arg the compiler variable name, defined in _AC_CC($1).
(_AC_CC): New language dispatch macro.
* lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Adjust.
* lib/autoconf/fortran.m4 (AC_LANG(Fortran 77), AC_LANG(Fortran)):
Likewise.
* lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++))
(AC_LANG(Objective C), AC_LANG(Objective C++)): Likewise.
(AC_OPENMP): Use _AC_CC instead of $CC.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-10-31 16:01:04 +01:00
Eric Blake
8acd974e1a Fix cross-manual link to gcc.
* doc/autoconf.texi (Portable C and C++): Provide uref rather than
xref when building for html.
Reported via Karl Berry.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-10-31 06:57:46 -06:00
Eric Blake
97b31bcd0d Update authors.
* AUTHORS: Document recent copyright assignments.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-10-31 06:39:49 -06:00
Ralf Wildenhues
9c23356619 Do not fail OpenMP tests on systems without aclocal.
* tests/c.at (AC_OPENMP and C, AC_OPENMP and C++): Override
`ACLOCAL=true' for autoreconf, the tests don't need aclocal.
* tests/fortran.at (AC_OPENMP and Fortran 77)
(AC_OPENMP and Fortran): Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-10-31 08:46:58 +01:00
Bruno Haible
d2fb059fd3 Improve cache variable documentation.
* doc/autoconf.texi (AC_PROG_AWK, AC_PROG_GREP, AC_PROG_EGREP,
AC_PROG_FGREP, AC_PROG_INSTALL, AC_PROG_MKDIR_P, AC_PROG_LEX,
AC_PROG_YACC, AC_CHECK_PROG, AC_CHECK_PROGS, AC_PATH_PROG,
AC_PATH_PROGS): Don't suggest to use the cache variable, only to
override it, or preferably, a non-cache variable associated with
the test.
(AC_PROG_SED): Likewise. Fix name of cache variable.
(AC_FUNC_GETMNTENT): Fix name cache variable.
(AC_FUNC_LSTAT): Fix typo.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-10-31 07:56:53 +01:00