Commit Graph

3107 Commits

Author SHA1 Message Date
Ralf Wildenhues
cf78c7e16e * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
initialization of `ac_cv_exeext', do not override it if it was
already set, unless it was set to `no', for compatibility with
Autoconf-2.13, and comment this.
Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
(_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
(_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
* doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
Document that this test may be overridden by setting
`ac_cv_exeext'.
2006-05-26 17:25:35 +00:00
Ralf Wildenhues
b336169d61 Revert these two patches:
2006-04-06  Eric Blake  <ebb9@byu.net>
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
2006-04-01.

2006-04-01  Stepan Kasal  <kasal@ucw.cz>
Clean up _AC_COMPILER_EXEEXT* macros.
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
  detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
  ac_file to the name of the default output file and call
  _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
  initial `rm' of the candidate files...
(_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
  the same list in subsequent `rm' calls, and for the temporary
  redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
  and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
(_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
(_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
  no longer needed) by libtool.  Make it a cache check.
(_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
  copied here by mistake.
(AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
  _AC_COMPILER_EXEEXT.
* lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
  _AC_COMPILER_OBJEXT directly.
* lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
2006-05-26 17:23:02 +00:00
Ralf Wildenhues
c1ea1267a6 * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
Fix description of how the buggy `sed' works.
2006-05-25 17:23:11 +00:00
Ralf Wildenhues
0d6c1e5aa0 Sync from Automake:
* lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
ENOLCK.  Only mention `make -j' when applicable.  Only raise
fatal errors when `make -j' is involved.  Improve error message.
2006-05-25 10:25:44 +00:00
Ralf Wildenhues
beaa9ebbcb * doc/autoconf.texi (Here-Documents): We now know more about
the variable expansion in here documents bug.
Thanks to Tim Rice and Stepan Kasal.
2006-05-25 08:49:02 +00:00
Ralf Wildenhues
4814eec7e0 * doc/autoconf.texi (Making testsuite Scripts): Add an example
how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
2006-05-25 07:39:57 +00:00
Ralf Wildenhues
0a141b9c9d * tests/autotest.at (Multiline command from M4 expansion):
No failure to be expected if the shell quotes newlines in
commands in the `set -x' output.  Report by Tim Rice.
* THANKS: Update.
2006-05-24 03:46:00 +00:00
Paul Eggert
25387a6c8b * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
expansion in the here-documents used by config.status, as that
runs afoul of the Korn shell version M-12/28/93d bug described in
the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
<http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
2006-05-23 23:07:50 +00:00
Jim Meyering
3f707bfd9f * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
Fix typo introduced with 2006-04-02 change.  It reversed the sense
of the test.
2006-05-23 21:23:32 +00:00
Paul Eggert
20e21056a2 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
ac_dB slightly, to save bytes in the script.
Max out at 50 lines, rather than 96; this is more likely
(though not guaranteed) to avoid obscure 'sed' failures.
2006-05-23 08:27:32 +00:00
Ralf Wildenhues
c373a466da * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
`tr -d -' as bad option argument.  Work around this by deleting
an unrelated character.
Report by Tim Rice <tim@multitalents.net>.
2006-05-23 04:44:27 +00:00
Paul Eggert
7298fd6c1f * doc/autoconf.texi (Particular Programs): Do not promise that
we always prefer the GNU version of the program, and that we
search according to PATH; both rules can have exceptions.
Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
AC_PROG_SED.  Move descriptions of limitations
to the Limitations of Usual Tools section.
(Limitations of Usual Tools) <sed>: Mention script length
limitations with Solaris /usr/ucb/sed.
<grep>: Fix wording for empty alternative.  Mention that -c and
-l should not be combined, and that -E and -F should not be
combined.
2006-05-22 17:27:50 +00:00
Stepan Kasal
49bb58f8f6 * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
limits in Solaris 8 /usr/ucb/sed by testing a long script.
2006-05-22 16:27:08 +00:00
Stepan Kasal
a2cc685508 * doc/autoconf.texi (Defining Symbols): Literal parameter of
AC_DEFINE is now passed to m4_pattern_allow.
* NEWS: Mention that; likewise for AC_SUBST.
* lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
the parameter to m4_pattern_allow.
* tests/tools.at: Add a check for that.
2006-05-22 15:54:09 +00:00
Stepan Kasal
f6e7fe1dce * lib/autoconf/status.m4: Fix typos. 2006-05-22 10:40:40 +00:00
Stepan Kasal
8b8f873866 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
only the files that this macro generates.
2006-05-22 10:37:15 +00:00
Stepan Kasal
408bb81c76 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
the HP-UX sed limitation of 99 commands, labels do not count.
* lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
in the comment.
(_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
2006-05-22 10:28:33 +00:00
Paul Eggert
cb1c7aeacd * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
Import the following fix from coreutils:

2006-01-13  Jim Meyering  <jim@meyering.net>

Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
$ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
not double-quote uses of that variable, to accommodate the rare
case in which getmntent is available in none of the libraries
checked.  This happens at least on FreeBSD 5.0.
2006-05-22 04:45:03 +00:00
Paul Eggert
fb2b02422b * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
ac_config_guess, ac_config_sub, and ac_configure, since evidently
some other programs unwisely rely on these undocumented vars.
But put in warning comments about them.
Problem reported by Ralf Wildenhues in
<http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
* NEWS: Document that these variables are intended to go away.
2006-05-21 00:19:42 +00:00
Ralf Wildenhues
8362e4e987 * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
and set the language to C++ (analogous to the equivalent Fortran
tests).
2006-05-20 15:49:27 +00:00
Stepan Kasal
6437e5265a typo 2006-05-20 14:39:54 +00:00
Ralf Wildenhues
621112ccfb * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
* doc/autoconf.texi (C++ Compiler): Document it.
* lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
* NEWS: Update.
2006-05-20 05:39:03 +00:00
Paul Eggert
4b2a883785 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
that caused config.status to generate 100-command sed scripts; the
portable limit is 99.
2006-05-19 21:02:10 +00:00
Ralf Wildenhues
3e25c3e856 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
variable `ac_d' instead of `d' to avoid infringing namespace.
Report by Ralf Menzel.
2006-05-19 08:11:26 +00:00
Paul Eggert
ef8f36b013 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
$ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
* tests/tools.at (autoconf: subdirectories): New test, taken from
the corresponding problem report by Ralf Wildenhues in:
http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
2006-05-19 04:14:13 +00:00
Paul Eggert
a5272ddcec * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
Quote some uses of shell variables if they might suffer unexpected
globbing.  This doesn't fix all instances of quoting problems that
I found, just the easy ones that look safe.
* lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
(AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
(AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
(AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
* lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
* lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
* lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
Likewise.
* lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
2006-05-19 02:57:45 +00:00
Ralf Wildenhues
6d4fb5169a * bin/autoreconf.in ($help): Reword according to the manual.
Suggested by Olly Betts.
2006-05-18 06:50:35 +00:00
Ralf Wildenhues
cf51635a47 * bin/autoreconf.in: Pass the directory argument to
`require_configure_ac'.  Fix comment.
* tests/torture.at (Configuring subdirectories): Expose this.
Reported by Olly Betts.
2006-05-17 02:20:15 +00:00
Ralf Wildenhues
b66a11a01c * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
Automake as follows:

* lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
`$configure_in' instead of `configure.in', to preserve
directory component.
2006-05-17 02:17:57 +00:00
Ralf Wildenhues
334d111e9e * config/config.guess, config/config.sub, config/texinfo.tex,
doc/make-stds.texi, doc/standards.texi: Sync from upstream.
2006-05-17 02:15:30 +00:00
Paul Eggert
5e2a797ae7 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
test for C99 conformance; (bool) 0.5 is an integer constant
expression, but (bool) -0.5 is not.  Problem reported by Fedor
Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
2006-05-15 02:22:28 +00:00
Paul Eggert
9479591b3e * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
Warn about obsolete install-sh files.  Remove stray sentence
fragment and fix cross reference.
* lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
install -d; this undoes the 2006-05-10 change.
(MKDIR_P): Mark with AN_MAKEVAR.
(AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
that we don't require $INSTALL to be thread-safe.  Move comments
out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
of AC_PROG_INSTALL.  Output a message saying that we're checking
mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
MKDIR_P instead of AC_SUBST.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
Special magic for MKDIR_P, too.
* lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
a dnl.
* tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
2006-05-13 09:54:51 +00:00
Paul Eggert
f634f81212 Sync from Automake, as follows:
2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
* config/install-sh: Initialize IFS, so field splitting isn't
turned off later.
* config/mkinstalldirs: Likewise.
* config/missing: Remove superfluous quotes.  Replace all uses of
`[' by `test', for consistency, and for..
* config/missing (sed_minuso, sed_output): New variables.
(autom4te, help2man, makeinfo): Use them.  Unifies detection of
`-o FILE', `--output FILE', `--output=FILE', stricter regex.
Fixes `missing' to detect `--output' for help2man.  Fixes
PR automake/483.  Report by Dennis J. Linse.
(autom4te): Document in `missing --help'.
2006-05-11 19:43:58 +00:00
Paul Eggert
8bb666c4a8 Insist on install -d, and have mkdir -p replacement rely on that. 2006-05-10 23:44:19 +00:00
Paul Eggert
0f696b8be5 * NEWS: New macro AC_PROG__MKDIR_P. AS_MKDIR_P is now more robust.
* config/install-sh: Don't use 'path' to talk about file names,
as per GNU coding standards.  Close a race condition reported by Ralf
Wildenhues and Stepan Kasal.  There is still a race condition
on hosts that predate POSIX 1003.1-1992, but we can't help this.
Don't mishandle weird characters like space on pre-POSIX hosts.
Invoke mkdir at most once per dir arg on pre-POSIX hosts.
* doc/autoconf.texi (Programming in M4sh): Cross-reference to
AC_PROG_MKDIR_P from AS_MKDIR_P.
(Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
earlier editions are not (including Automake 1.8.3).
Do not suggest mkinstalldirs for thread-safety.
* lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
presence of special characters and race conditions.
* tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
in Autoconf's name space.

* lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
from Automake with minor changes.
* doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
2006-05-10 23:05:15 +00:00
Paul Eggert
ec17a7ba0c * config/install-sh: Update to Automake CVS version, as follows:
2006-04-25  Stepan Kasal  <kasal@ucw.cz>
* lib/install-sh: Simplify the expr implementation of dirname.
2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
* lib/install-sh: Handle --, and diagnose unknown options.
2006-05-10 19:17:56 +00:00
Ralf Wildenhues
777bf51caa * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
`./autom4te' to create `./testsuite', since the `all' target
will ensure its presence, but `installcheck' should not create
the uninstalled wrappers.
2006-05-09 21:26:36 +00:00
Ralf Wildenhues
1e3f47b346 * tests/torture.at (Unusual Automake input files): Skip if we
detect automake < 1.8.
2006-05-09 21:25:42 +00:00
Ralf Wildenhues
62e0f31c7c * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
is set to `no', then that overrides and sets ac_cv_prog_cc_c89
and ac_cv_prog_cc_c99 to `no', for backward compatibility.
* NEWS: Update.
2006-05-07 20:36:01 +00:00
Ralf Wildenhues
e35c2c54f7 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
munge (multiple) white space and other oddities.
* tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
single quotes in variable assignment.
(AC_ARG_VAR, configure invocation): Adjust tests to expose this
and similar failures by adding multiple spaces, tabs, and other
special characters.
Report and different test suggested by Francesco Romani
<fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
2006-05-06 05:53:50 +00:00
Ralf Wildenhues
7ad0bfad53 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
single quotes, we only need to search for single quotes; this
both simplifies the search pattern, and makes us less
susceptible to `echo' variations for arguments not containing
single quotes.
(_AC_ARG_VAR_VALIDATE): Likewise.
2006-05-06 05:52:28 +00:00
Ralf Wildenhues
f3b87aad98 * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
`$*' and IFS concatenation issue with traditional shells and
bash-2.04.  Report by Seanster@Seanster.com.
2006-05-04 07:08:19 +00:00
Paul Eggert
5f047396ae * doc/autoconf.texi (Limitations of Usual Tools): Identify more
precisely which Mac OS X versions have the od problem.
2006-05-03 18:28:56 +00:00
Paul Eggert
28fb17bb76 * doc/autoconf.texi (Integer Overflow):
Mention the special case of integer division overflow.
2006-05-03 01:08:27 +00:00
Paul Eggert
04e292eda5 * doc/autoconf.texi: Use @option systematically. 2006-05-03 00:36:32 +00:00
Paul Eggert
30f1f062e5 * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
about 'od'.
2006-05-03 00:30:23 +00:00
Ralf Wildenhues
99ff5f6603 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
traditional shells like the Solaris one that do not use the
first IFS character for assembling `$*'.
Prompted by a related report from autoconf_bug@nro.ca.
2006-05-02 20:09:24 +00:00
Paul Eggert
b5ade1c2b2 * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
Mention more problems with the -e option.
2006-05-01 17:35:50 +00:00
Ralf Wildenhues
100f26c15e Supplement 2.59c release ChangeLog entry:
* Makefile.maint (news-date-check): Do not require a leading `*'
before the release date in NEWS.
2006-05-01 09:01:32 +00:00
Ralf Wildenhues
7a77927133 * NEWS: Typo.
* doc/autoconf.texi (Systemology): Mention the Heirloom Project.
2006-04-30 17:06:13 +00:00
Ralf Wildenhues
9d056f239b * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
in URLs to improve DVI formatted output (requires texinfo 4.6).
(System Services, Systemology, Shellology): Likewise.
(Limitations of Usual Tools): Rewrite Mac OS X example for nicer
output.
2006-04-30 17:05:05 +00:00
Ralf Wildenhues
2775732faa * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
continuous text.
(Runtime): Fix macro argument names to match description:
`action-if-found' -> `action-if-true' and similarly.
(Obsolete Macros): Likewise.
* lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
(AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
(AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
2006-04-30 17:04:06 +00:00
Ralf Wildenhues
c8fa79da58 Add missing word in my ChangeLog entry. 2006-04-29 17:33:26 +00:00
Ralf Wildenhues
85cdefd01e * doc/autoconf.texi (Limitations of Make): Clean up markup. 2006-04-29 06:24:23 +00:00
Ralf Wildenhues
42388b3835 * ChangeLog: Typo.
* doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
DVI output.
2006-04-29 06:23:15 +00:00
Ralf Wildenhues
16562b36b8 * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
/bin/sh set unsorted output.
* lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
* tests/local.at
2006-04-28 04:17:51 +00:00
Paul Eggert
12f2dd2d7f * doc/autoconf.texi (Portable C and C++, Varities of Unportability):
(Integer Overflow, Null Pointers, Buffer Overruns):
(Floating Point Portability, Exiting Portably): New sections.
(Writing Test Programs): Fix some langauge.  Recommend exiting
with status 1, not merely nonzero.  Clarify exit declaration.
(Run Time): Move C exit status stuff to new Exiting Portably section.
(Systemology): Mention Posix and levenez.  Update v7 reference.
(Portable Shell): Mention the Posix shell.
2006-04-26 20:30:54 +00:00
Stepan Kasal
cdea180452 * bin/autoconf.as (me): Replace by as_me. 2006-04-25 12:57:28 +00:00
Paul Eggert
a87d7437dc * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
since as_me isn't set yet.
2006-04-25 12:27:45 +00:00
Paul Eggert
9aed71b2ec Undo many of the recent changes, substituting these instead:
* doc/autoconf.texi (Programming in M4sh): Comment out the
documentation of AS_BASENAME, for now.
(Shell Substitutions): Do not use AS_DIRNAME in an example.
(Limitations of Builtins) <basename>: Do not refer to
AS_BASENAME.
* bin/autoconf.as (me): Don't use AS_BASENAME.
(dir): Remove the unused variable.
* lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
AS_DETECT_REQUIRED.  All uses changed.
(_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
All uses changed.
(_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
(AS_BASENAME): Use "basename --" to protect against leading "-".
(_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
(_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
(_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
(_AS_DIRNAME_PREPARE): Likewise.
(_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
(_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
(AS_DIRNAME): Use "dirname --".
2006-04-24 19:36:01 +00:00
Paul Eggert
07a83b434a * doc/autoconf.texi (Run Time): Document the exit status situation
with more accuracy and detail.
2006-04-24 05:54:54 +00:00
Paul Eggert
df797abaf3 * NEWS: Remove mention of AS_VAR_SET_BASENAME and AS_VAR_SET_DIRNAME.
* doc/autoconf.texi (Programming in M4sh): Remove mention of
AS_VAR_SET_BASENAME, AS_VAR_SET_DIRNAME, and AS_BASENAME.
We have to keep AS_DIRNAME since it was part of a stable Autoconf,
but AS_BASENAME doesn't have to be supported.
2006-04-23 08:41:06 +00:00
Paul Eggert
24a8c2d4a5 * NEWS: Update wording to say merely "should" for AS_DIRNAME
and AS_BASENAME.
* lib/m4sugar/m4sh.m4 (AS_BASENAME, AS_DIRNAME): Bring these
back, albeit undocumented.  Programs now have a grace period
to switch to AS_VAR_SET_DIRNAME and AS_VAR_SET_BASENAME.
2006-04-23 08:13:43 +00:00
Ralf Wildenhues
44635be039 * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
Archive is not officially `GNU' any more.  Update URL.
(Defining Directories): Likewise
* lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
2006-04-23 07:13:52 +00:00
Paul Eggert
52d54c54e3 * NEWS: Remove AS_DIRNAME and AS_BASENAME, replacing them with
AS_VAR_SET_DIRNAME and AS_VAR_SET_BASENAME.
* doc/autoconf.texi (Programming in M4sh): Document this.  All uses
changed.  The newer interfaces are more reliable, as they allow
implementations that handle trailing newline correctly.  For now,
we're in a freeze, so I did not include the more-reliable
implementations, but I wanted to correct the interface before 2.60
goes out.
* lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
AS_DETECT_REQUIRED.  All uses changed.
(_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
All uses changed.
(_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
(_AS_BASENAME): Renamed from AS_BASENAME.  All uses changed.
Use "basename --" to protect against leading "-".
(_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
(_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
(_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
(_AS_DIRNAME_PREPARE): Likewise.
(_AS_DIRNAME): Renamed from AS_DIRNAME.  All uses changed.
(_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
(_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
Use "dirname --".
(AS_VAR_SET_BASENAME, AS_VAR_SET_DIRNAME): New macros.
* tests/m4sh.at (AS_VAR_SET_DIRNAME): Renamed from AS_DIRNAME.
Test the new API.  Don't test internals, since they're probably
going to change anyway.
(AS_VAR_SET_BASENAME): Likewise, renamed from AS_BASENAME.

* bin/autoconf.as: Don't use AS_BASENAME or AS_DIRNAME.  This
removes a bootstrapping problem with the changes described above.
The AS_DIRNAME part wasn't used, anyway, and the AS_BASENAME
part can be done portably without all the deep Autoconf magic.
2006-04-23 06:49:53 +00:00
Paul Eggert
c10c1a2bf6 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
newline from the `trap' code to finish `config.log'; the NetBSD
/bin/sh resets the exit status after an empty command, as
documented in doc/autoconf.texi.
2006-04-19 18:16:36 +00:00
Paul Eggert
c324410a51 * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF. 2006-04-19 07:10:13 +00:00
Paul Eggert
ba7e90baf4 * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
Instead, just list the shells that we know work.
* tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
changed.  Be more cautious about the _cv_ variable.
* tests/tools.at (Syntax of the shell scripts): Check the
_cv_ variable once, at first, to avoid an internal autoconf error
when sh -n does not work.
2006-04-19 04:13:48 +00:00
Ralf Wildenhues
08d4c6bbb7 * lib/Autom4te/FileUtils.pm: Sync from Automake. 2006-04-17 12:17:01 +00:00
Paul Eggert
5863d13f3f * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
use ">&-" since we're only 99.999% sure that this is portable,
and since the MinGW bug is fixed in a different way.
* lib/autotest/general.m4 (AT_INIT): Likewise.

* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
before opening config.log, to avoid hitting a bug on MinGW.
2006-04-17 06:10:50 +00:00
Paul Eggert
5455100eda * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
AS_MESSAGE_LOG_FD before reopening it onto the log file.
This works around a MinGW bug reported by Eric Paire.
Make sure that all writes to the log file append to it,
rather than possibly losing data.
* lib/autotest/general.m4 (AT_INIT): Likewise.
2006-04-15 01:13:32 +00:00
Stepan Kasal
f7b10b57c1 * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
description.
2006-04-14 07:05:36 +00:00
Ralf Wildenhues
b9bf6e869d * NEWS: Update. 2006-04-13 07:31:47 +00:00
Ralf Wildenhues
cc1d4f1c52 * configure.ac (AC_INIT): Bump to 2.59d. 2006-04-12 23:08:21 +00:00
Ralf Wildenhues
d9ccea6f11 Use old date. 2006-04-12 21:20:19 +00:00
Ralf Wildenhues
fc8a324b0c Version 2.59c. 2006-04-12 21:19:27 +00:00
Ralf Wildenhues
8683ec4ff9 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
the instantiated file do not contain the string 'datarootdir'
but contain @datadir@, @docdir@, @infodir@, @localedir@, or
@mandir@, replace the reference '${datarootdir}' by the value.
* tests/torture.at (datarootdir workaround): New test.
* NEWS: Advertise this temporary fixup.
Based on a patch by Bruno Haible, reported and analyzed by
Paul Eggert and Noah Misch.
2006-04-12 20:40:21 +00:00
Ralf Wildenhues
cd457f3fbc * tests/autotest.at (Debugging a failed test): Fix comment. 2006-04-12 18:55:49 +00:00
Stepan Kasal
b3c78a065b * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
all the changes since 2006-04-07.
2006-04-12 12:20:13 +00:00
Ralf Wildenhues
f05b9c77f0 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
succeeded, but `ln -s file dir' failed, take care to remove the
leftover target before the next test, to prevent its spurious
failure; also make sure `ln file dir' works before selecting it.
Thanks to Keith Marshall for pointing this out.
* THANKS: Update.
2006-04-11 17:34:03 +00:00
Ralf Wildenhues
985a38d751 * lib/autotest/general.m4 (AT_INIT): Store quoted variable
assignments in `at_debug_args', so that we put them correctly
in the `run' script.
* tests/autotest.at (Debugging a failed test): Unmark XFAIL.
Reported by Eric Blake.
2006-04-11 16:09:54 +00:00
Ralf Wildenhues
67fa0de6f4 * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
top-level tests after micro-suite has been run.   Used in...
(Debugging a successful test, Debugging script and environment),
(Debugging a failed test): ...these new tests.  The first of these
is fixed by...
* lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
macro, split out from...
(AT_INIT): ...here, so that using -d also generates a run script.
Document that -d inhibits top-level logging.
* doc/autoconf.texi (testsuite Invocation): Document that -d only
inhibits top-level logging; debug scripts are created.
2006-04-11 16:06:40 +00:00
Ralf Wildenhues
1eff34d1c3 * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
check.
* tests/autotest.at (Empty test, Empty check): New test to check it.
2006-04-11 16:03:28 +00:00
Ralf Wildenhues
4ba7445703 * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
from gcc.
2006-04-11 16:02:01 +00:00
Stepan Kasal
e99b067973 * tests/mktests.sh: Use "trap '' 0", not "trap 0". Do not touch
the files if a problem appears.  Make the empty *.at files
read-only, too.  Proposed by Ralf Wildenhues.
2006-04-10 21:00:40 +00:00
Ralf Wildenhues
8baafec420 * config/Makefile.am: Add comment to force updated Makefile.in. 2006-04-10 20:51:54 +00:00
Ralf Wildenhues
284c40be5c * lib/freeze.mk: Fix typo in comment. Unlike the last, white
space only patch to this file, this patch causes the Makefile.in
files that include freeze.mk to be updated, and thus have a
newer time stamp again, which in turn makes a pristine CVS
checkout have correct time stamps.
2006-04-10 20:40:37 +00:00
Ralf Wildenhues
9957619653 * Makefile.maint (cvs-sv): New macro, to be used..
(config.guess-url_prefix, config.sub-url_prefix)
(texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
point to CVS text checkout of Gnulib files.
(copyright-check): Bump current year.
(announcement): Do not hard-wire `./announce-gen'.
(cvs-update): Propagate failures of `cvs' and `move-if-change'
correctly.
* Makefile.cfg (executable-update): Use `chmod a+x' instead of
`chmod +x'.
(wget_files): Update config.guess, config.sub, texinfo.tex by
`wget-update', now that their URLs work again.
2006-04-10 20:38:17 +00:00
Paul Eggert
18eb7c8e30 * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE. 2006-04-10 18:55:27 +00:00
Ralf Wildenhues
16be6790c9 * doc/autoconf.texi: Remove unused words from word list.
* .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
.x-sc_trailing_space: New files.
2006-04-10 18:14:53 +00:00
Ralf Wildenhues
d3a7588793 * doc/standards.texi: Sync from gnulib. 2006-04-10 18:01:47 +00:00
Ralf Wildenhues
bf1cb2ead1 * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
`LIBOBJDIR' as experimental.
2006-04-10 17:57:17 +00:00
Ralf Wildenhues
6ca1cfdde2 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
with a target directory; it's internally implemented as `cp'
anyway, but since Autoconf advertises the possibility to use
a target directory when LN_S is `ln -s', we need to find out.
Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
analyzed by Keith Marshall <keith.marshall@total.com>.
2006-04-10 17:55:33 +00:00
Ralf Wildenhues
11634e4715 * THANKS: Update. 2006-04-10 17:51:47 +00:00
Paul Eggert
80c47ff76d * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
confdefs.h as-is.  In general, if it has backslash-newline or the
like, then it doesn't work either to sort or to remove empty
lines.
2006-04-10 09:15:11 +00:00
Stepan Kasal
6a2faa0243 Fix a typo in ChangeLog. 2006-04-09 16:39:10 +00:00
Stepan Kasal
6c5bc727df * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment. 2006-04-09 11:36:08 +00:00
Alexandre Duret-Lutz
22e04a7d35 * lib/autom4te.in (Automake-preselections): Preselect
_AM_SUBST_NOTMAKE.
2006-04-09 07:54:28 +00:00
Paul Eggert
92e830d8a0 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
apostrophe within a single-quoted string, as this is the usual
tradition and is easier to read than '"'"'.  Don't rely on the
shell treating "$/" like '$/'.  Use a more-consistent indenting
style for the trap.
2006-04-09 06:22:28 +00:00
Ralf Wildenhues
a6cd888c4f * tests/autotest.at (Backquote command substitution),
(Multiline backquote command substitution): Remove mistaken
AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
applied...
(Parenthetical command substitution, Multiline parenthetical
command substitution): here.
2006-04-09 05:36:45 +00:00
Paul Eggert
e5fa8fb842 Fix typo in changelog entry. 2006-04-08 21:49:32 +00:00
Paul Eggert
309a01c200 Import macros from gnulib (often changing their name).
* NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
The manual mentions Gnulib more prominently.
* doc/autoconf.texi (Gnulib): New node.
(Pointers): Add Gnulib URL.
(Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
(Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
Gnulib section.
(Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
suggest a #define rather than a typedef for _Bool, and mention
Gnulib rather than trying to substitute stdbool code.
(Generic Headers): Add AC_CHECK_HEADERS_ONCE.
(Generic Declarations): Add AC_CHECK_DECLS_ONCE.
(Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
AC_STRUCT_DIRENT_D_TYPE.
(Particular Types): Mention stdint.h and inttypes.h as standard
headers too.
Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T,
AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
(C Compiler): Move AC_C_LONG_DOUBLE to ...
(Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
(Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
(Coding Style).  Don't mention m4_expand_once.
* lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
* lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
(AC_CHECK_FUNCS): Use it.
(AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
(AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
* lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
(AC_HEADER_ASSERT): New macro.
(AC_HEADER_STDBOOL): Don't assume "#error" works.
Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
Catch a bug in an HP-UX C compiler.
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
* lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
(AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
(AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
(AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
(_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
New macros.
2006-04-08 21:46:03 +00:00
Stepan Kasal
70d428506b * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
of the warning introduced by the 2001-08-28 change.
2006-04-08 17:59:56 +00:00
Ralf Wildenhues
115e3bf448 * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
variables shall be overriden by the cache.
* tests/torture.at (AC_ARG_VAR): Test also with a first value
that contains braces.
2006-04-08 09:07:05 +00:00
Ralf Wildenhues
9e365d1e0b Revert the patch from 2006-04-01 and only improve
_AS_DETECT_BETTER_SHELL:

* lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
skip nonexistent directories.
(_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
only shell candidates which exist.
(AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
* lib/autotest/general.m4 (AT_INIT): No need to give three
parameters to _AS_PATH_WALK.
2006-04-07 18:31:09 +00:00
Ralf Wildenhues
aefd74ee25 * bin/autoupdate.in (handle_autoconf_patches): Change the way we
distinguish m4sugar macros.
* tests/tools.at (autoupdating with aclocal and m4_include):
New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
test case by Noah Misch <noah@cs.caltech.edu>.
2006-04-07 18:25:30 +00:00
Stepan Kasal
67b61ef700 Revert my change from 2006-03-17, in other words:
* lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
  and DUALCASE=1.
(AS_SHELL_SANITIZE): Remove DUALCASE=1.
* doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
  it is set.
2006-04-07 18:00:55 +00:00
Ralf Wildenhues
67070903a4 * doc/autoconf.texi (Programming in M4sh): Document that
AS_MKDIR_P exits the script on failure.
* lib/autotest/general.m4: Remove redundant AS_ERROR.
2006-04-07 12:33:04 +00:00
Ralf Wildenhues
20d3a16322 * config/elisp-comp, config/install-sh, config/mdate-sh,
config/missing, config/mkinstalldirs: Sync from Automake.
2006-04-06 22:40:55 +00:00
Ralf Wildenhues
df756e0046 * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
from Automake.
2006-04-06 22:39:22 +00:00
Ralf Wildenhues
d53aec7560 * doc/make-stds.texi: Sync from gnulib. 2006-04-06 22:37:19 +00:00
Stepan Kasal
dd691374d8 Fix mistakes in changelog. 2006-04-06 18:44:57 +00:00
Stepan Kasal
2387e2b98a * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
2006-04-01.
2006-04-06 18:34:24 +00:00
Stepan Kasal
8366e27e49 Fix one of the previous entries. 2006-04-06 18:21:04 +00:00
Ralf Wildenhues
31d0e60498 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
whether `set' quotes correctly: redirect stderr of the tested
`set', and use a subshell, for Ultrix; use `sed' instead of
`grep' for zsh `set' which may write binary output; match only
at the beginning of a line, to avoid false positives.
In order to avoid false positives by unrelated variables with
multiline content, put the dump algorithm in a subshell and
unset all variables containing newlines (except some which are
special to the shell).  Warn about cache variables that are
unset.
2006-04-06 18:16:56 +00:00
Ralf Wildenhues
0afa03269f * tests/mktests.sh: Reword comments. 2006-04-06 17:56:43 +00:00
Ralf Wildenhues
ea57f4c05f * tests/mktests.sh: Only skip internal macros starting with
`_AC_' or `__AC_'.  Noted by Stepan Kasal.
Update exclusion lists for the test suite to this end:
(AC_ARG_VAR): Do test this now.
(AC_REPLACE_FUNCS): This needs an argument.
(AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
(AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
(AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
2006-04-06 17:55:21 +00:00
Ralf Wildenhues
d370eb6e4e * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
shell issue with double-quoted command substitutions of native
commands.
Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
Marshall.
2006-04-06 17:51:22 +00:00
Ralf Wildenhues
d209422b6b * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
no file matches the glob, discard the warning, set `nullglob'.
(syntax-check): Likewise.
(sc_cast_of_x_alloc_return_value): Likewise.
(sc_cast_of_alloca_return_value, sc_error_exit_success)
(sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
(m4-check): Likewise.
(sc_system_h_headers): Do not print rule on execution.
(sc_tight_scope): Do not fail for non-existing `src' directory.
(sc_changelog): Skip the Copyright footer.
* lib/autoconf/lang.m4: Remove trailing space.
2006-04-06 17:43:52 +00:00
Ralf Wildenhues
4686c69e0f * lib/autoconf/status.m4: More replacements to
<tab><space> where this makes sense.
2006-04-06 17:38:05 +00:00
Stepan Kasal
967fab326b * tests/Makefile.am (maintainer-check-posix): s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/ 2006-04-06 15:15:06 +00:00
Stepan Kasal
736ed9a5ae * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
ac_config_<foo>s again, sometimes normalized, sometimes not.
(AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS, AC_CONFIG_COMMANDS):
  Do not do so here.
(_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
  and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
  2005-07-25 rewrite.  Noticed by Noah Misch.
2006-04-06 15:07:59 +00:00
Stepan Kasal
b2d1fdf998 * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
_AC_PRESERVE_HELP_ORDER, ...
(AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
2006-04-06 13:49:08 +00:00
Stepan Kasal
19de93e293 * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
inside m4_expand_once; it is redundant.
2006-04-06 12:16:38 +00:00
Stepan Kasal
aa4ad131b5 * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
for --help from Cygnus `configure.'
2006-04-06 11:33:52 +00:00
Stepan Kasal
d10fd094fa Revert this (for now):
| * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call
|   _AC_COMPILER_EXEEXT instead of m4_expand_once([_AC_COMPILER_EXEEXT])
| * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
| * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_TESTS): On subsequent
|   calls, for a new language, only check that the compiler works.
| (AC_NO_EXECUTABLES): Change the redefinition of
|   _AC_COMPILER_EXEEXT_TESTS so that on subsequent calls, it checks
|   that the new language's compiler works if ac_no_link=no, and
|   does nothing otherwise.
2006-04-06 11:24:00 +00:00
Stepan Kasal
1ea9c4e1a7 fix a typo 2006-04-06 11:15:54 +00:00
Paul Eggert
119f63f545 * doc/autoconf.texi (C Compiler): Warn about #error. Follows up
on a patch proposed by Ralf Wildenhues.
2006-04-06 07:58:20 +00:00
Paul Eggert
6df53aa716 * lib/autoconf/status.m4: Replace <space>''<tab> with
<tab><space> where this makes sense.
2006-04-06 02:31:09 +00:00
Noah Misch
a04993aa1d * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
(AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
* doc/autoconf.texi (Help Formatting): New node.
* NEWS: Announce AC_PRESERVE_HELP_ORDER.
2006-04-05 22:41:36 +00:00
Ralf Wildenhues
73b45d6e4b * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
lib/autoconf/specific.m4, lib/autoconf/status.m4,
lib/autoconf/types.m4, lib/autotest/general.m4,
tests/mktests.sh, tests/torture.at: White space cleanup:
remove some SPACE before TAB, or add quoting ('' or @&t@).
2006-04-05 20:55:14 +00:00
Ralf Wildenhues
6cd003bf89 * NEWS, TODO, bin/autoreconf.in: filesystem' -> file system'. 2006-04-05 20:54:17 +00:00
Ralf Wildenhues
b7d9019376 * doc/autoconf.texi (Shell Substitutions): Document ^' vs. |'. 2006-04-05 16:18:20 +00:00
Ralf Wildenhues
f55b0f0d79 * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
empty test suite works.
* tests/autotest.at (Empty test suite): Remove xfail.
2006-04-05 16:04:22 +00:00
Noah Misch
7c8b18229e * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
TAGS to ac_config_<foo>s.
(AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
(AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
normalizing it, consistent it with previous releases.
* tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
2006-04-05 14:20:37 +00:00
Paul Eggert
cf298164fe * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
Use simplified args that Eric Blake originally suggested.
2006-04-05 08:01:04 +00:00
Paul Eggert
39572957c6 * tests/mktests.sh: Don't use 'cat'; just read the files directly.
Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
Use 'comm' rather than N instances of grep; this also fixes a bug
whereby substrings were incorrectly matched, causing us to not
generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
(exclude_list): Exclude empty macros.
(ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
2006-04-04 23:36:20 +00:00
Paul Eggert
3b73069a86 * tests/mktests.sh: Use awk rather than grep -E or egrep, to avoid
portability problems with regular expressions containing newlines.
(exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
Switch from grep to awk syntax.
(ac_exclude_script): Renamed from ac_exclude_egrep.
(au_exclude_script): Renamed from au_exclude_egrep.
2006-04-04 22:36:02 +00:00
Noah Misch
775f230c39 * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
a subdirectory subject to Cygnus `configure'.
* lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.

* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
report request when we have no AC_PACKAGE_BUGREPORT.
2006-04-04 16:13:47 +00:00
Ralf Wildenhues
ee6771641a * THANKS: Update. 2006-04-03 20:32:02 +00:00
Ralf Wildenhues
b6adea0e88 * tests/mktests.sh: Update copyright year in the header of the
generated files.
2006-04-03 19:34:49 +00:00
Ralf Wildenhues
7ff8451f9e * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
(AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
typedef'ed restricted pointer, to catch a compiler bug on
HP-UX 11.x, and fix warnings so it passes with -Werror.
(_AC_PROG_CC_C99): Likewise.
Reported by Albert Chin <china@thewrittenword.com>.
* tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
2006-04-03 19:09:55 +00:00
Noah Misch
d4f849f3c0 * bin/autoscan.in (subdirs): New global.
(scan_file): Prune directories with configure{,.{ac,in,gnu}}.
(output): Emit AC_CONFIG_SUBDIRS as needed.
* tests/autoscan.at (autoscan): Remove XFAIL.
2006-04-03 15:58:20 +00:00
Noah Misch
bb393e107a * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE. 2006-04-03 13:51:02 +00:00
Ralf Wildenhues
f169721e44 * THANKS: Add myself. 2006-04-03 13:12:27 +00:00
Ralf Wildenhues
5efb21aa55 * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
to log, point to testsuite output tree.
2006-04-03 04:47:02 +00:00
Paul Eggert
a71c24a704 * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
* doc/autoconf.texi (Function Portability): Mention that C++
has trouble with 'exit'.
(Guidelines): Test programs shouldn't use 'exit'.
* lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
Remove; all uses removed.
(AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
Return from 'main' instead of calling 'exit'.
* lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
(_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
(AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
(AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
(AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
(AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
(_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
* lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
* lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
* lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
* tests/compile.at: Likewsie.
2006-04-03 03:18:39 +00:00
Paul Eggert
c2286019bf * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call
_AC_COMPILER_EXEEXT instead of m4_expand_once([_AC_COMPILER_EXEEXT])
* lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_TESTS): On subsequent
  calls, for a new language, only check that the compiler works.
(AC_NO_EXECUTABLES): Change the redefinition of
  _AC_COMPILER_EXEEXT_TESTS so that on subsequent calls, it checks
  that the new language's compiler works if ac_no_link=no, and
  does nothing otherwise.
2006-04-02 16:38:54 +00:00
Noah Misch
809e269455 * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change. 2006-04-02 15:00:40 +00:00
Stepan Kasal
c8514d3a3a Do not optimize the first _AS_PATH_WALK. 2006-04-01 22:53:04 +00:00
Stepan Kasal
2a7aa88566 Clean up _AC_COMPILER_EXEEXT* macros. 2006-04-01 21:45:13 +00:00
Stepan Kasal
fee8d8bb53 . 2006-04-01 21:22:11 +00:00
Stepan Kasal
2af85b096a _AS_DIRNAME_PREPARE 2006-04-01 20:06:12 +00:00
Stepan Kasal
784f54dfcd Fix typos. 2006-04-01 19:38:07 +00:00
Stepan Kasal
3e6c89ae73 . 2006-04-01 18:33:24 +00:00
Stepan Kasal
a9b857317c Sort the macros and fix typos. 2006-04-01 18:26:46 +00:00
Stepan Kasal
29e314f91f Improve --version output for old-style AC_INIT 2006-04-01 18:16:05 +00:00
Stepan Kasal
70c31ba6dc autoreconf: impement -vv 2006-04-01 18:09:07 +00:00
Stepan Kasal
552d9e9636 Spelling fixes. 2006-04-01 16:46:39 +00:00
Stepan Kasal
1a74a211bc Be tolerant if rm was not able to remove the test directory. 2006-04-01 16:09:13 +00:00
Stepan Kasal
335e09466c Fix line numbers in the error messages of autoupdate. 2006-04-01 15:58:43 +00:00
Stepan Kasal
713895ae5c More autoupdate issues. 2006-04-01 15:57:02 +00:00
Stepan Kasal
718a299d81 Fix m4sugar expansion in autoupdate. 2006-04-01 15:53:36 +00:00
Paul Eggert
572ffd5b0b * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
2006-03-31 18:55:43 +00:00
Paul Eggert
e4913c88f3 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
correctly.  Problem reported by Eric Blake.
(_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
Ralf Wildenhues.
2006-03-31 18:46:47 +00:00
Paul Eggert
9c78ea316a * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
Tighten up the basename/dirname wording.
2006-03-31 06:08:49 +00:00
Ralf Wildenhues
28cc41f69a * Makefile.maint (sc_texi_notab): New check: do not use TABs
in texinfo files outside of verbatim environments.
(syntax-check-rules): Update.
* doc/autoconf.texi (Configuration Headers): Conform to it.
2006-03-30 19:54:08 +00:00
Stepan Kasal
6676554c47 Document that autoreconf doesn't pass -I to aclocal. 2006-03-30 17:37:47 +00:00
Paul Eggert
f1ff7a4798 Correct attribution in previous entry. 2006-03-30 06:43:46 +00:00
Paul Eggert
a597574279 * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
Give an example for AS_DIRNAME instead of referring to Posix..
(File System Conventions): Put discussion of // versus / here, and
modernize it a bit.
(Limitations of Usual Tools): Add basename.  Remove verbiage
after dirname, since it got moved to the above sections.
All this was inspired by a patch proposed earlier by Ralf Wildenhues.
2006-03-30 06:42:56 +00:00
Ralf Wildenhues
ff15ef7a2c * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
`$0' to protect against spaces.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
`$0', $as_me.
2006-03-27 17:42:17 +00:00
Ralf Wildenhues
9656b1839e * bin/autoscan.in: The value of find_configure_ac should be
checked for existence, so we don't barf over a nonexisting
configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
2006-03-26 21:27:56 +00:00
Ralf Wildenhues
dd0b613c2a * bin/autoupdate.in: Fix some typos. 2006-03-22 19:30:39 +00:00
Stepan Kasal
141123eb01 . 2006-03-22 11:25:56 +00:00
Stepan Kasal
de4d0b6bcd typo 2006-03-21 21:51:07 +00:00
Stepan Kasal
f8d9179d74 . 2006-03-21 17:50:11 +00:00
Ralf Wildenhues
bc89233c59 * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
and Erlang related variables.
2006-03-20 20:29:45 +00:00
Ralf Wildenhues
96aa2c31b2 * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
(_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
(AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
(AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
(AC_LANG_BOOL_COMPILE_TRY(Objective C))
(AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
(AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
(_AC_PROG_OBJC_G): New macros.
(_AC_ARG_VAR_CPPFLAGS): Adjusted.
* doc/autoconf.texi (Objective C Compiler): New node.
(Preset Output Variables): Document OBJCFLAGS.
(Language Choice): Document `Objective C' language.
(Fortran Compiler): Fix typo.
* NEWS: Updated.
Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
2006-03-20 20:28:55 +00:00
Stepan Kasal
2ea44d31c2 typos 2006-03-20 14:46:12 +00:00
Stepan Kasal
4342ba1ca8 . 2006-03-17 20:52:27 +00:00
Stepan Kasal
13324b1dfd Removed BIN_SH=xpg4, moved DUALCASE=1 to AS_SHELL_SANITIZE. 2006-03-17 19:32:53 +00:00
Stepan Kasal
d2d7871702 (_AC_PATH_PROG): Store the result to VARIABLE. 2006-03-17 19:05:27 +00:00
Stepan Kasal
2991e096f8 Add AT_CHECK_MACRO_CROSS. 2006-03-17 18:03:01 +00:00
Ralf Wildenhues
c5982aeff4 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
the directory `/usr/bin/posix' in the shell search, to prefer
the Posix shell not only in subsequent spawns as with `$BIN_SH'
on Tru64.
2006-03-17 17:09:21 +00:00
Ralf Wildenhues
2b052b0538 * doc/autoconf.texi (contents): To fix texi2html output, hide
`@setcontentsaftertitlepage' for HTML.
(Writing Autoconf Macros): Likewise, insert space after `@c'.
(Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
`@,{c}'.
2006-03-17 03:59:05 +00:00
Stepan Kasal
a7791c7782 Move the IFS setup and CDPATH sanitizing to AS_SHELL_SANITIZE. 2006-03-16 13:33:18 +00:00
Stepan Kasal
4889a3742d Do not use cache vars. 2006-03-15 14:02:36 +00:00
Stepan Kasal
ca608a72f9 Cleaned up documentation for macros in erlang.m4. 2006-03-14 16:55:26 +00:00
Ralf Wildenhues
c36fc65ca5 * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
failure condition for `$(cmd)' style command substitutions.
(Parenthetical command substition, Multiline parenthetical
command substition): Use it.
2006-03-14 07:20:14 +00:00
Ralf Wildenhues
1e50e55ff9 * doc/autoconf.texi (Special Shell Variables): Missing word.
Reported by Keith Marshall <keith.marshall@total.com>.
2006-03-14 07:19:27 +00:00
Ralf Wildenhues
6f4a6a0740 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
IFS even in case of empty `$PATH'.
2006-03-14 07:18:18 +00:00
Ralf Wildenhues
e1d5a93433 * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
`expr' away if there is nothing to do.
< --keywords >: Simplify and robustify argument handling.
Revert erroneous comment from 2005-08-23.  Extend to allow
keyword negation with `!'.
Update help message.  Remove broken code to prevent running
tests multiple times.
* doc/autoconf.texi (testsuite Invocation) < --keywords >:
Update and fix the documentation accordingly.
* tests/autotest.at (Keywords): Renamed to..
(Keywords and ranges): .. this.  Extended to make sure negated
keywords, keywords taken from AT_SETUP arguments, and numeric
test ranges work, and that matching is case-insensitive.
2006-03-12 19:58:31 +00:00
Ralf Wildenhues
17bb2b9ac8 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
allow to pass unnamed structs even in C++.
(AC_CHECK_SIZEOF):  Likewise.
Also fix quoting error in `AC_MSG_FAILURE' arguments.
* tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
struct): New tests for unnamed structs, each both native and
cross-compiling.
2006-03-11 13:22:42 +00:00
Ralf Wildenhues
c8ad4b48ac * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
a structure inside a cast, for C++ conformance.
* lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
Also fix quoting error in `AC_MSG_FAILURE' arguments.
2006-03-11 13:21:32 +00:00
Ralf Wildenhues
4bed79349d * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
trying to execute the command `no'.
2006-03-11 13:20:14 +00:00
Ralf Wildenhues
df1fe4b493 * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
expanded outside.
2006-03-11 13:17:23 +00:00
Ralf Wildenhues
608e17bde8 * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
example.  Do not emphasize `$%', it is hardly new and special.
Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
2006-03-11 13:15:55 +00:00
Ralf Wildenhues
cd0f024086 * doc/autoconf.texi (Limitations of Usual Tools): Document
OpenBSD and traditional `grep' failure to handle multiple
patterns separated by newlines.
2006-03-11 13:13:47 +00:00
Paul Eggert
0527671a06 * doc/autoconf.texi (several sections): Add documentation for macros
in erlang.m4.
2006-03-11 08:07:31 +00:00
Paul Eggert
abc44c1c57 * doc/autoconf.texi (Obsolete Macros): Fix wording of
AC_TRY_LINK_FUNC.
2006-03-10 20:59:18 +00:00
Paul Eggert
60a9e484c6 * doc/autoconf.texi: Use @acronym more consistently for acronyms
like BSD, GPL, LGPL.  Fix minor English typos.
(AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
Mention that these macros are becoming obsolete.
(AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
Use more modern terminology for which standard is what.
(AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
and to ansi2knr.
(AC_PROG_CXX): Likewise.
(AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
Remove obsolete discussion about how to port to K&R.
(Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
the obsolescent AC_HEADER_STDC.
(AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
can't rely on it.
2006-03-10 20:54:53 +00:00
Ralf Wildenhues
f1fb11eb87 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
Remove stdin redirection from /dev/null to allow pipe to work.
2006-03-08 20:48:22 +00:00
Paul Eggert
70e18e4ea9 Fix typo in previous checkin. 2006-03-08 19:23:36 +00:00
Paul Eggert
31c38363f1 * tests/c.at (AC_PROG_CPP without warnings): Require that
/lib/cpp include stdio.h correctly.  Solaris 10's doesn't.
2006-03-08 19:21:26 +00:00
Ralf Wildenhues
2602ca4aa5 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
HP-UX sed is 99 commands, not 100.
(_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
_AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
newline for portability.
* tests/torture.at (Torturing config.status): Also test 100
AC_SUBST_FILE invocations.  Fix test to actually verify the
AC_CONFIG_FILES output.
* doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
command, label, and read-file `r' limits.  Unify HP-UX spelling.
2006-03-06 22:34:34 +00:00
Ralf Wildenhues
66bf4ecdc9 * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
non-suffix rule.
($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
non-GNU make.
(autoconfdir, $(AUTOCONF_FILES)): Likewise.
* tests/mktests.sh: Small shell portability fixes.
2006-03-06 21:13:21 +00:00
Ralf Wildenhues
bb44ff85bc * doc/autoconf.texi (Caching Results): Fix the examples to use a
recommended quoting style and discard unwanted output.
2006-03-05 09:09:47 +00:00
Paul Eggert
2e38fe93be * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
(AT_INIT): Use it, to remove arbitrary limit of 999,999 test
cases, and to work around Tru64 expr bug.
* doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
expr bug that turns the result of a regex match into a number if
possible.
2006-03-05 08:29:49 +00:00
Ralf Wildenhues
5c8afca5a6 * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
in section `Specific Compiler Characteristics'.
2006-03-04 17:28:34 +00:00
Paul Eggert
3ddd7fba50 * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
variable warning.
2006-03-03 20:41:40 +00:00
Ralf Wildenhues
f4d628245a * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
order of variable initialization, so even the Solaris 2.6 shell
can create a config header correctly.  Fixes lots of test suite
failures.
2006-03-01 19:54:33 +00:00
Ralf Wildenhues
65b3b33be3 * doc/autoconf.texi (Text processing Macros): New node to
document the m4sugar macros m4_re_escape, m4_tolower,
m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
2006-02-22 20:18:23 +00:00
Paul Eggert
c53065d39a * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
XrmInitialize (0) -> XrmInitialize ().
Reported by Toshio Kuratomi.
2006-02-22 19:37:40 +00:00
Ralf Wildenhues
a628e04465 * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
test, as in `if tests; then cmd1; elif ...; else ...; fi'.
* doc/autoconf.texi (Programming in M4sh): Adjusted.
* tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
both macros are defun'ed so that required macros are evaluated
outside.
2006-02-21 09:30:01 +00:00
Ralf Wildenhues
8ff7792b2a * doc/autoconf.texi (Prerequisite Macros): State more precisely
where a required macro will be expanded.
(Coding Style): Another reason not to use `m4_define'.
2006-02-21 09:28:34 +00:00
Ralf Wildenhues
5ff8a3d39a * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization. 2006-02-21 07:16:33 +00:00
Ralf Wildenhues
14f61daa3c * doc/autoconf.texi (Looping constructs): New node, to
document m4_for, m4_foreach, m4_foreach_w, and mention
obsolete AC_FOREACH.
(Obsolete Macros): Document AC_FOREACH.
* lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
(m4_for): Fix to never loop (almost) endlessly, work correctly
with arithmetic expressions in arguments, a step of zero or
non-integer multiple of the interval, and avoid integer
overflow.
* tests/m4sugar.at: New test for m4_for, m4_foreach, and
m4_foreach_w.
2006-02-20 21:43:05 +00:00
Paul Eggert
79fcd7c3c2 * lib/autoconf/erlang.m4: Rename macros from ERLANG_* to
AC_ERLANG_*.  All uses changed.
* lib/freeze.mk (autoconf_m4f_dependencies): Add erlang.m4
* NEWS: Add short description of new macros.
2006-02-20 19:45:30 +00:00
Paul Eggert
e0703407fc Add basic support for Erlang, both for configuring Erlang/OTP
tools, and Erlang as a conf test language.
* lib/autoconf/erlang.m4: New file.
* lib/autoconf/autoconf.m4
* lib/autoconf/Makefile.am (dist_autoconflib_DATA): Add erlang.m4.
* THANKS: Add Romain Lenglet.
2006-02-20 08:50:33 +00:00
Ralf Wildenhues
cff03cfc50 * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
2006-02-20 08:41:53 +00:00
Paul Eggert
f5a64f3738 * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable warning. 2006-02-15 22:07:12 +00:00
Ralf Wildenhues
6fab15fe41 * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
(_AS_CASE): Private helper macro.
* tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
* doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
Fix syntax of AS_IF description
(Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
for the AC_REQUIRE mess.
* NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
AS_SHELL_SANITIZE.
2006-02-15 07:00:29 +00:00
Paul Eggert
cbb28abf85 * doc/autoconf.texi: Minor style cleanup.
Be consistent about spaces after commas.
Insert [] where empty args look a bit funny.
Fix some "i.e." and "e.g." usages.
Try to avoid "X/Y" usages.
Don't be pedantic about "ISO C99"; just say C99.
Prefer GNU style for spaces in front of parens.
(Function Portability): Comment about C89 versus C99
signed integer division.
(Particular Headers): Use current gnulib style for dirent
includes.
2006-02-15 06:42:16 +00:00
Ralf Wildenhues
8d75399149 * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
macros without parameters.
* lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
* doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
* tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
`$#' bug.
(autoupdate): Updated to match AU_ALIAS fix.
2006-02-14 23:18:51 +00:00
Paul Eggert
9a0e3a3558 * doc/autoconf.texi (Programming in M4sh): Document
AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
* lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
(AS_BOURNE_COMPATIBLE): ..this.
(_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
2006-02-13 18:46:04 +00:00
Paul Eggert
25ca4c3c70 * doc/install.texi (Defining Variables): Tighten up the
CONFIG_SHELL wording.
2006-02-13 07:59:10 +00:00
Ralf Wildenhues
b82b4e96ce * doc/autoconf.texi (Running the Compiler, Running the Linker):
Changes the macro arguments in summaries to match the
descriptions.
2006-02-10 10:32:33 +00:00
Stepan Kasal
32629b44f8 Call the CONFIG_SHELL hint a workaround. 2006-02-04 14:10:46 +00:00
Ralf Wildenhues
8e944069ad * bin/autoreconf.in: New option `--no-recursive'.
Improve wording for subpackages a bit.
* doc/autoconf.texi (autoreconf Invocation): Updated.
* NEWS: Updated.
2006-01-31 12:07:40 +00:00
Ralf Wildenhues
0b9bb6512e * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
in environment of `configure', not the command line.
Reported by Howard Chu <hyc@highlandsun.com>.
2006-01-31 12:03:32 +00:00
Paul Eggert
39569a7d4e * doc/autoconf.texi (Limitations of Builtins): Document the
problem with "trap -".
2006-01-25 22:14:16 +00:00
Paul Eggert
8ad993c7d0 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
(_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
messages to differentiate Fortran and Fortran 77 tests.
(AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
AC_LANG_ASSERT, to allow use in mixed-language projects.
2006-01-24 00:28:29 +00:00
Paul Eggert
0ec30df603 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
FOO" to "defined (FOO)".
* lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
* lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
* lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
* tests/tools.at (ifnames): Likewise.
2006-01-24 00:20:15 +00:00
Ralf Wildenhues
72c832bf54 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
* lib/Autom4te/General.pm (mktmpdir): Likewise.
(END): Improve error message a bit.
Reported by Bruce Korb <bkorb@gnu.org>.
2006-01-21 09:09:46 +00:00
Ralf Wildenhues
9aa4f267b4 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
`-LIST:' and `-LNO:', for PathScale 2.3 compilers.
2006-01-12 19:43:29 +00:00
Stepan Kasal
b3863403ab 2006-01-11 Stepan Kasal <kasal@ucw.cz>
* doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
	requires sys/stream.h.  Reported by Oliver Kiddle.
2006-01-11 18:17:25 +00:00
Ralf Wildenhues
2fcca28cc4 * lib/autotest/general.m4 (AT_INIT): When ensuring writability
before the removals of test dirs, use `find' to avoid modification
of symlinked directories.
2006-01-11 08:33:16 +00:00
Ralf Wildenhues
a92cf9ac57 * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
Don't ignore the macro arguments.
2006-01-11 08:21:13 +00:00
Ralf Wildenhues
051cbf8f48 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
declaration that works for MSVC.
2006-01-11 08:17:17 +00:00
Ralf Wildenhues
2769bf9b11 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
Add `*.map' and `.inf' for Green Hills compiler.
Reported by Stefan Seefeld <stefan@codesourcery.com>.
2006-01-11 08:10:50 +00:00
Ralf Wildenhues
f124168ce6 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
correctly: pad with spaces after FIRST_PREFIX if necessary,
and compute string lenghts with `m4_qlen' instead of `m4_len'.
* lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
* tests/m4sh.at (AS_HELP_STRING): Test extended.
* NEWS: Updated.
Reported by numerous people, numerous times.
2006-01-11 08:05:55 +00:00
Paul Eggert
1d362e4bdb Update copyright year to 2006. 2006-01-06 00:11:16 +00:00
Paul Eggert
1fabda990f * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
* bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
* lib/autoconf/general.m4, lib/autoconf/status.m4:
* lib/autotest/general.m4:
Update copyright year to 2006.
2006-01-06 00:10:37 +00:00
Paul Eggert
f292fd9dd5 * Makefile.maint (sc_root_tests): Use recommend style s/a/b/ for
sed substitutions.
* doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
for file names, again.  Reported by Noah Misch.
(Coding Style): Explain that s|a|b| is preferred for file names.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
(AC_OUTPUT_MAKE_DEFS): Likewise.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
* tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
2006-01-06 00:02:26 +00:00
Paul Eggert
0ee621917a Fix Posix-conformance bugs re use of { command in sed scripts,
and improve the sed-related documentation a bit.
* doc/autoconf.texi (Installation Directory Variables): Use
our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
rather than "sed" when talking about Sed in general.
(Particular Programs): Likewise.
(Coding Style): y is like s with respect to / and ,.
(Limitations of Usual Tools): Document the weird restrictions
that Posix has about { }.  Use better quoting.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
Rewrite to conform to Posix rules about { } in sed scripts.
* lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
* tests/foreign.at (Libtool): Likewise.
* tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
Use our own style advice re 's,a,b,' versus 's|a|b|'.
2006-01-05 21:43:44 +00:00
Ralf Wildenhues
a3195854a5 * lib/autoconf/status.m4: Fix typo. 2006-01-05 15:17:47 +00:00
Ralf Wildenhues
f4dd19c75b * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
singly- or doubly-quoted arguments to `-cmdline', `-ignore',
`-def', for the benefit of Portland `pgf90 -Mipa'.
Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
2006-01-05 10:11:22 +00:00
Paul Eggert
8bf83c29b9 Update copyright (and other) dates to 2006. 2006-01-04 22:28:37 +00:00
Paul Eggert
edc9149f0c Update copyright year. 2006-01-04 22:27:06 +00:00
Paul Eggert
23f4bf3d33 * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
shell from zsh to bash.
2006-01-04 22:26:47 +00:00