Fetching contributors…
Cannot retrieve contributors at this time
12869 lines (9090 sloc) 420 KB
2001-05-21 Akim Demaille <>
Version 2.50.
2001-05-19 Akim Demaille <>
* tests/ s/undefined macro/possibly undefined macro/.
2001-05-19 Akim Demaille <>
* acgeneral.m4 (AC_SEARCH_LIBS): Unobfuscate.
2001-05-19 Akim Demaille <>
* s/undefined macro/possibly undefined macro/.
2001-05-19 Akim Demaille <>
* doc/autoconf.texi (Particular Programs): Explain the
`AC_PROG_LEX invoked multiple times' message.
Reported by Rainer Orth as PR Autoconf/177.
2001-05-19 Akim Demaille <>
* Fix file names used in error messages.
Reported by Rainer Orth as PR Autoconf/178.
2001-05-19 Akim Demaille <>
* tests/ (AC_PROG_CPP via CC): Invoke AC_PROG_CC instead
if using `cc'.
2001-05-19 Akim Demaille <>
* tests/ (GNU Fortran 77): Don't AS_EXIT when using
AT_CHECK_MACRO since it skips tests embedded in
Remove files which might have been created when invoking the
Reported by Nicolas Joly.
2001-05-14 Pavel Roskin <>
* doc/autoconf.texi (Shellology): Document a quirk in
here-document handling on OpenBSD.
2001-05-11 Akim Demaille <>
* aclang.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): No longer use the
`maybe' strategy: first try cpp's exit status, then its stderr.
* tests/ (AC_PROG_CPP via CC): Simplify mycc.
Remove unrelated code.
2001-05-10 Akim Demaille <>
* tests/ (AC_PROG_CPP via CC): New.
From Daniel Carroll.
2001-04-27 Akim Demaille <>
If AC_PROG_CC is invoked but not AC_PROG_CPP, then CPPFLAGS is not
Reported by Ralf Corsepius.
(AC_PROG_F77): Use them.
2001-04-27 Akim Demaille <>
* aclang.m4 (_AC_PROG_PREPROC_WORKS): Rename and extend as...
Adjust to admit
Reported by Daniel Carroll.
2001-04-26 Pavel Roskin <>
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Use two backslashes
before double quotes in the copyright notice, since the native
OpenBSD shell removes single backslashes in here-documents with
unquoted delimiters.
2001-04-25 Nicolas Joly <>
* acgeneral.m4 (_AC_RUN_IFELSE): Clean `core' files.
2001-04-24 Steven G. Johnson <>
* doc/autoconf.texi (The GNU build system): Add this chapter
introducing Autoconf+Automake+Libtool, and fix references in the
2001-04-24 Akim Demaille <>
On HP-UX 10 `ranlib --version' creates `./--version'.
Reported by Bob Proulx and Jim Meyering.
* acgeneral.m4 (AC_CHECK_PROG, AC_PATH_PROG): Do not invoke the
program with --version.
2001-04-22 Jim Meyering <>
* acfunctions.m4 (AC_FUNC_MEMCMP): Remove `int main () {' and the
trailing `}', since AC_LANG_PROGRAM provides them.
2001-04-20 Akim Demaille <>
* Bump to 2.49f.
2001-04-20 Akim Demaille <>
Version 2.49e.
2001-04-20 Akim Demaille <>
* tests/ (Libtool): Ignore configure's stderr.
2001-04-20 Tim Van Holder <>
* acgeneral.m4 (AC_OUTPUT): Close the descriptor before running
config.status so config.log is properly created on MS-DOS.
2001-04-20 Nicolas Joly <>
* tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Be robust to missing
or broken autoupdate.
* tests/ Likewise.
* tests/ (CLEANFILES): Also clean Libtool files.
2001-04-18 Tim Van Holder <>
* acgeneral.m4 (_AC_INIT_SRCDIR): Handle
backslashes (DOS paths) for $ac_confdir and $srcdir.
2001-04-17 Akim Demaille <>
Don't mess with FDs.
* acgeneral.m4 (_AC_INIT_DEFAULTS_FDS): Remove, replace with
inline setting up of AS_MESSAGE_FD.
(AS_MESSAGE_LOG_FD): Do not define, so that AS_MESSAGE does not
output in it before...
(_AC_INIT_CONFIG_LOG): here, which is run after the handling of
2001-04-18 Steven G. Johnson <>
* doc/autoconf.texi: Replace documentation for obsolete
AC_LIBOBJ_DECL with clearer documentation for AC_LIBSOURCE
and AC_LIBSOURCES, improving the AC_LIBOBJ docs as well.
2001-04-17 Steven G. Johnson <>
* doc/autoconf.texi: Fixes for punctuation and grammar.. Replace
"..." with "@dots{}" except when "..." is in literal code.
2001-04-17 Nicolas Joly <>
* acgeneral.m4 (_AC_LINK_IFELSE): Be sure to remove temporary
`conftest.$ac_objext', as some compilers may forget it.
2001-04-16 Pavel Roskin <>
* acgeneral.m4 (_AC_INIT_VERSION): Use AC_PACKAGE_NAME and
AC_PACKAGE_VERSION only if they are defined.
2001-04-15 Lars J. Aas <>
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Alter response on
`config.status --version' to be more compliant with the GNU Coding
2001-04-13 Steven G. Johnson <>
* doc/autoconf.texi: Still more minor modifications for clarity,
felicity, and grammar.
2001-04-11 Steven G. Johnson <>
* doc/autoconf.texi (AC_F77_WRAPPERS): Mention C++ as well as C.
In the example, don't #ifdef F77_FUNC before using it, as that
would push any errors to link-time rather than compile-time; note
that the user can test this to invoke alternative behavior.
2001-04-11 Akim Demaille <>
* (Task script): Be sure that `forbidden.rx' and
`allowed.rx' exist when AWK loads then.
Reported by Rainer Orth.
2001-04-11 Steven G. Johnson <>
* doc/autoconf.texi: A few more minor modifications for clarity,
grammar, and formatting.
2001-04-10 Lars J. Aas <>
* Moved here.
Suggested by Akim Demaille and Raja R Harinath.
2001-04-10 Lars J. Aas <>
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Re-enable logging to
`config.log' from `config.status', but delay logging till after
command line option processing.
2001-04-10 Lars J. Aas <>
* (print_usage): print "\ at end of line does not
work as expected, so change block to here-doc instead.
(print_version): Same.
2001-04-09 Steven G. Johnson <>
* doc/autoconf.texi: Replace all tab characters with (8) spaces,
lest the formatting of example code, etcetera, be messed up.
2001-04-09 Steven G. Johnson <>
* doc/autoconf.texi: Rephrase various parts for clarity, felicity,
and/or grammar.
2001-04-09 Steven G. Johnson <>
* doc/autoconf.texi: Clean up cache documentation: Document
--config-cache/-C option, and recommend instead of --cache-file.
Indent example AC_CACHE_VAL macros for clarity. Add new
"Cache Checkpointing" section for AC_CACHE_SAVE (and
AC_CACHE_LOAD), so that the "Cache Files" section focuses solely
on features visible to end-users (e.g. to better fit the cross
references). Various minor rewordings for clarity, felicity,
and/or grammar.
2001-04-09 Steven G. Johnson <>
* doc/autoconf.texi: Revert to "" in the history, since
"" wasn't used in the past, and in any case it is
probably a good idea to preserve this section verbatim.
2001-04-09 Steven G. Johnson <>
* AUTHORS: Fix grammar.
2001-04-09 Lars J. Aas <>
* Manual addition of @PACKAGE@ substitution variable
needed by dist rules. Added explanatory comment.
Problem reported and comment suggested by Raja R Harinath.
2001-04-06 Lars J. Aas <>
* Manual addition of @VERSION@ substitution variable
as a temporary Automake fix. Reported by Raja R Harinath.
2001-04-04 Lars J. Aas <>
* acgeneral (_AC_INIT_CONFIG_LOG): New macro for setting up the
config.log file.
(_AC_INIT_DEFAULTS_FDS): Log to /dev/null instead of config.log.
2001-04-04 Lars J. Aas <>
* acgeneral.m4 (_AC_INIT_DEFAULTS): Produce better version
information for config.log header.
(_AC_INIT_VERSION): Produce better version information for
`configure --version'.
2001-03-30 Steven G. Johnson <>
* doc/autoconf.texi: Use "invalid" instead of "illegal," as
suggested by the GNU coding standards.
2001-03-30 Tim Van Holder <>
* m4sh.m4 (AS_BASENAME): New.
(AS_SHELL_SANITIZE): Set `$as_me'.
* acgeneral.m4: Don't set as_me; AS_SHELL_SANITIZE now does this.
* tests/atgeneral.m4: Likewise.
(AT_INIT): Use $PATH_SEPARATOR for walking the path.
* Be DOS-friendly when setting as_me and M4.
Add quotes to support spaces in $tmp.
Work around problem in DJGPP port of awk by using a temporary file.
* Be DOS-friendly when setting as_me.
* Be DOS-friendly when setting as_me, dir and
2001-03-27 Lars J. Aas <>
* acgeneral.m4 (AC_INIT_VERSION): Improved version information string
for `configure --version'.
2001-03-27 Akim Demaille <>
* (config_h): Be robust to new lines when extracting
the first argument of AC_CONFIG_HEADERS.
Reported by Lars J. Aas.
2001-03-27 Tim Van Holder <>
* doc/autoconf.texi: Minor tweaks.
2001-03-27 Tim Van Holder <>
*, autoupdate is a Perl script.
2001-03-20 Akim Demaille <>
* doc/autoconf.texi (Limitations of Usual Tools): Some about
From Jim Meyering, Volker Borchert, and Peter Eisentraut.
2001-03-20 Akim Demaille <>
* tests/ (Libtool): Don't skip 1.3.5.
Invoke AC_CANONICAL_SYSTEM ---for some reason AC_CANONICAL_HOST is
not enough for 1.3.5.
From Lars J. Aas.
2001-03-20 Akim Demaille <>
* tests/atgeneral.m4: s/Testing suite/Test suite/g.
From Jim.
(AT_INIT): Adjust the error message on invalid options.
* tests/ (Libtool): Skip Libtool 1.3 too.
2001-03-20 Kevin Ryde <>
* doc/autoconf.texi: A couple of grammatical tweaks.
2001-03-19 Akim Demaille <>
* Bump to 2.49e.
2001-03-19 Akim Demaille <>
Version 2.49d.
2001-03-19 Akim Demaille <>
* tests/ (AWK portability): Don't rely on `empty'.
2001-03-19 Akim Demaille <>
* tests/atgeneral.m4 (AT_INIT): Fix the at_diff test.
Reported by Nicolas Joly.
2001-03-19 Akim Demaille <>
* acgeneral.m4 (_AC_PREPROC_IFELSE): Redirect stdout out of the
_AC_EVAL_STDERR invocation to avoid `illegal io' on Ultrix.
Reported by Harlan Stenn, and fixed by Jim Meyering.
2001-03-19 Akim Demaille <>
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Don't hard code
`/bin/sh', use $SHELL.
From Paul Eggert.
2001-03-19 Akim Demaille <>
* acfunctions.m4 (AC_FUNC_STRERROR_R): Update to
2001-03-19 Akim Demaille <>
* tests/atgeneral.m4 (AT_INIT): Don't always create `empty', rather
do it only when diffing `/dev/null' is not supported.
And use `at-devnull' instead of `empty'.
2001-03-13 Akim Demaille <>
*, Use `use' instead of `require' to
require some version of Perl, so that the test is performed at
compile time, not run time.
Suggested by Nicolas Joly.
2001-03-13 Tim Van Holder <>
* tests/aclocal.m4: Fix some typos. Also ignore $PATH_SEPARATOR.
* tests/ Set PATH_SEPARATOR to the proper
path separator. Set SHELL here...
* tests/atgeneral.m4: ... instead of here. Use $PATH_SEPARATOR
when setting AUTOTEST_PATH. Don't default tests to "all" before
deciding whether the help text is needed.
* tests/ Use the correct path separator.
2001-03-13 Tim Van Holder <>
* doc/autoconf.texi: Expand section on DOS issues.
Add link to the `doschk' package. Fix minor typo.
Clean up white spaces.
2001-03-13 Steven G. Johnson <>
* aclang.m4 (AC_PROG_F77_C_O): define F77_NO_MINUS_C_MINUS_O
when test fails, not when it succeeds(!).
2001-03-13 Akim Demaille <>
* tests/ (AWK portability): Use AT_CHECK to check for GNU
AWK so that there is always a AT_CHECK between
Reported by Nicolas Joly.
2001-03-13 Akim Demaille <>
* tests/ Be sure to remove
2001-03-13 Raja R Harinath <>
* (File::Basename): Use package.
(%ac_macros, %au_macros): Save only base filenames.
2001-03-08 Akim Demaille <>
* acgeneral.m4 (AC_OUTPUT): In the AU_DEFUN definition, don't try
to issue an obsolete message, it can't work for macros being
defined both with AC_DEFUN and AU_DEFUN.
Hence do it in the AC_DEFUN definition.
2001-03-06 Pavel Roskin <>
* tests/ (AC_TRY_*): Escape `^' - it's a pipe command
separator on Tru64 v5.1.
Reported by Nicolas Joly.
2001-03-05 Akim Demaille <>
* tests/atgeneral.m4 (AT_INIT): Register at-setup-line and
at-check-line for removal.
Check for the presence of at-check-line only when $at_test was
really a test.
Reported by Pavel.
2001-03-04 Pavel Roskin <>
* tests/atgeneral.m4 (AT_INIT): s/am_me/as_me/. Quote AT_CHECK
in the error message.
2001-03-02 Pavel Roskin <>
* acgeneral.m4 (_AC_INIT_PREPARE): Quote `$$*' correctly.
2001-02-28 Akim Demaille <>
* tests/atgeneral.m4 (AT_INIT): Warn when at-check-line is
* tests/ (Syntax of the scripts): Use AT_CHECK to test
/bin/sh -n. Exit 77 on failure.
Reported by Harlan Stenn.
2001-02-28 Akim Demaille <>
* acgeneral.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Use `.;.' instead
of `.;`pwd`': if pwd is c:/foo, we might walk through `.:c'
(fails), and then `/foo' which might succeed, resulting in
believing `;' is the right path separator.
2001-02-26 Akim Demaille <>
* acgeneral.m4 (AH_VERBATIM, AH_TEMPLATE): New, use AS_ESCAPE, not
(_AH_VERBATIM_OLD, _AH_TEMPLATE_OLD): New, used for bugward
compatibility in...
2001-02-26 Pavel Roskin <>
* (&mktmpdir): Strip the newline from the output
of mktemp.
2001-02-26 Pavel Roskin <>
* man/ autoupdate.1 now depends on
2001-02-25 Tim Van Holder <>
* Support DOS paths. Initialize $tmp to
avoid warnings. Default $autoconf to 'autoconf'.
2001-02-25 Akim Demaille <>
* (&END): Try to preserve the exit status.
Use backquotes where more readable.
Internal details should be dumped when $debug, not when $verbose.
2001-02-25 Akim Demaille <>
* (&mktmpdir): New.
(&END): Remove $tmp.
(&parse_args): Handle -d and -l.
2001-02-25 Akim Demaille <>
* acgeneral.m4 (_AC_INIT_PREPARE): Remove conf$$* on exit.
s/conftest/conf$$/ to avoid race conditions.
From Lars J. Aas.
2001-02-25 Akim Demaille <>
* acspecific.m4 (AC_PROG_INSTALL): Use ac_path_separator.
Restore the IFS earlier.
Suggested by Tim Van Holder.
2001-02-25 Akim Demaille <>
* m4sh.m4 (_AS_TEST_PREPARE): Rename as...
(_AS_TEST_PREPARE): New dummy but working version of this macro.
* acspecific.m4 (AC_PROG_INSTALL): Use AS_EXECUTABLE_P.
2001-02-25 Akim Demaille <>
* (&parse_args): Support `-'.
2001-02-25 Akim Demaille <>
* Less Bournisms, more Wallisms.
2001-02-23 Jim Meyering <>
* acgeneral.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Fix typo: s/;/:/
* acgeneral.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Revert that change.
There was no typo.
2001-02-22 Akim Demaille <>
* doc/autoconf.texi: Typos and formatting changes.
2001-02-21 Lars J. Aas <>
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Use `AS_EXIT(0)' instead
of `exit 0' when exiting config.status.
2001-02-21 Tim Van Holder <>
* doc/autoconf.texi: Add new node discussing issues related to
file systems (DOS, specifically). Document DJGPP's bash's special
handling of $PATH_SEPARATOR.
2001-02-21 Akim Demaille <>
* New. Replaces
2001-02-21 Akim Demaille <>
* (&find_configure_ac): New.
2001-02-20 Paul Martinolich <>
* (check_configure_ac): Pretty missing macro warnings
2001-02-19 Paul Eggert <>
* aclang.m4 (AC_C_INLINE): Define "inline" to empty if the
compiler doesn't support 'static inline'. This is needed for
Encore Umax-
2001-02-19 Akim Demaille <>
* aclang.m4 (_AC_LANG_COMPILER_WORKS): Rename as...
(_AC_COMPILER_EXEEXT_WORKS): this. Use the `a.out' or `a.exe'
left by _AC_COMPILER_EXEEXT_DEFAULT to check if the compiler works.
(_AC_COMPILER_EXEEXT_CROSS): Extract from the above macro.
Adjust all the compiler looking macros to check for EXEEXT
*first*, then OBJEXT.
Set ac_exeext yourself.
2001-02-07 Pavel Roskin <>
* tests/atspecific.m4 (AT_CONFIGURE_AC): Double quote constant
part of the second argument to AT_DATA.
* tests/ (AC_PROG_CPP with warnings): Fix underquoting
in a call to _AT_CHECK_AC_MACRO.
(AC_PROG_CPP without warnings): Likewise.
2001-02-11 Jim Meyering <>
Ensure that even `autoscan --version' fails when e.g.,
writing to a full disk.
* (END): New function.
* Misc. clean-up:
Move declarations of variables into the scope where they're used.
Use `qw'. Don't use `$_'.
2001-02-06 Paul Eggert <>
* acspecific.m4 (AC_SYS_LARGEFILE_TEST_INCLUDES): Don't reject
C++ compilers that are masquerading as C compilers, and that
incorrectly reject large integers.
2001-02-07 Pavel Roskin <>
* acgeneral.m4 (AC_OUTPUT): Remove $(srcdir), ${srcdir} and
@srcdir@ from VPATH if srcdir is "." and replace blank VPATH
lines with empty lines to preserve line numbers.
Original version by Derek Price.
2001-02-07 Derek Price <>
* acgeneral.m4 (_AC_LIBOBJ): Call AC_LIBSOURCE with '.c' extension
appended to function name.
2001-02-06 Akim Demaille <>
* acgeneral.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR, AC_RUN_LOG): New.
(_AC_EVAL_STDERR, _AC_EVAL): Use them.
2001-02-05 Derek Price <>
* Only set config_h for the first call to
2001-02-05 Jim Meyering <>
* acspecific.m4 (AC_SYS_LARGEFILE): Add ULL suffix to the
integer constants.
2001-02-05 Akim Demaille <>
acfunctions.m4 was still using the old AC_LIBOBJ_DECL.
Reported by Derek R. Price.
* tests/ (AC_REPLACE_FUNCS): New test.
* acfunctions.m4 (AC_REPLACE_FUNCS, _AC_LIBOBJ_ALLOCA): Use
2001-02-03 Pavel Roskin <>
* tests/ (AC_TRY_COMMAND): Add a colon between "then" and
"else". Separate commands inside AC_TRY_COMMAND with semicolons.
From Nicolas Joly.
2001-02-03 Akim Demaille <>
* acgeneral.m4 (_AC_INIT_LOG_COMPLETE): Removed, dead code.
2001-02-03 Akim Demaille <>
* acfunctions.m4 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK): Use
2001-02-03 Akim Demaille <>
* acgeneral.m4 (AC_LIBOBJ_DECL): Remove.
2001-02-02 Akim Demaille <>
* tests/ (AC_TRY_COMMAND): Fix the test.
From Nicolas Joly.
The following patch went into Autoconf between the two previous
* acgeneral.m4 (AC_TRY_COMMAND): Use the old code, using a tmp
variable, to recover multiline robustness.
Reported by Tim Van Holder.
* tests/ (AC_TRY_COMMAND): New.
2001-02-02 Pavel Roskin <>
* acgeneral.m4 (_AC_COMPUTE_INT_COMPILE): Rename all occurences
of ac_try to ac_mid to avoid a name clash.
2001-02-02 Pavel Roskin <>
* (scan_c_file): When in verbose mode, don't print
out hashes common for the whole package. Do it in scan_files()
(scan_makefile): Likewise.
(scan_sh_file): Likewise.
Thanks to Jim Meyering for improved implementation.
2001-02-01 Pavel Roskin <>
* Fix the case when the verbose output was not
redirected to stderr as everywhere else.
2001-01-30 Ralf Corsepius <>
* acgeneral.m4 (_AC_OUTPUT_SUBDIRS): Remove
from check for ac_sub_configure.
2001-01-30 Akim Demaille <>
The recent addition of `exit's prototype in confdefs.h causes
AC_OUTPUT_MAKE_DEFS to include junky -D switches.
Reported by Wolfgang Mueller.
* tests/ (#define header templates): Include trash in
* tests/ (AT_INIT): Don't expect `find' to support
-maxdepth, hence don't use -follow either.
Reported by Nicolas Joly.
* acgeneral.m4 (AC_OUTPUT_MAKE_DEFS) <confdef2opt.sed>: In the
`quote' section, `p'rint the result.
If neither `#define' pattern match, just call `d' to start a new
Invoke this sed program with -n.
2001-01-30 Akim Demaille <>
* tests/ New test.
* tests/ (AT_CHECK): When given 77 as expected exit
status, don't include the `skip' mechanism.
2001-01-30 Akim Demaille <>
* tests/ (AC_CACHE_CHECK): Typo and clean up.
Check only --quiet.
2001-01-30 Paul Eggert <>
* Don't pass a string to 'echo' that might
possibly contain backslashes.
2001-01-29 Pavel Roskin <>
Don't use filenames that can be reduced to "conftest" on DOS.
* acfunctions.m4 (AC_FUNC_MMAP): Use conftest.mmap, not
(AC_FUNC_UTIME_NULL): Use, not conftestdata.
* acspecific.m4 (AC_PROG_MAKE_SET): Use conftest.make, not
(_AC_PATH_X_XMKMF): Use conftest.dir, not conftestdir.
* acgeneral.m4 (AC_ARG_PROGRAM): Use conftest.sed, not
* m4/sanity.m4: Use conftest.file, not conftestfile.
* doc/autoconf.texi (Guidelines for Test Programs): Suggest
using, not conftestdata.
2001-01-29 Akim Demaille <>
* tests/atgeneral.m4: Don't redirect builtins' stderr as Ultrix
hates this: use a subshell.
2001-01-29 Assar Westerlund <>
* m4sh.m4 (_AS_TEST_PREPARE): Discard output when testing `test
-x' and `test -f' to avoid confusing users with error messages.
(AS_MKDIR_P): Invert order of separators in IFS to avoid problem
with some shells adding backslash between fields and parsing the
result for escapes.
* doc/autoconf.texi (Special Shell Variables): Document IFS.
2001-01-29 Steven G. Johnson <>
* aclang.m4 (AC_PROG_F77): Improve documentation of the compilers
that are tried, add a few new ones (cft77, af77, epcf90, xlf95, g95),
and put pgf90 in the right place (before the F95 compilers).
2001-01-29 Jim Meyering <>
* Do scan `' when you claim it.
From Raja R Harinath.
(@kinds): Use `qw', rather than lots of quotes and commas.
(%generic_macro): Use single quotes around literals.
($configure_scan): Define global, and use it instead of the literal.
Use `warn' in place of `printf STDERR'.
2001-01-29 Akim Demaille <>
* `Formatting++' changes: prototypes all the
functions, no longer use `&' to call functions as it disables
prototype checking, topological sort so that functions are defined
before being used, and put an Autoconf like nice comment to
describe the functions.
(output): Accept a CONFIGURE_SCAN parameter, and open CONF.
2001-01-29 Akim Demaille <>
* acgeneral.m4 (AC_SITE_LOAD): Let config.log know what you load.
2001-01-27 Akim Demaille <>
Follow Tim Van Holder's suggestions for a uniform handling of
* m4sh.m4: Stay in `as_', not `ac_'.
(_AS_LN_S_PREPARE): Eve out from...
* acspecific.m4 (AC_PROG_LN_S): here. Adjust.
* m4sh.m4 (AS_LN_S): New.
2001-01-26 Assar Westerlund <>
* (find): Fix precedence.
(aclocal): Same as below for autoheader.
2001-01-26 Akim Demaille <>
* (autoheader): Run it when there is no template, as
there is no risk to override a handwritten template.
From Assar Westerlund.
2001-01-26 Akim Demaille <>
* aclang.m4: dnl AC_ARG_VAR's newline.
* acgeneral.m4 (AC_CHECK_LIB): Don't do it.
2001-01-26 Akim Demaille <>
* tests/ Handle DOS issues: directory separator, single
dot in file names, and one actual bug: when set -e, running
(false; true) will of course fail, use (false || true).
From Tim Van Holder.
2001-01-26 Tim Van Holder <>
* tests/ (testsuite): Use testsuite.tmp, not
testsuite-tmp as temporary file.
2001-01-25 Assar Westerlund <>
* Also find
2001-01-24 Akim Demaille <>
* Bump to 2.49d.
2001-01-24 Akim Demaille <>
Version 2.49c.
2001-01-24 Jim Meyering <>
* (output): Detect/report a close failure.
2001-01-24 Akim Demaille <>
Preserve INSTALL too.
* acgeneral.m4 (_AC_OUTPUT_FILES): Use ac_INSTALL for internal
computations, and therefore use INSTALL where ac_given_INSTALL
was used.
(_AC_OUTPUT_SUBDIRS): There is no point in computing INSTALL in
here. It's not even used.
2001-01-24 Akim Demaille <>
While preserved in configure, srcdir is trashed in config.status.
Reported by Ralf Corsepius.
* tests/aclocal.m4 (AC_STATE_SAVE): It is ok to modify
CONFIG_STATUS, DEFS, prefix and exec_prefix.
It is OK to produce config.* files.
* tests/atspecific.m4 (AT_CONFIGURE_AC): Save the env *after*
AC_OUTPUT to check that it doesn't break anything by itself.
* tests/torture.m4 (srcdir): New test, from Ralf Corsepius.
* acgeneral.m4 (_AC_OUTPUT_FILES): Use ac_top_srcdir and ac_srcdir
to preserve srcdir and top_srcdir.
Remove any use of `ac_given_srcdir' as `$srcdir' being preserved
is usable.
2001-01-24 Alexandre Duret-Lutz <>
configure -q did not work since 2000-11-03.
* acgeneral.m4 (_AC_INIT_DEFAULTS_FDS): Don't check for $silent,
tie AS_MESSAGE_FD to stdout unconditionally.
(_AC_INIT_PARSE_ARGS): If $silent redirect AS_MESSAGE_FD to
* tests/ (AC_CACHE_CHECK): New test.
2001-01-24 Tim Van Holder <>
* m4sh.m4 (AS_EXECUTABLE_P, _AS_TEST_PREPARE): New macros.
instead of test -f.
2001-01-24 Akim Demaille <>
* (generic_macro): s/AC_CHECK_FUNCTIONS/AC_CHECK_FUNCS/.
* acfunctions: Just like the previous patch.
2001-01-24 Akim Demaille <>
* (@kinds, %generic_macro): New.
(&init_tables): Use them.
* acheaders: Run `autoconf -t AC_CHECK_HEADERS:'$1'' on the fileutils,
and include all these headers in here.
Don't specify `AC_CHECK_HEADERS' as it's the default.
2001-01-24 Akim Demaille <>
* Just like the previous patch, but for
2001-01-24 Akim Demaille <>
* (print_unique): Push all the macro invocation
(output_headers): For headers that need to be checked, push either
the specialized macro, or the generic macro call.
(check_configure_ac): Handle AC_CHECK_HEADERS.
2001-01-24 Raja R Harinath <>
Some non-srcdir build fixes.
* (BUGS): Look for file in $srcdir.
* tests/ (MACRO_FILES): Use '..', not '$(top_srcdir)'.
2001-01-24 Akim Demaille <>
Don't AC_SUBST too much, as it makes Automake include those
variables in Makefiles, and drives autoscan to require unneeded
* acgeneral.m4 (_AC_INIT_PREPARE): Don't AC_SUBST CFLAGS,
(AC_ARG_VAR): AC_SUBST the var.
Document it only once, even if there are several different docs.
* aclang.m4 (AC_PROG_CPP): Declare CPP and CPPFLAGS to AC_ARG_VAR.
2001-01-24 Akim Demaille <>
* m4sugar.m4 (m4_expand_once): Accept a witness.
2001-01-23 Akim Demaille <>
* acgeneral.m4 (AC_EXPAND_ONCE): Remove, use m4_expand_once.
(AC_DIVERT_ONCE): Move to...
* m4sugar.m4 (m4_expand_once): here.
2001-01-23 Akim Demaille <>
* aclang.m4 (_AC_LANG_SET): Turn off optimizations.
2001-01-23 Akim Demaille <>
* If this is a beta, dump the core of BUGS.
* tests/ (AC_REQUIRE & AC_LANG): New test, currently failing.
2001-01-23 Akim Demaille <>
* Don't use `defined' to check whether an array is
Don't use parens with `defined'.
2001-01-23 Akim Demaille <>
* acgeneral.m4 (_AC_INIT_PREPARE): Be sure to quote hashes to
avoid M4 thinking it's comments.
2001-01-23 Tim Van Holder <>
* aclang.m4 (_AC_COMPILER_EXEEXT_O): Use
AS_IF([AC_TRY_EVAL(ac_link)]) instead of AC_LINK_IFELSE to
avoid depending on ac_exeext before it's found.
(AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): Check for the
executable extension BEFORE checking whether the compiler
works, as that test depends on a correct ac_exeext.
2001-01-23 Akim Demaille <>
* acgeneral.m4 (_AC_INIT_PREPARE) <trap>: Typo.
2001-01-22 Pavel Roskin <>
* Use "use strict". Declare all global variables
or make them private. Make all local variables private.
(find_autoconf): New, moved some code from the top level.
Use %ENV outside quotes to eliminate a warning.
2001-01-22 Tim Van Holder <>
* acspecific.m4 (AC_PROG_LN_S): Detect DJGPP < 2.04, which only
supports 'ln -s' for executables.
2001-01-22 Akim Demaille <>
* ($dir, $autoconf): New.
2001-01-22 Akim Demaille <>
* ($headers, $functions, $identifiers, $libraries):
Also register locations of their requirement instead of a simple
(&check_configure_ac): Close TRACES.
2001-01-22 Akim Demaille <>
* Formatting changes.
Check `' or `' if present.
2001-01-22 Akim Demaille <>
* (&wanted): Don't register `Makefile' when
`' is present.
Factor the simplification of $name.
(&scan_makefile, &scan_sh_file): Instead of counting the number of
occurrences where a program/makevar is wanted, register file:line.
Adjust the verbose output.
(&check_configure_ac): Report the location where the macro is required.
2001-01-22 Akim Demaille <>
* Instead of undefined globals, set them to empty
(%needed_macros): New.
(&check_configure_ac): New. Call it.
(&output_libraries): Eve out from &output_programs.
(&print_unique): For the time being register in %needed_macros
only argument less macros.
2001-01-22 Lars J. Aas <>
* aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): First try no declaration,
then '#include <stdlib.h>', before trying the explicit declarations.
2001-01-22 Akim Demaille <>
* acgeneral.m4 (_AC_COMPILE_IFELSE): Wrap the test -s in
AC_TRY_COMMAND to improve config.log.
(_AC_INIT_DEFAULTS): Don't define ac_exeext and ac_objext to
highlight failures.
2001-01-22 Akim Demaille <>
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Work around a currently
impossible to describe bug of SunOS 4.1.3 which causes a shell
crash when using `VAR=${VAR="$default"}'.
Reported and diagnosed by Kevin Ryde.
2001-01-22 Akim Demaille <>
* acfunctions.m4 (AC_FUNC_GETGROUPS): Typo :(.
2001-01-22 Lars J. Aas <>
Export ac_cv_exeext so ltconfig believes the value is cached and
skips its own faulty test.
2001-01-22 Jim Meyering <>
* actypes.m4 (AC_TYPE_GETGROUPS): Double quote the test program
2001-01-22 Tim Van Holder <>
* aclang.m4 (AC_LANG_INT_SAVE, AC_LANG_INT_SAVE(C)): Use
conftest.val, not conftestval.
* acgeneral.m4 (_AC_COMPUTE_INT_RUN, _AC_COMPUTE_INT):
2001-01-22 Akim Demaille <>
Create actypes.m4.
* actypes.m4: here.
* actypes.m4: here.
Adjust the test suite.
2001-01-22 Akim Demaille <>
* tests/atgeneral.m4 (AT_INIT): Include a default case for non
existing tests.
* tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_ENV)
Spread their use.
(AT_CHECK_MACRO): Pass `-W obsolete' to autoconf.
* tests/ (AC_HAVE_FUNCS): Obsolete, don't check.
* tests/ Create one test file per Autoconf source
file instead of separating syntax/update.
2001-01-22 Akim Demaille <>
* doc/autoconf.texi: Some about diff and cmp.
2001-01-22 Akim Demaille <>
* sh.m4 (AS_ESCAPE): New.
* tests/atgeneral.m4 (AT_INIT) <SHELL>: Define and use.
<--help> Don't display the options help when tests were selected.
Document -d.
<at_skip_list>: New.
<testsuite.log>: Give a banner, include ChangeLog snippets, list
the failed and skipped tests.
Remove useless $at_traceoff in sub shells, this improves the
readability of the traces by removing testsuite's implementation
(AT_CHECK): Filter out the shell traces from the tested command's
Don't register experr and expout for clean up, as it's hairy and
easier to do from...
Support STDOUT = stdout, and STDERR = stderr.
Force the output of shell traces.
(AT_INIT): Here.
2001-01-22 Akim Demaille <>
* acgeneral.m4 (AC_INIT, AC_OUTPUT): Don't take care of completing
the log.
(_AC_INIT_PREPARE): Do it in the trap 0.
2001-01-22 Akim Demaille <>
* Instead of undefined globals, set them to empty
(%needed_macros): New.
(&check_configure_ac): New. Call it.
(&output_libraries): Eve out from &output_programs.
(&print_unique): For the time being register in %needed_macros
only argument less macros.
2001-01-22 Raja R Harinath <>,
Tim Van Holder <>,
Jim Meyering <>
* acspecific.m4 (AC_AIX): Fix typo: s/@\$/@%/.
2001-01-19 Akim Demaille <>
Catch only used patterns.
Reported by the whole Autoconf community.
* m4sh.m4 (AS_INIT): New.
* acgeneral.m4 (AC_PLAIN_SCRIPT): Use it.
Forbid only AC, AU, AH and AM.
2001-01-19 Akim Demaille <>
Optimizing AC_LANG was broken. Test and fix.
* aclang.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Fortran 77)): Don't
use _AC_LANG_ABBREV so that you don't depend upon _AC_LANG.
(_AC_LANG_SET): New.
2001-01-19 Akim Demaille <>
* sugar.m4 (m4_require): Missing dnl.
2001-01-18 Akim Demaille <>
2001-01-18 Tim Van Holder <>
* m4sh.m4 (AS_MKDIR_P): Properly support DOS-style paths.
2001-01-18 Akim Demaille <>
* tests/ (Autoconf & Libtool): `', not `.ac'
since Libtool does not yet support it.
Let the test suite be more verbose about at-path.
From Patrick Welche.
2001-01-18 Akim Demaille <>
* tests/atspecific.m4 (AT_CHECK_DEFINES): Discard
* tests/ (AC_CHECK_SIZEOF): Don't check the presence
of default headers, as it's machine dependent.
Reported by Jim Meyering and Nicolas Joly.
2001-01-18 Akim Demaille <>
* acgeneral.m4: Don't leave macro names in comments.
* aclang.m4: Likewise.
* Likewise.
* tests/ Likewise.
* tests/ Likewise.
2001-01-18 Akim Demaille <>
Medium term goal: AC_ macros can be tested with -W obsolete.
* acgeneral.m4 (AC_RUN_IFELSE): Accept IF-CROSS-COMPILING.
(AC_TRY_RUN): Use it.
* acfunctions.m4: Start ousting AC_TRY_RUN and AC_TRY_COMPILE.
* acspecific.m4 (AC_AIX, AC_MINIX, AC_ISC_POSIX): AC_BEFORE on
2001-01-18 Akim Demaille <>
* acgeneral.m4 (AC_INCLUDES_DEFAULT): Force the newline to avoid
bad surprises.
Reported by Jim.
2001-01-18 Akim Demaille <>
Require a perfect divert push/pop balance.
* m4sugar.m4 (m4_divert, m4_divert_push, m4_divert_pop): Keep
track of them in m4_divert_stack.
(m4_divert_pop): Accept the expected current diversion as
argument and m4_fatal if incorrect, or if there is nothing to pop.
(globally): Specify the known m4_divert_pop.
Preserve symbolic values when possible.
* acgeneral.m4: No longer push the first diversion.
Specify the known m4_divert_pop.
(AC_PLAIN_SCRIPT): When m4_divert_push a diversion, m4_wrap its
(AC_INIT): Run AC_PLAIN_SCRIPT first, not last.
* tests/ (AS_DIRNAME & AS_DIRNAME_SED): Can't use m4_defun
without m4_init.
* m4sugar.m4: Likewise.
2001-01-18 Akim Demaille <>
* m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Unlike the
builtin, fail on undefined symbols.
* tests/ (Torturing config.status): Stop playing nasty
tricks with changequote.
(AC_DEFUBST): Move here from...
* tests/aclocal.m4: there.
2001-01-18 Akim Demaille <>
Various cleanups and consistency checks.
* m4sugar.m4: Formatting changes.
Use m4_copy to define them, in order to keep a good $0.
(AC_INIT): AC_LANG_PUSH C, not AC_LANG, to initialize the stack.
* aclang.m4 (AC_LANG_PUSH): Dont't use m4_defn on undefined macros.
(AC_LANG_POP): Admit an argument specifying the language we quit
when popping.
Adjust Autoconf's AC_LANG_POPs.
* tests/ (AWK portability): Don't depend on AC_INIT.
(autoconf --trace: user macros): Obviously I
meant TRACE1, not AC_TRACE1.
2001-01-17 Akim Demaille <>
* m4sugar.m4 (m4_undefine, m4_popdef): Don't tolerate undefined
(_m4_expansion_stack): Rename as...
(m4_expansion_stack): this, and change its value: instead of using
the pushdef stack to stack each *line* of the stack, each
definition contains the whole stack. I.e., to display the whole
stack, instead of popdefing and displaying each definition, just
display the current definition.
(m4_expansion_stack_push, m4_expansion_stack_pop): New.
* tests/atspecific.m4 (AT_CHECK_AUTOCONF): Let $2 be the expected
exit status.
* tests/m4sugar.m4 (m4_require: circular dependencies): New test.
2001-01-17 Pavel Roskin <>
* m4sugar.m4 (m4_normalize): New macro - superposition of
m4_flatten and m4_strip.
(m4_join): Use m4_normalize.
* acgeneral.m4 (AC_FOREACH): Use m4_normalize.
(AC_CONFIG_HEADERS): Normalize the first argument.
(AC_CONFIG_LINKS): Likewise.
2001-01-17 Tim Van Holder <>
* acgeneral.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_sub_srcdir uses.
2001-01-16 Akim Demaille <>
Work around the Ultrix limitations on ``multiple redirections''.
Reported by Harlan Stenn.
* acgeneral.m4 (_AC_EVAL_STDERR): New.
2001-01-16 Akim Demaille <>
* tests/atgeneral.m4 (AT_data_files): Fix the computation of PATH.
2001-01-16 Akim Demaille <>
* acgeneral.m4 (_AC_INIT_LOG_COMPLETE): Eve out from AC_OUTPUT.
2001-01-16 Akim Demaille <>
* doc/autoconf.texi: Lots of additions and changes.
(File Descriptors): New.
(Limitations of Make): New.
2001-01-16 Akim Demaille <>
* m4sh.m4 (AS_EXIT): Don't rely on exit == exit $?.
Reported by Tim Van Holder.
2001-01-16 Akim Demaille <>
* (editpl, editsh): Merge into...
* m4sh.m4 (AS_UNAME): Eved out from...
* acgeneral.m4 (_AC_INIT_DEFAULTS): here.
Propagate their use in the executables and the test suite.
* tests/atgeneral.m4 (PATH): Include only absolute paths.
2001-01-16 Akim Demaille <>
When default headers are used, check for their presence.
Suggested by Jim.
* acgeneral.m4 (_AC_INIT_DEFAULTS): Don't define
ac_includes_default, since...
(AC_INCLUDES_DEFAULT): Require the former when default includes
are used.
AC_HEADERS_STDC, that's a job for stupendous AC_INCLUDES_DEFAULT.
* acfunctions.m4 (AC_FUNC_MALLOC): Check for stdlib.h.
2001-01-15 Akim Demaille <>
* doc/autoconf.texi: Normalize sh samples.
2001-01-15 Akim Demaille <>
* tests/atgeneral.m4 (AT_INIT): Simplify the hairy display of the
identity of the tests.
2001-01-15 Akim Demaille <>
* tests/atgeneral.m4 (AT_INIT): When the suite failed, complain
before creating the debug scripts.
Create a log file.
When ignoring a test, display a reassuring `ok' for stressed
users, and say `skipped' instead.
Simply run `testsuite' with the failed tests instead of running
the debug scripts, this avoids having zillions of banners `Testing
Blabla 2.13' (another means to avoid these banners is to have the
test suite succeed :-).
2001-01-15 Akim Demaille <>
* tests/atgeneral.m4: Use it.
2001-01-15 Akim Demaille <>
* acgeneral.m4 (AC_VAR_INDIR_IFELSE): Move as...
* m4sh.m4 (AS_LITERAL_IF): this.
(AS_IFELSE): Rename as...
(AS_IF): this.
2001-01-12 Akim Demaille <>
With `expr's that return `0' on failures, the executable suffix is
`0'. Test and fix.
Reported by Assar Westerlund.
* (maintainer-check): New target.
* tests/ (maintainer-check, maintainer-check-posix)
(maintainer-check-c++, expr): Likewise.
* (EXPR): Look for it.
* tests/atgeneral.m4 (AT_CHECK): Propagate $2's default value.
* tests/ (Extensions): New test.
Distinguish files with or without a dot.
2001-01-12 Akim Demaille <>
* acgeneral.m4: Last changes for `'.
* Likewise.
2001-01-11 Motoyuki Kasahara <>
* acfunctions.m4 (AC_FUNC_MEMCMP): Missing comma in AC_TRY_RUN
2001-01-11 Akim Demaille <>
(AC_PROG_CC_STDC): Be sure to remove tmp files.
* tests/ (AC_TRY_LINK_FUNC): Don't use exit to test it,
since it produces a prototype which conflicts with the one
* tests/ (AC_CHECK_FUNCS, AC_HAVE_FUNCS): Likewise.
2001-01-11 Kevin Ryde <>
* autoconf.texi (Shellology): Fix an @end itemize, and a typo.
2001-01-11 Kelly Anderson <>
* (M4): Handle PC drive letters.
* Likewise.
2001-01-11 Steven G. Johnson <>
* aclang.m4 (AC_PROG_F77): Add pgf90 to the list of compilers to
look for, after the other Fortran 90 compilers.
2001-01-11 Akim Demaille <>
* aclang.m4: Use m4_copy to duplicate macros.
(AC_LANG_PUSH): In order to have AC_LANG's simplifications
effective, be sure to let _AC_LANG be the old language before
calling AC_LANG.
2000-12-25 Pavel Roskin <>
* s/localddir/localdir/.
Reported by Motoyuki Kasahara.
2000-12-23 Akim Demaille <>
* Promote `' over `'.
* Likewise.
* Ditto.
* Similarly.
* doc/autoconf.texi: Adjust.
* tests/atspecific.m4: Be sure to remove
Adjust the test suite to use `'.
2000-12-22 Akim Demaille <>
* acgeneral.m4 (_AC_EVAL, AC_TRY_EVAL, AC_TRY_COMMAND): Be a
single statement, so that one can make pipes with AC_TRYs, just as
in 2.13.
2000-12-20 Lars J. Aas <>
Make the order of arguments for ls count by splitting the ls
command into a sequence of ls commands.
2000-12-20 Akim Demaille <>
* aclang.m4 (_AC_LANG_COMPILER_GNU): Be sure to have `choke me' on
the seventh column so that the SGI Fortran compiler really chokes
on it.
From Ezra Peisach.
2000-12-20 Akim Demaille <>
* tests/ (Autoconf & Libtool): Ignore Libtool version
* tests/ (GNU Fortran 77): Use AS_EXIT.
2000-12-20 Akim Demaille <>
* tests/atgeneral.m4 (AT_CLEANUP_FILE_IFELSE): Fix the regexp: the
pattern ` state* ' was added many times for `*' was improperly
(AT_INIT): Remove the data files before running the tests.
Define AT_data_files and output it.
(AT_SETUP): Don't.
(_m4_divert(TEST)): Remove, now useless.
2000-12-20 Akim Demaille <>
* aclang.m4: `dnl' the AC_LANG_PUSH and AC_LANG_POP.
(AC_PROG_CXXCPP, AC_PROG_CPP): Set the current language instead of
just asserting it, since these macros can be called directly.
Reported by Raja R. Harinath.
2000-12-19 Pavel Roskin <>
* doc/autoconf.texi (Installation Directory Variables): More info
on prefix and exec_prefix.
2000-12-19 Akim Demaille <>
* aclang.m4 (_AC_COMPILER_OBJEXT): Don't rely on
_AC_COMPILE_IFELSE which uses ac_objext in a `test -s'.
Reported by Lars J. Aas.
2000-12-19 Akim Demaille <>
* tests/ (AC_PROG_CPP without warnings, GNU Fortran 77):
Use AC_TRY_COMMAND when running commands, to enrich the logs.
2000-12-19 Akim Demaille <>, Mo DeJong <>
(_AC_COMPILER_EXEEXT_O): Extracted from...
(_AC_COMPILER_EXEEXT): here. Adjust.
2000-12-19 Akim Demaille <>
* tests/atgeneral.m4 (AT_CHECK): Make exit status report more
* tests/atspecific.m4 (AT_CHECK_AUTOCONF): Support FLAGS, STDOUT
(AT_CHECK_CONFIGURE): Support plenty, cleanup defs when needed.
Spread their use in the whole suite.
Simplify a few AT_CLEANUPs.
2000-12-19 Akim Demaille <>
* tests/atgeneral.m4 (AT_CHECK): Accept if-failed and
* tests/atspecific.m4 (AT_CHECK_CONFIGURE): Use it in order to
dump config.log when configure failed. Before, the log was
reported only on success.
2000-12-19 Akim Demaille <>
* tests/ New file.
2000-12-19 Akim Demaille <>
* tests/atgeneral.m4 (AT_BANNER, AT_CLEANUP): Formatting changes.
2000-12-18 Pavel Roskin <>
* Add a comment explaining why suffix rules are not
used there.
2000-12-15 Pavel Roskin <>
* If the "allowed" pattern is not defined set it
to "^$".
* tests/ (autoconf: forbidden tokens, basic): New test.
(autoconf: forbidden tokens): Renamed to ...
(autoconf: forbidden tokens, exceptions): ... this.
2000-12-15 Akim Demaille <>
* aclang.m4 (AC_PROG_CXXCPP, AC_PROG_CPP): Require AC_PROG_CXX/CC.
2000-12-15 Akim Demaille <>
* tests/ (GNU Fortran 77): G77 is a `yes'/`' var.
Reported by Ezra Peisach.
2000-12-15 Akim Demaille <>
* tests/ (GNU Fortran 77): s/g77/G77/.
Reported by Ezra Peisach.
2000-12-15 Akim Demaille <>
* man/ (.x.1): Fix to work properly with
builddir != srcdir.
2000-12-15 Akim Demaille <>
* aclang.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Fortran 77))
Don't use `${CC-cc}' since now the AC_REQUIRE machinery guarantees
that $CC is defined. And if not, it's a bug which must be
* acspecific.m4 (AC_SYS_LARGEFILE): Likewise.
2000-12-15 Akim Demaille <>
* acgeneral.m4 (_AC_PREPROC_IFELSE): Use ac_status as set by
using AS_IFELSE, and systematically AC_TRY_COMMAND when testing
something (for the logs).
2000-12-15 Akim Demaille <>
* acgeneral.m4 (_AC_TRY_CPP): Its last use was that above, so
inline it into...
2000-12-15 Akim Demaille <>
* tests/atgeneral.m4 (AT_INIT): Forget about `-n'.
Adjust so that `./testsuite -h 1 2' explains only tests 1 & 2.
2000-12-15 Akim Demaille <>
* acgeneral.m4 (_AC_EVAL): New.
2000-12-15 Akim Demaille <>
* acheaders.m4 (AC_CHECK_HEADER): Quote properly, use
* acspecific.m4 (_AC_PATH_X_DIRECT): Use AC_PREPROC_IFELSE.
2000-12-15 Akim Demaille <>
* m4sugar.m4 (m4_init): Catch `dnl'.
2000-12-15 Pavel Roskin <>
* (AS_ERROR): Restore dnl at the end of the macro.
2000-12-14 Pavel Roskin <>
* tests/ (AC_CHECK_TYPES): There are two tests with
this name. Rename the second one to "AC_CHECK_TYPES: backward
(AC_TRY_LINK_FUNC): Removed. It's now in tests/
(C keywords): Likewise.
(AC_PROG_CPP with warnings): Likewise.
(AC_PROG_CPP without warnings): Likewise.
2000-12-14 Akim Demaille <>
Put back AC_CYGWIN etc. under the responsibility of the maintainer, but discourage its use.
* acspecific.m4 (_AC_CYGWIN, _AC_MINGW32, _AC_EMXOS2): Rename as...
AU defined on top of AC_CANONICAL_HOST and $host_os.
* tests/ (update_exclude_list): Add AC_CYGWIN,
2000-12-13 Pavel Roskin <>
* m4sugar.m4 (m4_file_append): Add a newline after _m4eof,
otherwise _m4eof is appended to the output on FreeBSD 4.0.
* tests/atgeneral.m4 (AT_INIT): Avoid using unbalanced "y"
in sed, use "s" instead.
* tests/ Don't use \? in sed - it's a GNU extension.
Use separate patterns for A[CU]_DEFUN and AC_DEFUN_ONCE.
2000-12-13 Akim Demaille <>
EXEEXT and OBJEXT don't need to know $CYGWIN etc.
Move as...
Don't depend upon $CYGWIN and the like.
Skip more extensions.
2000-12-12 Pavel Roskin <>
* Don't use suffix rules for perl and shell
scripts. Use explicit rules instead.
2000-12-12 Pavel Roskin <>
* (init_tables): Allow spaces on the right hand side
in autoscan tables. Die if there are no spaces at all.
(scan_c_file): Use \b instead of \W so that keywords match at
the beginning and the end of the line.
(scan_sh_file): Likewise.
(scan_makefile): Likewise. Use \B to match before `-l'.
(output): Suggest AC_CONFIG_HEADER if any C/C++ sources are
* acidentifiers: Update macros for structure members st_blksize
and st_rdev.
2000-12-12 Akim Demaille <>
* tests/ (GNU Fortran 77): Be robust to compilers that
choke on `--version'.
2000-12-12 Akim Demaille <>
* tests/ Run `' first.
2000-12-12 Akim Demaille <>
* tests/aclocal.m4 (AC_STATE_SAVE): Use a more precise regexp to
keep envvars.
2000-12-12 Akim Demaille <>
AS_ERROR was not properly saving data in the log file.
(_AS_ECHO): Fix quotation.
(AS_MESSAGE): Use `as_me'.
* acgeneral.m4: More banners in the log.
(_AC_INIT_DEFAULTS): Compute as_me before using it.
2000-12-08 Akim Demaille <>
* doc/autoconf.texi (System Services) <AC_PATH_XTRA>: Adjust the
documentation about X_DISPLAY_MISSING to the code.
2000-12-07 Akim Demaille <>
* tests/atgeneral.m4 (AT_INIT): More robust computation of
Reported by Andrej Borsenkow.
2000-12-07 Akim Demaille <>
* acspecific.m4 (_AC_EXEEXT): Skip *.pdb.
From Paul Berrevoets.
2000-12-07 Akim Demaille <>
* tests/atgeneral.m4 (AT_CHECK): Bad typo: assign `exit 1' to
at_continue if something failed, not `:'.
* tests/ (AC_PATH_XTRA): New.
* acspecific.m4 (_AC_PATH_X): New, extracted form AC_PATH_X.
2000-12-06 Akim Demaille <>
* Bump version to 2.49c.
2000-12-06 Akim Demaille <>
Version 2.49b.
2000-12-06 Akim Demaille <>
Stop playing with FDs in Autotest.
* tests/atgeneral.m4 (AT_INIT): Set up FD 5.
(AT_CHECK): Instead of using exec to globally change the FDs of
`testsuite', enclose the body of the test into a
`(..) >stdout 2>stderr'.
In every case, when verbose, display the differences between
expected and observed (stdout, stderr, exit status).
Let `0' be the default for EXIT-STATUS.
Support EXIT-STATUS == `ignore'.
2000-12-06 Akim Demaille <>
* tests/ (autoconf: forbidden tokens): Adjust expected
2000-12-06 Akim Demaille <>
* man/config.guess.x: New file.
* man/config.sub.x: New file.
2000-12-06 Akim Demaille <>
* tests/aclocal.m4 (AT_STATE_SAVE): Don't even try to preserve
egrep error messages, AT_CHECK will find them.
2000-12-06 Akim Demaille <>
* doc/autoconf.texi (Limitations of Usual Tools) <awk>: `for' on
arrays is nondeterministic across AWK implementations.
* tests/ (autoconf: forbidden tokens): Sort the error
message to guarantee its uniqueness.
2000-12-06 Akim Demaille <>
The SunOS' egrep fails to process properly the `egrep' invocations
of the test suite.
* tests/aclocal.m4 (AC_STATE_SAVE): If egrep fails, remove the
output file.
* tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Don't check `state-*'
if the files are not present.
* m4sugar.m4 (m4_join): Rename as...
(m4_smash): this.
* tests/aclocal.m4 (join): Move as...
* m4sugar.m4 (m4_flatten): this.
* (trace.m4): Rename m4_smash as m4_flatten.
2000-12-06 Akim Demaille <>
* (task trace): s/m4/$M4/.
* When loading, catch errors and exit with
a decent error message.
* tests/ Be sure to test autoconf --trace before
2000-12-06 Akim Demaille <>
* tests/atgeneral.m4 (AT_CHECK): Fix the m4_ifval invocation.
2000-12-06 Akim Demaille <>
* aclang.m4 (AC_LANG): Be `smart': don't issue the sh code if the
current language did not change.
(AC_PROG_CPP, AC_PROG_CXXCPP): Assert the language.
(_AC_PROG_F77_V, _AC_F77_NAME_MANGLING): Don't require
AC_PROG_F77, the code you include does it.
(AC_F77_LIBRARY_LDFLAGS): Set the language.
2000-12-06 Akim Demaille <>
* m4sugar.m4 (ifelse): Rename as...
(m4_if): this.
* autoconf.m4 (ifelse): Restore.
2000-12-06 Akim Demaille <>
* m4sugar.m4 (m4_dquote, m4_pattern_forbid, m4_pattern_allow)
(m4_cr_letters, m4_cr_LETTERS, m4_cr_Letters, m4_cr_digits)
(m4_cr_symbols1, m4_cr_symbols2, m4_re_string, m4_re_word)
(m4_init): New macros.
(m4_token_allow): Remove.
* acgeneral.m4: Don't push BODY into the diversion stack.
Call m4_init, define the Autoconf patterns.
Remove the useless `dnl' (those where the current diversion is
* (m4_common): Fix quotation.
(finalize.awk): Load forbidden.rx and allowed.rx.
Split the line into tokens, and check their validity.
* tests/ (Forbidden tokens): Adjust.
2000-12-05 Bob Wilson <>
* acspecific.m4 (_AC_OBJEXT, _AC_EXEEXT): Ignore .d files produced
2000-12-05 Akim Demaille <>
* aclang.m4 (AC_PROG_F77): Temporarily set ac_ext to F to run
From Steven G. Johnson.
* tests/ (GNU Fortran 77): New test.
2000-12-05 Akim Demaille <>
* tests/ (autoupdate): Strengthen and check autoupdate's
2000-12-05 Akim Demaille <>
* tests/atspecific.m4 (_AT_CHECK_AC_MACRO): s/cp -f/mv -f/.
2000-12-01 Pavel Roskin <>
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Don't escape
backquotes in AC_MSG_ERROR. Fix error message.
2000-12-01 Pavel Roskin <>
* tests/atgeneral.m4 (AT_INIT): Use ${CONFIG_SHELL-/bin/sh}
to run the testsuite from the debug scripts.
Suggested by Alexandre Oliva.
2000-11-30 Akim Demaille <>
* doc/autoconf.texi (Assignments): Don't use $? from an
2000-11-30 Akim Demaille <>
* sh.m4 (AS_EXIT): Don't rely on false exiting 1.
Actually, always use `(exit $val); exit', don't try to be tricky.
* doc/autoconf.texi (Limitations of Builtins) <false>: new.
2000-11-30 Akim Demaille <>
* sh.m4 (_AS_EXPR_PREPARE): Don't rely on the exit status of a
back quote evaluation since the very system for which the test was
written does not propagate it. Groumph!
2000-11-30 Akim Demaille <>
* acspecific.m4 (_AC_EXEEXT): Also remove conftest$ac_exeext.
Reported by Pavel.
2000-11-30 Akim Demaille <>
* acspecific.m4 (_AC_EXEEXT, _AC_OBJEXT): Make the two macros more
alike: a loop over a sorted list of possible files.
Don't cleanup on errors, the trap will do it.
Cleanup when there are no errors.
(_AC_EXEEXT): Use the empty string instead of `no' as the cached
Be sure to prefer `.exe' to `' when the two are observable.
Suggested by Lars and Earnie.
2000-11-30 Akim Demaille <>
When using Cygwin, in spite of all their efforts, it may happen
that `confestval' be read in binary mode. The shell then fails to
properly strip the \r\n.
Reported by Lars J. Aas.
* aclang.m4 (AC_LANG_INT_SAVE): Don't add any trailing new line,
and close the file.
Suggested by Peter Eisentraut.
2000-11-30 Akim Demaille <>
* doc/autoconf.texi (Systemology): New section.
Some about QNX 4.
2000-11-30 Akim Demaille <>
* doc/autoconf.texi (Special Shell Variables): Document RANDOM.
2000-11-30 Akim Demaille <>
* doc/autoconf.texi (Limitations of Usual Tools): Some about cp
and mv, thanks to Ian.
2000-11-29 Akim Demaille <>
* acspecific.m4 (_AC_OBJEXT): Skip *.tds, special case .o and
Suggested by Lars.
2000-11-29 Akim Demaille <>
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the portability of
the default assignment of CONFIG_FILES, CONFIG_HEADERS,
2000-11-29 Akim Demaille <>
* acgeneral.m4 (AC_CACHE_SAVE): Use the `clear' trick to work
around broken seds.
(_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES): Rename the sed labels to
match the Autoconf documentation.
2000-11-29 Akim Demaille <>
* doc/autoconf.texi (Shell Substitutions): More on the variations
around ${foo=bar}.
(Assignments): Rewrite as a summary of the previous section.
* acgeneral.m4 (AC_CACHE_SAVE): Be protected against the Solaris'
`${foo='${bar}'}' bug.
2000-11-29 Akim Demaille <>
* acgeneral.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES): Don't use
`... echo "error: \\\`$f'" ...`
as it's not portable to BSDI 1.3.
Do this instead:
`... echo "error: $f" ...`
Reported by Daniele Arena.
2000-11-29 Akim Demaille <>
QNX 4.2.5's expr always exits 1 when `:' is used with parens.
* doc/autoconf.texi (Limitations of Usual Tools) <expr>: More
information, thanks to Paul Berrevoets, Paul Eggert and David
* sh.m4 (_AS_EXPR_PREPARE): New.
(AS_DIRNAME): Use it.
2000-11-29 Akim Demaille <>
sizeof (struct {char a,b; }) is not required to be 2.
Reported by Johan Danielsson.
* tests/ (AC_CHECK_SIZEOF): Define charchar as an
array of 2 chars.
Suggested by Alexandre.
2000-11-29 Akim Demaille <>
Provide a means to display banners in the test suite.
* tests/atgeneral.m4 (AT_INIT): Initialize `AT_banner_ordinal'.
Execute the epilogue of the tests only if a test was run.
Don't build the value of `at_tests_all' with a for loop: expand
Adjust all the former banners to use it.
(AT_CHECK): Don't trace the decoding of `$?'.
2000-11-29 Akim Demaille <>
* tests/atgeneral.m4 (AT_DEFINE, AT_UNDEFINE, AT_SHIFT)
(AT_INCLUDE): Remove, use the m4_ macros.
2000-11-29 Akim Demaille <>
* m4sugar.m4 (ifval, ifset, ifdef, ifndef, m4_ifvanl): Rename as...
(m4_ifval, m4_ifset, m4_ifdef, m4_ifndef, m4_ifvaln): this.
(m4_n): New macro.
(m4_ifvaln): Use it.
* autoconf.m4 (ifdef): Restore it.
2000-11-29 Akim Demaille <>
* m4sugar.m4 (m4_errprint, divnum, errprint, esyscmd): Rename as...
(m4_errprintn, m4_divnum, m4_errprint, m4_esyscmd): this.
* autoconf.m4: Restore them.
2000-11-28 Pavel Roskin <>
* doc/autoconf.texi (Fortran 77 Compiler Characteristics):
Don't suggest obsolete AC_LANG_FORTRAN77.
(Language Choice): Better preamble.
2000-11-28 Pavel Roskin <>
* doc/install.texi: Minor changes to eliminate TeX warnings.
* doc/autoconf.texi: Likewise. Typo fixes.
2000-11-23 Akim Demaille <>
* tests/ Move code into...
* tests/atgeneral.m4 (AT_INIT): here.
2000-11-23 Akim Demaille <>
Have the test suite list of the test groups and their references.
* tests/atgeneral.m4 (_m4_divert(SUITE_PRO)): Remove, replaced
(_m4_divert(DEFAULT), _m4_divert(OPTIONS), _m4_divert(HELP))
(_m4_divert(SETUP)): these.
(_m4_divert(SUITE_EPI)): Rename as...
(_m4_divert(TAIL)): this.
(AT_INIT): Adjust to the new diversions.
Insert the magic number.
Accept test groups as cli argument.
List the test groups.
Rename TESTS, test, and tests as at_tests_all, at_test, and
Have the debug scripts pass options to test suite.
Remove their banner.
* tests/atspecific.m4: Don't divert to 0.
* Don't insert the magic number.
2000-11-23 Akim Demaille <>
* m4sugar.m4 (m4_divert, m4_undivert): Support named diversions.
* tests/atgeneral.m4 (_m4_divert(SUITE_PRO), _m4_divert(TESTS))
(_m4_divert(SUITE_EPI), _m4_divert(TEST)): New diversions.
Push the first two diversions.
(AT_INIT): Don't.
(AT_INIT, AT_SETUP, AT_CLEANUP): Adjust to use the named
2000-11-23 Akim Demaille <>
* tests/atgeneral.m4 (AT_CLEANUP): Factor the computation of
at_test_count into...
(AT_INIT): here.
Use an sh variable, at_data_files, instead of an hard coded list.
2000-11-23 Akim Demaille <>
* tests/atgeneral.m4 (AT_CLEAN_FILE_IFELSE, AT_CLEANUP_FILE)
(AT_CLEANUP_FILES): New macros.
(AT_CHECK): Fix a use of at_verbose.
2000-11-23 Akim Demaille <>
* tests/atgeneral.m4 (AT_INIT) <at_verbose>: Be a :/echo variable.
<at_silent>: Remove.
(AT_CLEANUP): Clean up the diversion use.
2000-11-23 Akim Demaille <>
Factor part of the prologue of the tests.
* tests/atgeneral.m4 (AT_SETUP, AT_CLEANUP): No longer handle
(AT_INIT): After having checked whether the test failed, break out
of the loop if requested (-e).
2000-11-23 Akim Demaille <>
* tests/atgeneral.m4 (AT_SETUP): Don't build at-check-line, that's
AT_CHECK's job.
Remove the code depending upon `at_skip_mode': it's unused.
2000-11-23 Akim Demaille <>
* tests/ Remove the `snippet' marks, there are no
longer used.
* tests/atgeneral.m4: Likewise.
2000-11-23 Akim Demaille <>
Factor the epilogue of the tests.
* tests/atgeneral.m4 (AT_CLEANUP): Move the reading of at_status
(AT_INIT): here, at the end of the `case'.
2000-11-23 Akim Demaille <>
The debug scripts are only wrapper around testsuite, asking for a
specific test.
* tests/atgeneral.m4 (AC_INIT) <at_debug>: New variable, new
option, -d, to disable the creation of the debug scripts (when
testsuite was already launched from one).
<at_test_count>: Really compute it instead of using the number of
the last test run.
2000-11-23 Akim Demaille <>
Transform Autotest's body into a `for test; case $test'.
As a known side effect, currently any code outside
AT_SETUP/AT_CLEANUP is discarded.
* acgeneral.m4 (_m4_divert(KILL)): Move to...
* m4sugar.m4: here.
* tests/atgeneral.m4 (AT_INIT): Use m4_divert_push/pop instead of
Put all the tests inside a for;case.
Define TESTS.
(AT_SETUP, AT_CLEANUP): Open/close each case.
2000-11-23 Akim Demaille <>
Move divert and undivert into m4_.
* m4sugar.m4 (m4_divert, divert, undivert): Rename as...
(m4_divert_text, m4_divert, m4_undivert): this.
* autoconf.m4 (divert, undivert): Restore them for user macros only.
2000-11-23 Akim Demaille <>
Move Autotest on top of M4sh.
* tests/atgeneral.m4: Import M4sh.
Adjust the differences on the names of the builtins (define etc.).
(AT_CASE): Remove, use m4_case.
(AT_SETUP): Don't use `AT_group_description', `$1' is OK.
* tests/atspecific.m4 (m4_for, m4_foreach): Remove, use those of
* tests/ Strengthen the quotation and adjust to the new
macro names.
* tests/ Ditto.
* tests/ Ditto.
* tests/ Ditto.
* m4sh.m4: Import M4sugar.
* autoconf.m4: Don't import M4sugar, M4sh does.
2000-11-20 Pavel Roskin <>
* acgeneral.m4 (_AC_RUN_IFELSE): `==' in test is not portable,
replace with `='.
2000-11-17 Akim Demaille <>
* acgeneral.m4 (_AC_INIT_DEFAULTS): Also include `PATH' and
`/bin/machine' in the log.
2000-11-17 Akim Demaille <>
Let AC_TRY_RUN be more verbose
* acgeneral.m4 (_AC_RUN_IFELSE): Instead of canceling the output
of the test program, save it into the log.
Save the exit status, and report it in the log when non zero.
Just use `(./conftest)' instead of `(./conftest; exit)'.
2000-11-17 Akim Demaille <>
* acgeneral.m4 (_AC_INIT_DEFAULTS) <ac_includes_default>: Include
(AC_STRUCT_ST_RDEV): Simplify.
* acfunctions.m4 (AC_FUNC_MMAP): Include sys/stat.h unconditionally.
* doc/autoconf.texi (Default Includes): Adjust.
(Particular Structures) <AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV>:
2000-11-16 Akim Demaille <>
* doc/autoconf.texi (Limitations of Usual Tools) <expr>:
expr 'a' : '\(b\)'.
From Paul Eggert.
2000-11-16 Akim Demaille <>
Reorder the test suite so that low level features are tested
before high level ones.
(missing templates): Move to...
* tests/ here.
Reorder the file so that the torture test is last.
* tests/ (AC_TRY_LINK_FUNC, AC_PROG_CPP with warnings)
(AC_PROG_CPP without warnings): Move to...
* tests/ here, new file.
* tests/ Run `torture' and then `compile' before
2000-11-16 Akim Demaille <>
longer exist.
2000-11-16 Akim Demaille <>
POSIX doesn't require s/[^/]// to work.
From Paul Eggert and Johan Danielsson.
* doc/autoconf.texi (Limitations of Usual Tools) <sed>:
Reorganize. Document this issue.
* (dir): Use `,' as separator instead of `/'
* Likewise.
* Ditto.
2000-11-16 Paul Eggert <>
* m4/largefile.m4 (_AC_SYS_LARGEFILE_SOURCE): Remove, replaced by...
_AC_SYS_LARGEFILE_SOURCE, i.e., don't pass
_AC_SYS_LARGEFILE_TEST_INCLUDES by default: this isn't desirable
when checking for fseeko.
_AC_SYS_LARGEFILE_MACRO_VALUE, since it no longer does this for us.
2000-11-16 Akim Demaille <>
Provide a means for escaping the forbidden patterns test.
* tests/ (Forbidden tokens): Test m4_token_allow.
* m4sugar.m4 (m4_file_append, m4_token_allow): New macros.
* (task script): Pass `tmp' and `verbose' to
(finalize.awk::check_patterns): Eve out from the body.
(finalize.awk): Read `$tmp/tokens_allowed', and don't complain for
these exceptions.
2000-11-14 Paul Eggert <>
* acspecific.m4 (AC_SYS_LARGEFILE): Don't worry about
whether fseeko and ftello are properly declared.
* acfunctions.m4 (AC_FUNC_FSEEKO): New macro, which worries about
fseeko (and presumably ftello). Do not set _XOPEN_SOURCE; that
causes too many problems in practice.
* acfunctions (fteelo, fseeko): Trigger AC_FUNC_FSEEKO.
* doc/autoconf.texi: Adjust.
2000-11-14 Akim Demaille <>
* doc/autoconf.texi (Limitations of Builtins): Comment `true'.
2000-11-14 Akim Demaille <>
* BUGS: New file.
Be sure to read this file if you're using a non released Autoconf.
* tests/ (Syntax of the scripts): The non built tools are
in `$top_srcdir', not `..'.
(autoconf --trace): When using `-i' we need the src tree, not the
build tree.
2000-11-14 Akim Demaille <>
A single m4_require is enough.
* m4sugar.m4 (_m4_require): $2 defaults to $1.
Rename as...
(m4_require): this.
* acgeneral.m4 (_AC_REQUIRE): Remove, use m4_require if you want
to get into the gory details.
2000-11-14 Akim Demaille <>
* acgeneral.m4 (_AC_INIT_DEFAULTS_ENVIRONMENT): Rename as...
* m4sh.m4 (AS_SHELL_SANITIZE): this.
2000-11-14 Akim Demaille <>
* tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Don't neutralize
autoconf's warnings.
2000-11-14 Akim Demaille <>
The main difference is that the former requires AC_LANG_COMPILER.
macros. Issue a warning when looking for the Fortran 77
preprocessor instead of an error.
(AC_LANG_COMPILER): Check that it is run before the corresponding
(AC_LANG_COMPILER_REQUIRE): Don't call directly
the generic code in AC_LANG_COMPILER is run.
(AC_PROG_CC, AC_PROG_CXX): Don't require being run before the
corresponding AC_LANG_PREPROC: AC_LANG_COMPILER does it.
* acgeneral.m4 (AC_TRY_CPP, AC_EGREP_CPP): Use it instead of
* acspecific.m4 (_AC_DECL_YYTEXT, AC_PATH_X): Don't
AC_REQUIRE_CPP, inner macro will do it.
(AC_C_PROTOTYPES): Likewise.
(AC_C_STRINGIZE): Yeeks! The body of AC_CACHE_CHECK was not
quoted. Use @%:@ do assist Emacs.
For some reason (don't ask), this revamping revealed that
AC_PROG_CC_STDC, because of the `break', does not clean its tmp
* aclang.m4 (AC_PROG_CC_STDC): Extract the creation of conftest.c
Be sure to clean the tmp files.
2000-11-14 Akim Demaille <>
* tests/ (AS_DIRNAME & AS_DIRNAME_SED): Simplify.
2000-11-14 Akim Demaille <>
* acfunctions.m4 (AC_FUNC_ALLOCA): Don't require AC_PROG_CPP,
since (i) you actually need a compiler, (ii) AC_TRY_LINK handles
* acheaders.m4 (AC_HEADER_STDC): Don't require AC_PROG_CPP,
AC_TRY_CPP does it.
2000-11-14 Akim Demaille <>
Create acheaders.m4.
(AH_CHECK_HEADERS): Move to...
* acheaders.m4: here, a new file.
* acheaders.m4: here.
2000-11-14 Akim Demaille <>
Move AC_MSG_* into M4sh.
* acgeneral.m4 (_AC_SH_QUOTE, _AC_SH_QUOTE_IFELSE, _AC_ECHO): Move
* m4sh.m4 (_AS_QUOTE, _AS_QUOTE_IFELSE, _AS_ECHO): here.
* acgeneral.m4 (AC_MSG_NOTICE, AC_MSG_WARN, AC_MSG_ERROR): Use them.
(AC_FD_MSG, AC_FD_LOG): Be AU_ALIAS'es of...
Adjust all dependencies.
2000-11-14 Akim Demaille <>
* acgeneral.m4: Spread some AS_EXIT and AC_MSG_ERROR.
(AC_OUTPUT): Don't play with trap, use ac_clean_files.
2000-11-14 Akim Demaille <>
Use AC_MSG_ERROR in `config.status', but adjust AC_MSG_* to use $0
instead of hard coded `configure'.
* acgeneral.m4 (AC_COPYRIGHT): s/
(_AC_INIT_DEFAULTS_FDS): Append to AC_FD_LOG instead of creating
it. No longer insert the configure banner.
(_AC_INIT_DEFAULTS): Create config.log with the banner.
Define `as_me'.
`$as_me' instead of `configure'.
(AC_OUTPUT): Get rid of the UCA, and of the empty line when
dumping confdefs.h into config.log.
Print a banner.
* tests/ (missing templates): Adjust.
2000-11-14 Akim Demaille <>
* doc/autoconf.texi (autoconf Invocation): Explain `-W error'
gives back traces.
2000-11-11 Pavel Roskin <>
* acfunctions.m4 (AC_CHECK_FUNCS): Add missing m4 quotes.
(AC_FUNC_GETPGRP): Likewise.
* acspecific.m4 (AC_AIX): Likewise.
* m4/init.m4 (AM_INIT_AUTOMAKE): Likewise.
* m4/missing.m4 (AM_MISSING_PROG): Likewise.
* m4/sanity.m4 (AM_SANITY_CHECK): Likewise.
2000-11-11 Pavel Roskin <>
* acfunctions.m4: Always quote first argument of AC_MSG_ERROR,
* acgeneral.m4: Likewise.
* aclang.m4: Likewise.
* acspecific.m4: Likewise.
* Likewise.
* doc/autoconf.texi: Likewise.
2000-11-10 Pavel Roskin <>
* doc/autoconf.texi (Particular Structures): Fix examples for
2000-11-10 Pavel Roskin <>
* doc/autoconf.texi (Limitations of Usual Tools): Don't use
uncommon abbreviations.
2000-11-10 Akim Demaille <>
* doc/autoconf.texi (Limitations of Builtins): Some information
about `trap'.
Document the FreeBSD bug observed by Pavel.
2000-11-10 Pavel Roskin <>
* (scan_files): Eliminate a warning if no C files
are found.
(output): Likewise. Use AC_CONFIG_SRCDIR and AC_CONFIG_FILES
instead of old-style arguments for AC_INIT and AC_OUTPUT.
2000-11-10 Akim Demaille <>
* doc/autoconf.texi (Limitations of Usual Tools): `&' in sed's rhs
is portable.
2000-11-10 Akim Demaille <>
* doc/autoconf.texi (Shell Substitutions): Some information about
Solaris' sh handling of ``foo=${foo='}'}'' collected by Alexandre,
reported by David Taylor.
2000-11-10 Akim Demaille <>
* tests/ (Negated classes in globbing): New test.
2000-11-10 Akim Demaille <>
* doc/autoconf.texi (Limitations of Builtins): `for i; do'.
2000-11-10 Akim Demaille <>
* doc/autoconf.texi (Shellology): Some about /usr/xpg4/bin/sh on
Sort the entries.
Some words about POSIX vs Bourne shell.
From Russ Allbery and Robert Lipe.
2000-11-10 Akim Demaille <>
* doc/autoconf.texi (Shell Substitutions): Split into...
(Shell Substitutions, Assignments): these.
Move them before `Special Shell Variables'.
(Shell Substitutions): Include information on `$()' from Russ
2000-11-10 Akim Demaille <>
When running
AC_PROG_CC is expanded twice, because AC_PROG_CC provides
`AC_PROG_CC', and not `AC_LANG_COMPILER(C)' as expected by
* aclang.m4 (AC_LANG_COMPILER(C)): Instead of calling AC_PROG_CC,
require it.
(AC_LANG_COMPILER(C++), AC_LANG_COMPILER(Fortran 77)): Likewise.
2000-11-10 Akim Demaille <>
* m4sh.m4 (AS_MKDIR_P, AS_DIRNAME_SED): Don't shell quote $1.
Adjust callers.
Reported by Paul Eggert.
* tests/ Sort.
2000-11-09 Pavel Roskin <>
* install-sh: Use ":" instead of "true".
2000-11-09 Pavel Roskin <>
* tests/ (Syntax of the scripts): Check "autoreconf"
only once. Check "install-sh", "mkinstalldirs" and "missing".
2000-11-09 Pavel Roskin <>
* acgeneral.m4 (_AC_COMPUTE_INT_COMPILE): Use ":" instead of
* tests/atgeneral.m4 (AT_INIT): Likewise.
* tests/ (Syntax of the scripts): Likewise.
2000-11-09 Pavel Roskin <>
* tests/ (m4_warn): Adjusted to accept stack dump when
-Werror is used.
2000-11-08 Akim Demaille <>
* m4sugar.m4 (_m4_expansion_stack_dump): Really rename as...
(m4_expansion_stack_dump): this.
2000-11-08 Akim Demaille <>
* aclang.m4 (AC_LANG_PROGRAM(Fortran 77): Complain about $1 having
a value.
Reported by Paul Martinolich.
(_AC_LANG_COMPILER_GNU): Pass the test as the body of
AC_LANG_PROGRAM, not the prologue.
2000-11-07 Pavel Roskin <>
* Temporarily disable recognizing of abbreviated
long options - it's hard to maintain them by hand.
* Likewise.
* Likewise.
* Likewise.
* Likewise.
2000-11-07 Akim Demaille <>
* aclang.m4 (ac_cv_prog_gcc, ac_cv_prog_gxx, ac_cv_prog_g77):
Be AU_DEFUN'd, not AU_ALIAS'd.
Reported by Ralf Corsepius.
* tests/ (exclude_list): Skip these variables.
2000-11-07 Akim Demaille <>
m4_syscmd was reestablished as `syscd' intead of `syscmd' because
instead of `s/^m4_//', m4_copy_unm4 was running `s/[m4_]//'.
* m4sugar.m4 (m4_copy_unm4): Fix.
2000-11-07 Akim Demaille <>
* acgeneral.m4 (AC_CHECKING): Is not an alias of AC_MSG_NOTICE,
hence use AU_DEFUN, not AU_ALIAS.
2000-11-03 Jim Meyering <>
* acfunctions.m4 (AC_FUNC_FNMATCH): Add a test to detect
the d*/*1 vs d/s/1 bug.
Add a couple more test cases to catch bugs in glibc 2.1.95.
Include fnmatch.h unconditionally
Mention the GNU C library.
From Paul Eggert.
2000-11-03 Akim Demaille <>
Reported by Paul Martinolich.
* acgeneral.m4 (AC_PROVIDE): Don't forget to `m4_provide'!!!
Tss, novice...
* tests/ (AC_REQUIRE & AC_PROVIDE): New test.
2000-11-03 Akim Demaille <>
* m4sugar.m4 (m4_location): When using its value, don't use
`m4_defn', since m4_location is not a variable, it's a macro which
expands to __file__:__line__.
* tests/ (m4_warn): New test.
2000-11-03 Akim Demaille <>
* tests/ (unexpanded macros): Strengthen.
* (finalize.awk): Use `sub' instead of `index' +
More comments.
2000-11-03 Akim Demaille <>
* (.m4.m4f): Check that processing produces only
comments and empty lines.
Check that freezing produced no output.
* m4sugar.m4: Commentize what was not.
* m4sh.m4: Likewise.
* aclang.m4: Formatting changes.
2000-11-03 Akim Demaille <>
* autoconf.m4 (define): Reestablish only after having read the
`ac' files.
Adjust all the Autoconf code to use `m4_define', not `define'.
2000-11-03 Akim Demaille <>
* acgeneral.m4 (AU_ALIAS): Don't forget to pass the arguments to
the new macro...
Reported by Ezra Peisach.
* tests/semantics.m4 (AC_HAVE_FUNCS): New test.
* tests/ (autoupdate): As a benign side effect, updating a
macro that takes no argument produces `UPDATED([])', no longer
`UPDATED()'. Adjust the test.
2000-11-03 Akim Demaille <>
* autoconf.m4: Instead of reactivating the macros before reading
Autoconf's files, do it afterwards, so that Autoconf promotes the
right use, but users still can use the old names.
Of course this revealed numerous non updated uses of old macros in
Autoconf's files. Adjust them.
But for the time being, keep `define' alive for Autoconf.
2000-11-03 Akim Demaille <>
AC_REQUIRE and AC_DEFUN_ONCE don't work properly together. This
caused strange messages about AC_ARG_PROGRAM.
Reported by Jim Meyering.
* acgeneral.m4 (AC_DEFUN_ONCE): Fix the indirection to
* m4sugar.m4 (m4_defun_once): Also define
`m4_location(MACRO-NAME)'. s/ac_warn/m4_warn/.
Use `m4_defn' to read `m4_location'.
* tests/ (AC_REQUIRE & AC_DEFUN_ONCE): Two new tests.
2000-11-03 Akim Demaille <>
Set up config.log earlier so that AC_MSG_ERROR and AC_MSG_WARN can
be used early.
* acgeneral.m4 (_AC_INIT_DEFAULTS): Call `_AC_INIT_PREPARE_FDS'.
since they are called from `_AC_INIT_DEFAULTS', not
(_AC_INIT_DEFAULTS_FDS): Dump `$@' in config.log, not
`$ac_configure_args' which is not computed yet.
2000-11-03 Akim Demaille <>
* acgeneral.m4 (_AC_INIT_PARSE_ARGS): TRIPLET can include `_' and
Reported by Andreas Jaeger.
2000-11-03 Akim Demaille <>
* m4sh.m4 (_AS_UNSET_PREPARE): New macro, eved from
_AC_INIT_PREPARE_ENVIRONMENT, and fixed: set `FOO' before trying
to unset it: `unset' exits 1 if the variable is not defined.
(AS_UNSET): Require it. Use `as_unset' not `ac_unset'.
* acgeneral.m4 (_AC_INIT_PREPARE_ENVIRONMENT): Use it.
2000-11-03 Akim Demaille <>
* m4sugar.m4 (builtin, changecom, changequote, decr, dumpdef)
(incr, index, indir, len, syscmd, sysval, traceoff, traceon):
Rename as...
(m4_builtin, m4_changecom, m4_changequote, m4_decr, m4_dumpdef)
(m4_incr, m4_index, m4_indir, m4_len, m4_syscmd, m4_sysval)
(m4_traceoff, m4_traceon): these.
* autoconf.m4 (builtin, changecom, decr, incr, index, indir, len)
(syscmd, sysval, traceoff, traceon): Reactivate.
2000-11-03 Akim Demaille <>
* m4sugar.m4 (m4_rename_m4, m4_copy_unm4): New macros.
Use them.
(debugfile, debugmode, m4exit, m4wrap, maketemp, patsubst, regexp)
(substr, translit, m4_wrap): Rename as...
(m4_debugfile, m4_debugmode, m4_exit, m4_wrap, m4_maketemp)
(m4_patsubst, m4_regexp, m4_substr, m4_translit, m4_text_wrap): these.
Adjust all dependencies.
* acgeneral.m4: Adjust.
* tests/ Adjust.
* autoconf.m4 (m4exit, patsubst, regexp, substr, translit):
Reestablish them.
2000-11-02 Akim Demaille <>
The documentation is not clear about the obsoleteness of
`acconfig.h', `', and `'.
Reported by Aharon Robbins.
* doc/autoconf.texi (Making configure Scripts)
(Automatic Remaking, Defining Symbols, Distributing): Forget about
these files.
(acconfig.h): Reword.
Display the old scheme presenting the dependencies between input
and output files.
(Changed File Names): Clarify.
2000-11-02 Akim Demaille <>
* doc/autoconf.texi (Limitations of Usual Tools): Some about
2000-11-02 Pavel Roskin <>
* Put the opening brace on the same line with
patterns. Reported by Paul Martinolich.
* tests/ (AWK portability): Check ifnames.
(ifnames): New test for ifnames.
* THANKS: Updated.
2000-11-02 Pavel Roskin <>
because AT_TESTPATH looks like a macro.
* tests/ Likewise.
2000-11-02 Akim Demaille <>
* (trace.m4): Move all the M4 builtins into `at_'.
Catch the failures of the big pipe.
2000-11-02 Akim Demaille <>
* tests/ (Tracing M4 builtins): New test.
* (trace_format): Fix its computation.
2000-11-02 Akim Demaille <>
* tests/atgeneral.m4 (AT_CHECK): Check stderr first, since if both
stdout and stderr fail, differences on the latter are probably
more significant than on the former.
2000-11-02 Akim Demaille <>
* (task trace) [debug]: Instead of a long pipe, extend
2000-11-02 Akim Demaille <>
* (m4.txt): Use `dumpdef' and m4 to build it.
2000-11-02 Akim Demaille <>
* m4sugar.m4 (popdef, pushdef): Rename as...
(m4_popdef, m4_pushdef): these.
Adjust dependencies.
* acgeneral.m4: Adjust.
* aclang.m4: Likewise.
* autoconf.m4 (popdef, pushdef): Reactivate them.
2000-11-02 Akim Demaille <>
* tests/atgeneral.m4 (AT_CHECK, AT_CLEANUP): Be more verbose when
`-v' is passed.
2000-11-01 Pavel Roskin <>
* Using trap-safe "exit".
* Likewise.
* Likewise.
* tests/ Use AS_EXIT instead of exit in
* tests/ Likewise.
* tests/ Likewise.
2000-11-01 Akim Demaille <>
In M4sugar, move `define', `undefine', and `defn' into the `m4_'
name space.
* m4sugar.m4 (m4_define, m4_defn, m4_undefine): New macros.
(define, defn, undefine): Undefine.
Adjust all uses.
* m4sh.m4: Adjust.
* autoconf.m4: Reenable these builtins.
* m4sugar.m4 (m4_expansion_stack_dump): Use m4_copy.
2000-11-01 Akim Demaille <>
GNU M4 1.4 improperly handle the traces of copies of builtins.
* (task trace): When tracing `BUILTIN' also trace
2000-11-01 Akim Demaille <>
Autoupdate should not depend upon foreign macros.
* (ac.m4): Use `_au_define', not `define'.
(input.m4): Use `_au_BUILTIN' not `BUILTIN'.
2000-11-01 Akim Demaille <>
* m4sugar.m4 (m4_fatal): Dump the expansion stack.
* acgeneral.m4 (AC_FATAL): Use m4_fatal.
2000-11-01 Akim Demaille <>
Move the `defun' handling into M4sugar.
* m4sugar.m4 (_m4_divert(GROW), _m4_expansion_stack_dump)
_m4_defun_pro, _m4_defun_epi, m4_defun, $1, m4_defun_once)
m4_before, _m4_require, m4_require, m4_expand_once, m4_provide)
m4_provide_ifelse): New macros.
_AC_DEFUN_EPI): Removed.
AC_PROVIDE_IFELSE, AC_FATAL): Reimplement atop M4sugar.
2000-11-01 Raja R Harinath <>
* tests/ (autoupdating AC_LINK_FILES): Invoke autoconf
like in the rest of the tests.
2000-11-01 Pavel Roskin <>
* Typo: s/m4__warnings/m4_warnings/.
2000-10-31 Pavel Roskin <>
* Check that $sed understands the meaning of "\b"
instead of checking "--version".
2000-10-31 Akim Demaille <>
Move the handling of classified warnings into M4sugar.
* m4sugar.m4 (m4_diagnose): Remove.
(m4_warning): New.
* m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
(_m4_warning_error_ifelse, __m4_warning_error_ifelse)
(_m4_warn, m4_warn): these.
* acgeneral.m4 (AC_DIAGNOSE): Wrapper around `m4_warn'.
* Define `m4_warnings' instead of `_AC_WARNINGS'.
2000-10-30 Pavel Roskin <>
* acspecific.m4 (AC_PATH_XTRA): Use AC_LANG_PROGRAM() as the
argument to AC_LINK_IFELSE.
2000-10-30 Pavel Roskin <>
* m4sh.m4 (AS_EXIT): Use "false" for exit code 1, ":" for 0.
* acgeneral.m4 (AC_MSG_ERROR): Don't use m4_default for the
second argument - AS_EXIT takes care of it.
2000-10-30 Akim Demaille <>
* m4sugar.m4: Formatting changes.
2000-10-30 Akim Demaille <>
Move the handling of diversions into M4sugar.
(AC_DIVERT_POP): Move to...
* m4sugar.m4 (_m4_divert, m4_divert, m4_divert_push)
(m4_divert_pop): here.
* acgeneral.m4: Adjust to use only the M4sugar macros.
(AC_DIVERT_PUSH, AC_DIVERT_POP): New wrappers around the M4sugar
(_AC_DIVERT(...)): Rename all the diversions names as...
(_m4_divert(...)): these.
2000-10-30 Pavel Roskin <>
* m4sh.m4 (AS_EXIT): New macro that exits and makes sure that $?
is set correctly within the exit trap.
(AS_TMPDIR): Use it.
* acgeneral.m4 (AC_MSG_ERROR): Likewise,
2000-10-29 Pavel Roskin <>
* acgeneral.m4 (AC_CHECK_TOOL): Set VARIABLE also when using the
cache. From Jim Meyering.
(AC_PATH_TOOL): Likewise.
2000-10-29 Pavel Roskin <>
* tests/atgeneral.m4 (AT_CHECK): Warn if the expected exit status
is different from what we got. Don't preserve exit status other
than 77.
2000-10-29 Pavel Roskin <>
* When scanning for unexpanded macros match only
words beginning with "A?_" and "m4_" or containing "_A?_".
Strip the comments before the matching. Don't use character
2000-10-29 Pavel Roskin <>
* acgeneral.m4 (_AC_INIT_PREPARE): Don't use a newline before
accessing $? - newlines in "trap" reset $? to 0 on FreeBSD 4.0.
2000-10-29 Jim Meyering <>
* acgeneral.m4 (AC_MSG_WARN): Now that this macro expands to
two stmts, enclose them in `{' ... `}'.
2000-10-28 Pavel Roskin <>
* aclang.m4 (AC_REQUIRE_CPP): Don't default to C++ - call AC_FATAL
for unsupported languages.
2000-10-27 Pavel Roskin <>
* acfunctions.m4 (AC_FUNC_MMAP): Remove conftestmmap from the
shell, not from the test program.
2000-10-27 Pavel Roskin <>
* doc/autoconf.texi (Limitations of Builtins): Recommend using
AC_MSG_ERROR instead of exit.
(Autoconf Language): Fix examples.
2000-10-27 Pavel Roskin <>
* tests/ Move "-*- Autoconf -*-" to the second line.
2000-10-27 Akim Demaille <>
Use AC_MSG_ERROR in the test suite, not just `exit'.
* tests/README: New file.
* tests/ Don't just `exit 1' or `exit 77' from call AC_MSG_ERROR.
* tests/base.m4: Likewise.
* tests/ Likewise.
* tests/ (AT_CHECK_PROGS_PREPARE): New macro, eved
out of...
Split into two individual tests...
2000-10-27 Pavel Roskin <>
* Recognize short options followed by arguments
without separators.
* Likewise.
* Likewise. Recognize abbreviations for
"--autoconf-dir" and "--m4dir".
* Likewise. Recognize abbreviations for
2000-10-26 Pavel Roskin <>
* Don't show obsolete options on "--help". Report
obsolete options to stderr. Adjust list of options. Correct
processing of options. Process options with values separated by
"=" first, so that abbreviations work. Don't accept "=" with
short options.
* Likewise.
* Likewise.
* Likewise.
* There is no "--verbose" option.
* doc/autoconf.texi: Option "-A" requires an argument.
(autoreconf Invocation): Document "--install", "--symlink",
"--m4dir" and the options passed to Automake.
2000-10-26 Akim Demaille <>
* shell.m4: Rename as...
* m4sh.m4: this.
* tests/m4sugar.m4, tests/shell.m4, tests/torture.m4: Rename as...
* tests/, tests/, tests/ these.
* tests/semantics.m4, tests/base.m4, tests/suite.m4: Rename as...
* tests/, tests/, tests/ these.
* tests/tools.m4, tests/update.m4, tests/syntax.m4: Rename as...
* tests/, tests/, tests/ these.
* tests/ Adjust the output file names.
2000-10-25 Pavel Roskin <>
* Redirect stdin for sed to /dev/null to avoid
hangs with non-GNU versions of sed.
2000-10-25 Akim Demaille <>
Move the Autoconf independent shell macros into the file
`shell.m4' and the name space `AS_*'.
(AC_SHELL_MKDIR_P, AC_SHELL_DIRNAME): Rename and move to...
(AS_DIRNAME): here, a new file.
Adjust all dependencies.
* tests/base.m4 (m4_wrap): Eve out into...
* tests/shell.m4: here, new file.
* tests/base.m4 (AC_SHELL_MKDIR_P)
* tests/m4sugar.m4 (AS_MKDIR_P, AS_DIRNAME & AS_DIRNAME_SED):
here, new file.
Adjust the test suite.
2000-10-25 Akim Demaille <>
* acgeneral.m4 (AC_SHELL_DIRNAME): Split its code into...
2000-10-25 Pavel Roskin <>
* tests/aclocal.m4 (AC_ENV_SAVE): Rename to ...
(AC_STATE_SAVE): ... this. Save the list of all files
in the current directory.
* tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Compare lists of
files created by AC_ENV_SAVE. Remove state* before and after
the test.
2000-10-25 Pavel Roskin <>
* Add to EXTRA_DIST.
2000-10-25 Akim Demaille <>
* acgeneral.m4 (AC_SHELL_DIRNAME): The sed fall back was producing
twice the output for it was not using `-n' and used `p'. Remove
the latter.
2000-10-25 Akim Demaille <>
* acgeneral.m4 (_AC_INIT_PREPARE_FDS): Give some information on
the host in config.log.
2000-10-24 Pavel Roskin <>
* tests/ Set locale to C to make sure that syntax.m4
and update.m4 are locale-independent.
2000-10-24 Pavel Roskin <>
* acgeneral.m4 (_AC_CACHE_DUMP): Add a missing separator for sed
2000-10-24 Akim Demaille <>
* acgeneral.m4 (AT_FILE_DEPENDENCY): Rename as...
2000-10-24 Lars J. Aas <>
* m4sugar.m4: (m4_tolower, m4_toupper): New macros.
* acgeneral.m4 (AC_PREFIX_PROGRAM): Use m4_toupper().
* aclang.m4 (AC_F77_FUNC): Use m4_toupper()/m4_tolower().
2000-10-24 Pavel Roskin <>
* m4sugar.m4 (m4_quote): Comment change.
2000-10-24 Akim Demaille <>
Start avoiding dependence upon character ranges.
* acgeneral.m4 (_AC_INIT_DEFAULTS): Introduce `ac_cr_AZ',
`ac_cr_az', `ac_cr_09', `ac_cr_alnum' and `ac_hostname'.
Spread their use.
2000-10-24 Akim Demaille <>
* acgeneral.m4 (AC_OUTPUT): Don't play with `trap'.
(_AC_INIT_PREPARE): Trap after having created config.log.
Also trap on 0.
When trapped, report why in config.log.
(AC_MSG_WARN, AC_MSG_ERROR): Also output the message in
2000-10-24 Akim Demaille <>
* acgeneral.m4 (_AC_SHELL_DIRNAME): Rename as...
s/X$1/X[]$1/ so that when $1 is a macro, it's given a chance to be
Quote properly.
2000-10-24 Akim Demaille <>
* tests/tools.m4 (Syntax of the scripts): Specify the path to the
tested program, some shells don't honor the PATH with `sh PROG'.
2000-10-23 Akim Demaille <>
Since GNU M4 now comes with its libm4 (binary), to avoid
ambiguities let's rename `libm4' (M4 code) as `m4sugar':
Readability And Greater Understanding Stands 4 M4sugar
name coined by Lars J. Aas.
* libm4.m4: Rename as...
* m4sugar.m4: this.
All dependencies adjusted.
2000-10-23 Akim Demaille <>
* tests/ (update_exclude_list, syntax_exclude_list): Add
* tests/tools.m4: Globally, don't use `../' to invoke the tested
tools, since the PATH is properly set, and in most cases it
obfuscates the test code.
(autoupdating AC_PREREQ): New tests.
2000-10-23 Akim Demaille <>
In order to check that all the CPP symbols which are AC_DEFINE'd
are properly templated, autoheader traces
AC_DEFINE/AC_DEFINE_UNQUOTED. Only literals can be traced, and
actually tracing non literals produces invalid autoheader input.
Hence, provide a means to trace calls to
2000-10-23 Akim Demaille <>
Let autoupdate change AC_PREREQ to require the current version of
* libm4.m4 (m4_version_unletter, m4_version_compare): here.
Adjust dependencies.
* acgeneral.m4 (AU::AC_PREREQ): New macro.
* Fail when `m4 input.m4' fails.
2000-10-21 Pavel Roskin <>
* acfunctions.m4 (AC_FUNC_CHOWN): Remove temporary files on exit.
* acgeneral.m4 (_AC_COMPUTE_INT): Likewise.
* aclang.m4 (_AC_F77_NAME_MANGLING): Likewise.
* acspecific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
2000-10-20 Pavel Roskin <>
* tests/tools.m4 (autoupdating AC_LINK FILES): Clean up "src1"
and "src2" at the end of the test.
2000-10-19 Pavel Roskin <>
* NEWS: Documented changes in AC_PROG_CPP and AC_TRY_CPP.
* doc/autoconf.texi (Compilers and Preprocessors): Likewise.
* acgeneral.m4 (AC_TRY_CPP): Comment changes.
2000-10-19 Pavel Roskin <>
* doc/autoconf.texi (Shellology): Documented quirks in ash-0.2.
2000-10-18 Pavel Roskin <>
* mdate-sh: Removed, its copy remains in the doc/ directory.
2000-10-18 Akim Demaille <>
* acgeneral.m4 (AC_CHECK_TOOLS): Use `$' when reading a variable.
2000-10-18 Morten Eriksen <>
* aclang.m4 (_AC_PROG_CC_G): Use the _AC_COMPILE_IFELSE macro
instead of reinventing the wheel. This also takes care of a bug
where the "-g" option was accepted if the compiler silently exits
with status unequal to 0.
(_AC_PROG_CXX_G): Likewise.
(AC_PROG_CC): As _AC_PROG_CC_G depends on $ac_objext and
$ac_exeext, move the expansion of _AC_OBJEXT and _AC_EXEEXT in
front of _AC_PROG_CC_G.
(AC_PROG_CXX, AC_PROG_F77): Likewise.
2000-10-18 Akim Demaille <>
* tests/atgeneral.m4 (AT_INIT): Avoid foo="`bar`", foo=`bar` is
Use grep to check the presence of a string in a stream.
* m4/atconfig.m4: Quote.
2000-10-18 Akim Demaille <>
* acgeneral.m4 (_AC_SHELL_DIRNAME): Quote the `sed' fall back.
2000-10-18 Akim Demaille <>
* acspecific.m4 (AC_PROG_LN_S): If neither `ln -s' nor `ln' work,
fall back to `cp'.
2000-10-17 Morten Eriksen <>
* acgeneral.m4 (AC_CHECK_TOOL): As AC_CHECK_PROG first tests the
value of the VARIABLE argument when looking for executables, we
need to set it to the correct value from AC_CHECK_TOOL when not
just passing on the incoming VARIABLE directly.
2000-10-17 Assar Westerlund <>
* acgeneral.m4 (_AC_INIT_PREPARE): Move the
(_AC_INIT_DEFAULTS): here, so that we keep the same known
environment for more of the script.
2000-10-17 Akim Demaille <>
* doc/autoconf.texi (The GNU build system): Sketch of new a
2000-10-17 Akim Demaille <>
Somehow, the adjustment of `' claimed on 2000-10-17 by
myself (`Fix autoupdate...') was not applied.
* tests/ (update_exclude_egrep): Add AC_INIT, AC_OUTPUT,
2000-10-17 Akim Demaille <>
the quotation.
$ac_tool_prefix iff it is not empty.
2000-10-17 Akim Demaille <>
* doc/autoconf.texi (Particular Programs): Some notes on the
portability of Flex.
2000-10-17 Akim Demaille <>
(_AC_RUN_IFELSE): Before compiling, remove the files expected to
be produced.
(_AC_LINK_IFELSE, _AC_RUN_IFELSE): You don't create object files,
so don't remove them.
2000-10-17 Akim Demaille <>
* acgeneral.m4 (AC_FATAL): Use _AC_EXPANSION_STACK_DUMP.
2000-10-17 Akim Demaille <>
Give a means to report where the macros have been defined in error
* libm4.m4 (m4_location): New macro.
(m4_errprint): Rename as...
(m4_diagnose): this. Use m4_location.
Adjust dependencies.
(m4_errprint): New macro, similar to `errprint' but for an
additional trailing `\n'.
* acgeneral.m4 (AC_DEFUN, AC_DEFUN_ONCE): Define `m4_location($1)'
to the current location (i.e., that of the definition of $1).
(_AC_DEFUN_PRO, _AC_REQUIRE): Also push the location of the
current macro in the stack.
2000-10-17 Akim Demaille <>
Fix autoupdate: updating `AC_OUTPUT_COMMANDS' was failing because
it includes another AU defined macro.
* (input.m4:_au_defun): New macro.
(au.m4): Use it instead of inlining _au_enable/_au_disable
invocations in the definition of all these macros.
(input.m4:__au_enable, input.m4:__au_disable): New macros.
(input.m4:_au_enable, input.m4:_au_disable): Use them.
* tests/ (update_exclude_list): Add `AC_OUTPUT'.
Running it twice in a is not valid.
Add `AC_LINK_FILES' since it requires arguments.
* tests/tools.m4 (autoupdating AC_LINK_FILES): New test.
2000-10-17 Raja R Harinath <>
* (MAINTAINERCLEANFILES): Add acversion.m4.
(INSTALL.txt): Put into $(srcdir).
(acversion.m4): Build here ...
* (AC_OUTPUT): Not here.
* tests/ (MACRO_FILES): Don't use $(top_srcdir).
(syntax.m4): Create in $(srcdir).
(update.m4): Likewise.
* tests/atspecific.m4 (AT_CHECK_UPDATE): Look for autoconf
macros in the top source directory.
2000-10-16 Akim Demaille <>
* aclang.m4 (_AC_LANG_COMPILER_GNU): New macro, which unifies...
Adjust dependencies.
(ac_cv_prog_gcc, ac_cv_prog_gxx, ac_cv_prog_g77): AU_ALIAS'ed.
2000-10-16 Akim Demaille <>
* acgeneral.m4: Adjust copyright notice.
* acspecific.m4: Likewise.
* acoldnames.m4: Likewise.
* Likewise.
* Likewise.
* Likewise.
* Likewise.
* Likewise.
* Likewise.
* Likewise.
2000-10-16 Pavel Roskin <>
* tests/aclocal.m4: Don't consider variables @, '*', '?' and
'#' in the output of `set' - they are modified by zsh.
2000-10-14 Pavel Roskin <>
* m4/missing.m4 (AM_MISSING_PROG): Use $SHELL to run "missing".
* Don't add $SHELL to the path of help2man -
it is already added by AM_MISSING_PROG.
2000-10-13 Akim Demaille <>
* tests/ If ever it fails, touch the output files
``a` la missing''.
2000-10-13 Akim Demaille <>
* acgeneral.m4 (AC_LINKER_OPTION): Ahem, err, use `$' when
consulting a variable...
2000-10-13 Akim Demaille <>
* acgeneral.m4: Typos in comments spotted by Pavel.
2000-10-12 Pavel Roskin <>
* acspecific.m4 (AC_PROG_LEX): Don't assume that lex exists.
Don't run _AC_DECL_YYTEXT if it doesn't. Always check libl and
libfl regardless of the $LEX value.
2000-10-12 Morten Eriksen <>
* acgeneral.m4 (AC_CONFIG_SUBDIRS): Fixed nasty typo.
2000-10-12 Akim Demaille <>
* tests/ Backslash the quote in the heredocs to help
syntax highlighting tools.
* tests/atspecific.m4 (AT_CHECK_UPDATE): Give a better AT_SETUP
2000-10-12 Akim Demaille <>
* acgeneral.m4 (_AC_SH_QUOTE): Issue an `obsolete' warning for use
of backquotes, instead of a `syntax' warning.
2000-10-12 Akim Demaille <>
* acgeneral.m4 (AC_VAR_IN_INDIR, AC_VAR_IF_SET): Rename as...
2000-10-12 Akim Demaille <>
* tests/ Remove tmp files.
2000-10-12 Akim Demaille <>
Macros used by AC_LANG_COMPILER macros shall not AC_REQUIRE
* acspecific.m4 (_AC_EXEEXT): Use _AC_LINK_IFELSE, not
AC_LINK_IFELSE to avoid AC_REQUIREing AC_PROG_CC which precisely
requires _AC_EXEEXT.
Don't run _AC_CYGWIN, _AC_MINGW32, _AC_EMXOS2.
* aclang.m4 (_AC_PROG_F77_G): Use _AC_COMPILE_IFELSE, not
2000-10-12 Akim Demaille <>
Diagnose AC_REQUIRE circular dependencies.
* acgeneral.m4 (_AC_DEFUN_PRO, _AC_DEFUN_EPI): Keep a stack of
macro expansions, _AC_EXPANSION_STACK.
Use `_AC_EXPANDING(FOO)' to record the fact that `FOO' is being
(_AC_REQUIRE): Diagnose required macros which are already being
2000-10-12 Akim Demaille <>
* libm4.m4 (m4_dumpdefs, _m4_dumpdefs_up, _m4_dumpdefs_down): New
2000-10-11 Pavel Roskin <>
* tests/atgeneral.m4 (AT_CHECK): Make sure that $? is set to 0
if diffs have succeeded.
2000-10-11 Akim Demaille <>
(_AC_RUN_IFELSE): New macros which are the former
2000-10-11 Morten Eriksen <>
* acgeneral.m4 (AC_RUN_IFELSE): Add missing executable suffix.
* aclang.m4 (_AC_LANG_COMPILER_WORKS): Likewise.
* aclang.m4 (AC_PROG_CC_C_O, AC_PROG_F77_C_O): Fix typos where
$objext were used instead of $ac_objext.
2000-10-05 Akim Demaille <>
Check that updated scripts are valid scripts.
* tests/ Generate `syntax.m4' directly.
* tests/macros.m4: Remove.
Adjust dependencies.
* tests/ Generate `update.m4' too.
* tests/update.m4: New generated file.
Adjust dependencies.
* tests/atspecific.m4 (AT_CHECK_UPDATE): New macro.
2000-10-05 Akim Demaille <>
* tests/ New file, which replaces the code inlined in
* src/ (macros.m4): Use `'.
* tests/suite.m4: Reorder from low level to high level.
2000-10-02 Akim Demaille <>
(_AC_LANG_ABBREV(C++), _AC_LANG_ABBREV(Fortran 77): New macros.
(AC_LANG_(C), AC_LANG_(C++), AC_LANG_(Fortran 77)): Don't define
* acgeneral.m4 (_AC_TRY_CPP): Likewise.
2000-10-02 Pavel Roskin <>
* acspecific.m4 (AC_PROG_LEX): Use AC_DEFUN_ONCE.
(AC_DECL_YYTEXT): Don't use AC_REQUIRE because autoupdate
would place it into but it's not allowed
outside AC_DEFUN.
2000-10-02 Pavel Roskin <>
* tests/ Macros defined by AC_DEFUN_ONCE should
go to macros.m4 for testing.
2000-09-28 Pavel Roskin <>
* acgeneral.m4 (AC_SHELL_UNSET): Don't rely on variable
assignments changing $?.
2000-09-28 Pavel Roskin <>
* acgeneral.m4 (_AC_OUTPUT_FILES): Fixed exit status.
(_AC_OUTPUT_HEADERS): Exit if the header template is missing.
2000-09-28 Pavel Roskin <>
* acfunctions.m4: Formatting fixes.
* acgeneral.m4: Likewise.
* aclang.m4: Likewise.
* acspecific.m4: Likewise.
* libm4.m4: Likewise.
2000-09-27 Pavel Roskin <>
* acgeneral.m4 (AC_CHECK_PROG): Added protection against spaces
in $PATH.
* acspecific.m4 (AC_PROG_INSTALL): Likewise.
2000-09-27 Pavel Roskin <>
* acgeneral.m4 (AC_CHECK_LIB): only call AH_CHECK_LIB if
ACTION-IF-TRUE is not given.
(AH_CHECK_LIB): related comment changes.
2000-09-27 Pavel Roskin <>
* aclang.m4 (_AC_LANG_COMPILER_WORKS): Remove []dnl because it
resulted in invalid shell code.
2000-09-27 Lars J. Aas <>
* Report full macro name for missing macros.
2000-09-27 J. David Anglin <>
* Fix trap (EXIT) status.
* Likewise.
* Likewise.
* Change `exit' to `{ (exit 1); exit; }' after m4 and
awk commands to ensure exit state is in a defined state.
2000-09-25 Alexandre Oliva <>
* tests/semantics.m4 (AC_PROG_CPP with warning): Simplified.
2000-09-25 Pavel Roskin <>
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
_AC_INIT_PREPARE_ENVIRONMENT to make the shell running
config.status sane and POSIX-compatible.
2000-09-25 Pavel Roskin <>
* Don't check status of variable assignments -
it's undefined in ash 0.2.
* Likewise.
* Likewise.
* Likewise. Also eliminated command substitution
inside variable expansion - ash 0.2 coredumps on it.
2000-09-21 Pavel Roskin <>
* tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Check stderr from
autoconf and autoheader. Expected warnings disabled by "-W none"
Preceding comment removed as no longer relevant.
* tests/semantics.m4 (AC_CHECK_PROG & AC_PATH_PROG): Check
stderr from autoconf.
* tests/tools.m4 (autoheader): Check that autoheader prints
a warning for missing templates. Check stderr from autoconf.
* tests/torture.m4 (config.status under extreme conditions):
Check stderr from autoconf and autoheader.
(command line interface): Check stderr from autoconf.
2000-09-21 Pavel Roskin <>
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix usage info for
config.status - file arguments are optional.
2000-09-21 Pavel Roskin <>
* acgeneral.m4 (_AC_OUTPUT_FILES): Ensure that config.status
exits if any input file is missing.
* tests/semantics.m4 (missing templates): Test it.
2000-09-21 Pavel Roskin <>
* acgeneral.m4 (_AC_SHELL_TMPDIR): Don't check status of variable
assignment - it's undefined in ash 0.2.
2000-09-21 Akim Demaille <>
* src/atgeneral.m4 (AC_CHECK): Display stderr including when the
test failed because of stdout.
2000-09-21 Akim Demaille <>
* tests/atgeneral.m4: Formatting changes.
(AT_INIT): Let `at_stop_on_error' and `at_verbose' be `:'/`false'
variables instead of `'/`1'.
`at_check_stds' replaces `at_no_redirs'.
Rename `Snippet 3' as `Snippet 4'.
Introduce `Snippet 3' for variable initializations.
Adjust the dependencies.
(AT_CHECK): Don't show diff's result unless verbose.
2000-09-20 Pavel Roskin <>
* tests/ AC_PREFIX_PROGRAM and AC_F77_FUNC excluded
from testing because they require an argument.
* tests/atspecific.m4: Make sure that configure doesn't write
anything to stderr.
2000-09-20 Pavel Roskin <>
* acspecific.m4 (_AC_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Cache
variable wasn't always set inside AC_CACHE_CHECK.
From Nicolas Joly.
2000-09-20 Pavel Roskin <>
* libm4.m4 (m4_ifvanl): Don't output a newline for empty
2000-09-19 Akim Demaille <>
* tests/atspecific.m4 (AT_TEST_MACRO): Rename as...
(AT_CHECK_MACRO): this. All dependencies adjusted.
2000-09-19 Akim Demaille <>
* tests/ (AC_ENV_SAVE): Skip POW_LIB, used by
From Bernard Dautrevaux.
2000-09-19 Pavel Roskin <>
* tests/atgeneral.m4 (AT_DATA): Use _ATEOF instead of EOF.
2000-09-19 Pavel Roskin <>
* tests/semantics.m4 (AC_PROG_CPP with warnings): Minor
2000-09-19 Akim Demaille <>
* (optarg): More robust expr invocation.
* Likewise.
* Likewise.
* Likewise.
Reported by Bernard Dautrevaux.
2000-09-19 Pavel Roskin <>
* acgeneral.m4 (AU_ALIAS): Do not use `defn' since then autoupdate
would replace an old macro call with the new macro body instead of
the new macro call.
* tests/tools.m4 (autoupdate): Test an AU_ALIAS'd macro update.
2000-09-19 Pavel Roskin <>
* tests/atspecific.m4 (_AT_CHECK_AC_MACRO): New macro.
(AT_TEST_MACRO): Use it.
* tests/semantics.m4 (AC_PROG_CPP with warnings, AC_PROG_CPP
without warnings): New tests.
2000-09-18 Ruediger Kuhlmann <>
* acgeneral.m4 (_AC_OUTPUT_SUBDIRS): Check for configure.gnu
as well.
(_AC_INIT_HELP): Likewise.
(NEWS): Note checking for configure.gnu.
* doc/autoconf.texi: Document checking for configure.gnu when
recursing subdirectories.
2000-09-18 Jim Meyering <>
* acfunctions.m4 (AC_FUNC_GETLOADAVG): Restore the initial value
of LIBS. Otherwise, everyone ends up linking with -lelf for some
Reported by Mike Stone.
2000-09-14 Pavel Roskin <>
* aclang.m4 (AC_PROG_CPP): Use double quotes in the for loop
and eliminate ac_tmp_cpp.
(AC_PROG_CXXCPP): Use double quotes in the for loop and
eliminate ac_tmp_cxxcpp.
2000-09-14 Pavel Roskin <>
* acgeneral.m4 (_AC_TRY_CPP): Don't filter out conftest.$ac_ext
from the output - it is only printed by Visual C that gives
correct exit status.
* aclang.m4 (AC_PROG_CPP): Don't try '${CC-cc} -nologo -E'
by the same reason.
2000-09-12 Pavel Roskin <>
* aclocal.m4 (_AC_PROG_CPP_WORKS): Don't use AC_REQUIRE_CPP -
it's useless here. Rename to ...
2000-09-12 Ruediger Kuhlmann <>
* acspecific.m4 (AC_PROG_INSTALL): Exclude c:install on AmigaOS.
2000-09-12 Akim Demaille <>
The test suite fails on some hosts because for instance
will not look for a compiler, it will just use `cc'.
Macros that need a compiler should require one.
* acgeneral.m4 (_AC_REQUIRE): New macro, which is actually the
previous version of AC_REQUIRE plus the possibility to distinguish
the name of the symbol being AC_PROVIDE'd, and the text to expand.
(AC_REQUIRE): Reimplement in terms of _AC_REQUIRE.
(AC_LANG_COMPILER(Fortran 77)):
New macros.
Require a compiler.
(AC_TRY_RUN): Formatting changes.
* acfunctions.m4 (AC_FUNC_SETPGRP): Quote properly. The previous
changes revealed the weaknesses of this macro.
2000-09-12 Pavel Roskin <>
* acgeneral.m4 (_AC_TRY_CPP): New macro. It runs the preprocessor
and checks whether it produces errors or warnings. Don't put grep
output into a variable, use another grep instead.
(AC_TRY_CPP): Use _AC_TRY_CPP. Copy conftest.err to config.log
if the case of an error.
* aclang.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Fortran 77)):
define AC_LANG_ABBREV to the short language name.
(_AC_PROG_CPP_WORKS): New macro. It checks whether the current
preprocessor can be used to check for existence of headers.
Most code taken from ...
(AC_PROG_CPP): ... here. Use _AC_PROG_CPP_WORKS. Use shell
"for" to find working CPP. Use AC_LANG_PUSH(C) and AC_LANG_POP -
it's a macro for C only.
2000-09-12 Akim Demaille <>
* (sed): Look for GNU sed.
(usage): Ask for GNU sed.
2000-09-12 Pavel Roskin <>
* acgeneral.m4 (AC_EGREP_CPP): Use additional quotes instead of
2000-09-12 Ruediger Kuhlmann <>
* acgeneral.m4 (AC_ARG_ENABLE, AC_ARG_WIDTH): Add trailing
semicolon to final fi.
2000-09-11 Pavel Roskin <>
* acgeneral.m4 (_AC_WARNING_ERROR_IFELSE)
(__AC_WARNING_ERROR_IFELSE): New macros for checking whether
warnings should be considered errors.
2000-09-11 Pavel Roskin <>
* Properly report names of unexpanded macros that
begin with an underscore.
2000-09-11 Pavel Roskin <>
* doc/autoconf.texi (Preset Output Variables): Correctly specify
what languages are affected by CPPFLAGS, LDFLAGS and LIBS.
Extended description of LDFLAGS and LIBS.
(Compilers and Preprocessors, C Compiler Characteristics):
Recommend Automake as the source of ansi2knr.
(Autoconf Language, Quotation and Nested Macros): English fixes.
(Quotation and Nested Macros): Unclear example replaced with
an explanation of when m4 expands quotes. Added explanation why
unquoted calls are dangerous.
2000-09-08 Pavel Roskin <>
* doc/autoconf.texi: Always use one space before the opening
parenthesis in @defmac.
2000-09-06 Morten Eriksen <>
* acspecific.m4 (_AC_OBJEXT): No longer use AC_COMPILE_IFELSE,
which uses $ac_objext hence depends upon _AC_OBJEXT.
* aclang.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): Call
_AC_OBJEXT before _AC_EXEEXT since the latter needs $ac_objext.
2000-09-06 Bernard Dautrevaux <>
* acspecific.m4 (_AC_EXEEXT): Set extension to void if linking
creates both an unsuffixed file and suffixed ones.
2000-09-06 Peter Eisentraut <>
* autoconf.texi: English and typo fixes.
2000-09-05 Pavel Roskin <>
* Consider undefined macros as errors.
* tests/base.m4 (unexpanded macros): Expect error, not warning.
2000-09-05 Dave Love <>
* aclang.m4 (_AC_PROG_F77_GNU): Run command from standard input so
that we can get some standard output.
2000-09-04 Peter Eisentraut <>
* Repair broken Getopt::Long use.
2000-09-04 Akim Demaille <>
* Bump version to 2.49b.
* (bin_SCRIPTS): Depend upon
2000-08-11 Akim Demaille <>
Version 2.49a.
2000-08-11 Akim Demaille <>
* aclang.m4 (AC_NO_EXECUTABLES): New macro.
2000-08-11 Akim Demaille <>
* tests/base.m4 (AC_SHELL_MKDIR_P): Remove `a' too.
2000-08-11 Akim Demaille <>
* Bump version to 2.49a.
2000-08-11 J. David Anglin <>
* Change `exit N' to `(exit N); exit' to provide
the correct exit status when an exit trap is taken.
2000-08-11 Akim Demaille <>
their AU_ALIAS definition: Automake 1.4 does not quote the name of
these macros, hence when Autoconf reads Automake's definition the
name is expanded with unpredictable results.
2000-08-09 Akim Demaille <>
* (Installing Autoconf extensions files): Remove.
2000-08-09 Akim Demaille <>
* (finalize.awk): Don't leave spaces before the user
function calls.
Reported by John David Anglin.
* doc/autoconf.texi (Limitations of Usual Tools): Start the AWK
* tests/tools.m4 (AWK portability): New test.
2000-08-08 Pavel Roskin <>
* Substitute @bindir@ in shell scripts, needed by
2000-08-07 Akim Demaille <>
* acfunctions.m4 (_AC_LIBOBJ_ALLOCA, AC_REPLACE_FUNCS): Simplify
${foo} into $foo.
* aclang.m4 (AC_LANG(C), AC_LANG(C++)): Move some internal
comments into the header comment.
* acgeneral.m4 (AC_TRY_CPP): Likewise.
2000-08-07 Akim Demaille <>
* tests/tools.m4 (undefined macros): New test.
2000-08-07 Akim Demaille <>
* (finalize.awk): New subtool, eved from the previous
literal AWK program that performed the `oline' and quadrigraphs
Fix its `oline' computation which was dead wrong when there are
empty lines (i.e., always).
Enhance it in order to look for and report unexpanded macro.
Don't let it pretend there are bugs in Autoconf (c:, the test
suite makes this scenario pretty unlikely as opposed to an actual
user bug.
Catch `m4_' too.
Remove the shell snippet which used to do this.
2000-08-07 Akim Demaille <>
* acgeneral.m4 (AC_MSG_NOTICE): New macro, suggested by Pavel
(AC_MSG_ERROR): Use it.
2000-08-04 Ruediger Kuhlmann <>
* acspecific.m4 (AC_PROG_RANLIB): Use AC_CHECK_TOOL.
* doc/autoconf.texi (Limitations of Usual Tools): Typos.
2000-08-04 Akim Demaille <>
Solaris' /usr/ucb/expr, and SunOS' /usr/bin/expr fail with the `:'
operator when \(\) is used, and matches a string longer than 120
Reported by Geoff Keating.
* doc/autoconf.texi (Limitations of Usual Tools): Some words about
* acgeneral.m4 (_AC_SHELL_DIRNAME): Fall back to echo|sed if expr
From Paul Eggert.
2000-08-04 Akim Demaille <>
Don't create the source file if none is given, and in this case,
don't remove it either.
2000-08-04 Akim Demaille <>
* libm4.m4 (m4_ifvanl): New macro.
* acgeneral.m4: Use it.
2000-08-02 Akim Demaille <>
Release Automake from being a substitute to Autoconf.
AC_SYS_POSIX_TERMIOS): New macros from both Automake and the
2000-08-02 Akim Demaille <>
* aclang.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Recent changes
inverted the results. Fix that.
2000-08-02 Akim Demaille <>
* doc/autoconf.texi (Special Shell Variables): More emphasis on
the dangers of character ranges.
From Paul Eggert.
2000-08-01 Akim Demaille <>
* (_ac_warnings): Be robust to LC_COLLATE.
`IFS=,; echo ,' will give a comma. Take this into account.
2000-08-01 Akim Demaille <>
* aclang.m4 (AC_PROG_CC): Also try to find $target_alias-cc.
2000-08-01 Akim Demaille <>
AC_VALIDATE_CACHED_SYSTEM_TUPLE no longer works properly since the
AC_CANONICAL_* revamping.
Reported by Peter Eisentraut.
In fact, let's just use the precious variables handling.
* acgeneral.m4 (AC_VALIDATE_CACHED_SYSTEM_TUPLE): Obsoleted.
(_AC_ARG_VAR_PRECIOUS): New macro, eved from...
(AC_ARG_VAR): this macro. Adjust.
(_AC_INIT_PREPARE): `build_alias', `host_alias', and
`target_alias' are precious.
* doc/autoconf.texi: Adjust.
2000-08-01 Akim Demaille <>
* acgeneral.m4 (_AC_INIT_PREPARE_ENVIRONMENT): Neutralize also
* autoconf.m4: Don't rely on character ranges with tr.
* doc/autoconf.texi (Special Shell Variables): Adjust.
2000-08-01 Akim Demaille <>
* acfunctions.m4 (_AC_LIBOBJ_STRTOD, AC_FUNC_STRTOD,
AM_FUNC_STRTOD): New macros, from Automake.
* acfunctions: Adjust.
2000-08-01 Akim Demaille <>
* acidentifiers: Catch ptrdiff_t.
* acspecific.m4 (AM_TYPE_PTRDIFF_T): AU define.
2000-08-01 Akim Demaille <>
* Be ready to handle AC_CHECK_TYPES requests.
Quote properly the output.
Remove useless backslashes.
2000-08-01 Akim Demaille <>
* acfunctions.m4 (AC_FUNC_ONSTACK): New macro, from
* doc/autoconf.texi (Particular Functions): Adjust.
2000-08-01 Akim Demaille <>
* acfunctions.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from
* doc/autoconf.texi (Particular Functions): Adjust.
2000-08-01 Akim Demaille <>
Create acfunctions.m4, in charge of the macros related to
Move to...
* acfunctions.m4: here, new file.
* Adjust.
Move also the old definitions into acfunctions.m4, and adjust the
test suite.
* acgeneral.m4 (AU_ALIAS): New macro.
* acfunctions.m4: here, using AU_ALIAS.
* acgeneral.m4 (AC_FD_CC, AC_CANONICAL_SYSTEM): Use AU_ALIAS to
define them.
* acoldnames.m4: Use AU_ALIAS instead of AU_DEFUN.
* tests/ (MACRO_FILES): Adjust.
2000-08-01 Akim Demaille <>
* Use Getopt::Long;
* acidentifiers: Classify, sort.
2000-08-01 Akim Demaille <>
* aclang.m4 (_AC_PROG_CXX_GNU, _AC_PROG_CC_GNU, _AC_PROG_F77_GNU):
Use grep instead of egrep, don't redirect stderr.
2000-08-01 Akim Demaille <>
* acgeneral.m4 (_AC_INIT_NOTICE): Adjust so that there are no
empty lines in the header comments (should be `#' alone instead).
Reported by Didier Verna.
2000-08-01 Greg A. Woods <>
* doc/autoconf.texi (Installation Directory Variables):
Clarifications and typos.
2000-08-01 Didier Verna <>
* acgeneral.m4 (AC_REVISION): Put a dot at the end of the line.
(_AC_INIT_HELP): Output the bug report address at
the end of a `configure --help' output.
(_AC_INIT_NOTICE): Ditto, but at the top of `configure'.
2000-07-31 Akim Demaille <>
* acgeneral.m4 (_AC_INIT_PREPARE_FDS): New macro, pulled out of
(_AC_INIT_PREPARE): here, where it is called from.
* aclang.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't test -z "`foo`".
2000-07-31 Akim Demaille <>
* acgeneral.m4 (_AC_DIVERT(INIT_PARSE_ARGS)): Rename as...
(_AC_DIVERT(PARSE_ARGS)): this. Adjust dependencies.
(AC_ARG_WITH): Remove spurious newline.
(AC_ARG_VAR): No longer save precious variables in
ac_configure_args, rather snapshot them twice (one kept
unmodified, another one to be written to/overwritten by the cache
(AC_CACHE_SAVE): Let the cache variables named `ac_cv_env_*'
be overwritten when loading the cache (i.e., don't use the
: ${foo=...} trick).
(_AC_ARG_VAR_VALIDATE): Compare the two snapshots of the precious
(_AC_INIT_PREPARE): Call it after having loaded the cache file.
2000-07-28 Akim Demaille <>
_AC_PROG_F77_GNU): Use ac_ext. Use _ACEOF instead of ACEOF.
2000-07-28 Akim Demaille <>
* (--warnings): Catch `no-category', not `nocategory'.
* Likewise.
* acgeneral.m4 (_AC_WARNING_IFELSE): Adjust.
2000-07-28 Akim Demaille <>
* doc/autoconf.texi (Installation Directory Variables): New
section, Eved off from `Preset Output Variables', i.e., was a
small part of it, grew independent, and is its equal (at least).
(Coding Style): `$#' padding.
* (editsh, editpl): Do what the doc says you do: use
@datadir\@ instead of @''datadir''@.
2000-07-28 Akim Demaille <>
* aclang.m4 (_AC_PROG_CC_GNU, _AC_PROG_CXX_GNU,
_AC_PROG_F77_GNU): Use ac_ext. Use ACEOF instead of EOF.
(AC_LANG_CONFTEST): New macro.
_AC_PROG_F77_V_OUTPUT): Use it.
2000-07-24 Steven G. Johnson <>
* aclang.m4 (AC_F77_FUNC): New macro to give the user a clean
way of accessing Fortran name-mangling information other than
through CPP, and without having to know the different possible
name-mangling schemes.
* autoconf.texi: Documented AC_F77_FUNC
2000-07-24 Akim Demaille <>
* acgeneral.m4 (_AC_CHECK_TYPE_BUILTIN_P): Add `off_t' and
`size_t' which are often used too.
Fix a bug which prevents recognition of `bool' and `char'.
(AC_CHECK_TYPE): Use it.
2000-07-19 Peter Eisentraut <>
* Remove INSTALL.txt by maintainer-clean target.
2000-07-19 Akim Demaille <>
* Typo: s/infile/file/.
2000-07-19 Martin Wilck <>
* aclang.m4 (AC_F77_NAME_MANGLING): Obsolete, becomes
(_AC_F77_NAME_MANGLING): Use independent checks for the
name mangling of symbols with and without underscores.
Use algorithm with for loops instead of recursive macro calls.
(AC_F77_WRAPPERS): Adapt to changes in _AC_F77_NAME_MANGLING.
* doc/autoconf.texi (Fortran 77 Compiler Characteristics):
Remove documentation of AC_F77_NAME_MANGLING.
Remove documentation of f77_case and f77_underscore.
2000-07-19 Akim Demaille <>
* NEWS: Fresh air.
* TODO: Fresh blood.
2000-07-19 Akim Demaille <>
* doc/autoconf.texi (autoheader Invocation): Explain the purpose
of autoheader.
2000-07-19 Akim Demaille <>
* doc/autoconf.texi: Various English fixes from Jim.
2000-07-19 Akim Demaille <>
* doc/autoconf.texi (Compilers and Preprocessors, Obsolete
Macros): Don't give boring internal details.
(Language Choice): Typo.
(Limitations of Builtins): Some about `!', `set', `$@'.
(Coding Style): Some about $[@] quotation.
Some about cross-compilation.
2000-07-19 Akim Demaille <>
* (dir): When verbose, say what are the tools you
will use.
2000-07-19 Akim Demaille <>
Warnings related to obsolete constructs should be properly
* acspecific.m4 (AC_RSH, AC_USG, AC_MEMORY_H, AC_DIR_HEADER,
`AC_DIAGNOSE(obsolete, ...)' instead of `AC_WARNING'.
2000-07-19 Akim Demaille <>
autoconf -W error does not work.
* acgeneral.m4 (_AC_DIAGNOSE): use _AC_WARNING_IFELSE,
2000-07-19 Akim Demaille <>
Martin Wilck found a Fortran 77 compiler which always exits with
* acgeneral.m4 (AC_COMPILE_IFELSE): Also check that the output
file was created and is nonempty.
2000-07-19 Akim Demaille <>
* doc/autoconf.texi (Introduction): More about CVS, Gnats, the web
pages, and the mailing lists.
2000-07-19 Akim Demaille <>
* doc/autoconf.texi (Prerequisite Macros): Dedocument AC_PROVIDE.
(Coding Style): Move some into...
(Macro Definitions): here.
2000-07-19 Akim Demaille <>
The --help message should have paragraphs starting with a title,
the options, and then optionally a small paragraph.
* acgeneral.m4 (AC_DIVERT_ONCE): New macro.
(HELP_VAR_END): New diversion.
(AC_ARG_VAR): Follow the --help style.
* acspecific.m4 (AC_PATH_X): Use AC_DIVERT_ONCE.
2000-07-19 Akim Demaille <>
* aclang.m4 (AC_PROG_CC): Don't require AC_PROG_F77, require
AC_PROG_CC instead.
From Martin Wilck.
(AC_PROG_F77_C_O): Require AC_PROG_F77.
Use a cache variable independent of $F77.
2000-07-19 Akim Demaille <>
* Accept --symbolic and -s.
2000-07-19 Akim Demaille <>
Make it clear that the regular user does not need --macrodir.
In fact, rename this option as -A, --autoconf-dir.
* Complain when -m, --macrodir is used.
Accept -A, --autoconf-dir.
Use $autoconf_dir instead of $AC_MACRODIR.
Adjust --help.
* Likewise.
* Likewise.
* Likewise.
Use $optarg.
* Likewise.
* doc/autoconf.texi: Adjust.
* tests: Adjust the test suite.
2000-07-19 Akim Demaille <>
* Forward --debug to sub tools.
Let them share the same tmp dir.
2000-07-18 Akim Demaille <>
* acspecific.m4 (AC_MING32): Rename as AC_MINGW32.
2000-07-18 Steven G. Johnson <>
Fixed bug where the F77 compiler output was parsed differently
when detecting the verbose flag than when scanning for linker
options, and as a result the former test failed (under AIX/xlf).
* aclang.m4 (_AC_PROG_F77_V_OUTPUT): New macro to get the
output of linking an F77 program with a given verbose flag,
and preprocess it as required to scan for linker flags.
(_AC_PROG_F77_V): Use the above macro here...
(AC_F77_LIBRARY_LDFLAGS): ...and here, enforcing consistency.
2000-07-17 Martin Wilck <>
* (autoconf): s,$updated,$tmp/updated,.
2000-07-17 Akim Demaille <>
* doc/autoconf.texi (Configuration Actions): Explain the
behavior of AC_CONFIG_HEADERS and AC_CONFIG_FILES with respect to
absolute and relative filenames, and stdin/stdout.
(config.status invocation): Likewise.
2000-07-17 Akim Demaille <>
* doc/autoconf.texi (Configuration Actions): Explain the
behavior of AC_CONFIG_HEADERS and AC_CONFIG_FILES with respect to
absolute and relative filenames, and stdin/stdout.
(config.status invocation): Likewise.
2000-07-13 Akim Demaille <>
Make it easier to trace what autoreconf does.
* Be more verbose, and always report your name in
verbose messages.
* Likewise.
* Likewise.
( Redirect ls' stderr to /dev/null.
2000-07-13 Akim Demaille <>
* acgeneral.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS): Properly
handle absolute input file names.
From Alexandre Oliva.
2000-07-12 Martin Wilck <>
* aclang.m4 (AC_PROG_F77): Delete AC_BEFORE(AC_PROG_CPP) that
leads to unnecessary warnings if both C and Fortran are checked.
(AC_PROG_F77_C_O): AC_REQUIRE AC_PROG_F77 instead of pretend you
need to be AC_BEFORE it.
2000-07-12 Akim Demaille <>
* (_ac_warnings): Fix call to tr.
Reported by Johan Danielsson.
2000-07-11 Martin Wilck <>
* aclang.m4 (_AC_PROG_F77_V): New macro to determine the flag that
causes the compiler to output verbose linking information.
(AC_F77_LIBRARY_LDFLAGS): Use _AC_PROG_F77_V instead of
simply "-v"
(AC_F77_LIBRARY_LDFLAGS): New algorithm to parse flags, uses
set/shift shell commands.
(AC_F77_LIBRARY_LDFLAGS): Set FLIBS at end, after determining
2000-07-11 Akim Demaille <>
* acgeneral.m4 (_AC_INIT_DEFAULTS) <ac_max_here_lines>: Set to 38
instead of 48, to pass the test on RISC/OS 4.52.
2000-07-11 Akim Demaille <>
!*^&$@ sed portability problems... The test on AC_CHECK_TYPES is
failing on RISC/OS 4.52 because of the forget-to-reset-the-flag
bug in its sed.
* acgeneral.m4 (_AC_OUTPUT_HEADERS): Work around this bug.
2000-07-11 Akim Demaille <>
* acspecific.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): s/ac_check/ac_cv/.
2000-07-10 Akim Demaille <>
* acgeneral.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS): Look for
the input files first in $builddir, then $srcdir.
Suggested by Lars J. Aas, designed by Alexandre Oliva.
2000-07-10 Lars J. Aas <>
Accept special filename '-' for stdin and stdout.
2000-07-10 Akim Demaille <>
Alexandre's suggestions.
* ( Use `ls -1dt' instead of `-lt'.
Use test instead of sed.
<automake>: If automake is used, always run it: it has its own
mechanism not to update if unneeded.
2000-07-10 Akim Demaille <>
* acspecific.m4 (_AC_PROG_ECHO): Modernize.
2000-07-10 Akim Demaille <>
Stop being ridiculous :*(
* acgeneral.m4 (_AC_SHELL_DIRNAME): When using m4 the argument
is named `$1' not `$dir'.
When using m4 you ought to quote properly.
When using m4, you should check that there are not too many shell
quotes (inside the macro itself, and where it is called).
When you do this, Autoconf, hm, works better.
2000-07-10 Steven G. Johnson <>
Improve --help documentation of important environment variables.
* acgeneral.m4 (_AC_INIT_HELP): Direct reader to descriptions
of useful variables at the end of the --help.
(AC_ARG_VAR): Emphasize use of environment variables to override
and/or help the configure script. Ensure that a given variable
is only documented once in the --help.
(AC_CHECK_LIB): Call AC_ARG_VAR to document and register the
LDFLAGS variable, and...
(AC_CHECK_HEADER): do the same for the CPPFLAGS variable.
* aclang.m4 (AC_PROG_CC): Call AC_ARG_VAR to document and register
the CC and CFLAGS variables, and do the same for...
(AC_PROG_F77): F77 and FFLAGS.
2000-07-10 Akim Demaille <>
* (wget-update): New target.
(WGET): New variable.
2000-07-10 Akim Demaille <>
* doc/autoconf.texi (Coding Style): Some more constraints :).
2000-07-10 Akim Demaille <>
* acspecific.m4 (AC_FUNC_STRERROR_R): Aaaaaaarg! Don't leave the
2000-07-10 Akim Demaille <>
* acspecific.m4 (_AC_FUNC_STAT, AC_FUNC_STAT, AC_FUNC_LSTAT): New
macros, from Jim's stat.m4 and lstat.m4 serial 6.
* doc/autoconf.texi (Particular Functions): Document
* acfunctions: Add them.
2000-07-10 Akim Demaille <>
AC_LIBOBJ when used by AC_REPLACE_FUNCS should not complain for
variables as argument.
* acgeneral.m4 (_AC_LIBOBJ): Same as the former AC_LIBOBJ, but
takes an additional argument: action to perform when non-literal
(AC_LIBOBJ): Use it.
2000-07-10 Akim Demaille <>
LANGUAGE should be neutralized too.
* acgeneral.m4 (_AC_INIT_PREPARE_ENVIRONMENT): Do it.
* doc/autoconf.texi (Special Shell Variables): Mention it.
2000-07-10 Akim Demaille <>
Set autoconf's default warnings to `syntax'.
In fact, honor the most recent specification in the concatenation
of `syntax',$WARNINGS,<options> in that order.
Implement support for `none' and `noCATEGORY' so that the options
may override the previous choices.
Suggested by Didier Verna.
* acgeneral.m4 (_AC_WARNING_IFELSE): New macro.
(AC_WARNING_IFELSE): Use this macro to implement the new specs.
(AC_WARNING): The empty category must not be used, default to
* doc/autoconf.texi (autoconf Invocation, Reporting Messages): Adjust.
* Adjust.
Use `optarg' to fetch the arguments of options.
Fix a bug in the handling of `--trace='.
* acgeneral.m4 (AC_CACHE_VAL): Typo: the macro was complaining iff
it shouldn't have.
2000-07-10 Akim Demaille <>
* (--install, --symlink): New options.
2000-07-10 Akim Demaille <>
* (dots, aclocal_m4, acconfig_h): Remove.
Adjust dependencies.
When using $verbose, redirect to stderr.
2000-07-10 Akim Demaille <>
* Clarify the difference between the location of
`aclocal.m4' and that of the location Autoconf extensions.
(-M, --m4dir): New option.
(aclocal_flags): Do not use $localdir, but $m4dir.
(localdir_opt): Remove, since $autoconf, $autoheader already
include `-l $localdir'.
2000-07-10 Akim Demaille <>
* (task install): We no longer use AC_INCLUDE.
2000-07-10 Akim Demaille <>
* acoldnames.m4: Remove the obsolete comments. The technology is
now detailed in `autoupdate'.
Quote the names being defined.
Formatting changes.
2000-07-10 Akim Demaille <>
* acgeneral.m4 (AC_DEFUNCT): Remove.
AC_INT_16_BITS, AC_LONG_64_BITS): They're alive!...
* doc/autoconf.texi (Obsolete Macros): but not fresh.
2000-07-10 Akim Demaille <>
* (debug): New variable.