]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
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>
16 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.

16 years agoadd AT_CHECK_EUNIT autotest macro
Romain Lenglet [Sat, 1 Aug 2009 13:28:56 +0000 (22:28 +0900)] 
add AT_CHECK_EUNIT autotest macro

* lib/autotest/specific.m4: New file.
* lib/autotest/Makefile.am (dist_autotestlib_DATA): Add specific.m4.
* lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add definitions of
variables used by AT_CHECK_EUNIT macro: ERL, ERLC, ERLCFLAGS.
* tests/autotest.at (Erlang Eunit unit tests): Add test for macro
AT_CHECK_EUNIT.
* doc/autoconf.texi (Writing Testsuites): Document macro AT_CHECK_EUNIT.
* NEWS: Mention macro AT_CHECK_EUNIT.

16 years agoClarify comparison of echo, printf, and AS_ECHO*.
Paolo Bonzini [Thu, 30 Jul 2009 18:27:45 +0000 (20:27 +0200)] 
Clarify comparison of echo, printf, and AS_ECHO*.

Discussed starting at
<http://lists.gnu.org/archive/html/bug-autoconf/2009-07/msg00025.html>.

* doc/autoconf.texi (Limitations of Builtins): In echo's entry,
give a reason why printf is better than echo.  In printf's
entry, cross-reference echo's entry.

16 years agoAdd back AH_CHECK_HEADERS.
Paolo Bonzini [Wed, 29 Jul 2009 14:28:56 +0000 (16:28 +0200)] 
Add back AH_CHECK_HEADERS.

* lib/autoconf/general.m4 (AH_CHECK_HEADERS): New.
* NEWS: Add new section.

16 years agotestsuite: avoid bogus hostname match from inner test logs.
Ralf Wildenhues [Wed, 29 Jul 2009 17:49:25 +0000 (19:49 +0200)] 
testsuite: avoid bogus hostname match from inner test logs.

* tests/autotest.at (Hard fail): Check more restrictively for
passed tests, so that hostnames recorded in the log file do not
wrongly match.
Report by Ludovic Courtès.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years ago./.prev-version: Record previous version: 2.64.
Eric Blake [Mon, 27 Jul 2009 03:40:13 +0000 (21:40 -0600)] 
./.prev-version: Record previous version: 2.64.

16 years agoRelease Version 2.64. v2.64
Eric Blake [Mon, 27 Jul 2009 03:14:12 +0000 (21:14 -0600)] 
Release Version 2.64.

* NEWS: Mention the release.
* README: This release is stable.
* HACKING (release): Use dist-xz, not dist-lzma.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoDocument some optional features in INSTALL.
Eric Blake [Mon, 27 Jul 2009 01:06:06 +0000 (19:06 -0600)] 
Document some optional features in INSTALL.

* doc/install.texi (Basic Installation): Mention that INSTALL is
generic, and that not all packages implement all features.
Mention 'make distcheck' for maintainers, and 'make installcheck'
for users.  Mention the GNU Coding Standards.
(Installation Names): Mention DESTDIR vs. 'make prefix= install'
as ways to alter the configuration, with caveats of each.  Move
--program-prefix discussion...
(Optional Features): ...here.  Mention --enable-silent-rules and
use of make V=0.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoBasic improvements to INSTALL.
Eric Blake [Sat, 25 Jul 2009 13:29:41 +0000 (07:29 -0600)] 
Basic improvements to INSTALL.

* doc/install.texi (Basic Installation): Use better markup.
(Multiple Architectures): Introduce the term VPATH.
(Installation Names): Mention that --prefix must be absolute.
* doc/autoconf.texi (Preset Output Variables)
(Installation Directory Variables): Consistently refer to GNU
Coding Standards.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoUpdate some upstream files.
Eric Blake [Mon, 27 Jul 2009 01:42:39 +0000 (19:42 -0600)] 
Update some upstream files.

* build-aux/config.guess: Resynchronize from upstream.
* build-aux/config.sub: Likewise.
* build-aux/texinfo.tex: Likewise.
* build-aux/vc-list-files: Likewise.
* doc/standards.texi: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoRecognize new m4sugar keywords.
Eric Blake [Mon, 3 Nov 2008 16:38:37 +0000 (11:38 -0500)] 
Recognize new m4sugar keywords.

