]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
15 years agoAdd testsuite exposure for shtool usage.
Ralf Wildenhues [Tue, 15 Dec 2009 05:52:19 +0000 (06:52 +0100)] 
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>
15 years agoImprove wording about m4 quote characters.
Eric Blake [Sat, 12 Dec 2009 14:03:46 +0000 (07:03 -0700)] 
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>
15 years agoRevert "Improve AC_CONFIG_AUX_DIRS a bit." to fix shtool usage.
Ralf Wildenhues [Sat, 12 Dec 2009 07:40:14 +0000 (08:40 +0100)] 
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 93d9386de9c1320afed43f1337ac5ddb2d2dcbb4.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix NEWS description for AC_FUNC_MMAP entry.
Ralf Wildenhues [Wed, 9 Dec 2009 18:53:20 +0000 (19:53 +0100)] 
Fix NEWS description for AC_FUNC_MMAP entry.

* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix 2.64 AC_TYPE_INT*_T macro body text regression.
Ralf Wildenhues [Wed, 9 Dec 2009 06:20:16 +0000 (07:20 +0100)] 
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>
15 years agoFix `recursion' test failure.
Paolo Bonzini [Wed, 9 Dec 2009 09:23:16 +0000 (10:23 +0100)] 
Fix `recursion' test failure.

* tests/m4sugar.at (recursion): Use empty diversion, not 0.

15 years agoDocument Solaris/Heirloom sh set -e issue with command substitutions.
Stefano Lattarini [Sat, 5 Dec 2009 11:56:30 +0000 (12:56 +0100)] 
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>
15 years agoWarn if using unnamed diversion.
Eric Blake [Wed, 25 Nov 2009 00:20:33 +0000 (17:20 -0700)] 
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>
15 years agomanual: AC_SEARCH_LIBS also prepends to LIBS.
Ralf Wildenhues [Mon, 30 Nov 2009 20:37:00 +0000 (21:37 +0100)] 
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>
15 years agoBump m4.m4 serial number.
Paolo Bonzini [Fri, 27 Nov 2009 14:17:29 +0000 (15:17 +0100)] 
Bump m4.m4 serial number.

* m4/m4: Bump serial number to 10.

15 years agoFix m4 detection test on dash.
Harald van Dijk [Fri, 27 Nov 2009 10:54:07 +0000 (11:54 +0100)] 
Fix m4 detection test on dash.

* m4/m4 (AC_PROG_GNU_M4): Use AS_ECHO.

15 years agoFix AC_FUNC_MMAP regression with C++ compiler in 2.65.
Ralf Wildenhues [Tue, 24 Nov 2009 10:36:53 +0000 (11:36 +0100)] 
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>
15 years agoAdd pgfortran to list of Fortran 95+ compilers.
Ralf Wildenhues [Tue, 24 Nov 2009 10:13:47 +0000 (11:13 +0100)] 
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>
15 years agoFix failure of test 35 when the user has a .autom4te.cfg file.
Paolo Bonzini [Sun, 22 Nov 2009 17:41:11 +0000 (18:41 +0100)] 
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.

15 years ago./.prev-version: Record previous version: 2.65.
Eric Blake [Sat, 21 Nov 2009 14:35:34 +0000 (07:35 -0700)] 
./.prev-version: Record previous version: 2.65.

15 years agoRelease Version 2.65. v2.65
Eric Blake [Sat, 21 Nov 2009 13:19:57 +0000 (06:19 -0700)] 
Release Version 2.65.

* NEWS: Mention the release.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoPrepare for release.
Eric Blake [Sat, 21 Nov 2009 13:17:49 +0000 (06:17 -0700)] 
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>
15 years agoAvoid spurious newline in traced macros.
Eric Blake [Sat, 21 Nov 2009 13:36:35 +0000 (06:36 -0700)] 
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>
15 years agoAllow absolute names in AT_TESTED.
Eric Blake [Fri, 20 Nov 2009 22:19:50 +0000 (15:19 -0700)] 
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>
15 years agoFix AC_CONFIG_SUBDIRS tracing in autoreconf.
Ralf Wildenhues [Sat, 14 Nov 2009 11:40:07 +0000 (12:40 +0100)] 
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>
15 years agoFix AC_FUNC_MMAP for cygwin.
Eric Blake [Tue, 10 Nov 2009 04:45:00 +0000 (21:45 -0700)] 
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>
15 years agoRedocument AS_DIRNAME, even with its flaws.
Eric Blake [Thu, 5 Nov 2009 02:44:38 +0000 (19:44 -0700)] 
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>
15 years agoUpdate upstream files.
Eric Blake [Thu, 5 Nov 2009 02:38:49 +0000 (19:38 -0700)] 
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>
15 years agoCoverage for autom4te cache creation issues.
Ralf Wildenhues [Wed, 4 Nov 2009 18:42:58 +0000 (19:42 +0100)] 
Coverage for autom4te cache creation issues.

