summaryrefslogtreecommitdiff
path: root/m4/m4.m4
Commit message (Collapse)AuthorAgeFilesLines
* make update-copyrightPaul Eggert2023-01-201-1/+1
|
* Remove ancient backward compatibility code from m4/m4.m4.Zack Weinberg2022-07-101-10/+3
| | | | | | | | | We have had AC_PREREQ([2.69]) in our own configure.ac since 2021, and before that it was AC_PREREQ([2.62]) since 2012, so backcompat code for 2.61 is not necessary anymore. Also add logging of the name of each candidate executable and bump the serial number.
* Require GNU M4 1.4.8 or later.Zack Weinberg2022-07-061-3/+11
| | | | | | | | | | | | | | | | | | | | | | | The former minimum version was 1.4.6. 1.4.6 and 1.4.7 do not track the original location of text fed to ‘m4wrap’, which breaks autom4te’s ability to trace macros invoked from _AC_FINALIZE. Right now, the only _user_ visible effect of this is that autoconf running on M4 1.4.6 or 1.4.7 will emit an internal error, instead of the intended warning message, when it processes a configure.ac that neglects to invoke AC_INIT or AC_OUTPUT. Perhaps more importantly, it causes a bunch of scary-sounding failures in our own testsuite, which deliberately doesn’t use AC_OUTPUT sometimes. M4 1.4.6 and 1.4.7 also have bugs in location tracking of macro invocations spread over multiple lines, which, guess what, causes even more testsuite failures. 1.4.8 came out in 2006. As a practical matter, this change to our requirements means that people using macOS *to run autoconf* (not just to run generated configure scripts) cannot use the system-provided m4 anymore. {Free,Net,Open}BSD already don’t ship GNU M4 as their system m4, so users of those OSes should not be affected.
* make update-copyrightPaul Eggert2022-05-191-1/+1
|
* make update-copyrightZack Weinberg2021-01-281-1/+2
|
* maint: make update-copyrightJim Meyering2020-01-011-1/+1
|
* Prefer HTTPS to FTP and HTTPPaul Eggert2017-09-161-2/+2
|
* maint: update copyright dates for 2017Jim Meyering2017-01-011-1/+1
| | | | | * all files: Run "make update-copyright". * doc/autoconf.texi: Update manually.
* maint: make update-copyrightPaul Eggert2016-02-061-1/+1
|
* maint: bump copyright to 2015Paul Eggert2015-01-021-1/+1
| | | | * all files: Run 'make update-copyright'.
* maint: bump copyright to 2014Eric Blake2014-01-011-1/+1
| | | | | | | Done via 'make update-copyright', since all files are effectively modified and distributed this year via public version control. * all files: Update copyright year.
* maint: bump copyright to 2013Eric Blake2013-01-031-1/+1
| | | | | | | 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: quote 'like this', not `like this'Stefano Lattarini2012-09-211-1/+1
| | | | | | | | | As per updated GCS recommendations. * Makefile.am, configure.ac, lib/m4sugar/Makefile.am, tests/Makefile.am, m4/m4.m4: Here. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* maint: update copyright yearPaul Eggert2012-01-041-1/+1
| | | | All files changed to add 2012, via 'make update-copyright'.
* build: exclude M4 with buggy strstrRalf Wildenhues2011-03-051-2/+12
| | | | | | | | * m4/m4.m4 (AC_PROG_GNU_M4): When searching PATH, do not accept an m4 that has either the gnulib strstr bug, or the glibc/gnulib strstr bug. Signed-off-by: Eric Blake <eblake@redhat.com>
* maint: update copyright yearEric Blake2011-01-041-2/+1
| | | | | | All files changed to add 2011, via 'make update-copyright'. Signed-off-by: Eric Blake <eblake@redhat.com>
* Error and warning message formatting cleanups.Ralf Wildenhues2010-04-261-2/+2
| | | | | | | | | | | | | | | | | * doc/autoconf.texi (Autoconf Language, Generic Structures): Do not capitalize the first word in error messages, do not end them with a period. * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS, AC_MSG_FAILURE): Likewise. * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Likewise. * lib/autotest/general.m4 (AT_INIT, at_fn_group_prepare): Likewise. * m4/m4.m4 (AC_PROG_GNU_M4): Likewise. * tests/base.at (AC_TRY_COMMAND): Likewise. * tests/torture.at (datarootdir workaround): Adjust expected message. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* Recommend latest m4 release.Eric Blake2010-02-261-2/+2
| | | | | | | | | * README: Bump recommendation to m4 1.4.14 (minimum remains 1.4.6). * doc/autoconf.texi (Introduction): Likewise. * m4/m4.m4 (AC_PROG_GNU_M4): Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
* Update copyright year.Eric Blake2010-01-051-2/+2
| | | | | | All files changed to add 2010, via 'make update-copyright'. Signed-off-by: Eric Blake <ebb9@byu.net>
* Bump m4.m4 serial number.Paolo Bonzini2009-11-271-1/+1
| | | | * m4/m4: Bump serial number to 10.
* Fix m4 detection test on dash.Harald van Dijk2009-11-271-1/+1
| | | | * m4/m4 (AC_PROG_GNU_M4): Use AS_ECHO.
* Require m4 1.4.6, and fix testsuite to support this version.Eric Blake2009-07-251-8/+10
| | | | | | | | | | | | | | | * 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>
* Fix nits in recent patches.Eric Blake2009-07-131-4/+5
| | | | | | | | | | | | | * 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>
* use m4 -g when availablePaolo Bonzini2009-07-131-1/+21
| | | | | | | | | | 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.
* revert previous pushPaolo Bonzini2009-07-131-11/+0
|
* use m4 -g when availablePaolo Bonzini2009-07-131-0/+11
| | | | | | | | | | | 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.
* Update uses of all-permissive license.Eric Blake2009-05-201-5/+9
| | | | | | | | | | | | | | | | | | | | | | | * 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>
* Recommend the just-released M4 1.4.11.Eric Blake2008-04-021-3/+3
| | | | | | | | | * NEWS: Update recommendation. * README: Likewise. * doc/autoconf.texi (Introduction): Likewise. * m4/m4.m4 (AC_PROG_GNU_M4): Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
* Reject FreeBSD m4.Eric Blake2007-10-171-4/+8
| | | | | | | | * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support. * configure: Regenerate. Reported by Bob Friesenhahn. Signed-off-by: Eric Blake <ebb9@byu.net>
* Once again, reject IRIX m4.Eric Blake2007-10-011-1/+3
| | | | | | | | | * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU implementations that ignore --trace. * configure: Regenerate. Reported by Ralf Wildenhues. Signed-off-by: Eric Blake <ebb9@byu.net>
* Improve M4 path searching during configure.Eric Blake2007-09-081-16/+25
| | | | | | | | | | | | | | | | | | | | | | | * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New macro. (_AC_PATH_PROG_FEATURE_CHECK): Rename... (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action parameter, and kill side effects. (_AC_PROG_GREP, AC_PROG_SED): Adjust callers. (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace. * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4 is found. (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to allow bootstrapping with autoconf 2.61. * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure. * configure: Regenerate. * doc/autoconf.texi (Generic Programs): Document new macro. * tests/mktests.sh (au_exclude_script): Exclude auto-testing new macro. * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test. * NEWS: Document the change. * THANKS: Update. Reported by Hans Aberg.
* * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 asEric Blake2007-02-021-8/+10
| | | | | | | | | broken. * configure.ac: Update error message. * NEWS: Note that M4 1.4.5 or later is now a hard dependency. Reported by Gary Vaughan and Jim Meyering, and problem analyzed by Stepan Kasal: http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
* * m4/m4.m4: Change copyright.Eric Blake2006-09-201-21/+10
| | | | | | | | | | | | | | | | * configure: Regenerate. * Makefile.in: Likewise. * bin/Makefile.in: Likewise. * doc/Makefile.in: Likewise. * lib/Makefile.in: Likewise. * lib/Autom4te/Makefile.in: Likewise. * lib/autoconf/Makefile.in: Likewise. * lib/autoscan/Makefile.in: Likewise. * lib/autotest/Makefile.in: Likewise. * lib/emacs/Makefile.in: Likewise. * lib/m4sugar/Makefile.in: Likewise. * man/Makefile.in: Likewise. * tests/Makefile.in: Likewise.
* * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.Eric Blake2006-09-201-4/+15
| | | | | | * bin/Makefile.am (edit): Substitute M4_DEBUGFILE. * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed --error-output, to avoid warnings with M4 2.0.
* Rework to use more-modern build style.Paul Eggert2006-08-241-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many files are renamed; all uses of their names were changed. * .x-sc_trailing_blank: Renamed from .x-sc_trailing_blank. * .x-sc_useless_cpp_parens: New file. * build-aux/config.guess: Renamed from config/config.guess. Update. * build-aux/config.sub: Renamed from config/config.sub. Update. * build-aux/elisp-comp: Renamed from config/elisp-comp. * build-aux/install-sh: Renamed from config/install-sh. Update. * build-aux/mdate-sh: Renamed from config/mdate-sh. * build-aux/missing: Renamed from config/missing. * build-aux/texinfo.tex: Renamed from config/texinfo.tex. Update. * build-aux/vc-list-files: Renamed from config/vc-list-files. * config/Makefile.am: Removed. * config/mkinstalldirs: Removed. * config/move-if-change: Removed. * m4/m4.m4: Renamed from config/m4.m4. Add (C) to copyright notice. * Makefile.am (SUBDIRS): Remove config. (ACLOCAL_AMFLAGS): Include from m4, not config. (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt. (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this. (autom4te-update): Rewrite with a loop. Get from gnulib, not automake. Fail if there's an error. * Makefile.cfg (move_if_change): Remove. (wget_files): Remove. (cvs_executable_files): New macro. (cvs_files): Use it. Remove mkinstalldirs. Add fdl.texi. (executable-update): Use $(cvs_executable_files). (local-checks-to-skip): Remove. * Makefile.maint: Merge from coreutils, plus add our own changes (gzip_rsyncable): New macro. (GZIP_ENV): Use it. (CVS_LIST): Use build-aux/vc-list-files. (VERSION_REGEXP): New macro. (local-checks-available): Add patch-check, $(syntax-check-rules), check-AUTHORS. (syntax-check-rules): Compute dynamically. (sc_cast_of_x_alloc_return_value): Work even if no source files. (sc_cast_of_alloca_return_value): Likewise. (sc_prohibit_atoi_atof): Simplify regexp. (sc_no_if_have_config_h, sc_require_config_h): (sc_prohibit_assert_without_use, (sc_obsolete_symbols): Check for O_NDELAY. (sc_texi_notab): Remove. (sc-changelog): Don't make an exception for '----' lines. (.re-list): Remove, so we don't have a junk file behind. (sc_system_h_headers): Remove the need for .re-list. (sc_the_the): New rule. (sc_tight_scope): Simplify. (sc_trailing_space): Renamed from sc_trailing_blank. (longopt_re): New macro. (sc_two_space_separator_in_usage): New rule. (sc_unmarked_diagnostics): Look at all files under CVS. (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules. (news-date-check, changelog-check): Version is OK. (po-check): Look for lib files even if not in CVS. (copyright-check): Use $() not ``. (maintainer-distcheck): Do not depend on changelog-check. (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz). Also check for -Wpointer-arith. (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1): (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check): Remove. (announcement): Add --gpg-key-id arg. (cvs-sv): Remove. (move_if_change): Just use mv. (local_updates: Remove wget-update, po-update. (po_repo, do-po-update, po-update, wget_files, get-targets): Remove. (config.guess-url_prefix, config.sub-url_prefix): Remove. (ansi2knr.c-url_prefix, texinfo.tex-url_prefix): (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url): ($(get-targets)): Remove. (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c. (gnulib_repo): Renamed from automake_repo. Get from gnulib now. (cvs-update): Get from gnulib. (emut_upload_commands): gnupload is in build-aux now. (alpha beta major): Add changelog-check. Check version. * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux. (AC_CONFIG_FILES): Remove. * bin/autoconf.as: Add spaces to avoid distcheck warning. * config/announce-gen: Sync from coreutils. * doc/make-stds.texi: Sync from gnulib. * doc/standards.texi: Likewise. * man/Makefile.am: Adjust for config -> build-aux renaming. * tests/Makefile.am: Prefer $(FOO) to @FOO@. * tests/local.at: Adjust from config -> build-aux renaming. * tests/tools.at: Likewise. * tests/torture.at: Likewise.
* * m4/: Remove, merged into...Akim Demaille2001-10-241-29/+0
| | | | * config/: here.
* * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,Alexandre Duret-Lutz2001-08-121-0/+17
| | | | | | | | | | | | | ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am, m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4, m4/sanity.m4, tests/README, tests/aclocal.m4, tests/atspecific.m4, tests/base.at, tests/compile.at, tests/foreign.at, tests/m4sh.at, tests/m4sugar.at, tests/semantics.at, tests/suite.at, tests/tools.at, tests/torture.at: Add copyright notice. * tests/mktests.sh: Update year in copyright notice.
* AC_PROG_GNU_M4 should actually be private to the packageAkim Demaille2000-05-231-0/+12
Autoconf. * acspecific.m4 (AC_PROG_GNU_M4): Move to... * m4/m4.m4: here. * m4/Makefile.am (EXTRA_DIST): Adjust. * doc/autoconf.texi (Particular Programs): Adjust.