* lib/emacs/autoconf-mode.el (autoconf-current-defun): Recognize
m4_define_default, m4_defun_init, m4_defun_once.
(autoconf-font-lock-keywords):  Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoRequire m4 1.4.6, and fix testsuite to support this version.
Eric Blake [Sat, 25 Jul 2009 23:17:41 +0000 (17:17 -0600)] 
Require m4 1.4.6, and fix testsuite to support this version.

* m4/m4.m4 (AC_PROG_GNU_M4): Reject m4 1.4.5, now that we use
regexp it can't handle.
* NEWS: Mention minimum version bump.
* README: Likewise.
* README-hacking: Likewise.
* doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
* tests/tools.at (autom4te --trace and whitespace): Update test so
still work with older m4 line numbers.
* tests/m4sugar.at (m4@&t@_require: nested): Likewise.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoClarify autom4te debugging tips.
Bruno Haible [Sat, 25 Jul 2009 15:38:39 +0000 (09:38 -0600)] 
Clarify autom4te debugging tips.

* doc/autoconf.texi (Debugging via autom4te): Fix example from
previous commit, and add clarification.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoDocument some autom4te debugging tips.
Eric Blake [Sat, 25 Jul 2009 12:51:59 +0000 (06:51 -0600)] 
Document some autom4te debugging tips.

* doc/autoconf.texi (Debugging via autom4te): New node.
Suggested by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix font-lock.
Eric Blake [Sat, 25 Jul 2009 12:24:49 +0000 (06:24 -0600)] 
Fix font-lock.

* configure.ac (ac_cv_unsupported_fs_chars): Make editing easier.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoLet autoheader see through m4 macros in AC_DEFINE.
Eric Blake [Sat, 25 Jul 2009 12:00:38 +0000 (06:00 -0600)] 
Let autoheader see through m4 macros in AC_DEFINE.

* lib/autoconf/general.m4 (AC_DEFINE_TRACE): Expand macro before
tracing its name.
* lib/autoconf/autoheader.m4 (AH_VERBATIM, AH_TEMPLATE): Likewise,
for using the macro in a template file.
* tests/tools.at (autoheader and macros): New test.
* NEWS: Mention this.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImprove NEWS wording.
Eric Blake [Sat, 25 Jul 2009 11:19:13 +0000 (05:19 -0600)] 
Improve NEWS wording.

* NEWS: Use more accurate statement.
Suggestedy by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix AS_EXIT for FreeBSD sh.
Eric Blake [Sat, 25 Jul 2009 01:00:49 +0000 (19:00 -0600)] 
Fix AS_EXIT for FreeBSD sh.

* lib/m4sugar/m4sh.m4 (AS_EXIT): Always supply an argument to the
shell function, since $? is not reliable on function entry.
(_AS_EXIT_PREPARE): Simplify to assume argument.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoRun more tests under Solaris.
Eric Blake [Fri, 24 Jul 2009 02:58:12 +0000 (20:58 -0600)] 
Run more tests under Solaris.

* tests/local.at (AT_CHECK_AUTOCONF): Don't skip entire test
group when passing over syntax checks.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoClean up temporary files generated by Erlang macros.
Romain Lenglet [Fri, 24 Jul 2009 02:37:58 +0000 (20:37 -0600)] 
Clean up temporary files generated by Erlang macros.

* lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB)
(AC_ERLANG_SUBST_ROOT_DIR, AC_ERLANG_SUBST_LIB_DIR)
(AC_ERLANG_SUBST_ERTS_VER): Delete conftest.out; renamed
erlang_cv_* cache variables into ac_cv_erlang_*.
* lib/autoconf/general.m4 (AC_RUN_IFELSE): Delete conftest.beam
files generated by Erlang compiler.
* tests/local.at (AT_CHECK_ENV): Ignore variables defined by
Erlang macros.
* tests/erlang.at (AT_SETUP_ERLANG): Delete; replace all uses by
AT_CHECK_MACRO.
* tests/Makefile.am (AUTOCONF_FILES): Revert previous addition of
generated Erlang tests; they are all hand-tested.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd autotests for Erlang macros.
Romain Lenglet [Thu, 23 Jul 2009 12:47:52 +0000 (06:47 -0600)] 
Add autotests for Erlang macros.

