Commit Graph

2756 Commits

Author SHA1 Message Date
Paul Eggert
da373fad14 * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff -u. 2005-06-08 20:27:51 +00:00
Derek Price
505d062d8f * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
renaming them since they are about to be redefined anyhow.
2005-06-08 18:54:23 +00:00
Derek Price
3a69199220 * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
redefined M4 macros to this node.  Document m4_include & m4_sinclude.
Move m4_undefine to alphabetical order.
2005-06-08 15:44:09 +00:00
Paul Eggert
45ee5fe26b * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
Tru64 ksh pattern matching bug.  Reported against Libtool by
Albert Chin <libtool@mlists.thewrittenword.com> and
Nicolas Joly <njoly@pasteur.fr>.
2005-06-08 07:55:28 +00:00
Paul Eggert
2fa1c5c37e * README: Recommend GNU M4 1.4.3 or later.
* doc/autoconf.texi (Introduction): Likewise.
Reword to avoid some formatting glitches.
Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
Clarify explanation of HP compiler bug.
Redo example output tp match current CVS snapshot.
Use @example.org in email addresses when the examples
might get inadvertently cut-and-pasted into user code.
Remove example of autom4te usage that doesn't seem to work now.
Use modern AC_INIT (except when the example is meant to be
shown with Autoconf 2.13).
Update ksh info for Solaris 9 and later.
KB -> kB.
Modernize description of Automake versions a bit.
Don't claim a future version of Autoconf is near.
Add [] to examples, so that the manual
follows its own advice about quoting better.
* doc/install.texi: Reword to avoid some formatting glitches.
2005-06-08 07:13:50 +00:00
Stepan Kasal
d354edbe65 Fix m4_cdr for one-member lists. 2005-06-06 08:47:02 +00:00
Stepan Kasal
160577c29c Simplify _AC_OUTPUT_HEADERS. 2005-06-06 08:21:08 +00:00
Stepan Kasal
74a787af12 Solaris' awk cannot take more than 99 fields. 2005-06-06 08:01:30 +00:00
Steven G. Johnson
b95e76c6da check for g95 in addition to gfortran 2005-06-05 18:46:03 +00:00
Stepan Kasal
f906445c01 Make sure autotest.m4f is up-to-date before using it. 2005-06-03 13:42:15 +00:00
Stepan Kasal
8491ef1eaa * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
(DISTCLEANFILES): Remove $(check_SCRIPTS).
2005-06-03 13:16:39 +00:00
Paul Eggert
b17b6485fb * lib/autotest/general.m4 (AT_INIT): Don't create a regular
expression of unbounded size when processing the --list option.
2005-06-02 23:30:39 +00:00
Paul Eggert
2fc0b2c9ba * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
* doc/autoconf.texi (Particular Headers): Reword example
for multiline stdbool replacement.
(Setting Output Variables): Reword text a bit.  Don't
give all the details about |#_!!_#|.
Reword description of line replacement.
2005-06-01 07:16:50 +00:00
Paul Eggert
4157a11dd9 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
now contain newlines, and substituted files must be referenced on
a line alone; the sed scripts to substitute them are now very
different.
(_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
commands can be put in a sed script portably.
* doc/autoconf.texi (Setting Output Variables): Document above
changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
use of multiline substitution.
* tests/torture.at: No longer expect substitution of newline to fail.
2005-06-01 06:54:45 +00:00
Paul Eggert
102586d8e0 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
From Ralf Menzel (trivial change).
2005-05-27 22:21:44 +00:00
Paul Eggert
f003e6431a * tests/local.at: Don't attempt to check for negated character
classes in shell scripts.  The test was too brittle.
2005-05-25 18:35:05 +00:00
Stepan Kasal
62f684c32e Don't use "shift 2". 2005-05-25 06:45:11 +00:00
Stepan Kasal
6818abb033 Combine the changelog entries 2005-05-24 07:55:29 +00:00
Stepan Kasal
7799e704a2 (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo commands 2005-05-24 07:32:13 +00:00
Stepan Kasal
e96830f886 (_AS_ECHO_LOG): New macro 2005-05-24 07:29:57 +00:00
Stepan Kasal
9f639eb48d (AS_ESCAPE): Make the pattern a bit simpler 2005-05-24 07:27:55 +00:00
Stepan Kasal
e7d74c4c5d Move _AS_ECHO_UNQUOTED lower; no code change. 2005-05-24 07:27:15 +00:00
Stepan Kasal
f014f06e6b (m4_ifset): Use m4_ifval. 2005-05-24 07:25:32 +00:00
Stepan Kasal
fbcb298898 Merge the two error messages when ac_unique_file is not found. 2005-05-24 07:24:49 +00:00
Stepan Kasal
220d13fef6 Simplify end of AC_CONFIG_MACRO_DIR 2005-05-24 07:21:43 +00:00
Stepan Kasal
cd4c627338 Make more use of "shift 2" in option processing. 2005-05-24 07:20:42 +00:00
Stepan Kasal
9b3856e4df Merge the two rules for creating scripts. 2005-05-24 06:14:27 +00:00
Stepan Kasal
457e247cc7 Make AC_MSG_RESULT_UNQUOTED obsolete 2005-05-24 06:12:10 +00:00
Stepan Kasal
53466e6d2b typo 2005-05-20 12:07:02 +00:00
Stepan Kasal
8641b608b5 make top_builddir consistent with Automake 2005-05-20 08:13:15 +00:00
Stepan Kasal
661cc613b0 Simplify the init of confdefs.h 2005-05-20 07:58:42 +00:00
Stepan Kasal
ae53380796 (m4_text_wrap): Don't m4_quote the second argument to m4_foreach. 2005-05-17 09:49:36 +00:00
Stepan Kasal
0a2545966e Use expr where possible. 2005-05-17 09:29:05 +00:00
Alexandre Duret-Lutz
0f41ecbc90 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
as on 2005-05-02.
* doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
Mention LIBOBJDIR.
2005-05-14 18:33:30 +00:00
Paul Eggert
681d17dce2 Update FSF postal mail address. 2005-05-14 07:00:38 +00:00
Stepan Kasal
90e4ad679a (AC_CONFIG_LIBOBJ_DIR): Remove the broken check. 2005-05-13 09:17:15 +00:00
Paul Eggert
d2e7431e9e * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
of absolute paths.
2005-05-12 23:46:42 +00:00
Stepan Kasal
9ce265f05c * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
for absolute directory names in one loop.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
  abbreviations of --version and --debug.
2005-05-12 11:26:07 +00:00
Paul Eggert
8620019f37 * doc/autoconf.texi (Autoconf Language): Be more precise about
quoting.
2005-05-10 23:37:57 +00:00
Paul Eggert
f5b265430a Fix C++ related problems reported by Werner Lemberg.
* doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
* lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
* lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
avoid problems with C++ and throw.
* tests/compile.at: .cpp, not .cc.
2005-05-06 05:34:43 +00:00
Paul Eggert
2bbfc560b5 * doc/autoconf.texi (Generic Functions): Typos. 2005-05-05 08:13:25 +00:00
Gary V. Vaughan
1dab064d21 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
set by latest automake.
2005-05-02 20:14:49 +00:00
Paul Eggert
527fddd987 "expr '' \| ''" outputs 0 on GNU/Linux these days. 2005-05-02 05:47:11 +00:00
Paul Eggert
de539558d5 * doc/autoconf.texi (Limitations of Builtins): Describe "set -" problems. 2005-04-29 22:05:38 +00:00
Paul Eggert
c3544003c0 * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
not newline.
2005-04-29 21:17:26 +00:00
Paul Eggert
fd5a3dc3d0 * doc/autoconf.texi (Autoconf Language): Add more description
about quoting heuristics.
2005-04-29 19:22:55 +00:00
Stepan Kasal
8d0c69eb25 . 2005-04-29 13:36:23 +00:00
Stepan Kasal
5d62f91042 Fix a mistake in an example: AC_DEFINE_UNQUOTED -> AC_DEFINE. 2005-04-29 13:16:55 +00:00
Stepan Kasal
4ca5cf6fd2 A tiny optimization in _AC_OUTPUT_HEADERS. 2005-04-27 10:04:36 +00:00
Stepan Kasal
5adc3cae53 FIXMEs about quadrigraphs in help text. 2005-04-22 06:37:24 +00:00
Paul Eggert
54cb4d63c8 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
Remove core.conftest.* too; it's generated by Tru64 5.1.
* lib/autoconf/functions.m4
(AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
Don't bother to remove core files; AC_RUN_IFELSE should do that for you.
2005-04-20 05:34:25 +00:00
Stepan Kasal
edb835c2ff typo 2005-04-19 06:20:37 +00:00
Alexandre Duret-Lutz
75912460a6 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
Report from Horst Wente.
2005-04-19 06:00:35 +00:00
Stepan Kasal
37482b404d typo 2005-04-15 08:36:56 +00:00
Stepan Kasal
fbbc2c6023 Examples for --with-* and --enable-*. 2005-04-14 14:56:55 +00:00
Paul Eggert
b09065e337 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
as well as configure.in.  Problem reported by Gregorio Guidi.
2005-04-13 17:01:41 +00:00
Paul Eggert
93d7f03800 * doc/autoconf.texi (Particular Functions): Use gnulib's current
pattern for alloca snippet.
2005-04-10 22:19:51 +00:00
Stepan Kasal
76aa0e4c11 a typo 2005-04-04 10:19:10 +00:00
Stepan Kasal
f5ea1ec089 a typo 2005-04-01 08:55:58 +00:00
Paul Eggert
3123dd20ab * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
fails if %s isn't supported.
2005-04-01 07:28:15 +00:00
Paul Eggert
1ab98b87ae * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
Merge `-z option' as well for the benefit of Solaris link flags.
2005-03-23 19:41:13 +00:00
Paul Eggert
789f0bf6ff * NEWS: The configure command now warns you if you attempt to use
a directory whose name contains a special character like space,
newline, or "\".
* doc/autoconf.texi (Installation Directory Variables): Allow
"," in file names.  Do not use \@; it's not a portable regexp.
* bin/Makefile.am (edit): Likewise.
* lib/Makefile.am (edit): Likewise.
* tests/Makefile.am (edit): Likewise.
* tests/semantics.at: Likewise.
* tests/torture.at: Likewise.
* lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
* lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
* doc/autoconf.texi (File System Conventions): Warn about
unportable file names.
* lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
(AC_INIT): Use it.
(_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
ac_pwd, and quote srcdir.
* lib/autotest/general.m4 (AT_INIT): Quote file name args.
2005-03-23 01:01:58 +00:00
Paul Eggert
96e362a44d * doc/autoconf.texi: Fix some systematic formatting problems.
".)"  needs a following @: if not at the end of a sentence, and
similarly for "!)".  "etc." should be preceded by a comma.
"n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
(Input): Mention that AC_CONFIG_AUX_DIR's
argument is often called 'build-aux'.
2005-03-22 19:24:05 +00:00
Stepan Kasal
67cdabe80f typos in the manual 2005-03-10 12:17:03 +00:00
Stepan Kasal
0bf7d67f6d remind that AC_TRY_LINK is obsolete 2005-03-08 08:11:34 +00:00
Stepan Kasal
4cb653bd0d improve AC_PROG_CC and AC_PROG_CXX 2005-02-25 08:52:48 +00:00
Paul Eggert
29373c6512 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
/dev/null, as "configure" shouldn't read stdin, and this insulates
us from problems (e.g., when testing for "cl").  Also, do this
redirection before invoking "hostname" or "uname", and keep the
original input stream available via...
(AS_ORIGINAL_STDIN_FD): ... this new macro.
(_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
bother with "</dev/null" since it's now done at the top of
'configure'.
* lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
* lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
* lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
* doc/autoconf.texi (File Descriptor Macros): New section.
(Printing Messages): Mention it.
* tests/base.at (Input/Output): New test.
2005-02-23 23:24:49 +00:00
Paul Eggert
f79094658c * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
newline if neither \c nor -n work, as that would output two
newlines.  Prefer -n to \c.
2005-02-23 19:26:51 +00:00
Stepan Kasal
7192963509 m4_defun([AS_IF], [...]) 2005-02-15 06:40:21 +00:00
Paul Eggert
c5c40b0e69 Undo previous change, except keep the change to
lib/autoconf/programs.m4 that replaced grep with shell
pattern-matching.  This is because net-snmp configure reads stdin.
2005-02-13 07:38:31 +00:00
Paul Eggert
5c70aeca3f * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
from /dev/null, as "configure" shouldn't read stdin, and this
insulates us from problems (e.g., when testing for "cl").
Suggested by Alexandre Duret-Lutz.  Also, do this redirection
before invoking "hostname" or "uname".
(_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
_AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
* lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
"</dev/null" since it's now done at the top of 'configure'.
* lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
* lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
Also, replace grep with shell pattern-matching, to save a process.
2005-02-11 19:12:29 +00:00
Paul Eggert
deae038e8f * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
_AC_LINK_IFELSE): Redirect stdin to /dev/null.
2005-02-11 00:40:50 +00:00
Paul Eggert
d3db088f19 * doc/autoconf.texi (Limitations of Usual Tools): Document that
grep -q isn't portable.  Improve grep -s explanation.
2005-02-10 00:41:40 +00:00
Paul Eggert
d288cf1ed9 * doc/autoconf.texi (Special Shell Variables): Clarify
PATH_SEPARATOR wording; fix typo in IFS.
2005-02-08 17:27:23 +00:00
Paul Eggert
89abd2994a Several minor changes to autoconf.texi. 2005-02-08 00:35:29 +00:00
Paul Eggert
5b07dac31a Today's changes (mostly from Noah Misch). 2005-02-05 08:31:02 +00:00
Paul Eggert
b14f11eb55 Today's checkins. 2005-02-05 00:46:16 +00:00
Paul Eggert
7f676501a2 Today's changes. 2005-02-04 08:36:06 +00:00
Paul Eggert
c6e9c80b78 m4_require improvements, doc fixes, sync from gnulib. 2005-02-01 00:34:18 +00:00
Paul Eggert
3dc1438931 *** empty log message *** 2005-01-29 01:08:44 +00:00
Paul Eggert
8afb8f8e62 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when this is safe.
* lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
* lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
* tests/mktests.sh: Likewise.
2005-01-28 21:21:32 +00:00
Akim Demaille
cdd416b0fe Have autoheader honor --force.
* doc/make-stds.texi, doc/standards.texi: Update from masters.
* lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
* lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
from masters, so that FileUtils.pm's update_file provide --force
support.
* bin/autoheader.in: Pass $force to update_file so that
config.h.in is always recreated when --force.
2005-01-27 10:53:41 +00:00
Stepan Kasal
4c98943ec6 update Peter Simons' address 2005-01-24 12:24:01 +00:00
Stepan Kasal
23db97463a a typo 2005-01-22 14:59:27 +00:00
Paul Eggert
2d0b9b4b34 * doc/autoconf.texi (Limitations of Builtins): Clarify that
"if test -d foo; ..." is portable.
2005-01-21 19:32:21 +00:00
Stepan Kasal
4c38a43946 fix AC_DEFINE documentation 2005-01-20 10:59:55 +00:00
Paul Eggert
c1e9cd093e * doc/autoconf.texi (Limitations of Usual Tools): Document bug
in Solaris 8 join.
2005-01-13 21:03:50 +00:00
Stepan Kasal
230ad18242 fix a comment and typos 2005-01-06 10:02:45 +00:00
Paul Eggert
6647a89175 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
ulongval to be static.
2005-01-05 14:04:11 +00:00
Alexandre Duret-Lutz
cebb4afe8c * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
datadir, infodir, and mandir.  Adjust argument parsing code.
(_AC_INIT_HELP): Update help text.
* doc/autoconf.texi (Installation Directory Variables): Document
new variables.
2005-01-05 07:53:52 +00:00
Paul Eggert
ef8419581f * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
not seem to work, assume it does set $(MAKE).
* doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
2005-01-04 23:50:00 +00:00
Stepan Kasal
dcc0cb5d67 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting. 2005-01-03 23:32:35 +00:00
Stepan Kasal
1ab31b92c5 A cleanup of the diversion support in m4sugar. 2005-01-03 22:54:21 +00:00
Paul Eggert
2f9bbd9f62 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
Workarounds for documented `case' limitations.
2005-01-03 21:55:00 +00:00
Paul Eggert
c7a560937c * doc/autoconf.texi (Limitations of Usual Tools): Warn about
sed 'command1;command2'.
2005-01-03 08:32:02 +00:00
Paul Eggert
36fab699bd Add support for C89 vs C99. Update copyright dates. 2005-01-03 07:43:25 +00:00
Paul Eggert
8660164d69 * bin/autoreconf.in (autoreconf_current_directory): AM_INIT_AUTOMAKE
signals that the package uses Automake; a `Makefile.am' is typical but
not essential.  Reported by Magnus Therning.
* tests/torture.at (autoreconf.): New banner.
(autoreconf and non-AC configure): Rename to `Non-Autoconf
AC_CONFIG_SUBDIRS'.
(autoreconf an empty directory): Rename to `Empty directory'.
(Unusual Automake input files): New test.
2005-01-02 17:15:40 +00:00
Paul Eggert
8cf50071d7 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
If the variable to set is already set, set ac_cv_path_$1
to the preset value.
2005-01-02 16:48:44 +00:00
Paul Eggert
778ced2bda * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
(AT_SETUP): Clear AT_capture_files.
(_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
(AT_KEYWORDS): Fix comment typo.
* tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
* tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
* doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
2005-01-01 08:12:12 +00:00
Paul Eggert
fd2691e7e2 Undo unnecessary 2nd part of previous change to m4sh.m4. 2005-01-01 07:54:40 +00:00
Paul Eggert
d992a7ce41 * BUGS (Minor Problems): Warn about makefile limitations.
* Makefile.am: Find and update `INSTALL' in $(srcdir).
* man/Makefile.am: Find and update manual pages in $(srcdir).
2004-12-29 06:54:44 +00:00
Paul Eggert
5ad4560f86 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
shells in subshell.
2004-12-25 07:50:01 +00:00
Paul Eggert
506530e5f9 * doc/autoconf.texi (Limitations of Builtins) <case>, <read>. 2004-12-22 21:50:28 +00:00
Akim Demaille
6834e94321 * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
avoid cluttering displayed messages.  Rather, prepend srcdir where
AT_LINE is used for log files.
2004-12-22 13:29:09 +00:00
Stepan Kasal
9655f04da2 * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
* lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
  no longer part of the macro, quote the occurrence of ``$tmp''.
* doc/autoconf.texi (Forbidden Patterns): Typo.
2004-12-21 14:24:01 +00:00
Akim Demaille
fa96c5a632 * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
separated from the test title by forcing a white space.
2004-12-21 12:47:57 +00:00
Akim Demaille
337a92a529 Enable Emacs navigation within testsuite.log files.
* lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
use the compilation mode.
(AT_LINE): Point to the srcdir.
2004-12-21 12:25:08 +00:00
Paul Eggert
ea190d85f1 Pass TESTSUITEFLAGS. 2004-12-20 04:10:21 +00:00
Paul Eggert
b788fb9a74 * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
* lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
2004-12-19 14:40:36 +00:00
Paul Eggert
1a135aaa8d * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
(_AT_CHECK): Use it.
* lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
(AS_ESCAPE): Fix comment.
* tests/autotest.at: Adjust section banner comments.
(AT_CHECK_AT): Accept STATUS and STDERR.
(AT_CHECK_AT_TEST): Likewise.
(Invalid brace-enclosed parameter expansion)
(Multiline command from M4 expansion)
(Double-M4-quoted command): New tests.
2004-12-19 14:25:56 +00:00
Paul Eggert
68b14fa353 * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2. 2004-12-18 00:44:52 +00:00
Akim Demaille
2e8bb72892 * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
m4_pattern_allow.
Suggested by Alexandre Duret-Lutz.
* doc/autoconf.texi (Setting Output Variables): Catch up.
2004-12-17 16:17:18 +00:00
Stepan Kasal
04c2cc1dbc * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment. 2004-12-17 14:41:16 +00:00
Stepan Kasal
bc1b400cc4 * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
remove the comment which said we cannot.
2004-12-17 14:36:23 +00:00
Stepan Kasal
bf15a42ad1 Add a specialized check for resolv.h. Thanks to Gerrit P. Haase,
Reini Urban and Paul Eggert for reporting the dependencies.

* lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
* doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
(AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
2004-12-17 14:32:51 +00:00
Stepan Kasal
b26f03d5be * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
so that eg. ``autoscan --help'' doesn't truncate it.
2004-12-17 14:21:50 +00:00
Paul Eggert
632f88fbc0 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove generated
conftest files.
2004-12-15 22:37:46 +00:00
Paul Eggert
bea2437161 * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
tracing on commands with possibly-escaped newlines.
* doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
discontinued behavior and its implications.
* tests/autotest.at (BS-newline in command, ^BS-newline in command)
(BSx641-newline in command, BS-BS-newline in command)
(BSx640-newline in command, Newline-CODE-BS-newline in command)
(Single-quote-BS-newline in command)
(Single-quote-newline-BS-newline in command): New tests.
2004-12-14 01:04:25 +00:00
Paul Eggert
a090c3988a * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
on platforms where it works.
(_AS_TEST_PREPARE): Test for ``test -x''.
(_AS_BROKEN_TEST_PREPARE): Nuke.
2004-12-13 18:22:55 +00:00
Paul Eggert
5d3ad5cb5a * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
  give only 4-letter prefix to AS_TMPDIR, comment fixed.
* lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
  create the temporary directory.
  (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
2004-12-13 17:58:03 +00:00
Paul Eggert
498b9c8446 * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found. 2004-12-13 07:15:26 +00:00
Alexandre Duret-Lutz
84bb23ef6f * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo. 2004-12-12 11:56:40 +00:00
Paul Eggert
37fb0cb6be Don't use negated character sets. 2004-12-12 09:51:10 +00:00
Paul Eggert
56f937c296 Simplifications to bin/Makefile.am and man/Makefile.am. 2004-12-10 23:57:42 +00:00
Paul Eggert
04dcf25d6e * bin/.cvsignore: Add autoconf.in.
* tests/.cvsignore: Add wrapper.in.

* man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.

* lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.

* tests/autotest.at: New file.
* tests/suite.at: Include it.
* tests/Makefile.am: Distribute it.

* lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
  shell tracing on a command that could contain multiple lines.
* doc/autoconf.text: Document that fact and its implications.
* lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
* tests/autotest.at (Multiline backquote command substitution,
  Multiline parameter expansion, Literal multiline command,
  Multiline parenthetical command substitution): Remove XFAIL.
2004-12-10 07:08:52 +00:00
Paul Eggert
61966b580a * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes. 2004-12-10 05:00:17 +00:00
Paul Eggert
0557a75b76 * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
and suggest AC_SEARCH_LIBS.
2004-12-09 21:32:05 +00:00
Paul Eggert
5574d5b7ba * configure.ac (test suite): Cease to generate wrapper scripts.
* configure: Regenerate.
* lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
(m4f_dependencies): Adjust accordingly.
* tests/Makefile.am (Wrappers): Generate wrapper scripts.
(wrapper.in): Generate it in the build directory.
(MAINTAINERCLEANFILES): Delete wrapper.in.
(CLEANFILES): Add wrapper.in.
* tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
the output.  Replace each $as_me with a @wrap_program@.
* tests/wrapper.in: Delete it; we always build it.

* bin/Makefile.am (autoconf.in): Generate it in the build directory.
(EXTRA_DIST): Remove autoconf.in.
(CLEANFILES): Add autoconf.in.
(autoconf): Find autoconf.in in the build directory.
* bin/autoconf.in: Delete it; we always build it.
2004-12-09 21:14:45 +00:00
Paul Eggert
c567224651 * lib/autotest/general.m4 (AT_INIT): Replace a tr' with a sed'. Join
PATH members so as to not prepend an empty element.  Move a comment.
* Makefile.am (SUBDIRS): Build in `tests' last.
* tests/Makefile.am (installcheck-local): Add check-local dependencies.
2004-12-09 21:01:37 +00:00
Paul Eggert
dee725cb84 * lib/mdate-sh: Don't use "set - x$ls_command /". 2004-12-08 20:37:41 +00:00
Paul Eggert
34fa7e5287 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
patch: extra "-l"s.
2004-12-07 18:23:06 +00:00
Paul Eggert
3077af0f26 Add support for UNICOS getmntent. 2004-12-06 21:24:19 +00:00
Paul Eggert
636a864089 * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
out the common code to ...
(_AC_DEFINE_Q).
2004-12-05 19:55:44 +00:00
Paul Eggert
26fc6c2b61 * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use "char c = '\200';". 2004-12-02 21:51:06 +00:00
Paul Eggert
b9bc8e0a42 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89. 2004-12-02 20:09:23 +00:00
Paul Eggert
389b830ea8 Minor rewording to fix problems reported by Ralf Wildenhues. 2004-11-29 21:43:33 +00:00
Paul Eggert
3f0a1ceaad * NEWS: Add ^L above each release. 2004-11-29 21:25:15 +00:00
Paul Eggert
76da3417c6 * HACKING: Refer to "coreutils", not "File, Shell or Text utils".
* lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
2004-11-29 04:34:31 +00:00
Paul Eggert
f72fc4eb29 Fix documentation problems reported by Russ Boylan in
<http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
along with some nearby cruft.
* doc/autoconf.texi (Libtool): Libtool can be used without
Automake (not without Autoconf).
(Introduction): Mention lists.gnu.org.
* BUGS: Don't mention bugs.gnu.org.
Remove mention of ancient libtool compatibility problem.
* NEWS: Mention that bugs.gnu.org is kaput.
* README: Likewise.  Mention where mailing list archives can be found.
2004-11-29 04:29:08 +00:00
Paul Eggert
a9f8c9f48e * doc/autoconf.texi (Pretty Help Strings): Go back to single-quoting 2004-11-26 08:58:50 +00:00
Paul Eggert
09158bc896 * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Expand $1.
* doc/autoconf.texi (Pretty Help Strings): more fixes
2004-11-23 19:13:33 +00:00
Paul Eggert
bbf4de9810 * doc/autoconf.texi (Pretty Help Strings): Fix typo. 2004-11-23 09:01:18 +00:00
Paul Eggert
2749e0cd5b * doc/autoconf.texi: Explain overquoting in descriptions. 2004-11-22 23:32:25 +00:00
Paul Eggert
d134956a15 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Move test. 2004-11-16 18:05:25 +00:00
Paul Eggert
7902e0d285 Avoid cp -r. 2004-11-11 00:13:32 +00:00
Paul Eggert
b518346d1f * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
limitations.
2004-11-10 21:59:55 +00:00
Paul Eggert
9bf04c6b54 * doc/autoconf.texi (Shellology, Special Shell Variables): Document that the Zsh
problem with NULLCMD was fixed in zsh 3.1.6-dev-18.
2004-10-11 21:42:05 +00:00
Paul Eggert
0952c34e3c * doc/autoconf.texi (One-Shot Macros): New node.
Also, wording fixups.
2004-10-11 20:26:01 +00:00
Paul Eggert
51d68951c9 * doc/autoconf.texi (Function Portability): Fix misdescription of putenv. 2004-09-28 17:23:40 +00:00
Paul Eggert
19b14c7967 Fix AC_AU_DEFUN bug. 2004-09-22 18:05:26 +00:00
Paul Eggert
f9ba7844be Fix OS/2 problems reported by Andreas Buening. 2004-09-05 22:27:17 +00:00
Paul Eggert
6ecc3e6bdb * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Clear ac_x_includes when needed. 2004-09-05 03:30:29 +00:00
Paul Eggert
2dddd6c450 * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
three args in examples.
2004-09-04 04:52:38 +00:00
Akim Demaille
fac3ef22a9 * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
"case" to restore ordering.
Reported by Stepan Kasal.
2004-09-02 07:30:25 +00:00
Akim Demaille
a626e04317 * doc/autoconf.texi: Typos and stylos. 2004-08-26 12:40:00 +00:00
Paul Eggert
935c28b108 Bump to 2.59c. 2004-08-21 00:12:02 +00:00
Paul Eggert
301517bd85 Autoconf 2.59b. 2004-08-20 23:59:22 +00:00
Paul Eggert
6b1c07685a Use "file name" rather than "filename" or "path",
to be consistent with the terminology of the GNU coding standards.
2004-08-20 19:58:06 +00:00
Paul Eggert
d4f7aabdf1 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
AC_C_LONG_DOUBLE): Undo 2004-06-04 change.
2004-08-20 07:01:28 +00:00
Paul Eggert
bfc2ff1489 Fixes to support spaces in the name of the build directory. 2004-08-20 06:24:32 +00:00
Paul Eggert
fb365a2e0d Add isinf, isnan stuff. 2004-08-12 21:54:04 +00:00
Paul Eggert
7a8ea3e87f * lib/Autom4te/General.pm (END): Return correct exit status even
if unlink succeeds and sets $?.
2004-08-12 17:24:40 +00:00
Paul Eggert
76fb11e7fe * tests/torture.at (Deep Package): Use configure.in, not configure.ac. 2004-08-09 23:14:57 +00:00
Paolo Bonzini
c5a18316e0 Added Nathanael Nerode to ChangeLog entry for AC_CHECK_TARGET_TOOL. 2004-08-04 09:18:34 +00:00
Alexandre Duret-Lutz
cc27a4753f * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
(AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
* lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
* doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
* lib/autom4te.in (Automake-preselections): Preselect
AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
2004-08-03 22:06:09 +00:00
Alexandre Duret-Lutz
a86400c06f * lib/autom4te.in (Automake-preselections): Preselect
AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
trace them.
2004-08-01 22:30:34 +00:00
Paul Eggert
e216d5cb77 Document pdksh POSIX problem. 2004-07-30 00:34:44 +00:00
Paul Eggert
621101c872 Mention BIN_SH. 2004-07-29 22:30:15 +00:00
Paul Eggert
c652094d91 Use "set -o posix" with pdksh, too. 2004-07-27 20:15:15 +00:00
Paul Eggert
8dcb87fb42 * lib/m4sugar/m4sh.m4:
Don't fail if ENV, MAIL, MAILPATH, LC_ALL, etc. are read only.
2004-06-24 15:00:29 +00:00
Paul Eggert
c41d505cbc * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
zsh, disable GLOB_SUBST.
2004-06-24 07:07:39 +00:00
Paul Eggert
091c734d9a Warn about names like "aux". 2004-06-04 20:40:33 +00:00
Paul Eggert
8f94c94fe5 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division by zero. 2004-06-04 19:39:51 +00:00
Paul Eggert
9a76187b8c Fix AC_C_LONG_DOUBLE C89 compatibility problem. 2004-06-02 23:48:18 +00:00
Kevin Ryde
91806b7496 * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
malloc(0) and realloc(NULL,size).
2004-06-02 23:14:35 +00:00
Kevin Ryde
b8e9e1a8db * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
Bob Proulx.
2004-06-02 22:52:31 +00:00
Paul Eggert
89d95a47eb Detect _Bool bug in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. 2004-06-01 05:33:27 +00:00
Paul Eggert
d3ac02e267 Mention that ! COMMAND can be rewritten using if-then-else. 2004-05-26 17:56:18 +00:00
Paul Eggert
01ccc31a6e Fix doc typo. 2004-05-25 18:50:06 +00:00
Paul Eggert
e6eb550c4d Fix autoconfdir to match comment. 2004-05-24 23:29:25 +00:00
Paul Eggert
3999390896 AC_FUNC_MBRTOWC: Don't assume that a function F exists merely because
the compiler and linker let you compile an expression like (F != 0).
2004-05-24 23:18:04 +00:00
Paul Eggert
77cf219604 Standardize on the spelling of "Unix". Explain !'s problems. 2004-05-24 19:24:20 +00:00
Alexandre Duret-Lutz
ac2dfd9caa * lib/autom4te.in (Automake-preselections): Preselect
LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
2004-05-22 21:58:19 +00:00
Kevin Ryde
7b79456598 * doc/autoconf.texi (Function Portability): Add strerror_r, cross
referencing AC_FUNC_STRERROR_R.
* doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
note pessimistic assumption when cross compiling.
2004-05-19 01:54:27 +00:00
Paul Eggert
4b794c38d7 Document sh -e problem with subcommands. 2004-05-17 04:56:48 +00:00
Paul Eggert
278cbdd51f Don't prepend blanks to PATH in AC_PROG_GREP and AC_PROG_SED. 2004-05-10 18:54:18 +00:00
Paul Eggert
11ee0ab5f5 Port to C99, which requires that 'exit' be declared. 2004-05-03 20:15:44 +00:00
Paul Eggert
b3b81694da Regenerate. 2004-05-03 06:50:48 +00:00
Paul Eggert
2ca60bb81f * configure.ac (AC_PROG_GREP): Add.
* lib/freeze.mk (GREP): New macro.
2004-05-03 06:20:09 +00:00
Paul Eggert
2632aa6e7b Prefer 'grep' implementations that accept -e. 2004-05-03 05:54:17 +00:00
Gary V. Vaughan
883a232738 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
how deeply nested we are when a suitable tool is found, set the
ac_path_TOOL_found flag.
(_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
nested we are in this macro.  Break out of all 3 nested loops if
ac_path_TOOL_found is set.
2004-04-23 10:24:32 +00:00
Gary V. Vaughan
94c540e872 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
of the _AS_PATH_WALK loop too if GNU flavor is found.
2004-04-21 13:04:56 +00:00
Alexandre Duret-Lutz
d8d1f67499 * doc/autoconf.texi (Limitations of Make): Update documentation
for `$<'.  New entry `Long lines', based on a report from Simon
Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
paragraph about DJGPP, based on a mail from Richard Dawe.
2004-04-21 08:23:18 +00:00
Paul Eggert
59dc5be4fd Log changes to tests/c.at, lib/autoconf/c.m4, doc/autoconf.texi,
lib/autoconf/lang.m4.
2004-04-20 20:20:09 +00:00
Gary V. Vaughan
265fcd3986 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
best tool so far counter rely on the tool path variable name to
avoid checks for one tool being affected by the results of running
the length check on a previous tool.
2004-04-20 19:16:34 +00:00
Gary V. Vaughan
0d06ecdc76 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
match expression argument, as different greps have different
regular expression flavours.
(AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
literals.
(AC_PROG_EGREP): Pass 'EGREP$'.
(AC_PROG_GREP): Pass 'GREP$'.
2004-04-20 19:09:22 +00:00
Gary V. Vaughan
f959e7f2ed * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
2004-04-20 16:54:35 +00:00
Paul Eggert
7bcfe7aa19 Use 'long int', 'short int', 'unsigned int'
etc. consistently instead of 'long', 'short', 'unsigned' etc.
2004-03-30 07:55:25 +00:00
Paul Eggert
4d1bb4117e AC_STRUCT_TIMEZONE now defines HAVE_DECL_TZNAME if it is declared,
when HAVE_STRUCT_TM_TM_ZONE is not defined.
2004-03-28 21:51:10 +00:00
Steven G. Johnson
b70d1ce7fd fix sed quoting; portland-group fortran compiler parsing; new fortran compiler names 2004-03-28 20:46:38 +00:00
Kevin Ryde
5037415422 (Specifying Names): Move cross_compiling ovindex to
(Run Time): ... here, where it's now mentioned.
2004-03-24 23:05:00 +00:00
Alexandre Duret-Lutz
9d30c9595d * doc/autoconf.texi (autom4te Invocation): Language Autoconf
inherits from language Autoconf-without-aclocal-m4.
(Customizing autom4te): Adjust example; the cache must now be
disabled for language Autoconf-without-aclocal-m4.
2004-03-20 06:33:12 +00:00
Paolo Bonzini
e09a76cd5a 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
* lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
	AC_CHECK_TOOLS): Warn if a cross-tool is found without
	a prefix.
	(AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
	AC_CHECK_TARGET_TOOLS): New macros.
	* doc/autoconf.texi (Generic Programs): Document
	(AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
	AC_CHECK_TARGET_TOOLS, and warn for future changes
	in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
	AC_CHECK_TOOLS.
	(Specifying Names): Document the reason for these future
	behavioral changes.
	* tests/mktests.sh: Do not generate tests for the
	new macros.
	* NEWS: Document these changes.

	* doc/autoconf.texi: Avoid macros with unbraced arguments,
	they make TeX hang up.
2004-03-19 08:57:51 +00:00
Paul Eggert
1af3ee05ac Add AC_CHECK_ALIGNOF. 2004-03-15 22:00:05 +00:00
Paul Eggert
837c0ccc76 Don't use $< in makefiles where POSIX doesn't allow it;
add @configure_input@ in a couple of other places.
2004-03-03 21:40:46 +00:00
Gary V. Vaughan
f2b269d60b * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
from the next generation of Libtool.
* lib/autom4te.in (Autoreconf-preselections): Ditto.
2004-02-23 08:27:51 +00:00
Alexandre Duret-Lutz
2b0361107e * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
is not always thread-safe.  Report from Nathanael Nerode.
2004-02-19 23:21:41 +00:00
Paul Eggert
480a58665b Fix a dependencies problem, stemming from a Autoconf 2.59 build
problem on QNX reported by Stephen Rasku in
<http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
2004-02-18 21:34:44 +00:00
Paul Eggert
a2e13401e1 *** empty log message *** 2004-02-09 21:30:27 +00:00
Paul Eggert
3eef4058db (Setting Output Variables): Emphasize that
AC_SUBST provides no portable way to escape literal newlines.
2004-02-09 21:19:32 +00:00
Paolo Bonzini
6b2d30f409 * doc/autoconf.texi (AU_DEFUN): Fix English,
suggested by Paul Eggert.
* lib/autoconf/autoupdate.m4: Correct reference to
acobsolete.m4, suggested by Alexandre Duret-Lutz.
2004-02-03 23:07:30 +00:00
Paolo Bonzini
7c1b2b4c78 * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
(AS_INIT): Output shell initialization there. Removed optional
parameter. Expand _AS_SHELL_FN_SPY.
(AS_INIT_WITH_SHELL_FN): Removed.
(_AS_SHELL_FN_SPY): New macro.
(AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
macros.
(AS_SHELL_SANITIZE): Remove loop to find better shell
and documentation for the parameter.
(_AS_DETECT_BETTER_SHELL): Move it here.
(_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
(_AS_RUN): Move it here, support testing with eval.
(AS_REQUIRE_SHELL_FN): Require shell functions when
it is used.
(_AS_LINENO_WORKS): Put around braces, we do not
trigger the bash bug anymore.
* lib/autotest/general.m4: Document M4SH-SANITIZE, do not
use AS_INIT_WITH_SHELL_FN.
* bin/autoconf.in, tests/wrapper.in: Regenerated.
2004-01-30 14:29:18 +00:00
Paolo Bonzini
9cfd0271c1 * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
* doc/autoconf.texi: Don't say that the third parameter
is broken.
* lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
(AU_DEFUN): Honor the third parameter, create autoupdate
macros with AU_DEFINE.
* lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
AC_DIR_HEADER): Use AU_DEFUN's third parameter.
* lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
* lib/autoconf/programs.m4 (AC_RSH): Likewise.
* lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
AC_XENIX_DIR): Likewise.
* lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
* lib/autoconf/status.m4: Remove FIXME.
* tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
that the macro is not present anymore in the updated
configure.ac.
* tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
of autoupdate.
2004-01-30 14:21:35 +00:00
Paul Eggert
d73f38a0cd Update copyright years. 2004-01-28 22:21:16 +00:00
Gary V. Vaughan
d2e80858b8 * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
grep or ggrep program in PATH that accepts as long lines as
possible.
* lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
AC_PROG_GREP.
(AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
egrep and fgrep respectively if $GREP -E/-F don't work.
(_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
_AC_PROG_GREP, and AC_PROG_SED.
(_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
longest input length accepted by a command.
(AC_PROG_SED): Use it.
* doc/autoconf.texi (Particular Programs): Document the changes.
* NEWS: Updated.
2004-01-27 20:07:12 +00:00
Paul Eggert
4a6e2542ea * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update copyright from
2003 to 2004.
2004-01-27 19:52:55 +00:00
Paul Eggert
5f8650d8c3 Resync and/or copy from original sources. 2004-01-27 19:25:05 +00:00
Paul Eggert
62ac9bbfeb Include <stdint.h> even if HAVE_INTTYPES_H is defined. 2004-01-26 23:28:56 +00:00
Gary V. Vaughan
f74f53b7c8 * lib/autoconf/programs.m4 (AC_PROG_SED): New macro to test for a
non-truncating sed or gsed program in PATH.
* tests/acprograms.at: Add it.
* doc/autoconf.texi (Particular Programs): Document it.
* NEWS: Updated.
2004-01-23 08:21:51 +00:00
Paul Eggert
989d244f81 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
-std1 disables some useful extensions on Tru64.
2004-01-15 18:20:51 +00:00
Paul Eggert
3cbad6e408 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
Test for dir before calling mkdir -p.  (trivial changes)
* doc/autoconf.texi: Document this.
2004-01-14 20:27:30 +00:00
Paul Eggert
39da25a1d2 Grammar fixes. 2004-01-14 18:36:58 +00:00
Paul Eggert
6e4d00fa69 * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
2004-01-13 18:36:54 +00:00
Jim Meyering
d75addc13b *** empty log message *** 2004-01-10 16:40:09 +00:00
Paul Eggert
d22e7cb9e4 * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
with `autoconf -Wall,error'.
2004-01-10 06:48:02 +00:00
Paul Eggert
90cf0c1cbe * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside "'...'". 2004-01-07 23:59:15 +00:00
Alexandre Duret-Lutz
c32ade9b96 * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
and _LT_AC_TAGCONFIG.
2004-01-07 22:07:07 +00:00
Paul Eggert
df495a3499 Fix an incorrect quoting example; reported by Eric Sunshine. 2004-01-06 21:11:30 +00:00
Paul Eggert
82fea9e4f7 Remove warning against "rm -fr" introduced yesterday;
it seems to have been a false alarm.
2004-01-05 23:34:23 +00:00
Paul Eggert
a6a02e8ae7 Don't use "chmod -w". 2004-01-05 08:18:24 +00:00
Paul Eggert
c1556b819b Speed up sed scripts by doing lineno substitution only on lines with "$LINENO". 2004-01-05 07:43:48 +00:00
Paul Eggert
12475c8947 Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires. 2004-01-05 07:05:22 +00:00
Paul Eggert
f95cc1efe7 Use "rm -f" to remove conftest.sed. 2004-01-05 06:18:09 +00:00
Paul Eggert
bf95493fe6 *** empty log message *** 2004-01-04 01:41:52 +00:00
Kevin Ryde
1484636ed8 * doc/autoconf.texi: Add various further index entries. 2004-01-03 20:57:09 +00:00
Paul Eggert
cf35f4f352 * bin/autoreconf.in (autoreconf_current_directory):
Fix typo: mkdir without umask arg.
2003-12-30 00:20:04 +00:00
Alexandre Duret-Lutz
30fe91493d * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
`VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
explanation clearer.
2003-12-27 11:31:05 +00:00
Paul Eggert
57c4246280 Fix misspelling of AC_INCLUDES_DEFAULT. 2003-12-27 08:26:26 +00:00
Paolo Bonzini
932964898a 2003-12-03 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: Test if sh -n works.
        * configure: Regenerate.
        * tests/atlocal.in: Store the result here.
        * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
        tools.at, looking in atlocal's ac_cv_sh_n_works instead
        of explicitly testing.
        (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
        (AT_CHECK_AUTOCONF): Test for the configure script syntax.
        * tests/tools.at (Syntax of the shell scripts): Simplify
        using AT_CHECK_SHELL_SYNTAX.
        (Syntax of the Perl scripts): Remove definition of
        AT_CHECK_PERL_SYNTAX.
2003-12-25 15:49:59 +00:00
Paolo Bonzini
063d705adf 2003-12-03 Paolo Bonzini <bonzini@gnu.org>
* lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
        stderr to /dev/null.
        * bin/autoconf.in: Regenerate.
        * bin/wrapper.in: Regenerate.
2003-12-25 15:43:01 +00:00
Paolo Bonzini
0723ac047b 2003-11-26 Paolo Bonzini <bonzini@gnu.org>
* lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
        Extracted from AS_SHELL_SANITIZE.
        (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
        macros.
        (AS_SHELL_SANITIZE): Move reinvocation code from
        _AS_LINENO_WORKS, use it to find out if shell
        functions work.
        (_AS_LINENO_WORKS): Don't find another shell if $LINENO
        does not work.
        (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
        (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
        was called.
        * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
        * bin/autoconf.in: Regenerate.
        * tests/wrapper.in: Regenerate.
        * tests/tools.at: Test the syntax of tests/autoconf
        and tests/testsuite.
2003-11-27 10:04:12 +00:00
Akim Demaille
90f031cf0b * config/announce-gen (&print_locations, &print_signatures)
(&sizes): New.
Use them.
No longer rely on Gnus to inline the list of signatures: compute
them on the fly.
2003-11-24 16:11:41 +00:00
Akim Demaille
6e6183ff80 * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
override some files.
(Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
From Debian Autoconf 2.58.
2003-11-24 14:36:15 +00:00
Akim Demaille
d9d165e195 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
uses.
From Debian Autoconf 2.58.
2003-11-24 14:19:04 +00:00
Akim Demaille
c9df52cd72 Typos. 2003-11-24 14:09:12 +00:00
Paolo Bonzini
9e56967aa4 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
* TODO: Remove already done things.  Update the part
        about finding tools for the target.

2003-11-24  Paolo Bonzini <bonzini@gnu.org>

        * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
        AC_DIR_HEADER): Make wording more consistent.
        * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2,
        AC_MINGW32): Explain the transition better.
        * lib/autoconf/types.m4 (AC_INT_16_BITS,
        AC_LONG_64_BITS): Explain the transition better.

2003-11-24  Paolo Bonzini  <bonzini@gnu.org>

        * doc/autoconf.texi (Obsoleting Macros): Don't
        document the third parameter of AU_DEFUN.
        * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
        (AU_DEFUN): Remove the third parameter, it was not used.
        Use AC_DEFUN directly, not AU_DEFINE.
        * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message
        into the expanded body, consistently with other macros
        such as AC_USG.
2003-11-24 10:40:58 +00:00
Paul Eggert
c966beba8e Put at least 14 bytes into the initial confdefs.h. 2003-11-17 17:37:05 +00:00
Kevin Ryde
e31511767a * doc/autoconf.texi (Using System Type): Revise, showing $host rather
than $target since the latter is not usual, add guidelines on when to
use or not use the system type.
2003-11-14 23:32:52 +00:00
Derek Price
87bca2495f * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
typo misrepaired by an auto-spellcheck.
2003-11-12 15:43:21 +00:00
Akim Demaille
fd6c90c36a * bin/autoreconf.in (&parse_args): Don't call automake with
--force-missing unless it actually supports it.
From Debian #219336.
2003-11-12 15:28:43 +00:00