Commit Graph

2419 Commits

Author SHA1 Message Date
Akim Demaille
83e4065f15 * autoconf.sh (task trace): s/m4/$M4/.
* autoheader.sh: When loading trace.sh, catch errors and exit with
a decent error message.
* tests/tools.at: Be sure to test autoconf --trace before
autoheader.
2000-12-06 10:53:58 +00:00
Akim Demaille
9bae9af007 * tests/atgeneral.m4 (AT_CHECK): Fix the m4_ifval invocation. 2000-12-06 08:59:21 +00:00
Akim Demaille
bb4693991e * aclang.m4 (AC_LANG): Be `smart': don't issue the sh code if the
current language did not change.
(AC_LANG_ASSERT): New.
(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 08:59:08 +00:00
Akim Demaille
482e84f65c * m4sugar.m4 (ifelse): Rename as...
(m4_if): this.
* autoconf.m4 (ifelse): Restore.
2000-12-06 08:58:41 +00:00
Akim Demaille
e43386442e * 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.
(AC_PLAIN_SCRIPT): Do it.
Call m4_init, define the Autoconf patterns.
(AC_INIT): Use AC_PLAIN_SCRIPT.
Remove the useless `dnl' (those where the current diversion is
KILL).
* autoconf.sh (m4_common): Fix quotation.
(finalize.awk): Load forbidden.rx and allowed.rx.
Split the line into tokens, and check their validity.
* tests/tools.at (Forbidden tokens): Adjust.
2000-12-06 08:58:13 +00:00
Akim Demaille
cc458dbc82 * acspecific.m4 (_AC_OBJEXT, _AC_EXEEXT): Ignore .d files produced
by CFLAGS=-MD.
2000-12-05 18:15:44 +00:00
Akim Demaille
bb1bae734e Adjust ChangeLog. 2000-12-05 14:17:36 +00:00
Akim Demaille
6de398dc69 Adjust a banner. 2000-12-05 14:16:08 +00:00
Akim Demaille
e77a2341a0 * aclang.m4 (AC_PROG_F77): Temporarily set ac_ext to F to run
_AC_LANG_COMPILER_GNU.
From Steven G. Johnson.
* tests/compile.at (GNU Fortran 77): New test.
2000-12-05 14:08:35 +00:00
Akim Demaille
7d7512c8ea * tests/tools.at (autoupdate): Strengthen and check autoupdate's
idempotency.
2000-12-05 13:52:49 +00:00
Akim Demaille
ab72d802f3 * tests/atspecific.m4 (_AT_CHECK_AC_MACRO): s/cp -f/mv -f/. 2000-12-05 13:50:33 +00:00
Pavel Roskin
dd6c961a3e * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Don't escape
backquotes in AC_MSG_ERROR. Fix error message.
2000-12-02 01:40:17 +00:00
Pavel Roskin
93c61512d9 * tests/atgeneral.m4 (AT_INIT): Use ${CONFIG_SHELL-/bin/sh}
to run the testsuite from the debug scripts.
Suggested by Alexandre Oliva.
2000-12-02 00:46:57 +00:00
Pavel Roskin
c76c5e9199 Updated from Automake CVS. 2000-12-01 16:40:17 +00:00
Pavel Roskin
d01c05ed5a Updated from ftp://ftp.gnu.org/ 2000-12-01 16:34:49 +00:00
Akim Demaille
0f93c89c4e * doc/autoconf.texi (Assignments): Don't read $? after an
assignment.
2000-11-30 17:48:50 +00:00
Akim Demaille
4867f191cb Adjust comments. 2000-11-30 17:35:16 +00:00
Akim Demaille
264fc11c21 * sh.m4 (AS_EXIT): Don't rely on false exiting 1.
Actually, always use `(exit $val); exit', don't try smart stuff.
* doc/autoconf.texi (Limitations of Builtins) <false>: new.
2000-11-30 17:27:32 +00:00
Akim Demaille
868bffa9a4 * 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 16:30:53 +00:00
Akim Demaille
12a40aa45c * acspecific.m4 (_AC_EXEEXT): Also remove conftest$ac_exeext.
Reported by Pavel.
2000-11-30 16:22:30 +00:00
Akim Demaille
b9e9a0f95b * 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
value.
Be sure to prefer `.exe' to `' when the two are observable.
Suggested by Lars and Earnie.
2000-11-30 15:24:13 +00:00
Akim Demaille
167feac4ba 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 rn.
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 14:49:43 +00:00
Akim Demaille
618eeb55e3 * doc/autoconf.texi (Systemology): New section.
Some about QNX 4.
2000-11-30 14:48:02 +00:00
Akim Demaille
ec675a8991 * doc/autoconf.texi (Special Shell Variables): Document RANDOM. 2000-11-30 12:51:12 +00:00
Akim Demaille
02af8eb027 Typos. 2000-11-30 09:52:15 +00:00
Akim Demaille
6cd1dc946c * doc/autoconf.texi (Limitations of Usual Tools): Some about cp
and mv, thanks to Ian.
2000-11-30 09:50:48 +00:00
Akim Demaille
9f6028ce8a Regenerate. 2000-11-30 08:34:48 +00:00
Akim Demaille
d4de67f987 * acspecific.m4 (_AC_OBJEXT): Skip *.tds, special case .o and
.obj.
Suggested by Lars.
2000-11-29 18:41:14 +00:00
Akim Demaille
dc583e3ac8 * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the portability of
the default assignment of CONFIG_FILES, CONFIG_HEADERS,
CONFIG_LINKS and CONFIG_COMMANDS.
2000-11-29 18:20:01 +00:00
Akim Demaille
7513ed1506 * 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 18:07:06 +00:00
Akim Demaille
b5dcefc876 * 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 17:57:55 +00:00
Akim Demaille
f5e4fecdaa Missing quotes. 2000-11-29 17:44:19 +00:00
Akim Demaille
1e84e1a44b * 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 17:43:00 +00:00
Akim Demaille
2d525bcd06 Another typo. 2000-11-29 16:15:30 +00:00
Akim Demaille
296d30f795 Typo. 2000-11-29 16:13:48 +00:00
Akim Demaille
0efbaeec6b * 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 16:08:43 +00:00
Akim Demaille
9f5b35eb49 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
Morgan.
* sh.m4 (_AS_EXPR_PREPARE): New.
(AS_DIRNAME): Use it.
2000-11-29 15:52:02 +00:00
Pavel Roskin
fa44b14081 Regenerated. 2000-11-29 15:34:27 +00:00
Pavel Roskin
57a2b339b3 Regenerated. 2000-11-29 14:58:44 +00:00
Akim Demaille
df07d83586 Typo reported by Pavel. 2000-11-29 14:46:07 +00:00
Akim Demaille
5acbbedd5f sizeof (struct {char a,b; }) is not required to be 2.
Reported by Johan Danielsson.
* tests/semantics.at (AC_CHECK_SIZEOF): Define charchar as an
array of 2 chars.
Suggested by Alexandre.
2000-11-29 14:14:10 +00:00
Akim Demaille
a8c122d0f2 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 built the value of `at_tests_all' by a for loop: expand
AT_TESTS_ALL.
(AT_SETUP): Build AT_TESTS_ALL.
(AT_BANNER): New.
Adjust all the former banners to use it.
(AT_CHECK): Don't trace the decoding of $?.
2000-11-29 10:12:05 +00:00
Akim Demaille
acbcc5f2b7 * tests/atgeneral.m4 (AT_DEFINE, AT_UNDEFINE, AT_SHIFT)
(AT_INCLUDE): Remove, use the m4_ macros.
2000-11-29 10:11:38 +00:00
Akim Demaille
0af3f6af7b * 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 10:09:44 +00:00
Akim Demaille
d4f4ec87f5 * m4sugar.m4 (m4_errprint, divnum, errprint, esyscmd): Rename as...
(m4_errprintn, m4_divnum, m4errprint, m4_esyscmd): this.
* autoconf.m4: Restore them.
2000-11-29 10:05:51 +00:00
Pavel Roskin
8323d2e8be Added at-setup-line. 2000-11-28 19:11:24 +00:00
Pavel Roskin
c30a647174 * doc/autoconf.texi (Fortran 77 Compiler Characteristics):
Don't suggest obsolete AC_LANG_FORTRAN77.
(Language Choice): Better preamble.
2000-11-28 18:58:15 +00:00
Pavel Roskin
b33c492dd7 * doc/install.texi: Minor changes to eliminate TeX warnings.
* doc/autoconf.texi: Likewise. Typo fixes.
2000-11-28 16:53:56 +00:00
Akim Demaille
d1961284af * tests/atconfig.in: Move code into...
* tests/atgeneral.m4 (AT_INIT): here.
Use AS_SHELL_SANITIZE.
2000-11-23 09:54:16 +00:00
Akim Demaille
0c0b7ab5a6 Have the test suite list of the test groups and their references.
* tests/atgeneral.m4 (_m4_divert(SUITE_PRO)): Remove, replaced
by...
(_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
at_tests.
Have the debug scripts pass options to test suite.
Remove their banner.
* tests/atspecific.m4: Don't divert to 0.
* suite.at: Don't insert the magic number.
2000-11-23 09:53:52 +00:00