Commit Graph

2656 Commits

Author SHA1 Message Date
Paul Eggert
d992a7ce41 * BUGS (Minor Problems): Warn about makefile limitations.
* Makefile.am: Find and update `INSTALL' in $(srcdir).
* man/Makefile.am: Find and update manual pages in $(srcdir).
2004-12-29 06:54:44 +00:00
Paul Eggert
5ad4560f86 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
shells in subshell.
2004-12-25 07:50:01 +00:00
Paul Eggert
506530e5f9 * doc/autoconf.texi (Limitations of Builtins) <case>, <read>. 2004-12-22 21:50:28 +00:00
Akim Demaille
6834e94321 * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
avoid cluttering displayed messages.  Rather, prepend srcdir where
AT_LINE is used for log files.
2004-12-22 13:29:09 +00:00
Stepan Kasal
9655f04da2 * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
* lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
  no longer part of the macro, quote the occurrence of ``$tmp''.
* doc/autoconf.texi (Forbidden Patterns): Typo.
2004-12-21 14:24:01 +00:00
Akim Demaille
fa96c5a632 * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
separated from the test title by forcing a white space.
2004-12-21 12:47:57 +00:00
Akim Demaille
337a92a529 Enable Emacs navigation within testsuite.log files.
* lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
use the compilation mode.
(AT_LINE): Point to the srcdir.
2004-12-21 12:25:08 +00:00
Paul Eggert
ea190d85f1 Pass TESTSUITEFLAGS. 2004-12-20 04:10:21 +00:00
Paul Eggert
b788fb9a74 * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
* lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
2004-12-19 14:40:36 +00:00
Paul Eggert
1a135aaa8d * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
(_AT_CHECK): Use it.
* lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
(AS_ESCAPE): Fix comment.
* tests/autotest.at: Adjust section banner comments.
(AT_CHECK_AT): Accept STATUS and STDERR.
(AT_CHECK_AT_TEST): Likewise.
(Invalid brace-enclosed parameter expansion)
(Multiline command from M4 expansion)
(Double-M4-quoted command): New tests.
2004-12-19 14:25:56 +00:00
Paul Eggert
68b14fa353 * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2. 2004-12-18 00:44:52 +00:00
Akim Demaille
2e8bb72892 * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
m4_pattern_allow.
Suggested by Alexandre Duret-Lutz.
* doc/autoconf.texi (Setting Output Variables): Catch up.
2004-12-17 16:17:18 +00:00
Stepan Kasal
04c2cc1dbc * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment. 2004-12-17 14:41:16 +00:00
Stepan Kasal
bc1b400cc4 * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
remove the comment which said we cannot.
2004-12-17 14:36:23 +00:00
Stepan Kasal
bf15a42ad1 Add a specialized check for resolv.h. Thanks to Gerrit P. Haase,
Reini Urban and Paul Eggert for reporting the dependencies.

* lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
* doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
(AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
2004-12-17 14:32:51 +00:00
Stepan Kasal
b26f03d5be * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
so that eg. ``autoscan --help'' doesn't truncate it.
2004-12-17 14:21:50 +00:00
Paul Eggert
632f88fbc0 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove generated
conftest files.
2004-12-15 22:37:46 +00:00
Paul Eggert
bea2437161 * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
tracing on commands with possibly-escaped newlines.
* doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
discontinued behavior and its implications.
* tests/autotest.at (BS-newline in command, ^BS-newline in command)
(BSx641-newline in command, BS-BS-newline in command)
(BSx640-newline in command, Newline-CODE-BS-newline in command)
(Single-quote-BS-newline in command)
(Single-quote-newline-BS-newline in command): New tests.
2004-12-14 01:04:25 +00:00
Paul Eggert
a090c3988a * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
on platforms where it works.
(_AS_TEST_PREPARE): Test for ``test -x''.
(_AS_BROKEN_TEST_PREPARE): Nuke.
2004-12-13 18:22:55 +00:00
Paul Eggert
5d3ad5cb5a * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
  give only 4-letter prefix to AS_TMPDIR, comment fixed.
* lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
  create the temporary directory.
  (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
2004-12-13 17:58:03 +00:00
Paul Eggert
498b9c8446 * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found. 2004-12-13 07:15:26 +00:00
Alexandre Duret-Lutz
84bb23ef6f * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo. 2004-12-12 11:56:40 +00:00
Paul Eggert
37fb0cb6be Don't use negated character sets. 2004-12-12 09:51:10 +00:00
Paul Eggert
56f937c296 Simplifications to bin/Makefile.am and man/Makefile.am. 2004-12-10 23:57:42 +00:00
Paul Eggert
04dcf25d6e * bin/.cvsignore: Add autoconf.in.
* tests/.cvsignore: Add wrapper.in.

* man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.

* lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.

* tests/autotest.at: New file.
* tests/suite.at: Include it.
* tests/Makefile.am: Distribute it.

* lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
  shell tracing on a command that could contain multiple lines.
* doc/autoconf.text: Document that fact and its implications.
* lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
* tests/autotest.at (Multiline backquote command substitution,
  Multiline parameter expansion, Literal multiline command,
  Multiline parenthetical command substitution): Remove XFAIL.
2004-12-10 07:08:52 +00:00
Paul Eggert
61966b580a * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes. 2004-12-10 05:00:17 +00:00
Paul Eggert
0557a75b76 * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
and suggest AC_SEARCH_LIBS.
2004-12-09 21:32:05 +00:00
Paul Eggert
5574d5b7ba * configure.ac (test suite): Cease to generate wrapper scripts.
* configure: Regenerate.
* lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
(m4f_dependencies): Adjust accordingly.
* tests/Makefile.am (Wrappers): Generate wrapper scripts.
(wrapper.in): Generate it in the build directory.
(MAINTAINERCLEANFILES): Delete wrapper.in.
(CLEANFILES): Add wrapper.in.
* tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
the output.  Replace each $as_me with a @wrap_program@.
* tests/wrapper.in: Delete it; we always build it.

* bin/Makefile.am (autoconf.in): Generate it in the build directory.
(EXTRA_DIST): Remove autoconf.in.
(CLEANFILES): Add autoconf.in.
(autoconf): Find autoconf.in in the build directory.
* bin/autoconf.in: Delete it; we always build it.
2004-12-09 21:14:45 +00:00
Paul Eggert
c567224651 * lib/autotest/general.m4 (AT_INIT): Replace a tr' with a sed'. Join
PATH members so as to not prepend an empty element.  Move a comment.
* Makefile.am (SUBDIRS): Build in `tests' last.
* tests/Makefile.am (installcheck-local): Add check-local dependencies.
2004-12-09 21:01:37 +00:00
Paul Eggert
dee725cb84 * lib/mdate-sh: Don't use "set - x$ls_command /". 2004-12-08 20:37:41 +00:00
Paul Eggert
34fa7e5287 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
patch: extra "-l"s.
2004-12-07 18:23:06 +00:00
Paul Eggert
3077af0f26 Add support for UNICOS getmntent. 2004-12-06 21:24:19 +00:00
Paul Eggert
636a864089 * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
out the common code to ...
(_AC_DEFINE_Q).
2004-12-05 19:55:44 +00:00
Paul Eggert
26fc6c2b61 * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use "char c = '\200';". 2004-12-02 21:51:06 +00:00
Paul Eggert
b9bc8e0a42 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89. 2004-12-02 20:09:23 +00:00
Paul Eggert
389b830ea8 Minor rewording to fix problems reported by Ralf Wildenhues. 2004-11-29 21:43:33 +00:00
Paul Eggert
3f0a1ceaad * NEWS: Add ^L above each release. 2004-11-29 21:25:15 +00:00
Paul Eggert
76da3417c6 * HACKING: Refer to "coreutils", not "File, Shell or Text utils".
* lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
2004-11-29 04:34:31 +00:00
Paul Eggert
f72fc4eb29 Fix documentation problems reported by Russ Boylan in
<http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
along with some nearby cruft.
* doc/autoconf.texi (Libtool): Libtool can be used without
Automake (not without Autoconf).
(Introduction): Mention lists.gnu.org.
* BUGS: Don't mention bugs.gnu.org.
Remove mention of ancient libtool compatibility problem.
* NEWS: Mention that bugs.gnu.org is kaput.
* README: Likewise.  Mention where mailing list archives can be found.
2004-11-29 04:29:08 +00:00
Paul Eggert
a9f8c9f48e * doc/autoconf.texi (Pretty Help Strings): Go back to single-quoting 2004-11-26 08:58:50 +00:00
Paul Eggert
09158bc896 * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Expand $1.
* doc/autoconf.texi (Pretty Help Strings): more fixes
2004-11-23 19:13:33 +00:00
Paul Eggert
bbf4de9810 * doc/autoconf.texi (Pretty Help Strings): Fix typo. 2004-11-23 09:01:18 +00:00
Paul Eggert
2749e0cd5b * doc/autoconf.texi: Explain overquoting in descriptions. 2004-11-22 23:32:25 +00:00
Paul Eggert
d134956a15 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Move test. 2004-11-16 18:05:25 +00:00
Paul Eggert
7902e0d285 Avoid cp -r. 2004-11-11 00:13:32 +00:00
Paul Eggert
b518346d1f * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
limitations.
2004-11-10 21:59:55 +00:00
Paul Eggert
9bf04c6b54 * doc/autoconf.texi (Shellology, Special Shell Variables): Document that the Zsh
problem with NULLCMD was fixed in zsh 3.1.6-dev-18.
2004-10-11 21:42:05 +00:00
Paul Eggert
0952c34e3c * doc/autoconf.texi (One-Shot Macros): New node.
Also, wording fixups.
2004-10-11 20:26:01 +00:00
Paul Eggert
51d68951c9 * doc/autoconf.texi (Function Portability): Fix misdescription of putenv. 2004-09-28 17:23:40 +00:00
Paul Eggert
19b14c7967 Fix AC_AU_DEFUN bug. 2004-09-22 18:05:26 +00:00
Paul Eggert
f9ba7844be Fix OS/2 problems reported by Andreas Buening. 2004-09-05 22:27:17 +00:00
Paul Eggert
6ecc3e6bdb * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Clear ac_x_includes when needed. 2004-09-05 03:30:29 +00:00
Paul Eggert
2dddd6c450 * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
three args in examples.
2004-09-04 04:52:38 +00:00
Akim Demaille
fac3ef22a9 * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
"case" to restore ordering.
Reported by Stepan Kasal.
2004-09-02 07:30:25 +00:00
Akim Demaille
a626e04317 * doc/autoconf.texi: Typos and stylos. 2004-08-26 12:40:00 +00:00
Paul Eggert
935c28b108 Bump to 2.59c. 2004-08-21 00:12:02 +00:00
Paul Eggert
301517bd85 Autoconf 2.59b. 2004-08-20 23:59:22 +00:00
Paul Eggert
6b1c07685a Use "file name" rather than "filename" or "path",
to be consistent with the terminology of the GNU coding standards.
2004-08-20 19:58:06 +00:00
Paul Eggert
d4f7aabdf1 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
AC_C_LONG_DOUBLE): Undo 2004-06-04 change.
2004-08-20 07:01:28 +00:00
Paul Eggert
bfc2ff1489 Fixes to support spaces in the name of the build directory. 2004-08-20 06:24:32 +00:00
Paul Eggert
fb365a2e0d Add isinf, isnan stuff. 2004-08-12 21:54:04 +00:00
Paul Eggert
7a8ea3e87f * lib/Autom4te/General.pm (END): Return correct exit status even
if unlink succeeds and sets $?.
2004-08-12 17:24:40 +00:00
Paul Eggert
76fb11e7fe * tests/torture.at (Deep Package): Use configure.in, not configure.ac. 2004-08-09 23:14:57 +00:00
Paolo Bonzini
c5a18316e0 Added Nathanael Nerode to ChangeLog entry for AC_CHECK_TARGET_TOOL. 2004-08-04 09:18:34 +00:00
Alexandre Duret-Lutz
cc27a4753f * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
(AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
* lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
* doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
* lib/autom4te.in (Automake-preselections): Preselect
AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
2004-08-03 22:06:09 +00:00
Alexandre Duret-Lutz
a86400c06f * lib/autom4te.in (Automake-preselections): Preselect
AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
trace them.
2004-08-01 22:30:34 +00:00
Paul Eggert
e216d5cb77 Document pdksh POSIX problem. 2004-07-30 00:34:44 +00:00
Paul Eggert
621101c872 Mention BIN_SH. 2004-07-29 22:30:15 +00:00
Paul Eggert
c652094d91 Use "set -o posix" with pdksh, too. 2004-07-27 20:15:15 +00:00
Paul Eggert
8dcb87fb42 * lib/m4sugar/m4sh.m4:
Don't fail if ENV, MAIL, MAILPATH, LC_ALL, etc. are read only.
2004-06-24 15:00:29 +00:00
Paul Eggert
c41d505cbc * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
zsh, disable GLOB_SUBST.
2004-06-24 07:07:39 +00:00
Paul Eggert
091c734d9a Warn about names like "aux". 2004-06-04 20:40:33 +00:00
Paul Eggert
8f94c94fe5 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division by zero. 2004-06-04 19:39:51 +00:00
Paul Eggert
9a76187b8c Fix AC_C_LONG_DOUBLE C89 compatibility problem. 2004-06-02 23:48:18 +00:00
Kevin Ryde
91806b7496 * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
malloc(0) and realloc(NULL,size).
2004-06-02 23:14:35 +00:00
Kevin Ryde
b8e9e1a8db * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
Bob Proulx.
2004-06-02 22:52:31 +00:00
Paul Eggert
89d95a47eb Detect _Bool bug in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. 2004-06-01 05:33:27 +00:00
Paul Eggert
d3ac02e267 Mention that ! COMMAND can be rewritten using if-then-else. 2004-05-26 17:56:18 +00:00
Paul Eggert
01ccc31a6e Fix doc typo. 2004-05-25 18:50:06 +00:00
Paul Eggert
e6eb550c4d Fix autoconfdir to match comment. 2004-05-24 23:29:25 +00:00
Paul Eggert
3999390896 AC_FUNC_MBRTOWC: Don't assume that a function F exists merely because
the compiler and linker let you compile an expression like (F != 0).
2004-05-24 23:18:04 +00:00
Paul Eggert
77cf219604 Standardize on the spelling of "Unix". Explain !'s problems. 2004-05-24 19:24:20 +00:00
Alexandre Duret-Lutz
ac2dfd9caa * lib/autom4te.in (Automake-preselections): Preselect
LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
2004-05-22 21:58:19 +00:00
Kevin Ryde
7b79456598 * doc/autoconf.texi (Function Portability): Add strerror_r, cross
referencing AC_FUNC_STRERROR_R.
* doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
note pessimistic assumption when cross compiling.
2004-05-19 01:54:27 +00:00
Paul Eggert
4b794c38d7 Document sh -e problem with subcommands. 2004-05-17 04:56:48 +00:00
Paul Eggert
278cbdd51f Don't prepend blanks to PATH in AC_PROG_GREP and AC_PROG_SED. 2004-05-10 18:54:18 +00:00
Paul Eggert
11ee0ab5f5 Port to C99, which requires that 'exit' be declared. 2004-05-03 20:15:44 +00:00
Paul Eggert
b3b81694da Regenerate. 2004-05-03 06:50:48 +00:00
Paul Eggert
2ca60bb81f * configure.ac (AC_PROG_GREP): Add.
* lib/freeze.mk (GREP): New macro.
2004-05-03 06:20:09 +00:00
Paul Eggert
2632aa6e7b Prefer 'grep' implementations that accept -e. 2004-05-03 05:54:17 +00:00
Gary V. Vaughan
883a232738 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
how deeply nested we are when a suitable tool is found, set the
ac_path_TOOL_found flag.
(_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
nested we are in this macro.  Break out of all 3 nested loops if
ac_path_TOOL_found is set.
2004-04-23 10:24:32 +00:00
Gary V. Vaughan
94c540e872 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
of the _AS_PATH_WALK loop too if GNU flavor is found.
2004-04-21 13:04:56 +00:00
Alexandre Duret-Lutz
d8d1f67499 * doc/autoconf.texi (Limitations of Make): Update documentation
for `$<'.  New entry `Long lines', based on a report from Simon
Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
paragraph about DJGPP, based on a mail from Richard Dawe.
2004-04-21 08:23:18 +00:00
Paul Eggert
59dc5be4fd Log changes to tests/c.at, lib/autoconf/c.m4, doc/autoconf.texi,
lib/autoconf/lang.m4.
2004-04-20 20:20:09 +00:00
Gary V. Vaughan
265fcd3986 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
best tool so far counter rely on the tool path variable name to
avoid checks for one tool being affected by the results of running
the length check on a previous tool.
2004-04-20 19:16:34 +00:00
Gary V. Vaughan
0d06ecdc76 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
match expression argument, as different greps have different
regular expression flavours.
(AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
literals.
(AC_PROG_EGREP): Pass 'EGREP$'.
(AC_PROG_GREP): Pass 'GREP$'.
2004-04-20 19:09:22 +00:00
Gary V. Vaughan
f959e7f2ed * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
2004-04-20 16:54:35 +00:00
Paul Eggert
7bcfe7aa19 Use 'long int', 'short int', 'unsigned int'
etc. consistently instead of 'long', 'short', 'unsigned' etc.
2004-03-30 07:55:25 +00:00
Paul Eggert
4d1bb4117e AC_STRUCT_TIMEZONE now defines HAVE_DECL_TZNAME if it is declared,
when HAVE_STRUCT_TM_TM_ZONE is not defined.
2004-03-28 21:51:10 +00:00
Steven G. Johnson
b70d1ce7fd fix sed quoting; portland-group fortran compiler parsing; new fortran compiler names 2004-03-28 20:46:38 +00:00
Kevin Ryde
5037415422 (Specifying Names): Move cross_compiling ovindex to
(Run Time): ... here, where it's now mentioned.
2004-03-24 23:05:00 +00:00
Alexandre Duret-Lutz
9d30c9595d * doc/autoconf.texi (autom4te Invocation): Language Autoconf
inherits from language Autoconf-without-aclocal-m4.
(Customizing autom4te): Adjust example; the cache must now be
disabled for language Autoconf-without-aclocal-m4.
2004-03-20 06:33:12 +00:00
Paolo Bonzini
e09a76cd5a 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
* lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
	AC_CHECK_TOOLS): Warn if a cross-tool is found without
	a prefix.
	(AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
	AC_CHECK_TARGET_TOOLS): New macros.
	* doc/autoconf.texi (Generic Programs): Document
	(AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
	AC_CHECK_TARGET_TOOLS, and warn for future changes
	in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
	AC_CHECK_TOOLS.
	(Specifying Names): Document the reason for these future
	behavioral changes.
	* tests/mktests.sh: Do not generate tests for the
	new macros.
	* NEWS: Document these changes.

	* doc/autoconf.texi: Avoid macros with unbraced arguments,
	they make TeX hang up.
2004-03-19 08:57:51 +00:00
Paul Eggert
1af3ee05ac Add AC_CHECK_ALIGNOF. 2004-03-15 22:00:05 +00:00
Paul Eggert
837c0ccc76 Don't use $< in makefiles where POSIX doesn't allow it;
add @configure_input@ in a couple of other places.
2004-03-03 21:40:46 +00:00
Gary V. Vaughan
f2b269d60b * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
from the next generation of Libtool.
* lib/autom4te.in (Autoreconf-preselections): Ditto.
2004-02-23 08:27:51 +00:00
Alexandre Duret-Lutz
2b0361107e * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
is not always thread-safe.  Report from Nathanael Nerode.
2004-02-19 23:21:41 +00:00
Paul Eggert
480a58665b Fix a dependencies problem, stemming from a Autoconf 2.59 build
problem on QNX reported by Stephen Rasku in
<http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
2004-02-18 21:34:44 +00:00
Paul Eggert
a2e13401e1 *** empty log message *** 2004-02-09 21:30:27 +00:00
Paul Eggert
3eef4058db (Setting Output Variables): Emphasize that
AC_SUBST provides no portable way to escape literal newlines.
2004-02-09 21:19:32 +00:00
Paolo Bonzini
6b2d30f409 * doc/autoconf.texi (AU_DEFUN): Fix English,
suggested by Paul Eggert.
* lib/autoconf/autoupdate.m4: Correct reference to
acobsolete.m4, suggested by Alexandre Duret-Lutz.
2004-02-03 23:07:30 +00:00
Paolo Bonzini
7c1b2b4c78 * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
(AS_INIT): Output shell initialization there. Removed optional
parameter. Expand _AS_SHELL_FN_SPY.
(AS_INIT_WITH_SHELL_FN): Removed.
(_AS_SHELL_FN_SPY): New macro.
(AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
macros.
(AS_SHELL_SANITIZE): Remove loop to find better shell
and documentation for the parameter.
(_AS_DETECT_BETTER_SHELL): Move it here.
(_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
(_AS_RUN): Move it here, support testing with eval.
(AS_REQUIRE_SHELL_FN): Require shell functions when
it is used.
(_AS_LINENO_WORKS): Put around braces, we do not
trigger the bash bug anymore.
* lib/autotest/general.m4: Document M4SH-SANITIZE, do not
use AS_INIT_WITH_SHELL_FN.
* bin/autoconf.in, tests/wrapper.in: Regenerated.
2004-01-30 14:29:18 +00:00
Paolo Bonzini
9cfd0271c1 * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
* doc/autoconf.texi: Don't say that the third parameter
is broken.
* lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
(AU_DEFUN): Honor the third parameter, create autoupdate
macros with AU_DEFINE.
* lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
AC_DIR_HEADER): Use AU_DEFUN's third parameter.
* lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
* lib/autoconf/programs.m4 (AC_RSH): Likewise.
* lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
AC_XENIX_DIR): Likewise.
* lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
* lib/autoconf/status.m4: Remove FIXME.
* tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
that the macro is not present anymore in the updated
configure.ac.
* tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
of autoupdate.
2004-01-30 14:21:35 +00:00
Paul Eggert
d73f38a0cd Update copyright years. 2004-01-28 22:21:16 +00:00
Gary V. Vaughan
d2e80858b8 * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
grep or ggrep program in PATH that accepts as long lines as
possible.
* lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
AC_PROG_GREP.
(AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
egrep and fgrep respectively if $GREP -E/-F don't work.
(_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
_AC_PROG_GREP, and AC_PROG_SED.
(_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
longest input length accepted by a command.
(AC_PROG_SED): Use it.
* doc/autoconf.texi (Particular Programs): Document the changes.
* NEWS: Updated.
2004-01-27 20:07:12 +00:00
Paul Eggert
4a6e2542ea * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update copyright from
2003 to 2004.
2004-01-27 19:52:55 +00:00
Paul Eggert
5f8650d8c3 Resync and/or copy from original sources. 2004-01-27 19:25:05 +00:00
Paul Eggert
62ac9bbfeb Include <stdint.h> even if HAVE_INTTYPES_H is defined. 2004-01-26 23:28:56 +00:00
Gary V. Vaughan
f74f53b7c8 * lib/autoconf/programs.m4 (AC_PROG_SED): New macro to test for a
non-truncating sed or gsed program in PATH.
* tests/acprograms.at: Add it.
* doc/autoconf.texi (Particular Programs): Document it.
* NEWS: Updated.
2004-01-23 08:21:51 +00:00
Paul Eggert
989d244f81 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
-std1 disables some useful extensions on Tru64.
2004-01-15 18:20:51 +00:00
Paul Eggert
3cbad6e408 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
Test for dir before calling mkdir -p.  (trivial changes)
* doc/autoconf.texi: Document this.
2004-01-14 20:27:30 +00:00
Paul Eggert
39da25a1d2 Grammar fixes. 2004-01-14 18:36:58 +00:00
Paul Eggert
6e4d00fa69 * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
2004-01-13 18:36:54 +00:00
Jim Meyering
d75addc13b *** empty log message *** 2004-01-10 16:40:09 +00:00
Paul Eggert
d22e7cb9e4 * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
with `autoconf -Wall,error'.
2004-01-10 06:48:02 +00:00
Paul Eggert
90cf0c1cbe * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside "'...'". 2004-01-07 23:59:15 +00:00
Alexandre Duret-Lutz
c32ade9b96 * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
and _LT_AC_TAGCONFIG.
2004-01-07 22:07:07 +00:00
Paul Eggert
df495a3499 Fix an incorrect quoting example; reported by Eric Sunshine. 2004-01-06 21:11:30 +00:00
Paul Eggert
82fea9e4f7 Remove warning against "rm -fr" introduced yesterday;
it seems to have been a false alarm.
2004-01-05 23:34:23 +00:00
Paul Eggert
a6a02e8ae7 Don't use "chmod -w". 2004-01-05 08:18:24 +00:00
Paul Eggert
c1556b819b Speed up sed scripts by doing lineno substitution only on lines with "$LINENO". 2004-01-05 07:43:48 +00:00
Paul Eggert
12475c8947 Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires. 2004-01-05 07:05:22 +00:00
Paul Eggert
f95cc1efe7 Use "rm -f" to remove conftest.sed. 2004-01-05 06:18:09 +00:00
Paul Eggert
bf95493fe6 *** empty log message *** 2004-01-04 01:41:52 +00:00
Kevin Ryde
1484636ed8 * doc/autoconf.texi: Add various further index entries. 2004-01-03 20:57:09 +00:00
Paul Eggert
cf35f4f352 * bin/autoreconf.in (autoreconf_current_directory):
Fix typo: mkdir without umask arg.
2003-12-30 00:20:04 +00:00
Alexandre Duret-Lutz
30fe91493d * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
`VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
explanation clearer.
2003-12-27 11:31:05 +00:00
Paul Eggert
57c4246280 Fix misspelling of AC_INCLUDES_DEFAULT. 2003-12-27 08:26:26 +00:00
Paolo Bonzini
932964898a 2003-12-03 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: Test if sh -n works.
        * configure: Regenerate.
        * tests/atlocal.in: Store the result here.
        * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
        tools.at, looking in atlocal's ac_cv_sh_n_works instead
        of explicitly testing.
        (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
        (AT_CHECK_AUTOCONF): Test for the configure script syntax.
        * tests/tools.at (Syntax of the shell scripts): Simplify
        using AT_CHECK_SHELL_SYNTAX.
        (Syntax of the Perl scripts): Remove definition of
        AT_CHECK_PERL_SYNTAX.
2003-12-25 15:49:59 +00:00
Paolo Bonzini
063d705adf 2003-12-03 Paolo Bonzini <bonzini@gnu.org>
* lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
        stderr to /dev/null.
        * bin/autoconf.in: Regenerate.
        * bin/wrapper.in: Regenerate.
2003-12-25 15:43:01 +00:00
Paolo Bonzini
0723ac047b 2003-11-26 Paolo Bonzini <bonzini@gnu.org>
* lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
        Extracted from AS_SHELL_SANITIZE.
        (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
        macros.
        (AS_SHELL_SANITIZE): Move reinvocation code from
        _AS_LINENO_WORKS, use it to find out if shell
        functions work.
        (_AS_LINENO_WORKS): Don't find another shell if $LINENO
        does not work.
        (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
        (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
        was called.
        * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
        * bin/autoconf.in: Regenerate.
        * tests/wrapper.in: Regenerate.
        * tests/tools.at: Test the syntax of tests/autoconf
        and tests/testsuite.
2003-11-27 10:04:12 +00:00
Akim Demaille
90f031cf0b * config/announce-gen (&print_locations, &print_signatures)
(&sizes): New.
Use them.
No longer rely on Gnus to inline the list of signatures: compute
them on the fly.
2003-11-24 16:11:41 +00:00
Akim Demaille
6e6183ff80 * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
override some files.
(Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
From Debian Autoconf 2.58.
2003-11-24 14:36:15 +00:00
Akim Demaille
d9d165e195 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
uses.
From Debian Autoconf 2.58.
2003-11-24 14:19:04 +00:00
Akim Demaille
c9df52cd72 Typos. 2003-11-24 14:09:12 +00:00
Paolo Bonzini
9e56967aa4 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
* TODO: Remove already done things.  Update the part
        about finding tools for the target.

2003-11-24  Paolo Bonzini <bonzini@gnu.org>

        * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
        AC_DIR_HEADER): Make wording more consistent.
        * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2,
        AC_MINGW32): Explain the transition better.
        * lib/autoconf/types.m4 (AC_INT_16_BITS,
        AC_LONG_64_BITS): Explain the transition better.

2003-11-24  Paolo Bonzini  <bonzini@gnu.org>

        * doc/autoconf.texi (Obsoleting Macros): Don't
        document the third parameter of AU_DEFUN.
        * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
        (AU_DEFUN): Remove the third parameter, it was not used.
        Use AC_DEFUN directly, not AU_DEFINE.
        * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message
        into the expanded body, consistently with other macros
        such as AC_USG.
2003-11-24 10:40:58 +00:00
Paul Eggert
c966beba8e Put at least 14 bytes into the initial confdefs.h. 2003-11-17 17:37:05 +00:00
Kevin Ryde
e31511767a * doc/autoconf.texi (Using System Type): Revise, showing $host rather
than $target since the latter is not usual, add guidelines on when to
use or not use the system type.
2003-11-14 23:32:52 +00:00
Derek Price
87bca2495f * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
typo misrepaired by an auto-spellcheck.
2003-11-12 15:43:21 +00:00
Akim Demaille
fd6c90c36a * bin/autoreconf.in (&parse_args): Don't call automake with
--force-missing unless it actually supports it.
From Debian #219336.
2003-11-12 15:28:43 +00:00
Akim Demaille
5b23e50984 * configure.ac: Bump to 2.59a.
Require 2.59.
2003-11-12 15:21:00 +00:00
Akim Demaille
99a48ad6c1 Version 2.59. 2003-11-06 09:32:24 +00:00
Alexandre Duret-Lutz
727294e819 * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
and ac_abs_top_srcdir are absolute paths.
* lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
2003-11-05 11:58:43 +00:00
Akim Demaille
8cde79a28b * configure.ac: Bump to 2.58a. 2003-11-05 10:38:00 +00:00
Kevin Ryde
197784a32b * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
it provokes a warning from makeinfo about looking like a cross
reference in info output.
* doc/autoconf.texi (Function Portability): Add notes on signal
handler return type, as per AC_TYPE_SIGNAL.
2003-11-04 21:20:12 +00:00
Akim Demaille
033be7cd65 tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM. 2003-11-04 12:32:01 +00:00
Akim Demaille
22cc67b23b Version 2.58.
* doc/standards.texi: Update from master.
2003-11-04 08:48:23 +00:00
Akim Demaille
610c228914 AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
computing the absolute path to d1 in the source hierarchy: it may
not exist at all.  So don't cd into it.
From Alexandre Duret-Lutz.
http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
* lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
From Paul Eggert, but named after Perl's IO::Spec->catfile.
* doc/autoconf.texi (Programming in M4sh): Document.
* lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
2003-11-04 08:32:06 +00:00
Pavel Roskin
3a06ae4af8 * doc/autoconf.texi (Generic Structure Checks): Describe
action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
2003-11-03 16:35:00 +00:00
Akim Demaille
f159338d6e * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
(GNU Fortran): New.
* doc/autoconf.texi (Language Choice): Document.
* lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
the current language is Fortran.
2003-10-31 08:44:46 +00:00
Akim Demaille
61cf467820 * bin/autom4te.in (&freeze): Use a less likely warning separator
than `nn', so that `nnn' is valid in warnings.
Reported by Steve Huston.
2003-10-31 08:43:39 +00:00
Akim Demaille
27197cbed6 * Makefile.cfg (local_updates, executable-update): Tweak to be
robust to parallel makes.
Suggested by Alexandre Duret-Lutz.
2003-10-28 08:28:56 +00:00
Akim Demaille
5f99feb4cd * Makefile.cfg (executable-update): New.
(local_updates): Call it.
2003-10-27 16:48:06 +00:00
Akim Demaille
d7b524a8b0 * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
Don't remove core.* as it may remove valid user files.
* lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
(AC_FUNC_UTIME_NULL): Likewise.
2003-10-27 11:12:49 +00:00
Akim Demaille
7b7d2c43ec Version 2.57g.
* config/config.guess, config/config.sub: Upgrade from masters.
2003-10-23 14:30:04 +00:00
Akim Demaille
4b174d9e8c * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
hand...
2003-10-23 08:22:27 +00:00
Akim Demaille
7e99ccfaa0 * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
Don't forget to remove conftest.err.
2003-10-23 07:56:52 +00:00
Akim Demaille
77c5d24444 * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
same object file in $LIBOBJS.
Reported by Alexandre Duret-Lutz & Derek Robert Price.
* doc/autoconf.texi (Generic Functions): Adjust.
2003-10-23 07:49:15 +00:00
Paul Eggert
828da4a04c Use 'eval', so that the resulting configure scripts work even if
the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
2003-10-20 23:24:37 +00:00
Daniel Jacobowitz
dd1ddde557 * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
* lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
	(_AC_LINK_IFELSE): Check the werror flag.
	* doc/autoconf.texi (Generic Compiler Characteristics): Document
	AC_LANG_WERROR.
	* NEWS: Mention it.
2003-10-20 16:18:26 +00:00
Daniel Jacobowitz
4c38c907f7 * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
_AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
	override AC_LINK_IFELSE.
2003-10-20 15:57:44 +00:00
Paul Eggert
fb37a3ec82 Work around a bug in pdksh 5.2.14.
Document ksh better.
2003-10-15 22:56:22 +00:00
Kevin Ryde
320a1a6670 *** empty log message *** 2003-10-15 00:13:59 +00:00
Paul Eggert
08d070c99d Trivial fix for vfork cross test. 2003-10-13 19:09:58 +00:00
Steven G. Johnson
40aa8f8cf0 g95 is now to be called gfortran 2003-10-11 23:37:58 +00:00
Andreas Schwab
0bdeaac15d Avoid empty first line in --version and --help output. 2003-10-10 09:18:56 +00:00
Paul Eggert
132dcb2111 Don't assume -j is a solo 'make' argument. 2003-10-09 20:23:53 +00:00
Steven G. Johnson
87f8817fdc bug-fix for AC_{FC,F77}_LIBRARY_LDFLAGS with Intel ifc 2003-10-09 05:32:25 +00:00
Steven G. Johnson
5a401f703d document new Fortran stuff 2003-10-08 20:06:21 +00:00
Gary V. Vaughan
2f9a01b432 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
that future autopoint/aclocal/automake/autoreconf will be able
to trace to find where to install local m4 macros.
* doc/autoconf.texi (Input): Document it.
* NEWS: Updated.
2003-10-08 13:12:19 +00:00
Steven G. Johnson
8cb27aa8a2 fix underquoting and ignore -lcrtbegin for MacOS X 2003-10-07 17:02:16 +00:00
Steven G. Johnson
ab51c2b44a fix GNU compiler handling in _AC_PROG_FC_G 2003-10-05 18:34:14 +00:00
Steven G. Johnson
e11232b4eb AC_FC_FREEFORM: support -f free flag for Absoft, reorder flags 2003-10-03 23:37:56 +00:00
Steven G. Johnson
1e2fa5590b document fortran.m4 commit 2003-10-03 17:25:06 +00:00
Akim Demaille
e33f0affba * configure.ac: Look for emacs, not macs.
Reported by Eric Sunshine.
2003-10-03 13:58:37 +00:00
Akim Demaille
69148bc4e5 * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
* bin/autoreconf.in (autoreconf_current_directory): Create the
AUX_DIR if needed, for sake of automake --add-missing etc.
Suggested by Alexandre Duret-Lutz.
2003-10-03 07:30:01 +00:00
Akim Demaille
8d5d3bd898 * configure.ac: Quotation and formatting changes.
(EMACS): Don't set it if it is not recent enough to support
autoconf-mode.el.
From Eric Sunshine.
2003-10-03 07:07:13 +00:00
Akim Demaille
2c222091ff * bin/ifnames.in (&scan_file): Skip C++ comments. 2003-10-02 12:47:47 +00:00
Paul Eggert
1ff767a434 * doc/autoconf.texi (Particular Structure Checks):
Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
2003-10-02 04:41:14 +00:00
Akim Demaille
b9859c602f Version 2.57f. 2003-10-01 10:29:36 +00:00
Paul Eggert
af43b2b786 * lib/Autom4te/XFile.pm: Use Errno.
(lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
<http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
2003-09-30 19:29:47 +00:00
Akim Demaille
f08e10cb50 * config/announce-gen (&print_news_deltas): Extracted from...
(&print_changelog_deltas): here.
(&news_file): Rename as...
(@news_file): this.
2003-09-30 13:07:27 +00:00
Akim Demaille
3e2b51bef7 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
have been created when invoking the compiler.
* tests/fortran.at (GNU Fortran 77): Quote $G77.
2003-09-30 13:03:01 +00:00
Akim Demaille
7e7359702d Fix ChangeLog. 2003-09-29 09:14:52 +00:00
Akim Demaille
0d2e796391 Version 2.59e.
* config/mkinstalldirs: Upgrade.
2003-09-29 09:12:46 +00:00
Paul Eggert
69460e86e0 (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to "test -d ./-p && rmdir ./-p". 2003-09-28 19:02:41 +00:00
Paul Eggert
857ba94761 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh. 2003-09-28 18:53:50 +00:00
Akim Demaille
9a8ac9d0ba * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
directory for AC_CONFIG_COMMANDS' first argument exists.
This makes valid the invocation of _AC_SRCPATH that follows.
Reported by Eric Sunshine.
* doc/autoconf.texi (Configuration Commands): Adjust.
2003-09-26 13:55:03 +00:00
Akim Demaille
d254c1999a * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
Reported by Ralf Corsepius.
2003-09-26 12:57:42 +00:00
Akim Demaille
59d9e7a8c0 * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
arguments.
Actually, use AU_ALIAS.
From Bruno Haible.
2003-09-26 09:11:23 +00:00
Paul Eggert
c8442aa6a7 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
2003-09-26 08:26:01 +00:00
Akim Demaille
eb9c81bd2e Fix an acknowledgement. 2003-09-26 08:21:48 +00:00
Akim Demaille
f58280e8cc The test suite are sometimes assigning timings incorrectly.
Reported by Paivio Pollari.
Diagnosed by Nicolas Joly.
* lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
AT_help_all.
Instead of making AT_help a sequence of assignments to grow
$at_help_all, just make AT_help_all be the growing contents of
$at_help_all, and make a single assignment in...
(AT_INIT): here.
(at_times_skip): Flip the meaning and rename as...
(at_times_p): this.
(AT_INIT): When summarizing the test that ran, remove
$at_times_file after use, and check it is present before trying to
use it.
2003-09-26 08:12:38 +00:00
Akim Demaille
6f5de816b0 Version 2.57d.
* bin/Makefile.am (edit): Handle '@configure_input@'.
(autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
(ifnames): chmod -w.
* tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
executables, not bin/ executables!  Otherwise all the magic needed
to find non installed files is turned off.  This caused a failure
of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
as found in its environment (sent by tests/autoreconf): pointing
to bin/autom4te that could not find its files.
* tests/mktests.sh: Force the replacement of generated files, for
the sake of "mv" program that are interactive when overwriting a
-w file.
* config/install-sh: Upgrade from CVS Automake.
2003-09-25 09:30:34 +00:00
Akim Demaille
f2e174acbe Version 2.57d.
* config/install-sh: Upgrade from CVS Automake.
2003-09-25 08:33:32 +00:00
Paul Eggert
f207e9bdb5 Trivial change to support GCC's configuration procedure. 2003-09-23 23:05:08 +00:00
Alexandre Duret-Lutz
033b8cecbd * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
and XFile.pm from Automake.
* lib/Autom4te/XFile.pm: Update from Automake.
2003-09-13 22:00:36 +00:00
Akim Demaille
9938343dab Version 2.57c. 2003-09-12 08:49:20 +00:00
Akim Demaille
bb9173fc38 * config/config.guess, config/config.sub, config/missing,
* lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
from masters.
2003-09-12 08:40:36 +00:00
Akim Demaille
a8e5ab2717 * doc/autoconf.texi (Header Portability): Promote linux/types.h,
not asm/types.h.
2003-09-12 07:19:08 +00:00
Akim Demaille
deceea7b05 * doc/autoconf.texi (Header Portability): linux/random.h.
From Peter Hendrickson.
2003-09-11 07:06:56 +00:00
Akim Demaille
735456cc9e * tests/mktests.sh (au_exclude_egrep): Make it harder to be
willing to edit the output files.
2003-09-10 16:54:12 +00:00
Akim Demaille
db861852fc * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
and AC_FC_FREEFORM.
* tests/mktests.sh: Skip AC_FC_SRCEXT.
* lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
2003-09-10 16:49:43 +00:00
Akim Demaille
254863003e * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
Reported by Gary Vaughan.
* bin/autom4te.in (handle_m4): Likewise.
2003-09-09 15:44:56 +00:00
Akim Demaille
620582b4b8 * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
trailing files.
2003-09-09 12:28:18 +00:00
Paul Eggert
e644967478 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
Improve the accuracy of the wording about obsolescence.
2003-09-08 00:56:16 +00:00
Paul Eggert
5a157e6b6e Try -ffree-form, too. 2003-09-05 22:56:26 +00:00
Akim Demaille
eeb3cbd9a6 * tests/mktests.sh (ac_exclude_list): Fix the filtering of
AC_FUNC_WAIT3.
2003-09-04 14:33:03 +00:00
Akim Demaille
29be1600df * bin/autom4te.in: Use &fatal where more appropriate than &error.
(freeze): When exiting, use $exit_code.
* lib/autoconf/fortran.m4: Comment changes.
2003-09-04 13:01:09 +00:00
Akim Demaille
e99011cfd5 * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC. 2003-09-04 12:52:35 +00:00
Paul Eggert
bfbc355ad4 Add support for newer Fortran dialects. The F77 interface is
unchanged, and continues to support Fortran 77.  New FC macros
correspond to all the old F77 macros.
2003-09-03 00:35:52 +00:00
Paul Eggert
84c0e87bb3 * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
Document problems with timestamp resolution that 'make', 'cp -p', and
'touch -r' have.
2003-09-02 19:13:58 +00:00
Akim Demaille
9a71d441c5 * tests/m4sugar.at (cross_warning): Make sure to enable the
output, so that we can track spurious m4sugar output.
* tests/local.at: Require 2.57.
(AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
are defaulted by AT_CHECK anyway.
Use AT_CHECK_AUTOM4TE.
* lib/m4sugar/m4sugar.m4: There should be no output at all: add a
missing dnl.
2003-08-27 15:14:03 +00:00
Akim Demaille
2e24ee3582 * bin/autoheader.in: Issue the "Using auxiliary..." message only
when -Wobsolete is set.
Set it on by default.
Suggested by Klee Dienes.
2003-08-27 11:35:08 +00:00
Akim Demaille
4a7536e370 * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
documentation.
From Guido Draheim.
2003-08-27 07:29:30 +00:00
Akim Demaille
10faaad494 * doc/autoconf.texi (Output): Make clear that one can run code
after AC_OUTPUT.
2003-08-26 07:36:39 +00:00
Akim Demaille
875d49ba6f * config/announce-gen, GNUmakefile, Makefile.maint: Update from
CVS Bison.
2003-08-26 07:28:36 +00:00
Alexandre Duret-Lutz
6feb338dd0 * bin/autoreconf.in (parse_args): Do not pass --no-force to
Automake versions prior to 1.8.
2003-08-25 06:38:39 +00:00
Akim Demaille
550208e189 * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
From Ville Karaila.
2003-08-25 06:29:48 +00:00
Akim Demaille
538d939e6b * configure.ac: Bump to 2.57c. 2003-08-24 12:05:20 +00:00
Akim Demaille
4f4fbef146 * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
* configure.ac: Require Automake 1.7.6.
2003-08-22 15:33:47 +00:00
Akim Demaille
4c0b8bf37a Version 2.57b.
* Makefile.cfg (local-checks-to-skip): New.
* Makefile.maint (local-check): Rename as...
(local-checks-available): this.
(local-check): New.
2003-08-22 13:57:21 +00:00
Akim Demaille
d01b613808 Version 2.57b. 2003-08-22 13:44:12 +00:00
Akim Demaille
358bc50517 Output stack traces in warnings.
* lib/m4sugar/m4sugar.m4 (_m4_warn): New.
Replace the former...
(m4_warn): Pass the call stack to _m4_warn.
* bin/autom4te.in: Adjust to output the call stack.
* tests/m4sugar.at (m4@&t@_warn): Adjust.
2003-08-22 13:38:33 +00:00
Akim Demaille
b9d97d70dc * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
* bin/autom4te.in: Adjust.
2003-08-22 08:09:12 +00:00
Akim Demaille
edcae78e07 Typo. 2003-08-22 07:02:34 +00:00
Akim Demaille
a5b49f45d6 * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
(&verbose): Remove.
(&getopt): Adjust the note and verb channels, depending upon
--verbose.
* bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
* bin/autoupdate.in: Adjust.
Use &verb, not &verbose.
2003-08-21 17:50:11 +00:00
Akim Demaille
cf2308cf7b * bin/autoheader.in (&parse_args): Use &parse_warnings and
&parse_WARNINGS.
($help): Use Autom4te::ChannelDefs::usage.
* bin/autoscan.in: Use Autom4te::ChannelDefs.
* lib/Autom4te/General.pm: Don't export error: you don't own it.
2003-08-21 17:31:25 +00:00
Akim Demaille
e491f83180 First stab at preserving warnings between calls to autom4te,
including when the cache is used.
There are still several issues: (i) there are too many runs of m4
(one for include, one for warnings, and some more), (ii) warnings
spreading on several lines are not handled gracefully, (iii) the
code meant to have the call stack display for errors does not work
(its handling should move from m4 to autom4te).
* bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
Use them.
(@preselect): Add m4_warn.
($exit_status): Remove, use $exit_code.
($help): Use Autom4te::ChannelDefs::usage.
(&handle_m4): No longer define the m4_warnings.
At each run, extract and report the warnings.
Always cache the result, including if the exit status is on
failure, since if nothing changes, we should result in the same
failure, hence we can use the cache.
* lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
(_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
Remove.
(m4_warn): Redefine as a do-nothing: it is its invocation that
matters, as warnings are now reported via traces.
* lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
the contents of m4_warn: make it _call_ m4_warn, so that tracing
the latter reveals calls to the former.
Adjust the tests.
* tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
2003-08-21 17:25:28 +00:00
Akim Demaille
6a7d12b98f * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
Use them.
2003-08-21 16:17:32 +00:00
Akim Demaille
561b426684 * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
forward order.
* lib/Autom4te/ChannelDefs.pm: Doc typos.
(&parse_warnings): Accept a list of warning requests.
(&usage): Return a string, not a side effect.
(cross): New warning category.
2003-08-21 16:15:40 +00:00
Akim Demaille
59b8e13699 * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
(&require_configure_ac): Accept an optional directory argument.
($configure_ac): Remove.
* lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
(&catfile): Remove.
* bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
* bin/autoscan.in: Adjust.
2003-08-21 06:55:41 +00:00
Akim Demaille
cadfc16c0b * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
Reported by Alexandre Duret-Lutz.
2003-08-20 17:22:06 +00:00
Akim Demaille
c99bf18b5c * bin/autoupdate.in, bin/auheader.in, bin/autoreconf.in,
* bin/autom4te: Adjust.
In particular, be Autoconf tools are really silent when properly
working, bind the verbosity of the 'note' channel to $verbose.
* lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
(&xsystem, &contents): Remove, since they are exported by...
* lib/Autom4te/FileUtils.pm: this.
More perldoc.
* lib/Autom4te/General.pm (&up_to_date_p): Move to...
* lib/Autom4te/FileUtils.pm: here.
2003-08-20 12:52:18 +00:00
Akim Demaille
990192b641 * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
* lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
from CVS Automake.
2003-08-20 06:51:33 +00:00
Akim Demaille
1649ca79e6 * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
(autom4te-update): New.
* Makefile.cfg (update): Bind autom4te-update.
2003-08-20 06:29:54 +00:00
Derek Price
e5333fb2d2 * lib/autotest/general.m4: Comment various HELP_* diversions.
(PARSE_ARGS_BEGIN): New section for option parsing related
initialization.
(AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
package specific options and associated help.
2003-08-19 18:21:39 +00:00
Akim Demaille
b6429a8e5f * config/announce-gen, Makefile.cfg: New.
* Makefile.am: Adjust.
* GNUmakefile, Makefile.maint: Update from CVS Coreutils.
2003-08-19 08:12:18 +00:00
Alexandre Duret-Lutz
50af7ca5ab * lib/autom4te.in (Automake-preselections): Preselect
AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
and m4_sinclude.
2003-08-19 07:58:37 +00:00
Alexandre Duret-Lutz
51e84cdd91 * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
(Autoconf-without-aclocal-m4): ... this new language.
* doc/autoconf.texi (autom4te Invocation): Mention
Autoconf-without-aclocal-m4.
2003-08-19 07:56:56 +00:00