Commit Graph

510 Commits

Author SHA1 Message Date
Paul Eggert
555f6e9cfe Regenerate. 2004-05-03 06:22:29 +00:00
Paul Eggert
a07aa35f44 Regenerate. 2004-05-03 03:53:20 +00:00
Paul Eggert
e6ec53d00d Regenerate. 2004-03-03 21:45:35 +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
Paul Eggert
ebf54a40c9 Regenerate. 2004-02-18 21:41:12 +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
Paolo Bonzini
8ddbbac5ee * bin/autoupdate.in: Define __file__ so that warnings
refer to the correct file.
* doc/autoconf.texi (AU_DEFUN): Describe more correctly
the behavior of the third argument.
* lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
correctly the behavior of the third argument.  Document
what the three macros that AU_DEFUN defines do.  Fix
warning message when the third argument includes $0
(reported by Alexandre Duret-Lutz).
2004-02-03 09:00:27 +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
5f8650d8c3 Resync and/or copy from original sources. 2004-01-27 19:25:05 +00:00
Paul Eggert
97050d1a3c Update copyright from 2003 to 2004. 2004-01-27 19:02:51 +00:00
Paul Eggert
39da25a1d2 Grammar fixes. 2004-01-14 18:36:58 +00:00
Paul Eggert
a6a02e8ae7 Don't use "chmod -w". 2004-01-05 08:18:24 +00:00
Paul Eggert
d8cb4903ff (autoreconf_current_directory): Fix typo: mkdir without umask arg. 2003-12-30 00:19:32 +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
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
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
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
Andreas Schwab
0bdeaac15d Avoid empty first line in --version and --help output. 2003-10-10 09:18:56 +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
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
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
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
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
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
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
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
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
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
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
Akim Demaille
9c4ac634f9 Regen. 2003-06-23 08:39:09 +00:00
Akim Demaille
97df4a3e31 Regen with fixed Automake. 2003-06-20 08:18:15 +00:00
Akim Demaille
456b9c0a6f * bin/autom4te.in: Don't rely on $HOME being defined.
Reported by Marc Espie as PR/233.
2003-06-20 07:55:35 +00:00
Akim Demaille
2e52204a16 Regen. 2003-06-20 07:34:29 +00:00
Akim Demaille
ff9230c146 * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
changes.
* lib/Autom4te/General.pm (&backname): Remove, no longer used by
Autoconf nor Automake.
(&contents): New, from Automake.
PODify.
* lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
Remove `#include <stdlib.h>' from the list; we should never
2003-06-02 06:55:03 +00:00
Akim Demaille
4c64440ba1 * Makefile.am, bin/Makefile.am, config/Makefile.am,
* doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
White spaces cleanup.
2003-05-23 13:09:28 +00:00
Akim Demaille
3cb00cdb8b * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
* lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
* lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/general.m4, lib/autoconf/headers.m4,
* lib/autoconf/lang.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/status.m4, lib/autoconf/types.m4,
* lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
* tests/atspecific.m4, tests/base.at, tests/compile.at,
* tests/foreign.at, tests/m4sh.at, tests/semantics.at,
* tests/tools.at, tests/torture.at:
Whitespace clean up.
Suggested by Jim Meyering.
2003-05-22 13:24:04 +00:00
Akim Demaille
e808ba2ea7 * bin/autoupdate.in ($m4): Fix quotation.
Reported by Martin Mokrejs.
2003-05-21 09:46:59 +00:00
Akim Demaille
62930d7b99 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
* bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
them uniform, and more robust to Perl special characters.
Reported by Martin Mokrej.
2003-05-16 09:54:46 +00:00