Commit Graph

3149 Commits

Author SHA1 Message Date
Akim Demaille
9d658eddd9 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
workaround for ${1+"$@"}.
* doc/autoconf.texi (Shell Substitutions): Explain it.
From Oliver Kiddle and Peter Stephenson.
Have M4sh perform minimal shell sanitizing.
* lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
part into...
(_AS_PREPARE): this new macro.
(AS_PREPARE): New.
(AS_INIT): Invoke AS_SHELL_SANITIZE.
* tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
Adjust Autoconf and Autotest.
* lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
Invoke _AS_PREPARE (not AS_PREPARE) in addition to
AS_SHELL_SANITIZE.
Use this M4sh to generate Autoconf's shell scripts.
* tests/wrapsh.as: New, precursor of wrapsh.in.
* tests/Makefile.am: Include lib/freeze.mk to get the dependencies
on Autotest and M4sh.
($(TESTSUITE)): Use $(autotest_m4f_dependencies).
(wrapsh.in): New target.
* bin/autoconf.as: New, precursor of autoconf.in.
(autoconf.in): New target.
2002-04-10 15:58:19 +00:00
Alexandre Duret-Lutz
b3904626ec * doc/autoconf.texi (Limitations of Make): Mention the issue
with indented comments in rules.
2002-04-09 20:37:10 +00:00
Andreas Schwab
c3e5a58406 * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
ac_top_builddir when setting ac_abs_top_builddir.
2002-04-09 11:15:32 +00:00
Kevin Ryde
6e51274002 * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
(Portable Shell): Cross reference to Systemology.
2002-04-05 22:29:55 +00:00
Kevin Ryde
c1049ce07d * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
(Portable Shell): Cross reference to Systemology.
2002-04-05 21:40:43 +00:00
Akim Demaille
4ab862fa51 Update. 2002-04-05 13:39:58 +00:00
Akim Demaille
7924a3fc93 * bin/autoreconf.in (autoreconf): Be sure to accumulate the
directories when descending in a SUBDIRS.
Reported by Ezra Peisach.
2002-04-05 09:42:48 +00:00
Akim Demaille
8caecae591 Update. 2002-04-04 15:40:01 +00:00
Akim Demaille
e513dbc760 Update. 2002-04-04 15:33:00 +00:00
Andreas Schwab
193f800800 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
contains no literal separators.
2002-04-04 13:35:05 +00:00
Akim Demaille
19e8fd1915 Update. 2002-04-04 13:25:45 +00:00
Akim Demaille
b7c024b172 * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
(_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
Use dnl, not the KILL diversion.
Extracted from...
(AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
(AC_CONFIG_LINKS): here.
Adjust.
Don't use the KILL diversion, as it kills spurious output, which
results in failures being hidden.
Use m4_defn where appropriate.
(AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
after the second argument.
Use m4_defn.
* lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
syntax, as it is provided by M4sugar.
* tests/torture.at (Multiple AC_CONFIG_FILES): New.
2002-04-03 13:35:59 +00:00
Andreas Schwab
9dc0d53597 * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
expanded if $# <= 2.
2002-04-03 11:11:46 +00:00
Andreas Schwab
70e9cf4bd3 * bin/autoreconf.in (autoreconf): Run automake after rerunning
aclocal.
2002-04-03 10:53:55 +00:00
Akim Demaille
9b7a51e844 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
(_AC_COMPILER_EXEEXT_REJECT): New.
Also recognize *.bb and *.bbg as compilation byproducts.
(_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
(_AC_COMPILER_OBJEXT): Use them.
Fixes Debian #138666.
2002-04-03 09:27:04 +00:00
Akim Demaille
c0660d90e7 Fix. 2002-04-03 09:23:34 +00:00
Peter Eisentraut
931312faea Integrate AC_PROG_CC_STDC into AC_PROG_CC.
* lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
(AC_PROG_CC): Call _AC_PROG_CC_STDC.
(AC_C_INLINE): Do not require AC_PROG_CC_STDC.
(AC_C_CONST): Same.
(AC_C_INLINE): Same.
(AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
* doc/autoconf.texi, NEWS: Document.
* tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
AC_C_CROSS.
2002-04-02 18:22:08 +00:00
Akim Demaille
3aec90e1cb * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
_AS_MKDIR_P_PREPARE.
2002-04-02 15:14:09 +00:00
Kevin Ryde
980c227c4b * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
to avoid versions of HP C which don't allow that.
2002-03-27 22:43:45 +00:00
Paul Eggert
683f07cff1 * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
(AS_SHELL_SANITIZE): Invoke it.
(AS_BASENAME): AS_REQUIRE it, and use $as_basename.
2002-03-27 20:34:07 +00:00
Paul Eggert
4f473142a8 (_AS_BASENAME_PREPARE): New macro.
(AS_SHELL_SANITIZE): Invoke it.
(AS_BASENAME): AS_REQUIRE it, and use $as_basename.
2002-03-27 20:33:03 +00:00
Akim Demaille
19105487d4 Update GNATS address. 2002-03-26 16:16:51 +00:00
Akim Demaille
c210364e73 * doc/autoconf.texi (Portable Shell): Add pointers to FAQs. 2002-03-26 09:32:29 +00:00
Akim Demaille
3168ea4c07 * doc/autoconf.texi (Introduction): The GNATS base moved. 2002-03-26 09:19:51 +00:00
Paul Eggert
b9e4790460 * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
as POSIX requires, as it doesn't work with Zsh.
* doc/autoconf.texi (Assignments): Document the problem.
2002-03-25 22:03:16 +00:00
Paul Eggert
f07b247b73 Don't rely on "PATH=test:$PATH test-1" working
as POSIX requires, as it doesn't work with Zsh.
2002-03-25 22:02:24 +00:00
Paul Eggert
6981c68a4a (Assignments): Document the problem with Zsh and "PATH=test:$PATH test-1". 2002-03-25 22:01:33 +00:00
Alexandre Duret-Lutz
0fb98044c6 * doc/autoconf.texi (Limitations of Make): Mention more issue
about VPATH, overriding of macros in sub-makes, and handling of
SHELL.
2002-03-25 21:09:40 +00:00
Paul Eggert
d4dd07039a * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
problem with here-document buffer boundaries.

Update copyright notice year.
2002-03-22 06:22:25 +00:00
Paul Eggert
77ddad530c (Here-Documents): Mention Solaris 8 dtksh problem with here-document
buffer boundaries.
2002-03-22 06:21:01 +00:00
Paul Eggert
5fcb75f11e * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
when reinvoking the shell, to work around problems with installers
who put strange things like "cd" commands in their environments.
2002-03-22 05:37:22 +00:00
Paul Eggert
b07b6a5b8e (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV when reinvoking the
shell, to work around problems with installers who put strange things
like "cd" commands in their environments.
2002-03-22 05:35:53 +00:00
Akim Demaille
7dc0b2892f * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
From Aaron Ucko.
2002-03-19 15:30:18 +00:00
Akim Demaille
000289a83d * bin/autoscan.in (scan_file): Specify the location in `&used'
invocations.
From Nicolas Joly.
2002-03-19 15:25:26 +00:00
Akim Demaille
3b4578e038 * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
From Nishio Futoshi.
2002-03-19 15:20:58 +00:00
Akim Demaille
d151609eea * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New. 2002-03-19 07:42:06 +00:00
Paul Eggert
d8f8ece010 Fix minor typos noted by makeinfo (GNU texinfo) 4.1.
In particular, Info cannot handle `:' in index entries.
2002-03-19 07:00:18 +00:00
Paul Eggert
0e952e1847 * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
(Limitations of Usual Tools): Add mkdir section.

* lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
(AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
back on AS_DIRNAME to compute prefixes otherwise; this is
roughly what mkinstalldirs does.  That way, we need not have
our own filename disassembler.  The old disassembler did not
work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.

* lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
Create at_test_all by a series of assignments,
not by a single assignment of a long string.  The latter causes ksh
version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
presumably because of a buffer overrun.
2002-03-19 06:44:36 +00:00
Paul Eggert
a3ed203186 (AT_INIT, AT_CLEANUP):
Create at_test_all by a series of assignments,
not by a single assignment of a long string.  The latter causes ksh
version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
presumably because of a buffer overrun.
2002-03-19 06:43:17 +00:00
Paul Eggert
81010dcf1c (Programming in M4sh): Add AS_MKDIR_P.
(Limitations of Usual Tools): Add mkdir section.
2002-03-19 06:38:52 +00:00
Paul Eggert
8064dd81b2 (_AS_MKDIR_P_PREPARE): New macro.
(AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
back on AS_DIRNAME to compute prefixes otherwise; this is
roughly what mkinstalldirs does.  That way, we need not have
our own filename disassembler.  The old disassembler did not
work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
2002-03-19 06:23:15 +00:00
Paul Eggert
e90f7903d2 * lib/autotest/general.m4 (at_times_skip):
Renamed from at_times.  Now a boolean.
ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
says 'times: not found'.
2002-03-14 18:15:55 +00:00
Paul Eggert
116d8263d9 (at_times_skip):
Renamed from at_times.  Now a boolean.
ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
says 'times: not found'.
2002-03-14 18:14:49 +00:00
Akim Demaille
a0ee17575f * bin/autoreconf.in (&study_gettextize): New.
(&autoreconf): Handle newest gettextize.
Rerun aclocal if needed.
Suggested by Andreas Schwab.
2002-03-14 17:25:13 +00:00
Akim Demaille
96f2dff5d3 * doc/autoconf.texi (Special Shell Variables): More about IFS. 2002-03-13 10:08:22 +00:00
Akim Demaille
a831586a53 * doc/autoconf.texi (Header Portability): New.
Add information about stdint.h and inttypes.h from Paul Eggert.
2002-03-13 09:58:41 +00:00
Akim Demaille
b8d6b81d64 * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
-p'.
From Bob Proulx.
2002-03-13 09:44:21 +00:00
Akim Demaille
1944e2c527 Regen. 2002-03-12 16:13:37 +00:00
Akim Demaille
782c620d3b * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
m4_require.
2002-03-12 16:08:01 +00:00
Andreas Schwab
ed6075814c * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
does not do it if --with-lispdir is given.
2002-03-11 17:24:00 +00:00