* tests/tools.at (autom4te cache creation): New test.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix testsuite failures with SHELL=zsh.
Ralf Wildenhues [Tue, 3 Nov 2009 21:06:12 +0000 (22:06 +0100)] 
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>
15 years agoUpdate NEWS for recent fixes.
Eric Blake [Tue, 3 Nov 2009 13:23:50 +0000 (06:23 -0700)] 
Update NEWS for recent fixes.

* NEWS: Add some entries.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoMicro-optimization of config.status substitution.
Ralf Wildenhues [Sun, 1 Nov 2009 00:04:31 +0000 (01:04 +0100)] 
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>
15 years agoFix testsuite failure on AIX 4.3.3.
Ralf Wildenhues [Sat, 31 Oct 2009 16:24:05 +0000 (17:24 +0100)] 
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>
15 years agoFix testsuite failure on IRIX and AIX.
Ralf Wildenhues [Sat, 31 Oct 2009 16:04:38 +0000 (17:04 +0100)] 
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>
15 years agoFix AC_OPENMP configure message for non-C compilers.
Ralf Wildenhues [Sat, 31 Oct 2009 08:20:10 +0000 (09:20 +0100)] 
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>
15 years agoFix cross-manual link to gcc.
Eric Blake [Sat, 31 Oct 2009 12:57:46 +0000 (06:57 -0600)] 
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>
15 years agoUpdate authors.
Eric Blake [Sat, 31 Oct 2009 12:39:49 +0000 (06:39 -0600)] 
Update authors.

* AUTHORS: Document recent copyright assignments.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoDo not fail OpenMP tests on systems without aclocal.
Ralf Wildenhues [Sat, 31 Oct 2009 07:46:58 +0000 (08:46 +0100)] 
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>
15 years agoImprove cache variable documentation.
Bruno Haible [Sat, 31 Oct 2009 06:56:53 +0000 (07:56 +0100)] 
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>
15 years agoFix AC_OPENMP for Fortran (F77 and FC).
Ralf Wildenhues [Sat, 31 Oct 2009 01:24:09 +0000 (02:24 +0100)] 
Fix AC_OPENMP for Fortran (F77 and FC).

* lib/autoconf/fortran.m4 (AC_LANG_FUNC_LINK_TRY(Fortran): New.
* tests/c.at (AC_C_RESTRICT and C++, AC_OPENMP and C)
(AC_OPENMP and C++): New tests.
* tests/fortran.at (AC_OPENMP and Fortran 77)
(AC_OPENMP and Fortran): New tests.
* THANKS: Update.
Report by Bart Oldeman.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoPerl coverage convenience targets.
Ralf Wildenhues [Sat, 31 Oct 2009 01:22:04 +0000 (02:22 +0100)] 
Perl coverage convenience targets.

* Makefile.am (PERL_COVERAGE_DB, PERL_COVERAGE_FLAGS)
(PERL_COVER): New variables.
(check-coverage, check-coverage-run, check-coverage-report)
(clean-coverage): New phony targets.
(clean-local): Depend on clean-coverage.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix corner cases in AS_LITERAL_IF and AS_TR_SH.
Eric Blake [Wed, 28 Oct 2009 21:58:43 +0000 (15:58 -0600)] 
Fix corner cases in AS_LITERAL_IF and AS_TR_SH.

* lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix bug with unbalanced
parens.  Move guts...
(_AS_LITERAL_IF): into new helper.
(AS_TR_SH, AS_TR_CPP): Fix bugs with expansion of wrong macro.
Move guts...
(_AS_TR_SH, _AS_TR_SH_LITERAL, _AS_TR_SH_INDIR, _AS_TR_CPP)
(_AS_TR_CPP_LITERAL, _AS_TR_CPP_INDIR): ...into new helpers.
(AS_VAR_PUSHDEF): Hoist m4_require, by moving guts...
(_AS_VAR_PUSHDEF): ...into new helper.
* tests/m4sh.at (AS@&t@_LITERAL_IF): Enhance test.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoMinor optimizations to m4sh.
Eric Blake [Wed, 28 Oct 2009 18:21:36 +0000 (12:21 -0600)] 
Minor optimizations to m4sh.

* lib/m4sugar/m4sh.m4 (AS_VAR_IF, AS_IDENTIFIER_IF)
(AS_LITERAL_IF): Parse fewer bytes during expansion, by visiting
if-true and if-false arguments only once.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoOptimize m4_escape for common case.
Eric Blake [Wed, 28 Oct 2009 17:23:45 +0000 (11:23 -0600)] 
Optimize m4_escape for common case.

* lib/m4sugar/m4sugar.m4 (m4_escape): Don't use regex if string is
already sane, by copying from AS_LITERAL_IF.  Move guts...
(_m4_escape): ...into new helper.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoFix m4_text_wrap handling of quoted whitespace.
Eric Blake [Wed, 28 Oct 2009 14:17:27 +0000 (08:17 -0600)] 
Fix m4_text_wrap handling of quoted whitespace.

* lib/m4sugar/m4sugar.m4 (m4_escape): New macro.
(m4_text_wrap): Use it to avoid issues with embedded [ and ].
* tests/m4sugar.at (m4@&t@_text_wrap): Test it.
* NEWS: Document this.
* doc/autoconf.texi (Text processing Macros) <m4_escape>:
Likewise.
Reported by Mike Frysinger.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoMention another feature of AC_RUN_IFELSE.
Eric Blake [Wed, 28 Oct 2009 02:14:14 +0000 (20:14 -0600)] 
Mention another feature of AC_RUN_IFELSE.

* doc/autoconf.texi (Runtime) <AC_RUN_IFELSE>: Mention that
compiled test program still exists during if-true branch.
* THANKS: Update.
Reported by Stefano Lattarini, suggestion by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoPass Autom4te path down to programs that autoreconf invokes.
Paolo Bonzini [Mon, 26 Oct 2009 16:04:05 +0000 (17:04 +0100)] 
Pass Autom4te path down to programs that autoreconf invokes.

* bin/autoreconf.in (autom4te): New variable.  Export its value
as $ENV{'AUTOM4TE'}.  Suggested by Peter Johansson.
* THANKS: Update.

15 years agoFix AC_TYPE_UINT64_T on Tru64 with gcc 3.4.4.
Eric Blake [Tue, 20 Oct 2009 14:30:03 +0000 (08:30 -0600)] 
Fix AC_TYPE_UINT64_T on Tru64 with gcc 3.4.4.

* lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT_BODY)
(_AC_TYPE_INT_BODY): Avoid undefined behavior of attempting shift
wider than type.
* NEWS: Document this.
Reported by Rainer Orth.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoFix a couple of index entries in the manual.
Ralf Wildenhues [Sat, 17 Oct 2009 05:12:54 +0000 (07:12 +0200)] 
Fix a couple of index entries in the manual.

