Commit Graph

2864 Commits

Author SHA1 Message Date
Akim Demaille
a89e34ea3d * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
instead of exec'ing to preserve $0 and $@.
2001-10-02 14:37:07 +00:00
Akim Demaille
8bbfc0b5fd * tests/testsuite (AT_INIT) <at_pass_list>: New.
Don't run twice the same test.
2001-10-01 07:01:22 +00:00
Akim Demaille
d3cd8d95c2 * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
No longer output the list of tests.
<--list>: New option.
<--full-help>: Remove.
Complete the short/long options duality.
Various small adjustments.
2001-10-01 07:01:08 +00:00
Akim Demaille
6f4642a30f * doc/autoconf.texi: Use @kbd for user input.
Always use `$' as shell prompt.
2001-10-01 07:00:54 +00:00
Paul Eggert
3a5df3a98b * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
Don't use nested parenthesization.  This patch was originally
	suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
	but somehow it didn't get incorporated then.
	* doc/autoconf.texi (Limitations of Usual Tools):
	Clarify remark about sed and nested parenthesization.
2001-09-30 17:17:34 +00:00
Paul Eggert
ca6995fd29 Clarify remark about portability of nested parenthesization. 2001-09-30 17:16:17 +00:00
Paul Eggert
6bbb016c0e (AC_OUTPUT_MAKE_DEFS):
Don't use nested parenthesization.  This patch was originally
suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
but somehow it didn't get incorporated then.
2001-09-30 17:12:34 +00:00
Paul Eggert
8a95c11816 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
Report an error if the size cannot be determined even though
the type exists.
* lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
Check for `expr' arithmetic overflow, and for compilation failure,
and invoke a new argument $4 if either is discovered.
This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
(_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
2001-09-30 15:18:47 +00:00
Paul Eggert
a95f040b51 (_AC_COMPUTE_INT_COMPILE):
Check for `expr' arithmetic overflow, and for compilation failure,
and invoke a new argument $4 if either is discovered.
This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
(_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
2001-09-30 15:17:25 +00:00
Paul Eggert
a452b6b7e3 (AC_CHECK_SIZEOF): Report an error if the size cannot be determined
even though the type exists.
2001-09-30 15:16:18 +00:00
Akim Demaille
781bca17ce typo. 2001-09-28 13:55:40 +00:00
Akim Demaille
e16f9eefe0 * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
* configure.ac: Adjust.
2001-09-28 11:56:26 +00:00
Akim Demaille
f656cde734 More ignores. 2001-09-28 10:15:33 +00:00
Akim Demaille
921e6d129d * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
(AT_TESTED): this.
(AT_INIT): More the wrapped section to where it will be expanded.
Output `AT_tested' only when existing.
Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
2001-09-28 10:14:36 +00:00
Akim Demaille
32876525ac Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
generates too many bug reports.
* lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
status when executing the ACTION-IF-FALSE.
* tests/base.at (AC_TRY_*): Rename as...
(AC_TRY_COMMAND): this.
(AC_RUN_IFELSE): New.
* tests/compile.at (Extensions, C keywords)
(AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
(Broken/missing compilers, AC_PROG_CPP with warnings)
(AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
* tests/c.at (Extensions, C keywords)
(Broken/missing compilers, AC_PROG_CPP with warnings)
(AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
(AC_PROG_CPP requires AC_PROG_CC): here and...
* tests/fortran.at (GNU Fortran 77): there.
* doc/autoconf.texi (autoconf Invocation): Fix the example:
AC_TRY_RUN is about compilation, not shell commands.
(Test Programs): AC_TRY_RUN works as used to be advertised.
2001-09-27 13:28:15 +00:00
Akim Demaille
fdbf12e8a5 Regen. 2001-09-27 09:04:50 +00:00
Akim Demaille
fa75ee4b94 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
Raja R Harinath:
Be sure to detect when $LINENO always returns the same value.
Look for the original script, basename($0) is certainly not
enough.
Pass the CLI arguments to `$as_me.lineno'.
2001-09-27 08:27:55 +00:00
Akim Demaille
26edb742fa * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
Be sure the close and reopen the LOG fd before and after using tee
to extend the log.
<at_tests_pattern>: Adjust to the new format of at_help_all.
2001-09-25 09:54:29 +00:00
Akim Demaille
bf2b9ed651 Regen. 2001-09-23 17:19:45 +00:00
Akim Demaille
969517ed7b * bin/autom4te.in (parse_args): There can be several invocations
of --language now.
2001-09-23 17:18:20 +00:00
Akim Demaille
7b9068c944 * doc/autoconf.texi (Top): Wrap in @ifnottex. 2001-09-23 17:18:07 +00:00
Akim Demaille
e7808696f5 * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
(_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
builddir, buildpath, top_builddir, and top_buildpath.
(_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
the current directory.
* lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
variables *before* changing the current directory.
Skip nonexistent dirs.
* doc/autoconf.texi (Preset Output Variables): Document these
variables.
* lib/autotest/general.m4: Do not reset AT_victims.
Don't compute at_srcdir nor at_top_srcdir.
* tests/tools.at: Hence use top_srcdir.
* tests/Makefile.am, tests/autoconf, tests/autoheader,
* tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
Remove.
* tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
* tests/wrapsh.in, tests/autoupdate.in: New.
* tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
* configure.ac: Build the position independent wrappers.
* man/Makefile.am: Now that test wrappers are position
independent, use them and drop dark envvar magic.
2001-09-23 17:17:46 +00:00
Akim Demaille
40b982ac3c * doc/autoconf.texi (Common Shell Constructs): Rename as...
(Programming in M4sh): this.
Promote to @section.
2001-09-23 17:16:57 +00:00
Akim Demaille
eacc95ddc9 * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
Pass $at_debug_args to the rerun test suite.
* lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
* bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
From Paul Eggert.
2001-09-23 17:16:43 +00:00
Akim Demaille
f69035452d * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'. 2001-09-23 17:16:28 +00:00
Akim Demaille
0540a84bcd * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
over-escaping.
2001-09-23 17:16:15 +00:00
Akim Demaille
d3bcaf7a86 * lib/Autom4te/General.pm (&debug): New.
* bin/autom4te.in ($language): Move to...
(parse_args): here.
Handle --language in languages.
* lib/autom4te.in (Automake-selections, Autoheader-selections)
(Autoscan-selections): New.
(Autoconf): Adjust.
2001-09-23 17:16:01 +00:00
Tim Van Holder
00353f7c20 * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4, m4/install-sh.m4,
m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated to match current versions
  from CVS Automake.
2001-09-23 15:34:56 +00:00
Alexandre Duret-Lutz
92233ef902 * doc/autoconf.texi (Special Shell Variables): Add pdksh output
for $LINENO.
2001-09-23 14:42:14 +00:00
Pavel Roskin
588bd27a33 Regenerated. The old version didn't create package.m4 for the testsuite. 2001-09-23 03:36:36 +00:00
Akim Demaille
4153a98f4e * lib/autoconf/autotest.m4: Create `package.m4'.
* tests/Makefile.am (package.m4): Remove.
2001-09-22 15:21:20 +00:00
Akim Demaille
a9bd52773e Rely on $LINENO' when possible instead of __oline__'.
* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
`$LINENO' support replacement when not supported.
(_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
them explicitly to be sure they are not output before this section
(via m4_require).  Cosmetic only.
* lib/autoconf/c.m4, lib/autoconf/general.m4,
* lib/autoconf/programs.m4: Replace all the occurrences of
`__oline__' with `$LINENO'.
* doc/autoconf.texi (Special Shell Variables): Document LINENO.
2001-09-22 15:20:44 +00:00
Tim Van Holder
710e4d6b1c * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
character (u: -> ue) in a code comment.
  (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
  it works.
2001-09-21 16:19:09 +00:00
Akim Demaille
30ef540bdd * Makefile.maint (AUTOM4TE): Neutralize autom4te.
Suggested by Jim Meyering.
2001-09-21 16:17:38 +00:00
Tim Van Holder
c163d9c990 * lib/autoconf/programs.m4: Use extensions listed in $ac_executable_extensions
when looking for programs.
2001-09-20 16:19:54 +00:00
Tim Van Holder
18d1bacab0 * lib/autoconf/general.m4: Fix a small Englisho.
* lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
  setting up ac_dir_suffix and ac_top_builddir.
* lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
2001-09-20 15:51:52 +00:00
Tim Van Holder
84f91881c2 Handle DOS paths when setting up ac_top_builddir. 2001-09-20 15:51:04 +00:00
Tim Van Holder
3f9eb3b0e9 Fixed a small Englisho. 2001-09-20 15:51:04 +00:00
Tim Van Holder
1422430f54 Default CDPATH to $PATH_SEPARATOR, not ':'. 2001-09-20 15:51:04 +00:00
Tim Van Holder
a12d3d6319 * doc/autoconf.texi (File System Conventions): Clarify the use of
PATH_SEPARATOR.
  (Special Shell Variables[PATH_SEPARATOR]): Ditto.
  (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
  be used instead of ':'.
* lib/autotest/general.m4: Replace occurrences of ':' in
  AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
2001-09-20 15:39:46 +00:00
Tim Van Holder
da693d44b0 * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
arguments.  Fixed a typo.
2001-09-20 15:08:21 +00:00
Tim Van Holder
df7160f880 * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
$PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
2001-09-20 15:00:13 +00:00
Tim Van Holder
79bc254fde * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
* bin/autoupdate.in: Ditto.
* bin/autoheader.in: Reworded a few comments.
* bin/autoconf.in: Reworded help text for a few options.
* bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
* bin/autoscan.in, bin/autoupdate.in: Ditto.
2001-09-20 14:55:49 +00:00
Tim Van Holder
6cd8d1f6c1 * lib/Autom4te/XFile.pm (open): Simplified the error message (we
already have $file).  Set output files to binary mode (helps avoid
  CR issues on DOSish systems).
2001-09-20 14:52:57 +00:00
Akim Demaille
9b50021469 * lib/autotest/general.m4: Englishoes.
From Tim Van Holder and Alexey Mahotkin.
2001-09-19 07:22:24 +00:00
Paul Eggert
5185780199 * doc/autoconf.texi (Common Shell Constructs):
New node, documenting AS_DIRNAME.
(Limitations of Usual Tools): Refer to it when discussing dirname.
Also, update discussion of POSIX standard to reflect latest draft.
2001-09-18 18:47:34 +00:00
Paul Eggert
3c3fd5fe64 (Common Shell Constructs): New node, documenting AS_DIRNAME.
(Limitations of Usual Tools): Refer to it when discussing dirname.
Also, update discussion of POSIX standard to reflect latest draft.
2001-09-18 18:46:03 +00:00
Paul Eggert
307d40fa4f * lib/autoconf/c.m4:
(AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.

* lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
Do not pass a first argument with leading '-'
to expr, by parenthesizing initial integers that might be negative.
2001-09-18 17:57:30 +00:00
Paul Eggert
99ba592715 (_AC_COMPUTE_INT_COMPILE): Do not pass a first argument with leading '-'
to expr, by parenthesizing initial integers that might be negative.
2001-09-18 17:55:51 +00:00
Paul Eggert
69af46fdbd (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN. 2001-09-18 17:54:21 +00:00