Commit Graph

1790 Commits

Author SHA1 Message Date
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
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
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
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
071f2e6aee make AC_PROG_FC take compiler list as first argumet, like AC_PROG_F77; document freeform flags; return error 77 on freeform failure, for test suite 2003-10-03 17:22:35 +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
Paul Eggert
2c59dae736 Look for --jobs, too. 2003-09-30 19:34:28 +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
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
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
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
403b1490b8 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
2003-09-26 08:24:30 +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
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
68085c7b76 Regen, and comment changes. 2003-09-12 10:06:42 +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
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
eb767047ca (AC_SYS_RESTARTABLE_SYSCALLS):
Improve the accuracy of the wording about obsolescence.
2003-09-08 00:55:50 +00:00
Paul Eggert
1ecafc3dc7 (AC_FC_FREEFORM): Try -ffree-form too,
for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
2003-09-05 22:55:40 +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
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
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
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
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
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
Derek Price
30c4fcea69 * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
shorter column three.  Add DESCRIPTION to log file content.
2003-08-14 13:49:05 +00:00
Derek Price
b2722eb1c8 * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
output.
2003-08-13 21:35:28 +00:00
Derek Price
43eea41b9e * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
(AT_CHECK_NOESCAPE): Move core functionality to...
(_AT_CHECK): ...this new macro.
2003-08-12 19:01:34 +00:00
Derek Price
bdb8ae014e * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
(AT_CHECK_NOESCAPE): ...to this new macro.
2003-08-07 17:47:48 +00:00
Paul Eggert
a0efe16f10 (_AS_UNSET_PREPARE): Work around a bug in Bash 2.01. Problem reported
by Brian Gough in
<http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
2003-08-01 01:10:58 +00:00
Paul Eggert
fbb2facb8b (AC_F77_LIBRARY_LDFLAGS): Also ignore -lcrt1.o, for OS X. 2003-07-25 21:23:10 +00:00
Paul Eggert
dbc482418a (AC_C_INLINE): Wrap the '#define inline ...'
inside '#ifndef __cplusplus'.  Problem reported by
Bob Friesenhahn.
2003-07-07 07:41:07 +00:00
Paul Eggert
efd247863d (AC_FUNC_MMAP): Cast pointer to
'long', not 'int', for benefit of Sun's recent C++ compilers
(trivial change).  See:
http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
(This really should be 'intptr_t', not 'long', but that would
take more work.)
2003-07-07 06:18:01 +00:00
Akim Demaille
2978241cd8 * lib/Makefile.am (autom4te.cfg): Make it read only.
Depend on Makefile since it contains substitutions.
From Paolo Bonzini.
* lib/autom4te.in (args): Add local.at? for Autotest args.
This change was made on autom4te.cfg which is generated.
Reported by Raja R. Harinath.
2003-06-25 13:38:54 +00:00
Akim Demaille
e3c0ef0f8d * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
not all of them.  This fixes 1. the fact that when testing
Autoconf there are many many config.log, 2. the incorrect use of
top_srcdir to find config.log.
Don't mix the detailed output of failed test with the summary of
failures.  Rather, append detailed log afterwards.
2003-06-23 15:29:02 +00:00
Akim Demaille
9c4ac634f9 Regen. 2003-06-23 08:39:09 +00:00
Kevin Ryde
dc17cd9dac (_AC_PROG_CC_STDC): Extend test program to get an
error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
ensuring we add -std1 for full-ANSI.
2003-06-21 00:01:04 +00:00
Akim Demaille
97df4a3e31 Regen with fixed Automake. 2003-06-20 08:18:15 +00:00
Akim Demaille
f6d54deb80 * lib/autotest/general.m4: Use at_times_file only if used.
From Nicolas Joly.
2003-06-20 07:53:03 +00:00
Akim Demaille
2e52204a16 Regen. 2003-06-20 07:34:29 +00:00
Paolo Bonzini
c102ed8494 Add expected failures to autotest. 2003-06-12 11:03:55 +00:00
Akim Demaille
39364b438d White space and Copyright updates. 2003-06-02 06:56:51 +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
Paul Eggert
3a1b2ca878 * NEWS, doc/autoconf.texi (Particular Functions),
lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
is the inverse of localtime.
2003-05-28 20:03:52 +00:00
Alexandre Duret-Lutz
a4d96919f1 * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
(handle_exec_errors): New function.  Work around $! being
altered by WEXITSTATUS.
(xqx, xsystem): Use handle_exec_errors.
2003-05-25 11:02:21 +00:00
Alexandre Duret-Lutz
bc41c779b7 * lib/Autom4te/General.pm (END): Rewrite exit code processing.
Do not call `_exit()', simply modify `$?'.
(xsystem): Reset $! before running system, and check it afterward.
* tests/tools.at (autoupdating AC_PREREQ): Expect exit status
63 for version mismatches.
2003-05-23 18:16:56 +00:00
Akim Demaille
c12a45b703 * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
Emacs' danger whitespace.el behavior (smashing "useless" spaces in
the middle of a line).
* lib/m4sugar/m4sugar.m4: Likewise.
Remove useless spaces in comments.
2003-05-23 13:58:06 +00:00
Akim Demaille
172bea7727 * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
exit 63, so that we (or Automake's "missing") can tell the
difference with a plain failure.
* doc/autoconf.texi (Notices): Adjust.
2003-05-23 13:14:30 +00:00
Akim Demaille
c17b6fe889 Whitespace change. 2003-05-23 13:13:30 +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
Jim Meyering
1512240def (_AC_PROG_CXX_EXIT_DECLARATION):
Remove `#include <stdlib.h>' from the list; we should never
make confdefs.h include <stdlib.h> or <cstdlib>, because the
resulting namespace pollution would cause other tests to fail.
Configure scripts run with some older versions of g++ and HP's
aCC would fail due to such an #include.  Problems reported by
Matthew Mueller in <http://bugs.debian.org/120704> and by
Keith Bostic in
<http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
In the test, use the test declaration before including <stdlib.h>,
as that's closer to how it'll be used.
2003-05-23 09:36:17 +00:00
Paolo Bonzini
df6cb74cb6 Overhaul Autotest's logging: generate separate log files
in testsuite.dir/NNN/testsuite.log, and append them to
testsuite.log instead of re-running the test verbosely.
Adapt documentation.  Update NEWS to signal possible bad
interactions between -x and experr.
2003-05-22 21:52:43 +00:00
Paolo Bonzini
2f7d336646 * lib/m4sugar/m4sh.m4: actually use the 2nd parameter to AS_REQUIRE 2003-05-22 21:39:45 +00:00
Akim Demaille
ebf56a4251 * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
* lib/autoconf/fortran.m4 lib/autoconf/general.m4
* lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
* lib/autoconf/status.m4: Fix and adjust copyright notices.
2003-05-22 15:17:05 +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
b9cff516d2 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
' t' as 't ' so that Emacs' whitespace.el keep it.
Reported by Jim Meyering.
2003-05-22 08:24:04 +00:00
Paolo Bonzini
f16c8d206e * lib/m4sugar/m4sh.m4: protect RHS of AS_VAR_SET against expansion of
quotes (it is delayed to after the eval).
2003-05-21 19:04:41 +00:00
Paul Eggert
68a50ebf5f Update copyright date. 2003-05-19 18:15:37 +00:00
Paul Eggert
80822676bf Use only ASCII characters. 2003-05-19 18:14:25 +00:00
Akim Demaille
b44e483cec * lib/autoconf/functions.m4: Use the default includes so that
memcmp be declared before being tested.
Reported by Sander Niemeijer.
(AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
* doc/autoconf.texi (Default Includes): Document
AC_INCLUDES_DEFAULT.
2003-05-17 10:30:07 +00:00
Akim Demaille
d8711f0660 * lib/autoconf/specific.m4: Include signal.h and unistd.h.
* doc/autoconf.texi (Obsolete Macros): Adjust.
Reported by Werner LEMBERG and Debian Bug 190886.
2003-05-17 09:44:22 +00:00
Akim Demaille
8624a70899 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
user name space clashes.
Reported by Bruno Haible.
2003-05-16 09:59:15 +00:00
Akim Demaille
e84abe67d4 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
message.
From Matthias Andree.
2003-05-12 14:48:19 +00:00
Alexandre Duret-Lutz
d92c2a7a88 * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
and truncate.
2003-05-07 06:51:23 +00:00
Akim Demaille
db4f0f52c0 Lock autom4te's cache.
* lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
* bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
argument instead of a file name, so that the request file remains
open during the whole autom4te run.
($icache_file): New.
(&freeze): Lock the $icache_file.
2003-05-06 08:51:21 +00:00
Akim Demaille
f2da1c1ca5 Regen. 2003-05-06 07:17:42 +00:00
Derek Price
4ca6566c2c * lib/emacs/.cvsignore: Add generated elc-stamp file. 2003-05-05 14:54:10 +00:00
Derek Price
044418223e * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
seperator with m4_append_uniq().  It doesn't work.
(AT_CLEANUP): Add `;' to end of at_help_all.
(AT_INIT): Allow --keywords to be specified more than once.  When
grepping $at_help_all for keywords, use the field and keyword
seperators to ensure a complete keyword match.  Alter at_prev handling
to support the new --keywords behavior.
2003-04-29 20:54:12 +00:00
Paul Eggert
898de2cdb9 (AC_C_RESTRICT): Fix comment to match code. 2003-04-14 03:47:30 +00:00
Jim Meyering
aac4b9c476 regenerate 2003-04-12 20:55:52 +00:00
Jim Meyering
cc5c0689cb (AC_C_RESTRICT): New macro. 2003-04-12 20:53:20 +00:00
Derek Price
c9d391bc40 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
from Akim's checkin of 3-29.
2003-04-01 21:27:52 +00:00
Akim Demaille
830fd374fe Regen. 2003-04-01 07:24:38 +00:00
Derek Price
cd9ac20d85 * lib/autotest/general.m4: Revert the checkin from 3-27 which removed
the main loop.
Thanks to Akim Demaille.
2003-03-31 20:25:52 +00:00
Akim Demaille
bda9ad8b4d * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
that starts a GYI.
From Ilya Zakharevich.
2003-03-29 10:04:26 +00:00
Akim Demaille
a2fe2ed94e * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
documentation to read is Autoconf's.
Suggested by Paul Eggert.
2003-03-29 09:50:11 +00:00
Akim Demaille
4c6f840b3f * lib/autoconf/headers.m4: Suggest reading the section "Present
But Cannot Be Compiled" when the header causes problems.
2003-03-28 17:11:29 +00:00
Derek Price
277b398bea * lib/autotest/general.m4: Eliminate main loop and reorganize test
layout in order to allow scripting around test groups.
2003-03-28 04:00:45 +00:00
Derek Price
fd4f512efd * lib/autotest/general.m4: Define and use new diversions in preparation
for accepting new arguments and allowing scripting around tests.
2003-03-27 21:59:15 +00:00
Derek Price
ed71ef7fc3 * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
obsolete AC_HELP_STRING.
(AC_HELP_STRING): AU_DEFUN to...
* lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
* tests/m4sh.at (AS_HELP_STRING): New test.

* tests/acgeneral.at: Regenerated.
2003-03-27 13:18:34 +00:00
Derek Price
970e5f746c * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
sense.  Verbosify the diversion definitions comment.
2003-03-26 14:33:20 +00:00
Derek Price
7c3fb31aef * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
AS_PREPARE.
2003-03-26 14:30:48 +00:00
Paul Eggert
db668becd8 Do not generate #line directives (comment fix only). 2003-03-06 20:37:50 +00:00
Paul Eggert
6f8cbd236a (AC_LANG_SOURCE(C)): Do not generate #line directives. 2003-03-06 20:35:23 +00:00
Akim Demaille
f6f77d7b72 * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
to a shell that can handle redirection or quoting correctly.
Override SHELL with the shell detected by configure.
Use of $^O suggested by Tim van Holder.
* bin/autom4te.in (BEGIN): Likewise.
* bin/autoreconf.in (BEGIN): Likewise.
* bin/autoscan.in (BEGIN): Likewise.
* bin/autoupdate.in (BEGIN): Likewise.
* bin/ifnames.in (BEGIN): Likewise.
* bin/ifnames.in: Add final newline to help and version messages.
* lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
to cope with DOS-style absolute paths, when constructing
${ac_make}.
* lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
When constructing paths with IFS=:, quote the path. If we're
constructing a DOS-style absolute path, we don't want to split it
on the colon.
* tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
in description.
2003-02-28 10:11:07 +00:00
Paul Eggert
36685d590f (AS_SHELL_SANITIZE): Fix typo in
2002-09-01 patch by replacing "test -n" with "test -z".
This fixes a bug reported by Tom Epperly in
<http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
2003-02-25 06:45:05 +00:00
Akim Demaille
13984e2d07 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
compiler says yeah, but preproc says nope, compiler is right.
Conversely, prompt the reader to send a bug report to the
maintainers of the package, not of Autoconf.
2003-02-20 17:15:47 +00:00
Akim Demaille
94a099a5ff Regen. 2003-02-20 16:57:46 +00:00
Akim Demaille
0a59c6b0dd * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
$ac_prefix_program.
From Larry Jones.
2003-02-20 16:52:10 +00:00
Paul Eggert
6ae8254469 Update the URL for the LFS paper to unix-systems.org instead of sas.com. 2003-01-14 17:53:11 +00:00
Paul Eggert
50a791a2fa (AC_LANG_FUNC_LINK_TRY(C)): Deine $1 to an
innocuous variant befor including <limits.h> or <assert.h>.
This works around a bug reported by Albert Chin: HP-UX 11i
(and earlier versions) have a <limits.h> that declares
gettimeofday and many other functions.
2002-12-24 00:16:41 +00:00
Paul Eggert
2c9f4bf3aa (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
nontrivially in main's body, so that f's external declaration is
not optimized away in AIX.  This should fix the bug reported by
Martin Frydl in
<http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
2002-12-03 07:00:37 +00:00
Akim Demaille
9ac168dc89 Use Automake 1.7.1. 2002-11-14 17:37:45 +00:00
Kevin Ryde
ce95d6a9dc * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
than assigning in main, to avoid HP cc +O3 optimizing it away.
2002-11-13 23:34:07 +00:00
Akim Demaille
77f69ee45e * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
option.  Process --recheck after parsing all options.  Pass -q
option to configure on --recheck.
(AC_OUTPUT): Pass -q from configure to config.status.
* lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
arguments to record.
* doc/autoconf.texi (config.status Invocation): Document
config.status -q option.
2002-11-12 10:54:44 +00:00
Akim Demaille
34afd91665 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
declaration in extern "C" too.
Reported by Roberto Bagnara.
2002-11-06 14:01:49 +00:00
Akim Demaille
6497d928b1 * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
Remove.
We _have_ to stop using the old compatibility scheme that tried to
avoid useless backslashes because Libtool 1.4.3 contains a
AC_DEFINE([error_t], [int],
[Define to a type to use for `error_t' if it is not
otherwise available.])
We _have_ to quote the single quote and backslashes with .  The
old compatibility scheme saw that ` was backslashed, and therefore
did not quote the single quote.  Hence before this patch, Autoconf
was not compatible with Libtool.
2002-11-05 20:28:07 +00:00
Paul Eggert
11894d8bfc (AS_SHELL_SANITIZE): Set the following variables,
too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
LC_NAME, LC_PAPER, LC_TELEPHONE.
2002-11-05 07:09:14 +00:00
Akim Demaille
cbd2228627 * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
Change name of cache variable to ac_cv_func_malloc_0_nonnull.
(AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
(_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
to ac_cv_func_realloc_0_nonnull.
(AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
2002-10-31 17:33:26 +00:00
Akim Demaille
1fe8a44d1f * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
`$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
Make variable, not a shell variable.
Suggested by Bruno Haible.
2002-10-31 13:15:03 +00:00
Akim Demaille
c4e69deefd * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
(_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
(_AC_RUN_IFELSE): Use it.
* lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
(_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
* lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
inline it.
2002-10-31 08:27:15 +00:00
Akim Demaille
fee20e50c9 * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
sys/wait.h.
sparc_address_test returns void.
Use it with an argument, as prototyped.
From Bruno Haible.
2002-10-29 12:52:36 +00:00
Akim Demaille
5082c93acf * lib/autom4te.in (Autoconf): s/automate/autom4te/.
Reported by Ralf Corsepius.
2002-10-29 08:07:29 +00:00
Akim Demaille
f77ff8f591 * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
characters is a back as an `obsolete' warning now.
Reported by Ralf Corsepius.
2002-10-29 08:06:36 +00:00
Akim Demaille
12da19c97b * configure.ac: Bumpto 2.54c. 2002-10-28 10:52:05 +00:00
Akim Demaille
20fc2abed5 Version 2.54b. 2002-10-28 07:30:59 +00:00
Akim Demaille
5c5c6ff00b * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
AC_RUN_IFELSE.
2002-10-27 18:30:39 +00:00
Akim Demaille
1b597ea9b3 * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
* lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
Die when a simple Fortran program cannot be compiled.
* lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
Issue a warning if no function is given.
2002-10-27 18:24:51 +00:00
Akim Demaille
0357fc513f * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
Move the documentation of AC_TRY_RUN to...
(Obsolete Macros): here.
Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
(autoconf Invocation): Remove the duplicates with `invoking
autom4te'.
* lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
2002-10-27 18:23:14 +00:00
Akim Demaille
459078b633 * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
and AC_LANG_FUNC_LINK_TRY.
(Examining Libraries): Rename as...
(Running the Linker): this.
Document AC_LINK_IFELSE.
Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
(Obsolete Macros): here.
* lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
AC_TRY_LINK_FUNC nor AC_TRY_LINK.
* lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
* lib/autoconf/headers.m4 (AC_USG): Likewise.
2002-10-27 18:21:31 +00:00
Akim Demaille
b2504ea98a * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
More `check config.log' messages.
* lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
* doc/autoconf.texi (Printing Messages): Document it.
* lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
appropriate.
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
(_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
(_AC_COMPILER_OBJEXT): Likewise.
* lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
* lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
Likewise.
* lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
Likewise.
Deprecate macros with unsual interface.
* lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
(AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
Document the new ones, and proper style.
* doc/autoconf.texi (Generating Sources): New.
Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
(Examining Declarations): Rename as...
(Running the Preprocessor): this.
Document AC_PREPROC_IFELSE.
(Examining Syntax): Rename as...
(Running the Compiler): this.
(AC_FOO_IFELSE vs AC_TRY_FOO): New section.
(Obsolete Macros): Move the definition of AC_TRY_CPP and
AC_TRY_COMPILE here.
2002-10-27 18:19:38 +00:00
Akim Demaille
017a1dc5e5 * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
autom4te.in that resulted in the need for two `make' runs.
2002-10-27 18:16:06 +00:00
Akim Demaille
c54fb7e2e7 * configure.ac: Bump to 2.54b. 2002-10-27 18:14:58 +00:00
Akim Demaille
47dcd42876 * lib/autoscan/Makefile.am (autoscan.list): Disable the cache.
* bin/Makefile.am: Include freeze.mk.
2002-10-25 15:12:59 +00:00
Akim Demaille
277d32d307 * lib/autoscan/Makefile.am (CLEANFILES): Add autoscan.list. 2002-10-25 14:30:51 +00:00
Akim Demaille
38c162b207 * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA): autoscan.pre is not to be installed, and autoscan.list is not to be shipped. 2002-10-25 13:19:25 +00:00
Akim Demaille
12e8751edd * lib/autoscan/Makefile.am: autoscan.list is in srcdir. 2002-10-25 13:04:42 +00:00
Akim Demaille
da6caf35ba * bin/autom4te.in (&load_configuration): Take the file as
argument.
(&parse_args): Handle -C, --cache.
($help): Adjust.
(MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
* lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
* doc/autoconf.texi (Invoking autom4te): Document --cache.
Now a subsection of...
(Using autom4te): This new section.
(Customizing autom4te): New.
(autom4te.cache): Adjust.
2002-10-25 11:52:37 +00:00
Akim Demaille
38999f6a79 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
type _Bool.
Fix a typo.
* doc/autoconf.texi (Particular Headers): Adjust according to Paul
Eggert's recommandations.
2002-10-23 07:27:03 +00:00
Akim Demaille
86c6702369 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
Bison, by Paul Eggert.
* doc/autoconf.texi (Particular Headers): Document it.
2002-10-22 12:34:21 +00:00
Akim Demaille
94ee3f9807 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
`$ac_configure_args'.
2002-10-22 12:18:46 +00:00
Akim Demaille
a70900d82a Restore the 2002-10-11 Akim Demaille <akim@epita.fr> patch:
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
(AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
(_AC_CHECK_HEADER_NEW): Rename as...
(AC_CHECK_HEADER): this.
2002-10-22 12:02:08 +00:00
Akim Demaille
cba40759dd * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
are a few warnings.
* lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
Quote for Perl '' strings, not "".
* bin/autoheader.in: Invoke autoconf to get '' strings, not ""
strings.
2002-10-22 11:14:44 +00:00
Akim Demaille
33c894c0bf * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
characters is a syntax warning now.
(_AS_QUOTE): Accept $2 as list of characters to quote.
* lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
Quote for Perl, not sh.
* bin/autoheader.in: When $debug, report the file which is
`do'ne.
* tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
`@', to tickle Perl's lists.
Reported by Carlos Velasco.
2002-10-22 08:20:19 +00:00
Akim Demaille
a73415cbc4 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
Fixes the `AC_ARG_VAR' test failures.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
* lib/freeze.mk (check-forbidden-patterns): New.
* lib/autoconf/Makefile.am, lib/autotest/Makefile.am
* lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
* doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
/dev/null.
Reported months ago by H. Merijn Brand.
2002-10-17 10:34:09 +00:00
Akim Demaille
03d56d8bbe * bin/autoconf.as: Kill dead options.
* bin/autoupdate.in (&parse_args): Kill old options.
* bin/autoreconf.in (&parse_args): Remove dead options.
Factor some code.
(&autoreconf): Report the directories we enter *and leave*, so
that error messages can be easily located, and use GNU Make
format, so that Emacs' compile mode understands us.
* lib/Autom4te/General.pm (&update_file): Use `verbose' to report
if some file was changed instead of `print'.
* bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
(&parse_args): Remove the dead options.
* tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
autoheader's quiet mode.
(AT_CHECK_AUTOUPDATE): Likewise.
* tests/tools.at (autoupdate): Adjust.
* tests/semantics.at (AC_C_BIGENDIAN): Likewise.
2002-10-16 06:38:50 +00:00
Paul Eggert
7006b6880c No longer use CPP to check for the existing of headers: use CC to
check for compilability.

(_AC_CHECK_HEADER_MONGREL, AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
(_AC_CHECK_HEADER_NEW): Rename as...
(AC_CHECK_HEADER): this.
2002-10-11 23:52:06 +00:00
Akim Demaille
1b8a4459ee * lib/autotest/general.m4 (AT_INIT): Include the failed test
numbers in the Subject suggestion.
2002-10-11 13:02:40 +00:00
Akim Demaille
ffd1f452a8 * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
Suggest using AC_CHECK_DECLS instead.
2002-10-11 12:17:51 +00:00
Akim Demaille
7260b1d3c2 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
file name to enable parallel executions.
From Sam Varshavchik.
2002-10-11 09:49:31 +00:00
Paul Eggert
108afbf59f --warning -> --warnings. 2002-10-08 23:05:41 +00:00
Akim Demaille
1682b2f72f (autoscan.list): Force LC_ALL to C. 2002-10-02 06:07:50 +00:00
Akim Demaille
379333954a Reverse an accidental change. 2002-09-29 08:14:32 +00:00
Akim Demaille
b042fb40ec * doc/autoconf.texi (autom4te.cache): New section. 2002-09-28 16:40:49 +00:00
Akim Demaille
8054f9034f * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
(Automake-preselections): Update.
* bin/autoreconf.in, bin/autoheader.in: Comment changes.
2002-09-28 16:39:22 +00:00
Akim Demaille
ed8b9d7757 * lib/autoscan/autoscan.pre: Move all the remaining rules to...
* lib/autoconf/c.m4, lib/autoconf/functions.m4,
* lib/autoconf/headers.m4, lib/autoconf/libs.m4,
* lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
2002-09-28 16:38:48 +00:00
Akim Demaille
54b5830601 * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
autoheader are Perl programs.
(autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
(autom4te): Specify that the sources are in the $srcdir.
* doc/autoconf.texi (Installation Directory Variables): Adjust.
2002-09-28 14:09:42 +00:00
Akim Demaille
3906e3de21 * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
(tm_zone): Move their rules to...
* lib/autoconf/types.m4: here, using AN_ macros.
* lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
(RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
(make, mawk, nawk, ranlib, yacc): Similarly, move to...
* lib/autoconf/programs.m4: here.
* lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
(ETAGS_FOR_AUTOCONF): New.
Use it.
2002-09-28 14:07:47 +00:00
Akim Demaille
7134f17d88 * lib/autoconf/autoscan.m4: New file.
* lib/autoconf/autoconf.m4: Include it.
* lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
that were listed in the original autoscan.list.
* lib/autoconf/headers.m4: Similarly with headers.
* lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
(.m4.m4f): Don't pass --prepend-include, since that's done by
tests/autom4te itself.
* lib/autoscan/Makefile.am: Include freeze.mk.
(autoscan.list): New target --this file is no longer a source.
(autoscan.pre): New file.
2002-09-28 14:06:07 +00:00
Akim Demaille
9dfa6d9aa3 * bin/autoscan.in (@kinds): Make them singular.
Adjust all uses.
(&init_tables): When --debug, report the list of rules to ease
tracking changes in autoscan.list.
* lib/autoscan/autoscan.list (function): Strip comments, sort.
2002-09-28 14:03:14 +00:00
Akim Demaille
51de11a561 * lib/autoscan/functions, lib/autoscan/headers,
* lib/autoscan/identifiers, lib/autoscan/makevars,
* lib/autoscan/programs: Merge into...
* lib/autoscan/autoscan.list: this.
* bin/autoscan.in (&init_tables): Adjust.
2002-09-28 14:02:11 +00:00
Akim Demaille
d8a2311821 * lib/autoscan/functions, lib/autoscan/headers,
* lib/autoscan/identifiers, lib/autoscan/makevars,
* lib/autoscan/programs: Make the `kind' explicit, i.e., each
`functions' line is now prefixed with `function:'.
* bin/autoscan.in (&init_tables): Adjust.
2002-09-28 14:01:11 +00:00
Akim Demaille
0d44ad22d0 From now on, autoscan files must always map a macro name to a
word: there is no `default' macro for autoscan.
* bin/autoscan.in (&init_tables): Reject entries with no macro at
all.
* lib/autoscan/functions, lib/autoscan/headers: Make the macro
explicit.
2002-09-28 14:00:35 +00:00
Akim Demaille
3bf99f5ce0 * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
* lib/autoscan/functions: Adjust.
* doc/autoconf.texi (Particular Functions): Adjust.
2002-09-27 09:25:41 +00:00
Akim Demaille
2e5d3adde4 s/depecrated/deprecated/. 2002-09-27 08:48:26 +00:00
Akim Demaille
9a56bdde71 * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
from /tmp.
Thanks to Bill Moseley and Paul Eggert.
* lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
the tmpdir must be created.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
dir be in the build tree, instead of $TMPDIR.
2002-09-27 08:20:26 +00:00
Akim Demaille
686b49d823 * bin/autoscan.in: Improve the comments.
(&parse_args): Drop obsolete undocumented options.
(&output_kind): Output warnings.
* lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
(getwd): Trigger a warning.
2002-09-27 07:35:39 +00:00
Akim Demaille
13fd012e2f i960 compilers create `b.out' files by default.
Reported by Ralf Corsepius.
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
(_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
2002-09-16 08:38:45 +00:00
Akim Demaille
fee981ce59 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
reading config.log when the compiler is rejected.
Suggested by Guido Draheim.
2002-09-13 07:18:15 +00:00
Akim Demaille
533c668ec2 Regen. 2002-09-11 10:01:54 +00:00
Akim Demaille
7a3408107f * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
`duplicates', since the algorithm was too naive and could keep
`--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
keep `--prefix foo --prefix bar' as `--prefix foo bar'.
Reported by Ralf Corsepius.
* tests/torture.at (Configuring subdirectories): Exercise these
cases.
2002-09-09 15:51:52 +00:00
Akim Demaille
3e8becf84f * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
looking for a replacement file.
* lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
directory is relative.
* doc/autoconf.texi (Generic Functions): Clarify the replacement
directory definition.
Reported by Andreas Schwab and Jim Meyering.
2002-09-09 15:43:37 +00:00
Akim Demaille
b2888aa57e * configure.ac: Bump to 2.53d.
* Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
as of today, on Automake's team suggestion.
2002-09-03 09:17:44 +00:00
Akim Demaille
d417d35b57 * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
SITE_MACRO_DIR.
* configure.ac: Disable SITE_MACRO_DIR.
2002-09-03 06:09:30 +00:00
Akim Demaille
1f064c63b6 * lib/Autom4te/General.pm (&update_file): s/die/error/.
Reported by Raja R. Harinath.
* bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
* bin/autoupdate.in: Use error instead of die.
2002-09-02 07:41:56 +00:00
Paul Eggert
c8c8f2a584 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O): Work even if
"ls" outputs "FOO not found" to stdout, as traditional "ls" does.
2002-09-01 10:11:05 +00:00
Paul Eggert
24e7c10e7f (AS_SHELL_SANITIZE): Unset ENV, MAIL,
MAILPATH and set PS1, PS2, PS4 to default values, to work
around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
For LC_ALL etc, first try to set to "C" as POSIX requires and as
the Autoconf documentation specifies; fall back to "unset" only if
this fails.  Use a shell for-loop for this rather than an m4 loop,
to shorten the output script.
2002-09-01 08:24:04 +00:00
Paul Eggert
9e22b61cb2 Regenerate, this time with the correct m4.m4. 2002-09-01 08:17:15 +00:00
Paul Eggert
6fb1e2093b Regenerate with Automake 1.6.3. 2002-08-31 05:51:03 +00:00
Paul Eggert
f27d2995ab (AS_SHELL_SANITIZE): Use AS_UNSET instead
of rolling our own unset.
(_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
in practice we needn't worry about CDPATH if unset doesn't work.
2002-08-31 05:48:04 +00:00
Paul Eggert
4148c6e1d8 (_AC_INIT_SRCDIR): Reject FOO if "cd FOO" and "ls FOO" talk about
different directories; this catches problems when POSIX 1003.1-2001
"cd" fails due to symlink spaghetti.
2002-08-31 05:47:02 +00:00
Akim Demaille
a364aa42ba * lib/Autom4te/General.pm (&xqx): New.
(&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
hand, which is not portable.
(&error): New.
* bin/autom4te.in: Use them.
Use &error instead of die.
* tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
Adjust.
2002-08-29 08:03:10 +00:00
Paul Eggert
62545523b7 (AC_PROG_F77): Remove fc from the default list of compilers to try,
since it was long ago superseded by the ksh fc builtin.  Suggested by
Steven G. Johnson.
2002-08-18 00:47:25 +00:00
Mark D. Roth
a4865e2e2e 2002-07-29 Mark D. Roth <roth@feep.net>
* bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
        options and use $AUTOM4TE_PATH.
        * doc/autoconf.texi: Remove documentation of autom4te
        --include-envvar and --site-macro-subdir options and document
        use of $AUTOM4TE_PATH.
        * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
        arguments from each language section.
2002-07-30 00:42:58 +00:00
Paul Eggert
a8ead8a326 (_AS_PATH_SEPARATOR_PREPARE):
Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
apparently treats PATH="nonexistent" as if it contained ".".
Bug reported by Stefan `Sec' Zehl.
2002-07-23 22:17:19 +00:00
Akim Demaille
6d854434d2 Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
Automake's parts.
* lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
* lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
* tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
2002-07-18 11:57:32 +00:00
Akim Demaille
f026c08a36 Alexandre Duret-Lutz <duret_g@epita.fr>
* lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
_AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
2002-07-18 11:13:55 +00:00
Akim Demaille
6653b31ca4 * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
latter was not run.
2002-07-17 16:55:48 +00:00
Akim Demaille
4cb1a9ef1c * lib/Autom4te/General.pm (find_file): Browse the directories in
the order they are given.
2002-07-17 16:07:32 +00:00
Akim Demaille
5eb0e35124 Regen. 2002-07-17 08:35:59 +00:00
Paul Eggert
66d5f073b5 2002-07-17 Mark D. Roth <roth@feep.net>
* configure.ac: Add --enable-site-macro-dir option.
	* bin/Makefile.am: Expand @SITE_MACRO_DIR@.
	* bin/autom4te.in: Add --prepend-include, --include-envvar, and
	--site-macro-subdir options.
	* bin/autoconf.in: Add --prepend-include option.
	* bin/autoheader.in: Add --prepend-include option.
	* bin/autoreconf.in: Add --prepend-include option.
	* bin/autoscan.in: Add --prepend-include option.
	* bin/autoupdate.in: Add --prepend-include option.
	* doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
	macro directory, remove note that include path directories are
	used in reverse order, and document --prepend-include option.
	* lib/autom4te.in: Use --prepend-include instead of --include.
	* tests/wrapsh.in: Use --prepend-include instead of --include.
2002-07-17 08:30:42 +00:00
Akim Demaille
04df9dca08 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
tarnames.
* doc/autoconf.texi (Initializing configure): Adjust.
2002-07-17 08:17:28 +00:00
Akim Demaille
14fe4a6369 * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
(_AC_FUNC_MALLOC): New.
(AC_FUNC_MALLOC): Use the latter.
Define HAVE_MALLOC to 0 if broken.
* doc/autoconf.texi (Particular Functions): Adjust.
2002-07-17 08:09:42 +00:00
Akim Demaille
511b665763 * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
* doc/autoconf.texi (C Compiler): Adjust.
2002-07-16 13:37:53 +00:00
Alexandre Duret-Lutz
84993ece40 * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
Don't use AC_REQUIRE in AU_DEFUN.
2002-07-09 08:46:08 +00:00
Alexandre Duret-Lutz
617c68ef91 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
so that Emacs setups GNU style for perl-mode and cperl-mode.
2002-07-02 20:31:22 +00:00