* tests/erlang.at: Added tests for all macros in erlang.m4.
* tests/Makefile.am: Added erlang.at.
* tests/suite.at: Likewise.
* tests/compile.at: Added test for extension of Erlang files.
* NEWS: Mention this.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix test of autom4te from stdin.
Eric Blake [Wed, 22 Jul 2009 12:50:14 +0000 (06:50 -0600)] 
Fix test of autom4te from stdin.

* tests/tools.at (autom4te cache locking): Make stdin request
explicit, so that --force is properly used.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoDon't hide leading space in autom4te --trace output.
Eric Blake [Mon, 13 Jul 2009 16:35:32 +0000 (10:35 -0600)] 
Don't hide leading space in autom4te --trace output.

* bin/autom4te.in (handle_traces): Don't flatten leading and
trailing space, since tracing spacing bugs can be useful.
* tests/tools.at (autom4te --trace and whitespace): New test.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoDocument that $srcdir can be used during configure.
Eric Blake [Fri, 10 Jul 2009 12:11:24 +0000 (06:11 -0600)] 
Document that $srcdir can be used during configure.

* doc/autoconf.texi (Preset Output Variables): Add a paragraph.
* THANKS: Update.
Reported by Monty Taylor.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoDisable asynchronous job notification for parallel tests.
Eric Blake [Mon, 13 Jul 2009 18:54:19 +0000 (12:54 -0600)] 
Disable asynchronous job notification for parallel tests.

* lib/autotest/general.m4 (AT_INIT) <Driver loop>: Turn off notify
mode, since zsh leaves it on after 'emulate sh'.
* doc/autoconf.texi (Limitations of Builtins) <set>: Document that
job control options are not portable.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoGuarantee that exit status trumps output matching.
Eric Blake [Tue, 14 Jul 2009 04:03:27 +0000 (22:03 -0600)] 
Guarantee that exit status trumps output matching.

* doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document this
better.
* tests/autotest.at (Skip, parallel skip): Enhance tests.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix nits in recent patches.
Eric Blake [Tue, 14 Jul 2009 03:34:49 +0000 (21:34 -0600)] 
Fix nits in recent patches.

* configure.ac (ac_cv_dir_trailing_space): Avoid $status, for
zsh.
* doc/autoconf.texi (Writing Testsuites) <AT_FAIL_IF, AT_SKIP_IF>:
Tweak wording.
(Introduction): Recommend m4 1.4.13.
* README: Likewise.
* m4/m4.m4 (AC_PROG_GNU_M4): Likewise.  Use long option --gnu
rather than -g.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agointroduce AT_SKIP_IF and AT_FAIL_IF
Paolo Bonzini [Sun, 12 Jul 2009 10:22:39 +0000 (12:22 +0200)] 
introduce AT_SKIP_IF and AT_FAIL_IF

* NEWS: Mention AT_SKIP_IF and AT_FAIL_IF.
* doc/autoconf.texi (Autotest): Document them.
* lib/autotest/general.m4 (_AT_LINE_ESCAPED, AT_SKIP_IF,
AT_FAIL_IF, _AT_CHECK_EXIT): New.
(AT_CHECK): Use _AT_LINE_ESCAPED.
* tests/autotest.st: Add tests for AT_SKIP_IF and AT_FAIL_IF.
Use AT_SKIP_IF.
* tests/local.st: Use AT_SKIP_IF.

16 years agouse m4 -g when available
Paolo Bonzini [Sun, 12 Jul 2009 11:50:24 +0000 (13:50 +0200)] 
use m4 -g when available

M4sugar requires GNU m4 extensions to be enabled.  Override
POSIXLY_CORRECT using -g.

