summaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Generate manpages directly from source code.Zack Weinberg2020-08-214-13/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We generate manpages for autoconf’s installed programs (autoconf, autoheader, etc.) using help2man, which runs each program in order to learn its --help output. Each manpage therefore has a dependency on the existence of the corresponding program, but this dependency is intentionally left out of the Makefile so that one can build from a tarball release (which will include prebuilt manpages) without having help2man installed. But when building from a git checkout with high levels of parallelism (-j20 or so), the missing dependency can lead to build failures, because help2man will try to run the program before it exists. In an earlier patch I tried to work around this with a recursive make invocation in the ‘.x.1’ rule, to ensure the existence of the program. That only traded one concurrency bug for another, now we could have two jobs trying to build the same program simultaneously and they would clobber each other’s work and the build would still fail. Instead, this patch introduces a utility script ‘help-extract.pl’ that reads --help and --version information directly from the source code for each program. This utility, wrapped appropriately for each program, is what help2man now runs. Usage is a little weird because help2man doesn’t let you specify any arguments to the “executable” that it runs, but it works, and lets us write all of the true dependencies of each manpage into the Makefile without naming any file that would be created during a build from a tarball. help-extract.pl is a Perl script, so it introduces no new build-time requirements. A downside is that we have to make sure each of the script sources in bin/, and also part of lib/Autom4te/ChannelDefs.pm, are parseable by help-extract. The most important constraints are that the text output by --help must be defined in a global variable named ‘help’, and its definition has to be formatted just the way these definitions are currently formatted. Similarly for --version. Furthermore, only some non-literal substitutions are possible in these texts; each has to be explicitly supported in help-extract.pl. The current list of supported substitutions is $0, @PACKAGE_NAME@, @VERSION@, @RELEASE_YEAR@, and Autom4te::ChannelDefs::usage. The generated manpages themselves are character-for-character identical before and after this patch. * build-aux/help-extract.pl: New build script that extracts --help and --version output from manpages. * man/autoconf.w, man/autoheader.w, man/autom4te.w, man/autoreconf.w * man/autoscan.w, man/autoupdate.w, man/ifnames.w: New shell scripts which wrap build-aux/help-extract.pl. * man/local.mk: Generate each manpage by running help2man on the corresponding .w script, not on the built utility itself. Revise all dependencies to match. * bin/autoconf.as: Rename ‘usage’ variable to ‘help’ and ‘help’ variable to ‘usage_err’. * bin/autoheader.in: Call Autom4te::ChannelDefs::usage with no function-call parentheses, matching all the other scripts. * bin/autom4te.in: Initialize $version with a regular double-quoted string, not a heredoc, matching all the other scripts. * bin/autoscan.in: Remove global variable $configure_scan.
* autoreconf: mention intltoolize and gtkdocize in --help output.Zack Weinberg2020-08-181-5/+6
|
* autoreconf: integrate intltoolize into the standard configuration toolsEli Schwartz2020-08-181-19/+45
| | | | | | | In addition to the gtkdocize tool, gtk-related software may utilize the IT_PROG_INTLTOOL macro in order to require the intltoolize tool. So too here should the tool be run by autoreconf itself, in order to guarantee its initialization via the unified frontend for all autotools projects.
* autoreconf: integrate gtkdocize into the standard reconfiguration toolsEli Schwartz2020-08-181-2/+28
| | | | | | | | | | When the GTK_DOC_CHECK macro is in use, this flags a given configure.ac as belonging the the common class of gtk-related software that requires the gtkdocize tool to be run before autoreconf, in order to install the gtk-doc macro and Makefile fragment. Make this easier to accomplish via teaching autoreconf how to detect and run this tool automatically; this gets us one step closer to a world in which `autoreconf -fi` on its own is enough to bootstrap any autotools project into a configurable state.
* Warn if AC_INIT or AC_OUTPUT are missing from configure.ac (#107986)Zack Weinberg2020-08-182-5/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is almost always incorrect for a configure script to omit either AC_INIT or AC_OUTPUT. Issue warnings in the ‘syntax’ category for this. The implementation is, unfortunately, a bit of a kludge. To check for the _absence_ of a macro invocation, we can use m4_provide_if inside a m4_wrap hook. However, if we activate the m4_wrap hook directly from general.m4, we get spurious warnings at freeze time. We also get warnings whenever a script that’s missing AC_INIT and/or AC_OUTPUT is *traced*, which means we get double warnings from autoconf, and autoheader and aclocal complain about it too, which seems unnecessary. A clean way to deal with this would be to make the hook look for a special macro that’s defined only when autoconf (the program) is invoked without any --trace arguments. Unfortunately, autom4te doesn’t pass --define down to M4, and changing that would involve coordinating with Automake (the project), so instead I’ve gone for the kludge: a new file lib/autoconf/trailer.m4 that calls m4_wrap. This file is *not* included in autoconf.m4f, but it’s installed, and it’s added to the m4 invocation by autoconf (the program) only when not tracing. (It still uses m4_wrap, because we pass it to m4 *before* configure.ac, because otherwise we get nonsense locations for any *other* diagnostics coming out of this autoconf invocation. I don’t know why.) The additional checks in autoreconf are intended to make sure that if autoreconf skips a directory entirely, you get told why. Lots of tests in the testsuite didn’t bother with AC_OUTPUT, and somewhat fewer didn’t bother with AC_INIT; where possible I just added them. Suggested by David A. Wheeler, who submitted a patch, but I didn’t wind up using any of his code. (His implementation used an extra tracing pass, only checked for a missing AC_INIT, and invented a new command-line option to turn off this specific warning. I thought this was tidier overall, despite the kludge.) * lib/autoconf/general.m4 (_AC_FINALIZE): New macro: code to be run when generating configure, after the entire configure.ac is processed. Currently only checks that AC_INIT and AC_OUTPUT were called at some point, issuing syntax-category warnings if not. (AC_INIT, AC_OUTPUT): m4_provide self. * lib/autoconf/trailer.m4: New file that just calls m4_wrap([_AC_FINALIZE]). * lib/local.mk: Install new file. * bin/autoconf.as: Add trailer.m4 to the final invocation of autom4te, but only when not tracing. * bin/autoreconf.in (autoreconf_current_directory): Distinguish in diagnostics between “directory skipped because it doesn’t have a configure.ac or configure.in” (e.g. Cygnus configure) and “directory has a configure.ac but it doesn’t appear to be autoconf input.” * tests/*.at: Fix all tests affected by the new warnings.
* Fix regression: autotools and whitespace in file namesPaul Eggert2020-08-011-5/+1
| | | | | | * bin/autoheader.in (templates_for_header): Fix previous change by not warning about file names with shell metacharacters, as this is OK for command-line file names.
* Fix regression that broke Automake ‘make check’Paul Eggert2020-08-011-6/+17
| | | | | | | | | | | | | | | | | Problem reported by Ken Moffat (sr#110287); the problem was introduced in 2016-12-21T16:15:46Z!daniel.kitta@gmail.com. * bin/autoheader.in (templates_for_header): When generating warnings about symbols lacking templates, downgrade template read failure from a fatal error to a warning. Also, don’t even try to read from a template file whose name has shell metavariables (which Autoconf 2.50 withdrew support for); just warn about that, too. These changes cause the Automake tests to merely generate warnings that are ignored, instead of failing. * doc/autoconf.texi (Configuration Files, Configuration Headers) (Configuration Commands, Configuration Links): Also document here that the file names should not contain shell metacharacters, to make this constraint more obvious.
* Stop using up_to_date_pPaul Eggert2020-06-291-9/+22
| | | | | * bin/autom4te.in (up_to_date): Rewrite to stop using up_to_date_p, which has been removed from Automake.
* Save and check Autom4te version in cachePaul Eggert2020-06-291-2/+3
| | | | | | | Problem reported in <https://bugs.debian.org/219621>. * bin/autom4te.in: Save and check autom4te version number into cache index. * lib/Autom4te/C4che.pm (save): New arg $version. All callers changed. (good_version): New sub.
* Look for AM_PROG_LIBTOOL tooAndreas Barth2020-06-291-0/+2
| | | | | | | | This helps out dh-autoreconf on Debian <https://bugs.debian.org/759739>. * bin/autoreconf.in (autoreconf_current_directory): * lib/autom4te.in (args): Look for AM_PROG_LIBTOOL too. Copyright-paperwork-exempt: Yes
* maint: make update-copyrightJim Meyering2020-01-018-10/+12
|
* Prefer HTTPS to FTP and HTTPPaul Eggert2017-09-168-29/+29
|
* "time stamp" -> "timestamp", as per POSIXPaul Eggert2017-09-162-5/+5
|
* maint: update copyright dates for 2017Jim Meyering2017-01-018-8/+8
| | | | | * all files: Run "make update-copyright". * doc/autoconf.texi: Update manually.
* doc: Mention effect of 'autoreconf -fi' on INSTALLEric Blake2016-12-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Several projects have a bootstrap script that invokes 'autoreconf -fi' as part of a fresh version control checkout, in order to avoid storing common files in version control, while also allowing contributors to rerun bootstrap to pick up the benefits of any upgrade of one of the autotools. However, the documentation did not make it obvious that such a setup will overwrite any customizations to files like INSTALL, if those files are stored in version control, when automake still considers that file to be standard based on AM_INIT_AUTOMAKE settings. In such a case, a mere 'autoreconf -i' is good for the bootstrap script, while a separate 'autoreconf -f' is good for picking up on an upgrade of any autotools. * bin/autoreconf.in (help): Mention standard files. * doc/autoconf.texi (autoreconf Invocation): Add more text, including warning that mixing --force and --install may undo customizations, and that the set of files impacted is controlled by automake. Reported by Emil Laine <laine.emil@gmail.com> Signed-off-by: Eric Blake <eblake@redhat.com>
* autoheader: check templates of all config headersDaniel Elstner2016-12-211-11/+26
| | | | | | | | | | | | | * bin/autoheader.in: When checking for missing templates, take all config headers into account, not just the one generated by autoheader. This makes it possible to use AC_DEFINE() for secondary headers without duplicating the template into the first header. * tests/tools.at: Add a check for autoheader with multiple config headers. * NEWS: Document the new behavior. Message-Id: <1482336946.31331.2.camel@gmail.com> Signed-off-by: Eric Blake <eblake@redhat.com>
* autom4te: fix problem when tracing to '-'Paul Eggert2016-03-151-2/+10
| | | | | | * bin/autom4te.in (handle_traces): When $output is '-', use stdout rather than creating a file named '-'. This fixes a problem introduced by the recent port to the new Autom4te::XFile API.
* maint: make update-copyrightPaul Eggert2016-02-068-8/+8
|
* port to new Autom4te::XFile APIPaul Eggert2016-02-066-30/+30
|
* maint: bump copyright to 2015Paul Eggert2015-01-028-8/+8
| | | | * all files: Run 'make update-copyright'.
* maint: fix 'make syntax-check' findingsEric Blake2014-01-011-1/+1
| | | | | | | | | | | | | Fix syntax check warnings that are unrelated to the new copyright year. * lib/local.mk (lib/autoscan/autoscan.list): Reduce indent, to avoid mix of tab and 8 spaces. * bin/local.mk (bin/autoconf.in): Likewise. * lib/autoconf/c.m4 (_AC_CXX_CXX98_TEST_BODY): Use consistent case in message. Signed-off-by: Eric Blake <eblake@redhat.com>
* maint: bump copyright to 2014Eric Blake2014-01-018-8/+8
| | | | | | | Done via 'make update-copyright', since all files are effectively modified and distributed this year via public version control. * all files: Update copyright year.
* build: fixup: don't define ETAGS_ARGS multiple timesStefano Lattarini2013-05-061-1/+1
| | | | | | | | | * Makefile.am (ETAGS_ARGS): Define to empty, to be updated later. * bin/local.mk (ETAGS_ARGS): Append to it, rather than re-defining it. * lib/local.mk (ETAGS_ARGS): Likewise. Also, do not bother appending "--lang=perl" once again, as that is already done in 'bin/local.mk'. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* build: no more recursion for lib 'subdir'Stefano Lattarini2013-05-061-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (SUBDIRS): Drop 'lib'. (edit): New, shared among the recipes in 'lib/local.mk' and 'bin/local.mk'. (CLEANFILES): New, will be updated later in included files. ($(srcdir)/lib/local.mk): Include it. ($(srcdir)/lib/freeze.mk): Likewise. * lib/Makefile.am: Rename ... * lib/local.mk: .. like this, with several adjustments. In particular ... (edit): Drop this definition, subsumed by the one in the top-level Makefile.am. * bin/local.mk (edit): Drop definition, that is already present in the top-level Makefile.am now. ($(srcdir)/lib/freeze.mk): Drop inclusion; that is already done in the top-level Makefile.am now. * doc/local.mk (CLEANFILES): Adjust: append to it, do not define it. * lib/freeze.mk ($(AUTOM4TE_CFG)): Adjust recipe. * configure.ac (AC_CONFIG_FILES): Drop 'lib/Makefile'. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* build: define RELEASE_YEAR with AC_SUBSTStefano Lattarini2013-05-061-5/+1
| | | | | | | | | | | | | | | | | | | Rather than reading it dynamically from the ChangeLog -- that, remember, is only a dummy in a Git checkout! To avoid risking the definition to get out-of-sync, let's enhance the maintainer target 'update-copyright' to update it automatically (the same way it's done in the Automake build system). * configure.ac (RELEASE_YEAR): New AC_SUBST'd variable. * cfg.mk (update-release-year): New maintainer-specific target to automatically update the value of that variable. (update-copyright): Depend on the new target. * bin/local.mk (RELEASE_YEAR): Drop definition. (edit): Simplify quoting of $(RELEASE_YEAR). * lib/Makefile.am (RELEASE_YEAR): Drop definition. (m4sugar/version.m4): Simplify quoting of $(RELEASE_YEAR). Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* build: no more make recursion for 'bin' subdirStefano Lattarini2013-05-061-23/+39
| | | | | | | | | | | | * Makefile.am (MOSTLYCLEANFILES): New, to be extended later by included files. ($(srcdir)/doc/local.mk): New include. (SUBDIRS): Drop 'bin'. Adjust comments. * bin/Makefile.am: Rename ... * bin/local.mk: ... like this, and adjust. * configure.ac (AC_CONFIG_FILES): Drop 'bin/Makefile'. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* autoscan: port to perl 5.17Paul Eggert2013-01-291-1/+1
| | | | | | * bin/autoscan.in (scan_sh_file): Escape '{'. This avoids a feature that is deprecated in Perl 5.17. Reported by Ray Lauff in <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00059.html>.
* maint: bump copyright to 2013Eric Blake2013-01-038-8/+8
| | | | | | | Done via 'make update-copyright', since all files are effectively modified and distributed this year via public version control. * all files: Update copyright year.
* autoreconf: assume --force-missing automake option is supportedStefano Lattarini2012-09-211-5/+1
| | | | | | | | | | | | According to Automake's NEWS file, it is since at least Automake 1.8, and in autoreconf we are already assuming aclocal >= 1.8 anyway. * bin/autoreconf.in (parse_args): Simplify a little by just assuming the automake option '--force-missing' is supported. ($automake_supports_force_missing): Delete, no longer needed. * NEWS: Update. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* autoreconf: minor simplifying refactoringStefano Lattarini2012-09-211-12/+2
| | | | | | | | | * bin/autoreconf.in (run_aclocal): After the previous commit, this has become just a useless wrapper around xsystem("$aclocal .."), so get rid of it, and inline its expansion in the two places where it was used ... (autoreconf_current_directory): ... in here. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* autoreconf: drop support for old (< 1.8) aclocal versionsStefano Lattarini2012-09-211-64/+4
| | | | | | | | | | | | | | | | | The minimal automake and aclocal version required by the "most" conservative important real world-projects (like Gnulib and Libvirt) is 1.9 anyway (which is the version installed on old but still supported installations of stable Distros like RHEL 5), so this change should be safe and justified by now. * bin/autoreconf.in (parse_args): Simplify by just assuming the aclocal options '--force' and '--no-force' are supported and works correctly. ($aclocal_supports_force): Delete, no longer needed. (run_aclocal): Heavily simplify by assuming that aclocal properly creates 'aclocal.m4' as lazily as possible. * NEWS: Update. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* scripts: quote 'like this', not `like this'Stefano Lattarini2012-09-217-214/+214
| | | | | | | | | | | | As per updated GCS recommendations. * bin/autoconf.as, bin/autoreconf.in, bin/autoscan.in, ifnames.in, bin/autoupdate.in: Throughout these files. * bin/autoheader.in, bin/autom4te.in: Likewise. Also, remove some useless escaping of the "'" single-quote characters, and reformat some message for better line wrapping. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* maint: spelling fixesPaul Eggert2012-03-012-2/+2
|
* maint: update copyright yearPaul Eggert2012-01-048-8/+8
| | | | All files changed to add 2012, via 'make update-copyright'.
* maint: update copyright yearEric Blake2011-01-048-17/+10
| | | | | | All files changed to add 2011, via 'make update-copyright'. Signed-off-by: Eric Blake <eblake@redhat.com>
* autom4te: don't filter out portions of location tracesEric Blake2010-09-201-2/+5
| | | | | | | | | | * bin/autom4te.in (_m4_warn): Pass warnings through the channels machinery as a single chunk, to avoid partial filtering. * lib/m4sugar/m4sugar.m4 (_m4_warn): Document the conventions. * tests/m4sugar.at (m4@&t@_warn): Enhance test to catch this. Reported by Bruno Haible. Signed-off-by: Eric Blake <eblake@redhat.com>
* m4sh: revert incorrect mix of "${a='b'}"Eric Blake2010-08-251-1/+1
| | | | | | | | | Regression introduced in cb27df430d86d5a16bc1f210d36e29400369dbc2. * bin/autoconf.as: Revert leak of literal '' into assignment. * tests/tools.at (autom4te preselections): Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
* docs: mention cost of globbing during variable expansionEric Blake2010-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | | * doc/autoconf.texi (Shell Substitutions) <${var=literal}>: Recommend quoting substitutions that might trigger globbing. (Limitations of Builtins) <:>: Likewise. * bin/autoconf.as: Follow our own advice. * lib/autoconf/functions.m4 (AC_FUNC_SELECT_ARGTYPES): Likewise. * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Likewise. * lib/autoconf/status.m4 (AC_OUTPUT): Likewise. * lib/autotest/general.m4 (_AT_FINISH): Likewise. * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise. * tests/autotest.at (parallel autotest and signal handling): Likewise. * tests/c.at (AC_OPENMP and C, AC_OPENMP and C++): Likewise. * tests/foreign.at (shtool): Likewise. * tests/fortran.at: Likewise. * tests/tools.at (autom4te preselections): Likewise. * tests/torture.at (VPATH): Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
* autoreconf: mention the AUTOM4TE environment variableStefano Lattarini2010-08-191-2/+2
| | | | | | | * doc/autoconf.texi (Using autoreconf to Update configure Scripts): List `AUTOM4TE' among the environment variables honored by autoreconf. * bin/autoreconf.in ($help): Likewise.
* Let autoreconf pass warning flags to new-enough aclocal.Ralf Wildenhues2010-07-201-3/+13
| | | | | | | | | | | | * bin/autoreconf.in ($aclocal_supports_warnings) ($automake_supports_warnings): New globals. (parse_args): Set and use them. Be sure to invoke `aclocal --help' and `automake --help' just once each. * NEWS: Update. Prompted by report from Bruno Haible. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de> Signed-off-by: Eric Blake <eblake@redhat.com>
* Update copyright year.Eric Blake2010-01-058-10/+11
| | | | | | All files changed to add 2010, via 'make update-copyright'. Signed-off-by: Eric Blake <ebb9@byu.net>
* Avoid spurious newline in traced macros.Eric Blake2009-11-211-0/+1
| | | | | | | * bin/autoreconf.in (tracing): Drop newline before parsing traced arguments; regression from 2009-11-14. Signed-off-by: Eric Blake <ebb9@byu.net>
* Fix AC_CONFIG_SUBDIRS tracing in autoreconf.Ralf Wildenhues2009-11-141-11/+15
| | | | | | | | | | | | | * 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>
* Pass Autom4te path down to programs that autoreconf invokes.Paolo Bonzini2009-10-271-0/+2
| | | | | | * bin/autoreconf.in (autom4te): New variable. Export its value as $ENV{'AUTOM4TE'}. Suggested by Peter Johansson. * THANKS: Update.
* * bin/autoupdate.in: Fix typos in comments.Ralf Wildenhues2009-09-131-9/+9
| | | | Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* Update License to GPLv3+ including new Autoconf Exception.Ralf Wildenhues2009-09-097-49/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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+.
* Allow to work on systems without Fcntl::flock implementation.Ralf Wildenhues2009-09-092-1/+5
| | | | | | | | | | * 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>
* Simplify version control metadata.Eric Blake2009-08-172-20/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * .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>
* Don't hide leading space in autom4te --trace output.Eric Blake2009-07-161-4/+1
| | | | | | | | * 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>
* use m4 -g when availablePaolo Bonzini2009-07-132-1/+2
| | | | | | | | | | 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.