* doc/autoconf.texi (Polymorphic Variables): Fix index entries
for AS_VAR_APPEND, AS_VAR_ARITH.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix typos in INSTALL.
Eric Blake [Fri, 16 Oct 2009 00:43:45 +0000 (18:43 -0600)] 
Fix typos in INSTALL.

* doc/install.texi (Basic Installation, Installation Names): Fix
typos in last patch.
Repored by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoImprove INSTALL wording.
Eric Blake [Thu, 15 Oct 2009 13:00:38 +0000 (07:00 -0600)] 
Improve INSTALL wording.

* doc/install.texi (Basic Installation): Clarify installcheck
behavior.
(Installation Names): Mention that --prefix only overrides
directory locations not specified on the command line.  Prefer
/alternate/directory over /path/to.  Remove a sentence targeted to
the developer, not the user.
* THANKS: Update.
Suggested by Alfred M. Szmidt.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoFix typos in documentation.
Peter Breitenlohner [Wed, 14 Oct 2009 08:41:45 +0000 (10:41 +0200)] 
Fix typos in documentation.

* doc/autoconf.texi (Cache Variable Index): Fix typo.
(Libraries) <AC_SEARCH_LIBS>: Mention 'none required' result.

Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoRecommend `sh -n' debugging, and public result variables for macros.
Bruno Haible [Fri, 9 Oct 2009 03:36:45 +0000 (05:36 +0200)] 
Recommend `sh -n' debugging, and public result variables for macros.

* doc/autoconf.texi (Debugging): Recommend to use "bash -n
configure".  Recommend the use of result variables as an
alternative to run-if-true/run-if-false parameters.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agomanual: order `Particular Functions' node alphabetically.
Bruno Haible [Mon, 5 Oct 2009 04:46:41 +0000 (06:46 +0200)] 
manual: order `Particular Functions' node alphabetically.

* doc/autoconf.texi (Particular Functions): Swap sections about
AC_FUNC_MBRTOWC and AC_FUNC_MEMCMP.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoUnconditionally check for junk ./--version after mkdir search loop.
Paolo Bonzini [Thu, 1 Oct 2009 06:20:13 +0000 (08:20 +0200)] 
Unconditionally check for junk ./--version after mkdir search loop.

* lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Always check for
presence of ./--version.  Reported by Eric Blake.

15 years agoClarify documentation about Solaris sed quantifier restriction.
Ralf Wildenhues [Tue, 22 Sep 2009 05:36:04 +0000 (07:36 +0200)] 
Clarify documentation about Solaris sed quantifier restriction.

* doc/autoconf.texi (Limitations of Usual Tools) <sed>: '*' does
not work after subexpressions, \{M,N\} only after one-character
expressions.  From GCC PR 38923.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFit configure output in 80 columns.
Eric Blake [Mon, 21 Sep 2009 13:01:51 +0000 (07:01 -0600)] 
Fit configure output in 80 columns.