* m4/m4.m4: Unset POSIXLY_CORRECT during first test.  Test for -g.
Warn user if he has POSIXLY_CORRECT set but -g is not supported.
* bin/Makefile.am: Substitute @M4_GNU@ into generated files.
* bin/autom4te.in: Pass @M4_GNU@ to m4.

16 years agoFix previous patch.
Eric Blake [Mon, 13 Jul 2009 15:16:06 +0000 (09:16 -0600)] 
Fix previous patch.

* lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
proper m4 quoting.
(_AT_DECIDE_TRACEABLE): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoSimplify handling of autotest tracing
Paolo Bonzini [Sun, 12 Jul 2009 10:58:36 +0000 (12:58 +0200)] 
Simplify handling of autotest tracing

* lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
$at_trace_echo.  Add new REASON argument.
(at_fn_check_prepare_trace): Do not call at_fn_check_prepare_notrace.
Use $at_check_filter_trace.
(at_fn_check_prepare_dynamic): Use at_fn_check_prepare_notrace.
(at_traceon): Initialize to ':'.
(at_traceoff): Remove, use 'set +x' instead throughout.
(at_check_filter_trace, at_trace_echo): New shell variables.
Initialize them if tracing is requested.
(_AT_DECIDE_TRACEABLE): Adjust call to at_fn_check_prepare_notrace.

16 years agoMove atlocal feature tests to configure
Paolo Bonzini [Sun, 12 Jul 2009 09:28:57 +0000 (11:28 +0200)] 
Move atlocal feature tests to configure

This test makes atlocal code use configure tests instead.  This
is best practice and could make diagnosing autoconf bugs easier.

2009-07-12  Paolo Bonzini  <bonzini@gnu.org>

* configure.ac: Test for unsupported characters in files and
directories here...
* tests/atlocal.in: ... and not here.

16 years agorevert previous push
Paolo Bonzini [Mon, 13 Jul 2009 11:39:25 +0000 (13:39 +0200)] 
revert previous push

16 years agouse m4 -g when available
Paolo Bonzini [Sun, 12 Jul 2009 11:50:24 +0000 (13:50 +0200)] 
use m4 -g when available

M4sugar requires GNU m4 extensions to be enabled.  Override
POSIXLY_CORRECT using -g.

2009-07-12  Paolo Bonzini  <bonzini@gnu.org>

* m4/m4.m4: Test for -g.
* bin/Makefile.am: Substitute @M4_GNU@ into generated files.
* bin/autom4te.in: Pass @M4_GNU@ to m4.

16 years agoSimplify handling of autotest tracing
Paolo Bonzini [Sun, 12 Jul 2009 10:58:36 +0000 (12:58 +0200)] 
Simplify handling of autotest tracing

This patch simplifies at_fn_check_prepare_trace by noting that it
need not call at_fn_check_prepare_notrace.  Instead we can make
$at_traceon be ':' or 'set -x' instead of being empty when tracing
is disabled.

A similar approach is used for other variables set by
at_fn_check_prepare_trace and to conditionalize the message
about disabling tracing in at_fn_check_prepare_dynamic.

In addition, I changed $at_traceoff to 'set +x' throughout and
eliminated the variable.

2009-07-12  Paolo Bonzini  <bonzini@gnu.org>

* lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
$at_trace_echo.  Add new REASON argument.
(at_fn_check_prepare_trace): Do not call at_fn_check_prepare_notrace.
Use $at_check_filter_trace.
(at_fn_check_prepare_dynamic): Use at_fn_check_prepare_notrace.
(at_traceon): Initialize to ':'.
(at_traceoff): Remove, use 'set -x' instead throughout.
(at_check_filter_trace, at_trace_echo): New shell variables.
Initialize them if tracing is requested.
(_AT_DECIDE_TRACEABLE): Adjust call to at_fn_check_prepare_notrace.

16 years agointroduce AT_SKIP_IF and AT_FAIL_IF
Paolo Bonzini [Sun, 12 Jul 2009 10:22:39 +0000 (12:22 +0200)] 
introduce AT_SKIP_IF and AT_FAIL_IF

These are lightweight versions of AT_CHECK that automatically
add the equivalent of ! in front of the command and change a
failure exit status to 77 resp. 99.  They expand to just
two lines of shell code at the expense of not supporting
tracing (but then so does AT_XFAIL_IF).

