There are many small bug fixes, and all the executables have been revamp around autom4te. Autotest is also getting mature, but still lacks some decent documentation. This is the main focus before the release, the code should not change significantly.
Please, use it, test it, torture, like it. ftp://alpha.gnu.org/gnu/autoconf/autoconf-2.52f.tar.gz (937 kB) ftp://alpha.gnu.org/gnu/autoconf/autoconf-2.52f.tar.bz2 (718 kB) And here are xdelta-style diffs ftp://alpha.gnu.org/gnu/autoconf/autoconf-2.52d-2.52f.xdelta (66 kB) Here are the MD5 and SHA1 signatures for the compressed tar files: c24dab39ac05c0ebf75d67fb779e4787 autoconf-2.52f.tar.gz 699858608615777862bdadfa7dbe0207 autoconf-2.52f.tar.bz2 c1b54f5dfe75ad4b3ec170e8ece90942fdf38826 autoconf-2.52f.tar.gz 77bc5075bc8f179899b305ec25823b18b75e352f autoconf-2.52f.tar.bz2 NEWS: ** Requirements Perl 5.005_03 or later is required: autom4te is written in Perl and is needed by autoconf. autoheader, autoreconf, ifnames, and autoscan are rewritten in Perl. ** Documentation - AC_INIT Argument requirements, output variables, defined macros. - M4sugar, M4sh, Autotest First sketch. - Double quoting macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and AC_TRY_RUN. - Licensing The Autoconf manual is now distributed under the terms of the GNU FDL. ** configure - $LINENO Now used instead of hard coded line numbers. This eases the comparison of `configure's, and diminishes the pressure over control version archives. Automatic replacement for shells that don't support this feature. - New output variables @builddir@, @top_builddir@, @srcpath@, @top_srcpath@, @buildpath@, @top_buildpath@. ** Emacs Autoconf and Autotest modes are provided. ** Executables - autom4te New, used by the Autoconf suite to cache and speed up most processing. - --force, -f Supported by autom4te, autoconf and autoheader. - --include, -I Replaces --autoconf-dir and --localdir in autoconf, autoheader, autoupdate, and autoreconf. - autoreconf No longer passes --cygnus, --foreign, --gnits, --gnu, --include-deps: automake options are to be given via AUTOMAKE_OPTIONS. - autoreconf Runs gettextize and libtoolize when appropriate. - autoreconf --m4dir is no longer supported. ** Bug fixes - The top level $prefix is propagated to the AC_CONFIG_SUBDIRS configures. - AC_TRY_RUN Under the user pressure, $? is finally available. Probably a mistake. ** C Macros - AC_C_BIGENDIAN supports the cross-compiling case. - AC_C_BIGENDIAN accepts ACTION-IF-TRUE, ACTION-IF-FALSE, and ACTION-IF-UNKNOWN arguments. All are facultative, and the default for ACTION-IF-TRUE is to define WORDS_BIGENDIAN like AC_C_BIGENDIAN always did. ** Generic macros - AC_CONFIG_COMMANDS, HEADERS, FILES, LINKS. Provide the user with srcdir, ac_srcdir, ac_top_srcdir, ac_builddir, ac_top_builddir, ac_srcpath, ac_top_srcpath, ac_buildpath, ac_top_buildpath. ** Library macros - AC_FUNC_STRERROR_R now sets STRERROR_R_CHAR_P, not HAVE_WORKING_STRERROR_R, because POSIX 1003.1-200x draft 7 says strerror_r returns int, not char *. ChangeLog entries: 2001-11-02 Akim Demaille <[EMAIL PROTECTED]> Version 2.52f. 2001-11-02 Akim Demaille <[EMAIL PROTECTED]> * config/config.guess, config/config.sub, doc/standards.texi: * config/lispdir.m4: Update from masters. * configure.ac: Bump to 2.52f. 2001-11-02 Akim Demaille <[EMAIL PROTECTED]> * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''. Don't run aclocal when aclocal.m4 is not from aclocal. From Ezra Peisach. Don't run libtoolize and gettextize if --install is not given. 2001-11-01 Paul Eggert <[EMAIL PROTECTED]> * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to be invoked before _AS_LINENO_PREPARE. (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather than character ranges. * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before invoking AS_BASENAME. Set the locale variables to 'C' if possible, as POSIX requires this to get the traditional behavior. * doc/autoconf.texi (Special Shell Variables): Describe the above. 2001-10-31 Paul Eggert <[EMAIL PROTECTED]> * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body with {}, as that triggers a bug in Bash 2.05. (_AS_LINENO_PREPARE): Use Sed rather than Awk. Fix the sed prepass to work even if there are multiple instances of $LINENO on the same line. Do not substitute for other variables like $LINENOT. Do not check file dates; such a check is unreliable on sufficiently fast machines, and removing the check makes the code simpler and more reliable. Check for output and chmod failures. * doc/autoconf.texi (Special Shell Variables): Document the above. 2001-10-31 Akim Demaille <[EMAIL PROTECTED]> * tests/Makefile.am (atconfig): Remove this target, Automake handles it now. 2001-10-31 Akim Demaille <[EMAIL PROTECTED]> * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be provided, while it is optional. * configure.ac: Adjust. 2001-10-26 Paul Eggert <[EMAIL PROTECTED]> * NEWS, README, configure.ac, lib/Autom4te/General.pm, lib/Autom4te/Struct.pm: Require Perl 5.005_03 instead of just 5.005, as some tests fail with 5.005_02. * doc/autoconf.texi (Special Shell Variables): Document some more LINENO gotchas, particularly with respect to the Awk+Sed hack. * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro. (_AS_LINENO_PREPARE): Use it instead of shell eval, since eval $LINENO is not portable in practice. 2001-10-24 Akim Demaille <[EMAIL PROTECTED]> * lib/Autom4te/General.pm (backname): New. 2001-10-24 Akim Demaille <[EMAIL PROTECTED]> * m4/: Remove, merged into... * config/: here. 2001-10-23 Tim Van Holder <[EMAIL PROTECTED]> * doc/autoconf.texi (Shellology): Mention the problems with bash 2.05's use of ANSI quoting in its `set' builtin. 2001-10-22 Paul Eggert <[EMAIL PROTECTED]> * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p, and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since POSIX decided to standardize on the int flavor of strerror_r. Always do char* test, as there's no reason not to. Assign to a char* var, to catch strerror_r that returns int*. * doc/autoconf.texi (Particular Functions): Document the above changes. Also, document the fact that AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R. * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P. 2001-10-20 Akim Demaille <[EMAIL PROTECTED]> * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of the executable was missing from the log. 2001-10-20 Akim Demaille <[EMAIL PROTECTED]> * lib/Autom4te/General.pm (&update_file): If destination is unchanged, remove the source. (&up_to_date_p): Don't be verbose, be debug. * bin/autoreconf.in: No longer support --m4dir. (&autoreconf): Display the full path of the configure.ac we are studying. Trace it only once. Be sure to honor --force with gettextize. Always run aclocal. * doc/autoconf.texi: Adjust. 2001-10-20 Akim Demaille <[EMAIL PROTECTED]> * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX): Remove, dead. * bin/autoreconf.in (&autoreconf): Do not run gettextize when `intl' is already present, as it refuses unless --force. (&parse_args): Use -I, --include instead of the old Autoconf options. ($localdir, $autoconf_dir): Remove. (@include): New. (&maybe_autoreconf): New, to preserve $_ for File::Find. 2001-10-19 Jens Petersen <[EMAIL PROTECTED]> * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk. * doc/autoconf.texi (Particular Programs): Likewise. 2001-10-19 Akim Demaille <[EMAIL PROTECTED]> * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated file in @configure_input@. Don't mention `automatically' in addition to `generated'. * tests/torture.at (#define header templates): Adjust. 2001-10-19 Akim Demaille <[EMAIL PROTECTED]> * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a comment, explain how to install automatic mode selection. From Russ Allbery. 2001-10-19 Ezra Peisach <[EMAIL PROTECTED]> * bin/autoreconf.in (autoreconf): Display the path to the configure.ac being studied. 2001-10-18 Paul Eggert <[EMAIL PROTECTED]> * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned long, to work around a bug in the HP C compiler version HP92453-01 B.11.11.23709.GP. * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works. (AS_BASENAME_EXPR): New macro. (AS_BASENAME_SED): Do not assume GNU sed semantics. (AS_BASENAME): Use 'basename' if that works; then try 'expr'; and fall back on 'sed' only if the other two fail. This makes AS_BASENAME act more like AS_DIRNAME. (as_me): Shell-quote the argument of AS_BASENAME, in case $0 contains white space. * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Use AS_DIRNAME, since I think it's now DOS-friendly. * tests/m4sh.at (DIRNAME_TEST): New arg $3. Allow "dirname //FOO" to return either / or //, as POSIX allows either behavior. 2001-10-10 Akim Demaille <[EMAIL PROTECTED]> * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV. From Eric Sharkey. 2001-10-10 Akim Demaille <[EMAIL PROTECTED]> * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not m4_define, since... (_AS_ECHO_N): AS_REQUIREs it. 2001-10-10 Akim Demaille <[EMAIL PROTECTED]> * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS) (AC_INCLUDES_DEFAULT): Move to... * lib/autoconf/headers.m4: here. * lib/autoconf/types.m4: Comment changes. * doc/autoconf.texi: Specify where the default includes are used in the macro prototypes. 2001-10-09 Akim Demaille <[EMAIL PROTECTED]> * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New transition code. 2001-10-08 Akim Demaille <[EMAIL PROTECTED]> * bin/autoreconf.in (&autoreconf): Remove debugging code. (&parse_args): Pass verbosity/debugging options to subtools when --debug, not when --verbose. * lib/autom4te.in (Autoreconf-preselections): New. (Autoconf): Use it. 2001-10-08 Akim Demaille <[EMAIL PROTECTED]> * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate. 2001-10-08 Akim Demaille <[EMAIL PROTECTED]> * doc/autoconf.texi (autoreconf Invocation): Adjust. * bin/autoreconf.in (autoreconf): Run gettextize when appropriate. 2001-10-08 Akim Demaille <[EMAIL PROTECTED]> * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf. (Syntax of the shell scripts): Don't. * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't bother with $force since... * lib/Autom4te/General.pm: does. 2001-10-08 Akim Demaille <[EMAIL PROTECTED]> * bin/autoreconf.in: Rewrite in Perl. * configure.ac: Adjust. * lib/Autom4te/General.pm (&up_to_date_p): New. * bin/autom4te.in (&up_to_date_p): Use it. Rename as... (&up_to_date): this. 2001-10-08 Akim Demaille <[EMAIL PROTECTED]> * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize) (m4_list_cmp): Use $0 to reinvoke yourself. (m4_patsubsts): New. (m4_strip, m4_version_unletter): Use it. * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise. 2001-10-08 Akim Demaille <[EMAIL PROTECTED]> * lib/autoconf/autoconf.m4, lib/autoconf/general.m4, * lib/autoconf/libs.m4, lib/autoconf/status.m4, * lib/autoconf/types.m4, lib/autotest/general.m4, * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4, * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to m4_bregexp, m4_bpatsubst, and m4_bmatch. * doc/autoconf.texi (Redefined M4 Macros): Adjust. 2001-10-08 Akim Demaille <[EMAIL PROTECTED]> * lib/m4sugar/m4sh.m4: Use AS_REQUIRE. 2001-10-08 Akim Demaille <[EMAIL PROTECTED]> * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE. * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to... * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here. * tests/tools.at, tests/m4sh.at: Use it. * tests/m4sh.at: Don't rely on Autoconf macros. (DIRNAME_TEST): Also exercise the expr variant. * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The preferred M4sugar extension is now `.4s'. * tests/README: Remove. 2001-10-08 Akim Demaille <[EMAIL PROTECTED]> * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as... (m4_provide_if): this. * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New. * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE) (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker. 2001-10-08 Akim Demaille <[EMAIL PROTECTED]> Use `add-log-current-defun-function' for ChangeLog creation. Suggested by Tom Tromey. * lib/emacs/autotest-mode.el (autotest-mode-map): New. (autotest-mode): Adjust. * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map 'comment-region onto `C-c ;'. Comments are `#', not `dnl'. (autoconf-current-defun): New. (autoconf-font-lock-keywords): Recognize `m4_defun'. 2001-10-08 Akim Demaille <[EMAIL PROTECTED]> * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to... * lib/m4sugar/m4sh.m4: here. (AS_INIT): Push the BODY diversion, set the #! /bin/sh line. * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove. (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation, include handle the m4_pattern_*, no longer push the BODY diversion nor set the /bin/sh line, AS_INIT does it. * lib/autotest/general.m4 (AT_INIT): Likewise. * tests/base.at: Adjust the tests to use AS_INIT. * tests/tools.at (AT_DATA_FORBIDDEN): New. (autoconf: forbidden tokens): Adjust to work on M4sh instead of Autoconf. 2001-10-07 Paul Eggert <[EMAIL PROTECTED]> * doc/autoconf.texi (config.status Invocation): CONFIG_SHELL defaults to a shell that supports LINENO if available. * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current shell does not support LINENO, and if CONFIG_SHELL is unset or empty, and if we can find a shell that does support LINENO, then set CONFIG_SHELL to that shell and then re-execute ourselves with CONFIG_SHELL. 2001-10-05 Paul Eggert <[EMAIL PROTECTED]> * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it doesn't exist. Remove *.tmp, as a .tmp file is created during the build of $(TESTSUITE). 2001-10-05 Akim Demaille <[EMAIL PROTECTED]> * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path iff we are a bareword. Reported by Raja R Harinath. 2001-10-05 Akim Demaille <[EMAIL PROTECTED]> * tests/m4sh.at (LINENO): New. * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set PATH_SEPARATOR before using it. Fix the absolute path case/esac pattern. Provide $0 as fallback for as_myself. Reported by Raja R Harinath. 2001-10-05 Akim Demaille <[EMAIL PROTECTED]> * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am, * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES. 2001-10-05 Akim Demaille <[EMAIL PROTECTED]> * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from... (AS_SHELL_SANITIZE): here. Use it. (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno. From Paul Eggert. 2001-10-04 Akim Demaille <[EMAIL PROTECTED]> * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable combination of Awk and sed to replace $LINENO. 2001-10-02 Paul Eggert <[EMAIL PROTECTED]> * doc/autoconf.texi (Limitations of Builtins): You can't use "source"; it's not portable. Remove confusing and somewhat-incorrect example involving "." and "/". * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for compatibility with POSIX shells. 2001-10-02 Akim Demaille <[EMAIL PROTECTED]> * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno instead of exec'ing to preserve $0 and $@. 2001-10-01 Akim Demaille <[EMAIL PROTECTED]> * tests/testsuite (AT_INIT) <at_pass_list>: New. Don't run twice the same test. 2001-10-01 Akim Demaille <[EMAIL PROTECTED]> * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality. No longer output the list of tests. <--list>: New option. <--full-help>: Remove. Complete the short/long options duality. Various small adjustments. 2001-10-01 Akim Demaille <[EMAIL PROTECTED]> * doc/autoconf.texi: Use @kbd for user input. Always use `$' as shell prompt. 2001-09-30 Paul Eggert <[EMAIL PROTECTED]> * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Don't use nested parenthesization. This patch was originally suggested to bug-autoconf by Philippe De Muyter on 2000-05-28, but somehow it didn't get incorporated then. * doc/autoconf.texi (Limitations of Usual Tools): Clarify remark about sed and nested parenthesization. * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Report an error if the size cannot be determined even though the type exists. * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE): Check for `expr' arithmetic overflow, and for compilation failure, and invoke a new argument $4 if either is discovered. This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN. (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE. 2001-09-28 Akim Demaille <[EMAIL PROTECTED]> * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New. * m4/lispdir.m4: New. * aclocal.m4, configure.ac: Adjust. 2001-09-28 Akim Demaille <[EMAIL PROTECTED]> * lib/autotest/general.m4 (AT_VICTIMS): Rename as... (AT_TESTED): this. (AT_INIT): More the wrapped section to where it will be expanded. Output `AT_tested' only when existing. Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT. 2001-09-27 Akim Demaille <[EMAIL PROTECTED]> Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that generates too many bug reports. * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit status when executing the ACTION-IF-FALSE. * tests/base.at (AC_TRY_*): Rename as... (AC_TRY_COMMAND): this. (AC_RUN_IFELSE): New. * tests/compile.at (Extensions, C keywords) (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77) (Broken/missing compilers, AC_PROG_CPP with warnings) (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to... * tests/c.at (Extensions, C keywords) (Broken/missing compilers, AC_PROG_CPP with warnings) (AC_PROG_CPP without warnings, AC_PROG_CPP via CC) (AC_PROG_CPP requires AC_PROG_CC): here and... * tests/fortran.at (GNU Fortran 77): there. * doc/autoconf.texi (autoconf Invocation): Fix the example: AC_TRY_RUN is about compilation, not shell commands. (Test Programs): AC_TRY_RUN works as used to be advertised. 2001-09-27 Akim Demaille <[EMAIL PROTECTED]> * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by Raja R Harinath: Be sure to detect when $LINENO always returns the same value. Look for the original script, basename($0) is certainly not enough. Pass the CLI arguments to `$as_me.lineno'. 2001-09-25 Akim Demaille <[EMAIL PROTECTED]> * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log. Be sure the close and reopen the LOG fd before and after using tee to extend the log. <at_tests_pattern>: Adjust to the new format of at_help_all. 2001-09-23 Akim Demaille <[EMAIL PROTECTED]> * bin/autom4te.in (parse_args): There can be several invocations of --language now. 2001-09-23 Akim Demaille <[EMAIL PROTECTED]> * doc/autoconf.texi (Top): Wrap in @ifnottex. 2001-09-23 Akim Demaille <[EMAIL PROTECTED]> * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath. (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath, builddir, buildpath, top_builddir, and top_buildpath. (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing the current directory. * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir variables *before* changing the current directory. Skip nonexistent dirs. * doc/autoconf.texi (Preset Output Variables): Document these variables. * lib/autotest/general.m4: Do not reset AT_victims. Don't compute at_srcdir nor at_top_srcdir. * tests/tools.at: Hence use top_srcdir. * tests/Makefile.am, tests/autoconf, tests/autoheader, * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames: Remove. * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in, * tests/wrapsh.in, tests/autoupdate.in: New. * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust. * configure.ac: Build the position independent wrappers. * man/Makefile.am: Now that test wrappers are position independent, use them and drop dark envvar magic. 2001-09-23 Akim Demaille <[EMAIL PROTECTED]> * doc/autoconf.texi (Common Shell Constructs): Rename as... (Programming in M4sh): this. Promote to @section. 2001-09-23 Akim Demaille <[EMAIL PROTECTED]> * lib/autotest/general.m4 (AT_INIT): Dump config.log last. Pass $at_debug_args to the rerun test suite. * lib/m4sugar/Makefile.am (DISTCLEANFILES): New. * bin/Makefile.am (ETAGS_SH): Don't use characters ranges. From Paul Eggert. 2001-09-23 Akim Demaille <[EMAIL PROTECTED]> * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'. 2001-09-23 Akim Demaille <[EMAIL PROTECTED]> * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell over-escaping. 2001-09-23 Akim Demaille <[EMAIL PROTECTED]> * lib/Autom4te/General.pm (&debug): New. * bin/autom4te.in ($language): Move to... (parse_args): here. Handle --language in languages. * lib/autom4te.in (Automake-selections, Autoheader-selections) (Autoscan-selections): New. (Autoconf): Adjust. 2001-09-23 Tim Van Holder <[EMAIL PROTECTED]> * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4, * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated to match current versions from CVS Automake. 2001-09-23 Alexandre Duret-Lutz <[EMAIL PROTECTED]> * doc/autoconf.texi (Special Shell Variables): Add pdksh output for $LINENO. 2001-09-22 Akim Demaille <[EMAIL PROTECTED]> * lib/autoconf/autotest.m4: Create `package.m4'. * tests/Makefile.am (package.m4): Remove. 2001-09-22 Akim Demaille <[EMAIL PROTECTED]> Rely on `$LINENO' when possible instead of `__oline__'. * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of `$LINENO' support replacement when not supported. (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke them explicitly to be sure they are not output before this section (via m4_require). Cosmetic only. * lib/autoconf/c.m4, lib/autoconf/general.m4, * lib/autoconf/programs.m4: Replace all the occurrences of `__oline__' with `$LINENO'. * doc/autoconf.texi (Special Shell Variables): Document LINENO. 2001-09-21 Tim Van Holder <[EMAIL PROTECTED]> * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit character (u: -> ue) in a code comment. (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know it works. 2001-09-21 Akim Demaille <[EMAIL PROTECTED]> * Makefile.maint (AUTOM4TE): Neutralize autom4te. Suggested by Jim Meyering. 2001-09-20 Tim Van Holder <[EMAIL PROTECTED]> * lib/autoconf/programs.m4: Use extensions listed in $ac_executable_extensions when looking for programs. 2001-09-20 Tim Van Holder <[EMAIL PROTECTED]> * lib/autoconf/general.m4: Fix a small Englisho. * lib/autoconf/status.m4: Fix a small typo. Handle DOS paths when setting up ac_dir_suffix and ac_top_builddir. * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'. 2001-09-20 Tim Van Holder <[EMAIL PROTECTED]> * doc/autoconf.texi (File System Conventions): Clarify the use of PATH_SEPARATOR. (Special Shell Variables[PATH_SEPARATOR]): Ditto. (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should be used instead of ':'. * lib/autotest/general.m4: Replace occurrences of ':' in AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup. 2001-09-20 Tim Van Holder <[EMAIL PROTECTED]> * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as arguments. Fixed a typo. 2001-09-20 Tim Van Holder <[EMAIL PROTECTED]> * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up $PATH. Also set AUTOM4TE_CFG, so we can process autom4te properly. 2001-09-20 Tim Van Holder <[EMAIL PROTECTED]> * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'. * bin/autoupdate.in: Ditto. * bin/autoheader.in: Reworded a few comments. * bin/autoconf.in: Reworded help text for a few options. * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in, * bin/autoscan.in, bin/autoupdate.in: Ditto. 2001-09-20 Tim Van Holder <[EMAIL PROTECTED]> * lib/Autom4te/XFile.pm (open): Simplified the error message (we already have $file). Set output files to binary mode (helps avoid CR issues on DOSish systems). 2001-09-19 Akim Demaille <[EMAIL PROTECTED]> * lib/autotest/general.m4: Englishoes. From Tim Van Holder and Alexey Mahotkin. 2001-09-18 Paul Eggert <[EMAIL PROTECTED]> * doc/autoconf.texi (Common Shell Constructs): New node, documenting AS_DIRNAME. (Limitations of Usual Tools): Refer to it when discussing dirname. Also, update discussion of POSIX standard to reflect latest draft. * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN. * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE): Do not pass a first argument with leading '-' to expr, by parenthesizing initial integers that might be negative. * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP now merely checks whether it is an error to pass an argument to getpgrp. * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove. (AC_FUNC_GETPGRP): Don't bother with a runtime test. Just check whether it is a (compile-time) error to pass an argument to getpgrp. This simpler test supports the revised documentation, and is all that AC_FUNC_GETPGRP's users really need. 2001-09-18 Akim Demaille <[EMAIL PROTECTED]> * doc/autoconf.texi (Limitations of Make) <$<>: New. 2001-09-18 Akim Demaille <[EMAIL PROTECTED]> * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about `{}'. * lib/autotest/general.m4 (AT_INIT): Adjust. 2001-09-18 Paul Wagland <[EMAIL PROTECTED]> * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///' correctly. Add test for AS_BASENAME. * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous added test. It now correctly handles /1/2/3/, returning '3' not ''. Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME. * tests/base.at: Fixed the expected responses. The old ones were one line out... * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as the documentation claims it should (and how it behaved in 2.13). 2001-09-18 Akim Demaille <[EMAIL PROTECTED]> * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in the AC_CONFIG_COMMANDS invocation. This also solves the name clash problems. Don't set the package's ID. * lib/m4sugar/Makefile.am (version.m4): Revamp. No longer to be shipped. (version.in): Remove. * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4, * lib/autoconf/status.m4: Adjust. Use `m4_PACKAGE_STRING'. * lib/autotest/general.m4 (AT_INIT): N-th signature change: now the only optional argument is the name of the test suite. Expect `package.m4' to define the package signature. * lib/autom4te.in (Autotest): Add `package.m4?'. * tests/Makefile.am (package.m4): New. * tests/suite.at: ifnames is a victim. 2001-09-18 Akim Demaille <[EMAIL PROTECTED]> * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL, AC_LIBSOURCE, AC_CONFIG_FILES. * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested program version string doesn't match the package's. * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space after `(cached)'. 2001-09-17 Paul Eggert <[EMAIL PROTECTED]> * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)): Allow expression to return any value that can fit into unsigned long (not int, as before). Check for output errors. 2001-09-17 Bruno Haible <[EMAIL PROTECTED]> * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)): Always include <stdio.h> and <stdlib.h>. Evaluate the expression in an extra function before these includes. Call fprintf "%d" only after ensuring the argument is of type 'int'. Reported by Wayne Chapeskie <[EMAIL PROTECTED]>. 2001-09-17 Paul Eggert <[EMAIL PROTECTED]> Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4 or CFLAGS=-O5. In that case, the linker has a relaxed view of fatal errors, and AC_CHECK_LIB causes it to include libraries even when they don't exist. * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't need it. * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty version with the version used by fileutils 4.1, except use AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if we don't need it. * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior. 2001-09-13 Akim Demaille <[EMAIL PROTECTED]> * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line _first_. Reported by Gerrit P. Haase. 2001-09-13 Akim Demaille <[EMAIL PROTECTED]> * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that m4_defn'ing is valid. 2001-09-13 Akim Demaille <[EMAIL PROTECTED]> * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New. * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE): Use it. 2001-09-13 Akim Demaille <[EMAIL PROTECTED]> * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use m4_match. (m4_re_escape): New. * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it. * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match. * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS): Likewise. * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P) (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise. * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as AT_tests_all for consistency. Set at_victims. (AT_VICTIMS): Similar to AT_KEYWORDS. (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape. 2001-09-13 Akim Demaille <[EMAIL PROTECTED]> * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs. 2001-09-13 Akim Demaille <[EMAIL PROTECTED]> * lib/autotest/general.m4 (AT_INIT): Create and remove `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple test suites can cohabit. 2001-09-13 Akim Demaille <[EMAIL PROTECTED]> * tests/mktests.sh: Don't output banners for empty test files. 2001-09-13 Akim Demaille <[EMAIL PROTECTED]> Test suites can be run independently of configure. * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New. * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove. * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST ECHO_N etc. * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n and at_c. * lib/autotest/general.m4: Use ECHO_*. 2001-09-13 Akim Demaille <[EMAIL PROTECTED]> * bin/ifnames.in: Rewrite in Perl. * configure.ac: Don't look for AWK. * tests/tools.at (AWK portability): Remove. (Syntax of the shell scripts): Don't check ifnames. (AT_CHECK_PERL_SYNTAX): New. (Syntax of the Perl scripts): Check ifnames. * tests/ifnames: New. 2001-09-13 Akim Demaille <[EMAIL PROTECTED]> * lib/autotest/general.m4 (AT_INIT): Let --keywords also match test group titles. * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate). Remove all the other keywords. 2001-09-10 Akim Demaille <[EMAIL PROTECTED]> * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and SETUP: no longer used. Support -k, --keywords. <at_help>: Be `no', `short', or `long'. <at_help_all>: New variable. (AT_KEYWORDS): New. (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as... (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these. (_AT_CLEANUP_FILE_IF): Simplify the regexp. (AT_SETUP): Reset AT_line, AT_keywords, AT_description. No longer fill the HELP diversion. (AT_CLEANUP): Use them. * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator. (m4_list_append): Remove. Spread a few keywords in the Autoconf test suite. 2001-09-10 Akim Demaille <[EMAIL PROTECTED]> * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass PATH_SEPARATOR, let M4sh compute it. * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New. * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR. Move to... * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here. Simplify when the path is not a literal. (AS_UNAME): Use it to report PATH. * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove. (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR. * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK. * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to normalize the path, and to look for victims. * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS) (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR. 2001-09-07 Akim Demaille <[EMAIL PROTECTED]> * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5 doesn't neutralize SIGINT, making autoconf etc. non interruptible. * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package related variables into `at_package_*'. * lib/autotest/general.m4 (AT_VICTIMS): New. (AT_INIT): Adjust for stand-alone/embedded test suites. (AS_MESSAGE_LOG_FD): Define and use it. * tests/suite.at (AT_VICTIMS): Use it. * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon at_version. 2001-09-07 Akim Demaille <[EMAIL PROTECTED]> Move toward possibly stand-alone test suites. * lib/autotest/general.m4: Stop displaying srcdir everywhere as, in addition, it introduces useless differences in logs. (AT_INIT): Let atconfig and atlocal be both optional. Adjust PATH computation. * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH. 2001-09-07 Akim Demaille <[EMAIL PROTECTED]> * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon m4sugar/version.m4. 2001-09-05 Akim Demaille <[EMAIL PROTECTED]> * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_' to avoid GCC warnings. From Uwe Seimet. 2001-09-05 Akim Demaille <[EMAIL PROTECTED]> * bin/autom4te.in: --language is -l, not -s. 2001-09-05 Akim Demaille <[EMAIL PROTECTED]> Be ready to handle filenames as stupid as `dnl.at', for if even the maintainer is dumb enough to do that... * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your excellence in M4 quotation: consider `__file__' is active. And BTW, when invoking m4, pass the --include in the right order: the wrong one. * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to 4m. 2001-09-05 Akim Demaille <[EMAIL PROTECTED]> * lib/Autom4te/XFile.pm: New lib file. * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in, * bin/autoheader.in: Use it. 2001-09-05 Akim Demaille <[EMAIL PROTECTED]> * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff defined. 2001-09-05 Akim Demaille <[EMAIL PROTECTED]> * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug. * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust. * bin/autoscan.in: Use `getopt' and `find_files' etc. Add -I, --include support. * doc/autoconf.texi (autoscan Invocation): Adjust. 2001-09-05 Akim Demaille <[EMAIL PROTECTED]> CVS GNU M4 doesn't like `undefine(undefined)'. * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros): New, extracted from main. Use IO::File wherever possible. (input.m4): Be constant, use -I instead of hard coding $tmp. Therefore be a quoted heredoc. Don't invoke `_au_disable', since ac was not loaded, but just `unm4.m4'. 2001-08-31 Akim Demaille <[EMAIL PROTECTED]> Version 2.52d.