* lib/autoconf/functions.m4
(AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Shorten message.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoUse consistent notation for cache variables.
Ralf Wildenhues [Fri, 18 Sep 2009 05:20:58 +0000 (07:20 +0200)] 
Use consistent notation for cache variables.

* doc/autoconf.texi (Generic Programs): Remove `$' before
variable name.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoDocumentation of specific and general cache variables.
Ralf Wildenhues [Fri, 18 Sep 2009 05:19:59 +0000 (07:19 +0200)] 
Documentation of specific and general cache variables.

* doc/autoconf.texi (Default Includes, Alternative Programs)
(Particular Programs, Generic Programs, Files, Libraries)
(Function Portability, Particular Functions, Generic Functions)
(Particular Headers, Generic Headers, Declarations)
(Generic Declarations, Particular Structures, Particular Types)
(Specific Compiler Characteristics)
(Generic Compiler Characteristics, C Compiler, System Services):
Document lots of cache variables.
* NEWS: Update.
Suggested by Bruno Haible.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoNew cache variable index in the manual.
Ralf Wildenhues [Fri, 18 Sep 2009 05:16:04 +0000 (07:16 +0200)] 
New cache variable index in the manual.

* doc/autoconf.texi: Define new index `CA' for cache variables.
(caindex): New macro.
(Cache Variable Index): New appendix node.
(Top, Indices): Adjust menus.
(Cache Variable Names, Site Defaults): Adjust text.
* doc/Makefile.am (CLEANFILES): Add files generated for CA index.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoNew FAQ node: Debugging.
Ralf Wildenhues [Fri, 18 Sep 2009 05:15:18 +0000 (07:15 +0200)] 
New FAQ node: Debugging.

* doc/autoconf.texi (Debugging): New node.
(Top, FAQ): Adjust menus.
Report by Bruno Haible.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoDocument AM_MAKEFLAGS workaround to the macro override problem.
Ralf Wildenhues [Fri, 18 Sep 2009 05:15:00 +0000 (07:15 +0200)] 
Document AM_MAKEFLAGS workaround to the macro override problem.

* doc/autoconf.texi (Macros and Submakes): Automake makefiles
provide AM_MAKEFLAGS to help with overriding macros in submake
invocations.
Prompted by bug report from Bruno Haible.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoAC_INIT: Use correct value for PACKAGE_TARNAME.
Jim Meyering [Tue, 15 Sep 2009 17:21:21 +0000 (19:21 +0200)] 
AC_INIT: Use correct value for PACKAGE_TARNAME.

* lib/autoconf/general.m4 (AC_PACKAGE_NAME): Remove what are excess
quotes around the package name, now that m4_tolower's result is quoted.
* tests/base.at (AC_INIT): Test for this.

Signed-off-by: Jim Meyering <meyering@redhat.com>
15 years agoImplement and document Objective C++ support.
Peter Breitenlohner [Tue, 21 Jul 2009 20:55:34 +0000 (22:55 +0200)] 
Implement and document Objective C++ support.

* lib/autoconf/c.m4 (AC_LANG(Objective C++), AC_LANG_OBJCXX)
(AC_LANG_PREPROC(Objective C++), AC_PROG_OBJCXXCPP)
(AC_LANG_COMPILER(Objective C++), AC_PROG_OBJCXX)
(_AC_PROG_OBJCXX_G): New macros.
(_AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
(_AC_ARG_VAR_LIBS): Adjusted.
* doc/autoconf.texi (Objective C++ Compiler): New node.
(Preset Output Variables): Document OBJCXXFLAGS.
(Language Choice): Document `Objective C++' language.
* NEWS: Updated.

* tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C++
related variables.

Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoWork around DJGPP shell function return bug with command substitutions.
Ralf Wildenhues [Sun, 13 Sep 2009 19:18:37 +0000 (21:18 +0200)] 
Work around DJGPP shell function return bug with command substitutions.

DJGPP bash 2.04 has a bug in that `return $ac_retval' done in a
shell function which also contains a command substitution causes
the shell to barf.  For more details and a fix see:
<http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp-workers/2009/09/09/03:35:08>
Possible workaround include putting the `return' in a subshell
or calling another function to set the status.

* lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY)
(_AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY)
(_AC_RUN_IFELSE_BODY, _AC_COMPUTE_INT_BODY): Use AS_SET_STATUS
instead of `return'.
* doc/autoconf.texi (Common Shell Constructs, Shell Functions):
Document the issue.
* THANKS: Update.
Report by Rugxulo and Reuben Thomas.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoDJGPP fix: Do not redirect standard input in configure scripts.
Ralf Wildenhues [Sun, 13 Sep 2009 19:14:27 +0000 (21:14 +0200)] 
DJGPP fix: Do not redirect standard input in configure scripts.

* lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): If $DJGPP is
nonempty, do not dup fd 0 to AS_ORIGINAL_STDIN_FD, do not close
fd 0.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoQuote result of m4_toupper and m4_tolower.
Eric Blake [Mon, 14 Sep 2009 12:58:51 +0000 (06:58 -0600)] 
Quote result of m4_toupper and m4_tolower.

* lib/m4sugar/m4sugar.m4 (m4_tolower, m4_toupper): Quote result.
* lib/autotest/general.m4 (AT_KEYWORDS): Adjust caller.
* tests/m4sugar.at (m4@&t@_toupper and m4@&t@_tolower): New test.
* NEWS: Document this.
* THANKS: Update.
Reported by Sam Steingold.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoDJGPP fix: remove both conftest and conftest.exe.
Ralf Wildenhues [Sun, 13 Sep 2009 19:16:15 +0000 (21:16 +0200)] 
DJGPP fix: remove both conftest and conftest.exe.

The DJGPP compiler may create both `a.out' and `a.exe' without -o,
and both `conftest' and `conftest.exe' with `-o conftest', but not
with `-o conftest.exe'.

* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Also remove
`conftest' without $ac_exeext suffix.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoDJGPP fix: do not try to source /dev/null as cache or site file.
Ralf Wildenhues [Sun, 13 Sep 2009 19:15:10 +0000 (21:15 +0200)] 
DJGPP fix: do not try to source /dev/null as cache or site file.

* lib/autoconf/general.m4 (AC_SITE_LOAD, AC_CACHE_LOAD): Do not
load the cache or site file if it is `/dev/null', as DJGPP treats
it as a regular file, but the shell then warns about it later.
Fixes several test suite failures on DJGPP.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agotestsuite: pass $configure_options to configure invocations.
Ralf Wildenhues [Sun, 13 Sep 2009 16:03:31 +0000 (18:03 +0200)] 
testsuite: pass $configure_options to configure invocations.

* tests/local.at (AT_CHECK_CONFIGURE): Add $configure_options
to configure command line.
* tests/autotest.at, tests/base.at, tests/c.at, tests/torture.at:
Likewise for each configure invocation.
* README-hacking: Document configure_options.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agotestsuite: improve Erlang tests portability, overridability.
Ralf Wildenhues [Sun, 13 Sep 2009 11:40:06 +0000 (13:40 +0200)] 
testsuite: improve Erlang tests portability, overridability.

* tests/autotest.at (Erlang Eunit unit tests): Use "no" as
value-if-not-found for Erlang tools.
* tests/erlang.at: Likewise.  Also, use AS_EXIT instead of plain
exit.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years ago* bin/autoupdate.in: Fix typos in comments.
Ralf Wildenhues [Sun, 13 Sep 2009 09:05:44 +0000 (11:05 +0200)] 
* bin/autoupdate.in: Fix typos in comments.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoImprove autotest testsuite summary message.
Ralf Wildenhues [Sun, 13 Sep 2009 08:05:10 +0000 (10:05 +0200)] 
Improve autotest testsuite summary message.

* lib/autotest/general.m4 (AT_INIT): Hint at the toplevel log
only if not $at_debug_p.  Always hint at the per-test output.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFour new autoupdate tests, expected failures.
Ralf Wildenhues [Sun, 13 Sep 2009 08:03:51 +0000 (10:03 +0200)] 
Four new autoupdate tests, expected failures.

* tests/tools.at (autoupdating macros recursively)
(autoupdating with m4@&t@_pushdef, autoupdating with AC_REQUIRE)
(autoupdating with complex quoting): New tests.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix description of AC_CHECK_LIB regarding other deplibs.
Ralf Wildenhues [Sun, 13 Sep 2009 08:02:43 +0000 (10:02 +0200)] 
Fix description of AC_CHECK_LIB regarding other deplibs.

* doc/autoconf.texi (Libraries): Library linking may not fail
even without missing additional libs.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoTrack recent copyright assignments.
Eric Blake [Sat, 12 Sep 2009 13:23:27 +0000 (07:23 -0600)] 
Track recent copyright assignments.

* AUTHORS: Update.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoImprove documentation on quoting.
Eric Blake [Fri, 11 Sep 2009 02:47:50 +0000 (20:47 -0600)] 
Improve documentation on quoting.

* doc/autoconf.texi (Autoconf Language): Clarify quoting example.
* THANKS: Update.
Reported by santilín.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoNew config.status option --config.
Ralf Wildenhues [Fri, 11 Sep 2009 04:53:17 +0000 (06:53 +0200)] 
New config.status option --config.

* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Implement
--config.
* doc/autoconf.texi (config.status Invocation): Document it.
* NEWS: Update.
* tests/torture.at (configure invocation): Test it.
Suggested several times, by several people, in the past.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoDocument that AS_INIT is automatically used.
Eric Blake [Fri, 11 Sep 2009 02:16:46 +0000 (20:16 -0600)] 
Document that AS_INIT is automatically used.

* doc/autoconf.texi (Initialization Macros) <AS_INIT>: Add words
to clarify that only bare-bones scripts need a direct AS_INIT.
Suggested by Reuben Thomas.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoClarify portability pitfall of test.
Eric Blake [Fri, 11 Sep 2009 02:05:21 +0000 (20:05 -0600)] 
Clarify portability pitfall of test.

* doc/autoconf.texi (Limitations of Builtins) <test>: Give more
reasons why -a and -o are not portable.
Reported by Reuben Thomas.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoDocument sed limitation with escaped metacharacters.
Ralf Wildenhues [Thu, 10 Sep 2009 04:56:45 +0000 (06:56 +0200)] 
Document sed limitation with escaped metacharacters.

* doc/autoconf.texi (Limitations of Usual Tools) <sed>: Use `%'
rather than `/' as delimiter in an example `s' command.
Document inconsistent treatment of escaped metacharacters.
* THANKS: Update.
Report by Dave Korn, with additional input from Paolo Bonzini
and Eric Blake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoDocument temporary directory `$tmp' for use in config.status.
Ralf Wildenhues [Thu, 10 Sep 2009 04:48:24 +0000 (06:48 +0200)] 
Document temporary directory `$tmp' for use in config.status.

* doc/autoconf.texi (Configuration Actions): Document `$tmp'.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoUpdate License to GPLv3+ including new Autoconf Exception.
Ralf Wildenhues [Wed, 9 Sep 2009 17:53:31 +0000 (19:53 +0200)] 
Update License to GPLv3+ including new Autoconf Exception.

* NEWS, README: Update licensing information.
* COPYING.EXCEPTION: New file.
* Makefile.am (EXTRA_DIST): Distribute it.
* cfg.mk (autom4te-update): Remove copyright change warning.
* lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
lib/autoconf/erlang.m4, lib/autoconf/fortran.m4,
lib/autoconf/functions.m4, lib/autoconf/general.m4,
lib/autoconf/headers.m4, lib/autoconf/lang.m4,
lib/autoconf/libs.m4, lib/autoconf/oldnames.m4,
lib/autoconf/programs.m4, lib/autoconf/specific.m4,
lib/autoconf/status.m4, lib/autoconf/types.m4,
lib/autotest/autotest.m4, lib/autotest/general.m4,
lib/autotest/specific.m4, lib/m4sugar/foreach.m4,
lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4: Update exception
statement, bump to GPLv3.
* bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
bin/ifnames.in: Bump to GPLv3+, adjust --version output
to reflect the GPLv3+ and the Autoconf Exception.
* lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
lib/Autom4te/General.pm, lib/Autom4te/Request.pm,
lib/autom4te.in, lib/autoscan/autoscan.pre,
lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
lib/freeze.mk, tests/atlocal.in, tests/autoscan.at,
tests/autotest.at, tests/base.at, tests/c.at,
tests/compile.at, tests/erlang.at, tests/foreign.at,
tests/fortran.at, tests/local.at, tests/m4sh.at,
tests/m4sugar.at, tests/mktests.sh, tests/semantics.at,
tests/statesave.m4, tests/suite.at, tests/tools.at,
tests/torture.at, tests/wrapper.as: Bump to GPLv3+.

15 years agoAllow to work on systems without Fcntl::flock implementation.
Ralf Wildenhues [Wed, 9 Sep 2009 05:27:39 +0000 (07:27 +0200)] 
Allow to work on systems without Fcntl::flock implementation.

* configure.ac (PERL_FLOCK): New substitution variable with test
whether Fcntl::flock is implemented by the system.
* bin/Makefile.am (edit): Substitute @PERL_FLOCK@.
* bin/autom4te.in: Call XFile::lock only if flock is
implemented.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoMention the Autoconf archive.
Reuben Thomas [Fri, 4 Sep 2009 13:01:49 +0000 (07:01 -0600)] 
Mention the Autoconf archive.

* doc/autoconf.texi (Coding Style): Add a link.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoDocument another Solaris tr pitfall.
Bruno Haible [Fri, 4 Sep 2009 12:32:04 +0000 (06:32 -0600)] 
Document another Solaris tr pitfall.

* doc/autoconf.texi (Limitations of Usual Tools) <tr>: Mention
that Solaris /usr/bin/tr does not only have problems with
replacing NUL bytes but discards all NUL bytes from the input.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoImprove wording about what goes before AC_INIT.
Eric Blake [Fri, 4 Sep 2009 12:18:52 +0000 (06:18 -0600)] 
Improve wording about what goes before AC_INIT.

* doc/autoconf.texi (Initializing configure): Update wording.
(Versioning) <AC_PREREQ>: Remove misleading text, to match
autoupdate's behavior.
* THANKS: Update.
Reported by NightStrike, with input from Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoFix illegal tab character in Fortran source.
Thomas Jahns [Fri, 4 Sep 2009 09:48:44 +0000 (11:48 +0200)] 
Fix illegal tab character in Fortran source.

* lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Change TAB back to
multiple spaces; regression introduced 2008-10-23.
* NEWS: Mention this.
* THANKS: Update.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years ago* .gitignore: Ignore html files.
Eric Blake [Thu, 20 Aug 2009 15:38:48 +0000 (09:38 -0600)] 
* .gitignore: Ignore html files.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoFix AT_CHECK_EUNIT for versions of Erlang/OTP without init:stop/1.
Romain Lenglet [Sat, 22 Aug 2009 08:48:38 +0000 (10:48 +0200)] 
Fix AT_CHECK_EUNIT for versions of Erlang/OTP without init:stop/1.

* lib/autotest/specific.m4 (AT_CHECK_EUNIT): Support older
versions of Erlang/OTP with an erlang:stop() function that doesn't
take arguments.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoDrop unneeded line in Eunit test.
Ralf Wildenhues [Sat, 22 Aug 2009 08:45:10 +0000 (10:45 +0200)] 
Drop unneeded line in Eunit test.

* tests/autotest.at (Erlang Eunit unit tests): Do not copy
install-sh.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix build dependencies for Erlang macro files.
Ralf Wildenhues [Sat, 22 Aug 2009 08:43:51 +0000 (10:43 +0200)] 
Fix build dependencies for Erlang macro files.

* lib/freeze.mk (autotest_m4f_dependencies): Add
$(src_libdir)/autotest/specific.m4.
* tests/Makefile.am (AUTOCONF_FILES): Add erlang.m4.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agouse a separate program to test whether the compiler works
Paolo Bonzini [Fri, 7 Aug 2009 14:40:34 +0000 (16:40 +0200)] 
use a separate program to test whether the compiler works

* lib/autoconf/erlang.m4 (_AC_LANG_NULL_PROGRAM(Erlang)): New.
* lib/autoconf/lang.m4 (AC_LANG_DEFINE): Copy _AC_LANG_NULL_PROGRAM.
(_AC_LANG_NULL_PROGRAM(), _AC_LANG_NULL_PROGRAM): New.
(_AC_COMPILER_EXEEXT_DEFAULT): Print here "whether the xyz compiler works",
before exiting.
(_AC_COMPILER_EXEEXT_WORKS): Merge into _AC_COMPILER_EXEEXT_CROSS, remove
the "whether the xyz compiler works" message, use conftest$ac_cv_exeext
instead of $ac_file.
(_AC_COMPILER_EXEEXT): Try _AC_COMPILER_EXEEXT_DEFAULT using the
null program, and clean conftest.out only after _AC_COMPILER_EXEEXT_CROSS.
(AC_NO_EXECUTABLES): Use _AC_LANG_NULL_PROGRAM.
(_AC_COMPILER_OBJEXT): Use _AC_LANG_NULL_PROGRAM.

15 years agoDocument Solaris tr range and NUL limitations.
Bruno Haible [Tue, 18 Aug 2009 20:17:51 +0000 (22:17 +0200)] 
Document Solaris tr range and NUL limitations.

* doc/autoconf.texi (Limitations of Usual Tools): Mention that
Solaris /usr/bin/tr does not support ranges, nor the '\0' octal
escape.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoSimplify version control metadata.
Eric Blake [Fri, 14 Aug 2009 21:52:52 +0000 (15:52 -0600)] 
Simplify version control metadata.

* .cvsignore: Delete.
* bin/.cvsignore: Likewise.
* config/.cvsignore: Likewise.
* doc/.cvsignore: Likewise.
* lib/.cvsignore: Likewise.
* lib/autoconf/.cvsignore: Likewise.
* lib/Autom4te/.cvsignore: Likewise.
* lib/autoscan/.cvsignore: Likewise.
* lib/autotest/.cvsignore: Likewise.
* lib/emacs/.cvsignore: Likewise.
* lib/m4sugar/.cvsignore: Likewise.
* man/.cvsignore: Likewise.
* tests/.cvsignore: Likewise.
* bin/.gitignore: Likewise.
* build-aux/.gitignore: Likewise.
* config/.gitignore: Likewise.
* doc/.gitignore: Likewise.
* lib/.gitignore: Likewise.
* lib/autoconf/.gitignore: Likewise.
* lib/Autom4te/.gitignore: Likewise.
* lib/autoscan/.gitignore: Likewise.
* lib/autotest/.gitignore: Likewise.
* lib/emacs/.gitignore: Likewise.
* lib/m4sugar/.gitignore: Likewise.
* man/.gitignore: Likewise.
* tests/.gitignore: Likewise.
* .gitignore: Consolidate all rules into one file.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoNormalize remaining copyright lines.
Eric Blake [Fri, 14 Aug 2009 20:10:19 +0000 (14:10 -0600)] 
Normalize remaining copyright lines.

* BUGS: Reformat copyright line, using UPDATE_COPYRIGHT_FORCE.
* NEWS: Likewise.
* README-hacking: Likewise.
* TODO: Likewise.
* lib/Autom4te/ChannelDefs.pm: Likewise.
* lib/autoconf/fortran.m4: Likewise.
* lib/autoconf/general.m4: Likewise.
* lib/autoconf/lang.m4: Likewise.
* lib/autotest/general.m4: Likewise.
* maint.mk: Likewise.
* tests/compile.at: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoImprove copyright updating.
Eric Blake [Fri, 14 Aug 2009 15:09:26 +0000 (09:09 -0600)] 
Improve copyright updating.

* build-aux/update-copyright: Resynchronize from upstream.
* maint.mk (update-copyright): Simplify based on gnulib.
(update-copyright-env): New variable.
* cfg.mk (update-copyright-exclude-regexp): Delete.
(update-copyright-env): New override.
* .x-update-copyright: New file.
* lib/Autom4te/Makefile.am: Add copyright.
* lib/Autom4te/Channels.pm: Revert copyright update to upstream
file.
* 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>
15 years agoUpdate copyright.
Eric Blake [Fri, 14 Aug 2009 13:31:43 +0000 (07:31 -0600)] 
Update copyright.

* AUTHORS: Include 2009 in copyright.
* lib/Autom4te/C4che.pm: Likewise.
* lib/Autom4te/Channels.pm: Likewise.
* lib/Autom4te/Configure_ac.pm: Likewise.
* lib/Autom4te/FileUtils.pm: Likewise.
* lib/Autom4te/General.pm: Likewise.
* lib/Autom4te/Request.pm: Likewise.
* lib/Autom4te/Struct.pm: Likewise.
* lib/autoconf/Makefile.am: Likewise.
* lib/autoconf/autoconf.m4: Likewise.
* lib/autoconf/autoscan.m4: Likewise.
* lib/autoconf/autoupdate.m4: Likewise.
* lib/autoconf/functions.m4: Likewise.
* lib/autoconf/libs.m4: Likewise.
* lib/autoconf/oldnames.m4: Likewise.
* lib/autoconf/types.m4: Likewise.
* lib/autoscan/Makefile.am: Likewise.
* lib/autoscan/autoscan.pre: Likewise.
* lib/autotest/Makefile.am: Likewise.
* lib/autotest/autotest.m4: Likewise.
* lib/emacs/autoconf-mode.el: Likewise.
* lib/emacs/autotest-mode.el: Likewise.
* lib/freeze.mk: Likewise.
* lib/m4sugar/foreach.m4: Likewise.
* man/Makefile.am: Likewise.
* tests/atlocal.in: Likewise.
* tests/autoscan.at: Likewise.
* tests/foreign.at: Likewise.
* tests/fortran.at: Likewise.
* tests/mktests.sh: Likewise.
* tests/semantics.at: Likewise.
* tests/suite.at: Likewise.
* tests/wrapper.as: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoPrepare to bulk update copyright years.
Eric Blake [Wed, 12 Aug 2009 20:25:53 +0000 (14:25 -0600)] 
Prepare to bulk update copyright years.

* build-aux/update-copyright: New file.
* cfg.mk (gnulib-update): Sync it from gnulib.
(update-copyright-exclude-regexp): New varialbe.
(web-manual): Move...
* maint.mk (web-manual): ...here, to match gnulib.
(update-copyright): New target, copied from gnulib's
maint.mk (it would be nice to sync this file...).
(build_aux): New macro.
(VC_LIST, emit_upload_commands): Use it.
* build-aux/texinfo.tex: Resynchronize from upstream.
* lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): Reformat to meet
expected pattern.
* lib/autotest/general.m4 (_AT_COPYRIGHT_YEARS): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoFix testsuite log capturing for tests 183 and 186.
Paolo Bonzini [Tue, 11 Aug 2009 07:40:17 +0000 (09:40 +0200)] 
Fix testsuite log capturing for tests 183 and 186.

* tests/autotest.at (AT_CHECK_AT_PREP): Prepend AT_dir to
testsuite log file for AT_CAPTURE_FILE.

16 years agoEnsure we do not regress with AC_CHECK_MEMBERS.
Ralf Wildenhues [Mon, 10 Aug 2009 18:35:12 +0000 (20:35 +0200)] 
Ensure we do not regress with AC_CHECK_MEMBERS.

* tests/semantics.at (AC_CHECK_MEMBERS): Expose the recent
AC_CHECK_MEMBERS fix.
(AC_CHECK_MEMBER): New test group.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix typo in AC_REQUIRE description.
Jeff Squyres [Mon, 10 Aug 2009 18:04:57 +0000 (20:04 +0200)] 
Fix typo in AC_REQUIRE description.

* doc/autoconf.texi (Prerequisite macros): Fix typo.

16 years agoFix description of the macro generated by AC_CHECK_MEMBERS.
Paolo Bonzini [Mon, 10 Aug 2009 18:00:01 +0000 (20:00 +0200)] 
Fix description of the macro generated by AC_CHECK_MEMBERS.

* lib/autoconf/types.m4 (_AC_CHECK_MEMBERS): Fix regex
replacement.  Reported by Bruno Haible.

16 years agoMake AC_RUN_IFELSE fail for Erlang if the program doesn't compile.
Romain Lenglet [Thu, 6 Aug 2009 23:02:01 +0000 (08:02 +0900)] 
Make AC_RUN_IFELSE fail for Erlang if the program doesn't compile.

* lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Make AC_RUN_IFELSE
fail if the test module doesn't compile.

16 years agoFix grep invocation in Erlang test.
Paolo Bonzini [Sun, 2 Aug 2009 06:24:00 +0000 (08:24 +0200)] 
Fix grep invocation in Erlang test.

* tests/autotest.at (Erlang Eunit unit tests): Fix grep invocation.