2009-07-12  Paolo Bonzini  <bonzini@gnu.org>

* NEWS: Mention AT_SKIP_IF and AT_FAIL_IF.
* doc/autoconf.texi (Autotest): Document them.
* lib/autotest/general.m4 (_AT_LINE_ESCAPED, AT_SKIP_IF,
AT_FAIL_IF, _AT_CHECK_EXIT): New.
(AT_CHECK): Use _AT_LINE_ESCAPED.
* tests/autotest.st: Add tests for AT_SKIP_IF and AT_FAIL_IF.
Use AT_SKIP_IF.
* tests/local.st: Use AT_SKIP_IF.

16 years agoMove atlocal code to configure
Paolo Bonzini [Sun, 12 Jul 2009 09:28:57 +0000 (11:28 +0200)] 
Move atlocal code to configure

This test makes atlocal code use configure tests instead.  This
is best practice and could make diagnosing autoconf bugs easier.

2009-07-12  Paolo Bonzini  <bonzini@gnu.org>

* configure.ac: Test for unsupported characters in files and
directories here...
* tests/atlocal.in: ... and not here.

16 years agoFix test typo.
Eric Blake [Wed, 8 Jul 2009 20:43:13 +0000 (14:43 -0600)] 
Fix test typo.

* tests/m4sh.at (AS@&t@_INIT_GENERATED): Close fd, rather than
creating file named -.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix testsuite under dash.
Eric Blake [Wed, 8 Jul 2009 20:35:07 +0000 (14:35 -0600)] 
Fix testsuite under dash.

* tests/m4sh.at (LINENO stack, AS@&t@_BASENAME, AS@&t@_DIRNAME)
(AS@&t@_ECHO and AS@&t@_ECHO_N, AS@&t@_EXIT, AS@&t@_MKDIR_P)
(AS@&t@_VERSION_COMPARE, as_me, Negated classes in globbing)
(Functions Support, Functions and return Support)
(Nested AS@&t@_REQUIRE_SHELL_FN, Nested AS@&t@_REQUIRE)
(AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require, AS@&t@_HELP_STRING)
(AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR, AS@&t@_LITERAL_IF)
(AS@&t@_VAR basics, AS@&t@_VAR_APPEND, AS@&t@_VAR_ARITH)
(AS@&t@_INIT cleanup, AS@&t@_INIT_GENERATED, AS@&t@_MESSAGE_FD)
(_AS@&t@_CLEAN_DIR, ECHO_C): Allow testing different CONFIG_SHELL
options during the testsuite run.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoIgnore messages on stderr when testing for the zsh issue.
Ralf Wildenhues [Thu, 9 Jul 2009 06:19:21 +0000 (08:19 +0200)] 
Ignore messages on stderr when testing for the zsh issue.

* tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Ignore stderr.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoSkip parallel tests when zsh 'set -m' fails.
Eric Blake [Wed, 8 Jul 2009 05:01:23 +0000 (23:01 -0600)] 
Skip parallel tests when zsh 'set -m' fails.

* tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Skip test if set -m
is not supported.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoMake parallel testsuite more portable.
Eric Blake [Tue, 7 Jul 2009 12:58:18 +0000 (06:58 -0600)] 
Make parallel testsuite more portable.

* lib/autotest/general.m4 (AT_INIT) <AT_JOB_FIFO_FD>: Avoid <>;
instead open write descriptor in each group and read descriptor in
main driver.
* tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Relax condition.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAvoid syntax error in ash.
Eric Blake [Thu, 2 Jul 2009 17:32:39 +0000 (11:32 -0600)] 
Avoid syntax error in ash.

* lib/autotest/general.m4 (AT_INIT) <driver loop>: Avoid syntax
errors on shells that don't recognize <>.
* tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Also skip parallel
tests for this reason.   Skip based on the shell to be tested,
not the shell driving the testsuite.
(parallel syntax error): Rearrange similar to previous patch.
(parallel test execution): Defer skip until after serial tests.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoSkip test on shells that can't catch syntax failure.
Eric Blake [Thu, 2 Jul 2009 13:17:43 +0000 (07:17 -0600)] 
Skip test on shells that can't catch syntax failure.

