Commit Graph

2977 Commits

Author SHA1 Message Date
Akim Demaille
3c94358e38 * lib/autotest/general.m4: Change tests?' into groups?' in
variable names when referring to a single test group, or to
`suite' when referring to the whole test suite.
`at_last_test' is removed: m4 compute at_format itself.
(at_stdout, at_stder1, at_stderr): New variables.
(AT_CHECK): Use them.
2001-11-13 14:03:01 +00:00
Akim Demaille
1a08742d0c * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
in PATH.
Create `testsuite.dir/003/run' instead of `testsuite.003'.
Do it as soon as a test fails, don't wait till the end of the test
suite.
Don't remove $as_me.[0-9]*, since these files no longer exist.
2001-11-13 13:15:48 +00:00
Akim Demaille
1f3be93758 * tests/tools.at: Use absolute paths, since we are no longer run
in place.
2001-11-13 12:03:11 +00:00
Akim Demaille
10dca17297 Now that tests are running in their own private dir, there is no
need to list the files to remove at the end of tests groups.
* lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
(AT_data_files, at_data_files): Remove.
(AT_CLEANUP, AT_DATA): Simplify.
(AT_INIT): Adjust.
Remove the group dir if !debug && !failed.
* tests/atspecific.m4: Adjust.
2001-11-13 11:41:08 +00:00
Akim Demaille
1205c2b251 Start a new layout for Autotest: `testsuite' creates
`testsuite.dir' in which the at-check-line etc. files are to be
found, and `testsuite.dir/003' where the test group 3 is run.
* lib/autotest/general.m4 (AT_INIT): at_tests_dir,
at_check_line_file, at_format, at_test_normalized, at_group_dir
are new variables.
Create the directories.
Use absolute paths for at- files.
(AT_CHECK): Adjust.
2001-11-13 11:39:14 +00:00
Akim Demaille
7a8927ef93 * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
(m4_car2): New.
(m4_car): Properly quote arguments.
2001-11-13 10:42:05 +00:00
Akim Demaille
68ffec6920 * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
with stricter rules on LIBOBJS.
2001-11-13 09:56:46 +00:00
Paul Eggert
ec7f1f72dc * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
* doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
  __PROTOTYPES too.
2001-11-12 18:48:58 +00:00
Paul Eggert
fd7fab58ee (C Compiler): AC_C_PROTOTYPES now defines __PROTOTYPES too. 2001-11-12 18:48:02 +00:00
Paul Eggert
ebb2e722f7 (AC_C_PROTOTYPES): Define __PROTOTYPES too. 2001-11-12 18:46:44 +00:00
Akim Demaille
9bbb080f54 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS. 2001-11-12 16:11:43 +00:00
Akim Demaille
371707922f * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/functions.m4, lib/autoconf/general.m4,
* lib/autoconf/headers.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
specify to what the macro should be defined (typically to 1).
2001-11-12 16:08:52 +00:00
Akim Demaille
1492d7c53b * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
From Jim Meyering.
2001-11-12 15:47:35 +00:00
Akim Demaille
80171f9a36 * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
definition used by Automake where LEX is +/- "${missing} lex" and
`missing' itself contains variables.
2001-11-12 08:59:54 +00:00
Akim Demaille
945977991b * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
Now that M4sh pushes BODY, the comments were output at the end of
the test suites.
2001-11-12 08:59:40 +00:00
Akim Demaille
61c422e02b Typo. 2001-11-09 16:04:55 +00:00
Akim Demaille
b863f27fcc * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
that we can trace macros from aclocal.m4.
Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
obsoleted, and redirect to the former anyway.
Reported by Ralf Corsepius.
2001-11-08 17:21:38 +00:00
Akim Demaille
00b6183c8e * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
processed only if present.
* tests/torture.at (Configuring subdirectories): Use autoreconf
instead of successive calls to autoconf.
Add a nonexistent subdirectory to exercise the patch above.
Reported by Ralf Corsepius.
2001-11-08 16:15:20 +00:00
Kevin Ryde
33f893c0f9 * autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
doesn't accept .S files.
2001-11-08 00:29:44 +00:00
Akim Demaille
21b8d2f2dc * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
* lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
(_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
* bin/autom4te.in (warn_forbidden): New.
(handle_output): Use it.
Read m4_pattern_forbid with messages.
2001-11-07 19:34:20 +00:00
Akim Demaille
eec4a3470d * bin/autom4te.in (--normalize): Remove.
* lib/autom4te.in: Adjust.
2001-11-05 17:39:33 +00:00
Akim Demaille
191ad539dc * tests/Makefile.am (testsuite): Rename this target as...
($(TESTSUITE)): this.
From Nicolas Joly.
2001-11-05 17:35:02 +00:00
Alexandre Duret-Lutz
fc9782f204 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
the --prefix option, also remove it's argument.
2001-11-05 13:04:41 +00:00
Akim Demaille
06de04bb1c * doc/autoconf.texi (testsuite Invocation): Update.
(Writing testsuite.at): Update.
2001-11-05 09:32:35 +00:00
Akim Demaille
5d5e1e7964 * doc/autoconf.texi: s/@code/@command/ where appropriate. 2001-11-03 12:02:16 +00:00
Akim Demaille
8993e7a7fa * lib/Autom4te/General.pm: (&catfile, &canonfile)
(&file_name_is_absolute): New, wrappers around routines from
File::Spec.
Use and export them.
(&find_configure_ac): Optionally take a directory where to look at.
* bin/autoreconf.in (&parse_args): Trim the configure.ac part of
the arguments.
Default @ARGV to `.', not find_configure_ac.
(&autoreconf): Argument is a directory.
Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
* doc/autoconf.texi (autoreconf Invocation): Update.
2001-11-03 12:01:35 +00:00
Akim Demaille
3b536e758c * lib/Autom4te/General.pm (@export_vars, @export_subs)
(@export_forward_subs): New.
Add basename, dirname, and fileparse.
(@EXPORT): Adjust.
* bin/autoreconf.in (&autoreconf): Fix call to fileparse.
Don't look for aclocal flags if we already know aclocal is not
used.
Move aclocal.m4t only if it exists.
Reported by Ezra Peisach.
2001-11-03 11:59:48 +00:00
Akim Demaille
03cd990470 * bin/autoreconf.in (&parse_args): Work only on the configure.ac
passed on command line, defaulting to ./configure.ac if present.
(&maybe_autoreconf, File::Find): Remove, unused.
(&autoreconf): If autoconf is not used, don't try to trace.
2001-11-03 11:59:35 +00:00
Akim Demaille
43aaa22d43 * configure.ac: Bump to 2.52g. 2001-11-02 17:35:50 +00:00
Akim Demaille
0ca3d2c678 . 2001-11-02 17:26:24 +00:00
Akim Demaille
6e03d9fade Version 2.52f. 2001-11-02 16:39:02 +00:00
Akim Demaille
f232611884 * config/config.guess, config/config.sub, doc/standards.texi:
* config/lispdir.m4: Update from masters.
* configure.ac: Bump to 2.52f.
2001-11-02 16:38:15 +00:00
Akim Demaille
5e98f4efcf * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
Don't run aclocal when aclocal.m4 is not from aclocal.
From Ezra Peisach.
Don't run libtoolize and gettextize if --install is not given.
2001-11-02 16:28:33 +00:00
Paul Eggert
68229d3f39 Regen. 2001-11-01 22:46:36 +00:00
Paul Eggert
995acce472 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
be invoked before _AS_LINENO_PREPARE.
(_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
than character ranges.
2001-11-01 22:44:48 +00:00
Paul Eggert
e39b2117e3 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to be invoked before
_AS_LINENO_PREPARE.

(_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather than
character ranges.
2001-11-01 22:41:54 +00:00
Paul Eggert
b933c62967 Regen. 2001-11-01 20:16:49 +00:00
Paul Eggert
8b17e84b77 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
invoking AS_BASENAME.  Set the locale variables to 'C' if
possible, as POSIX requires this to get the traditional
behavior.
* doc/autoconf.texi (Special Shell Variables): Describe the above.
2001-11-01 20:14:32 +00:00
Paul Eggert
c96654722d (Special Shell Variables): Update description of LC_ALL, LANG, LANGUAGE, etc.
to match current Autoconf behavior.
2001-11-01 20:12:27 +00:00
Paul Eggert
9fe512db2b (AS_SHELL_SANITIZE): Fix NLS before invoking AS_BASENAME. Set the
locale variables to 'C' if possible, as POSIX requires this to get the
traditional behavior.
2001-11-01 19:44:57 +00:00
Paul Eggert
d0ee48e065 Regen. 2001-10-31 20:11:46 +00:00
Paul Eggert
384cff4049 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
with {}, as that triggers a bug in Bash 2.05.
2001-10-31 20:10:13 +00:00
Paul Eggert
0dfeb49d8e (_AS_LINENO_WORKS): Do not surround body with {}, as that triggers a
bug in Bash 2.05.
2001-10-31 20:07:48 +00:00
Paul Eggert
9d68935ee1 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use Sed rather than
Awk.  Fix the sed prepass to work even if there are multiple
instances of $LINENO on the same line.  Do not substitute for
other variables like $LINENOT.  Do not check file dates; such a
check is unreliable on sufficiently fast machines, and removing
the check makes the code simpler and more reliable.  Check for
output and chmod failures.

* doc/autoconf.texi (Special Shell Variables): Document the above.
2001-10-31 19:32:35 +00:00
Paul Eggert
cac03a4762 (Special Shell Variables): Autoconf now uses Sed rather than Awk for
LINENO substitution, and some LINENO bugs have been fixed when using
Sed.
2001-10-31 19:26:21 +00:00
Paul Eggert
4c359a4349 (_AS_LINENO_PREPARE): Use Sed rather than Awk. Fix the sed prepass to
work even if there are multiple instances of $LINENO on the same line.
Do not substitute for other variables like $LINENOT.  Do not check
file dates; such a check is unreliable on sufficiently fast machines,
and removing the check makes the code simpler and more reliable.
Check for output and chmod failures.
2001-10-31 19:23:37 +00:00
Akim Demaille
89af419b83 Regen. 2001-10-31 10:43:31 +00:00
Akim Demaille
f1644c8ebb * tests/Makefile.am (atconfig): Remove this target, Automake
handles it now.
2001-10-31 10:42:16 +00:00
Akim Demaille
43d8d8e147 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
provided, while it is optional.
* configure.ac: Adjust.
2001-10-31 10:40:12 +00:00
Paul Eggert
7d4e0ab90d * NEWS, README, configure.ac, lib/Autom4te/General.pm,
lib/Autom4te/Struct.pm:
Require Perl 5.005_03 instead of just 5.005, as some tests fail
with 5.005_02.

* doc/autoconf.texi (Special Shell Variables): Document some
more LINENO gotchas, particularly with respect to the Awk+Sed hack.

* lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
(_AS_LINENO_PREPARE): Use it instead of shell eval, since
eval $LINENO is not portable in practice.
2001-10-26 19:54:34 +00:00