* tests/autotest.at (Syntax error): Skip test if shell aborts on
syntax error (AIX ksh88) or doesn't detect it (zsh).
* doc/autoconf.texi (Limitations of Builtins) <.>: Mention these
limitations.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAvoid AIX 6.1 ksh88 ECHO_C command substitution bug.
Jan Madzik [Tue, 30 Jun 2009 06:06:24 +0000 (08:06 +0200)] 
Avoid AIX 6.1 ksh88 ECHO_C command substitution bug.

* lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Ensure more than
one character is output with `\c'; reset echo output state
if buggy ksh was detected, and set ECHO_T instead of ECHO_C.
* doc/autoconf.texi (Limitations of Builtins): Document it.
* tests/m4sh.at (ECHO_C): New test.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix grammaro in documenation.
William Pursell [Sat, 27 Jun 2009 10:23:58 +0000 (12:23 +0200)] 
Fix grammaro in documenation.

* doc/autoconf.texi (Guidelines): Fix grammaro.

16 years agoFix AC_CHECK_HEADER infloop for gcc.
Eric Blake [Wed, 17 Jun 2009 12:26:48 +0000 (06:26 -0600)] 
Fix AC_CHECK_HEADER infloop for gcc.

* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
(_AC_CHECK_HEADER_OLD): Give up on AU_DEFUN, and manually warn
about obsoletion, to avoid infinite loop in gcc.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd m4_copy_force, m4_rename_force.
Eric Blake [Mon, 15 Jun 2009 12:49:58 +0000 (06:49 -0600)] 
Add m4_copy_force, m4_rename_force.

* lib/m4sugar/m4sugar.m4 (m4_copy_force, m4_rename_force): New
macros.
* tests/m4sugar.at (m4@&t@_defn): Test them.
* doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
them.
* NEWS: Likewise.
Suggested by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoReinstate _AC_CHECK_HEADER_OLD for gcc.
Eric Blake [Mon, 15 Jun 2009 12:21:06 +0000 (06:21 -0600)] 
Reinstate _AC_CHECK_HEADER_OLD for gcc.

* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
(_AC_CHECK_HEADER_OLD): Provide autoupdate versions, since gcc and
others used these undocumented macros.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix concurrent autom4te.cache directory creation race.
Ralf Wildenhues [Fri, 12 Jun 2009 11:38:57 +0000 (13:38 +0200)] 
Fix concurrent autom4te.cache directory creation race.

* bin/autom4te.in: Do not error out if another `autom4te'
instance created the cache directory before we could.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoCreate a file in test program when detecting cross-compilation.
Steven G. Johnson [Thu, 11 Jun 2009 13:07:32 +0000 (07:07 -0600)] 
Create a file in test program when detecting cross-compilation.

* lib/autoconf/lang.m4 (_AC_LANG_IO_PROGRAM): New macro, returns
program that creates a file.
(_AC_COMPILER_EXEEXT,_AC_COMPILER_EXEEXT_WORKS): Call new macro
and document why it's needed to robustly detect cross-compiling.
(AC_LANG_DEFINE): Copy implementation across similar languages.
* lib/autoconf/c.m4 (_AC_LANG_IO_PROGRAM(C)): Implement new macro.
* lib/autoconf/fortran.m4 (_AC_LANG_IO_PROGRAM(Fortran 77)):
Likewise.
* lib/autoconf/erlang.m4 (_AC_LANG_IO_PROGRAM(Erlang)): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoSimplify AC_LANG(Fortran).
Eric Blake [Thu, 11 Jun 2009 12:59:57 +0000 (06:59 -0600)] 
Simplify AC_LANG(Fortran).

* lib/autoconf/fortran.m4 (AC_LANG(Fortran)): Borrow from Fortran
77, which requires reordering portions of the file.
(AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran)): Now defined
automatically.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoClarify m4_copy semantics.
Eric Blake [Thu, 11 Jun 2009 12:43:39 +0000 (06:43 -0600)] 
Clarify m4_copy semantics.

* doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Update
documentation.
* tests/m4sugar.at (m4@&t@_defn): Enhance test.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImprove documentation on trap pitfalls.
Eric Blake [Sun, 7 Jun 2009 04:03:16 +0000 (22:03 -0600)] 
Improve documentation on trap pitfalls.

* doc/autoconf.texi (Limitations of Builtins) <trap>: Mention new
Posix 2008 requirement on trap, and dash bug in implementing it.
Mention various shell bugs with traps defined inside subshells.
Mention older bash limitation with single-command exit trap.
<set>: Mention another 'set -e' limitation.
Reported by Jens Schmidt.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImprove testsuite's --help output.
Jim Meyering [Wed, 10 Dec 2008 08:57:30 +0000 (09:57 +0100)] 
Improve testsuite's --help output.

* lib/autotest/general.m4: Correct the example in ./testsuite --help.
Improve wording.

16 years agoDocument fallback behavior of AC_PROG_LEX.
Eric Blake [Sat, 6 Jun 2009 16:38:23 +0000 (10:38 -0600)] 
Document fallback behavior of AC_PROG_LEX.

* doc/autoconf.texi (Particular Programs) <AC_PROG_LEX>: Mention
why fallback is :, and that a --version check must be used to
determine whether flex was found.
Reported by Patrick Welche.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix syntax errors in autoconf.texi.
Jim Meyering [Thu, 28 May 2009 17:08:20 +0000 (19:08 +0200)] 
Fix syntax errors in autoconf.texi.

* doc/autoconf.texi (Erlang Libraries): @-escape curly braces
in example code.

16 years agoNew AC_ERLANG_SUBST_ERTS_VER macro.
Romain Lenglet [Thu, 28 May 2009 11:14:07 +0000 (20:14 +0900)] 
New AC_ERLANG_SUBST_ERTS_VER macro.

* lib/autoconf/erlang.m4: Add macro AC_ERLANG_SUBST_ERTS_VER.
* doc/autoconf.texi (Erlang Libraries): Document
AC_ERLANG_SUBST_ERTS_VER.
* NEWS: Likewise.
* AUTHORS: Update Romain Lenglet's email address.
* THANKS: Update.
Suggested by Ruslan Babayev.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoSanitize more problematic environment variables.
Eric Blake [Mon, 4 May 2009 17:00:30 +0000 (11:00 -0600)] 
Sanitize more problematic environment variables.

* doc/autoconf.texi (Environment Variable Index): Add more
entries, particularly for precious variables and known culprit
variables.  Needed to avoid overfull vbox.
(Special Shell Variables) <CLICOLOR_FORCE, GREP_OPTIONS>: Add
variables known to cause misbehavior.
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Unset variables
known to cause problems.
* THANKS: Update.
Based on reports from Ilya Bobir and Joey Mingrone.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoDocument VPATH = $(variable) issue in VPATH chapter.
Ralf Wildenhues [Thu, 21 May 2009 12:18:39 +0000 (14:18 +0200)] 
Document VPATH = $(variable) issue in VPATH chapter.

* doc/autoconf.texi (Variables listed in VPATH): New node.
(Top, VPATH and Make): Adjust menus.
(Build Directories): Refer to it.
Prompted by report from Bruno Haible.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoUpdate uses of all-permissive license.
Eric Blake [Mon, 4 May 2009 15:41:41 +0000 (09:41 -0600)] 
Update uses of all-permissive license.

* ChangeLog: Relicense under GPL.
* ChangeLog.0: Likewise.
* ChangeLog.1: Likewise.
* ChangeLog.2: Likewise.
* THANKS: Likewise.
* m4/m4.m4: Use latest wording of FSF all-permissive license.
* m4/make-case.m4: Likewise.
* doc/install.texi: Likewise.
* tests/statesave.m4: Relicense to match rest of testsuite; this
file does not need all-permissive license since it is not designed
for reuse by other packages.
* BUGS: Relicense under all-permissive license.
* HACKING: Likewise.
* NEWS: Likewise.
* README: Likewise.
* README-alpha: Likewise.
* README-hacking: Likewise.
* TODO: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>