]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
17 years agoWhitespace cleanup.
Eric Blake [Thu, 4 Oct 2007 20:23:52 +0000 (14:23 -0600)] 
Whitespace cleanup.

* lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
leading whitespace, as it caused space-tab in testsuite.
(AT_INIT): Avoid trailing newlines in testsuite.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agouse shell functions to speed up autotest and produce slimmer testsuites
Paolo Bonzini [Thu, 4 Oct 2007 16:53:10 +0000 (18:53 +0200)] 
use shell functions to speed up autotest and produce slimmer testsuites

2007-10-04  Paolo Bonzini  <bonzini@gnu.org>

* general.m4 (AT_INIT): Add at_check_newline function.
(_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
(_AT_CHECK): Don't use at_trace_this.

Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
17 years agoOne more round of m4_foreach_w speedups.
Eric Blake [Thu, 4 Oct 2007 15:43:59 +0000 (09:43 -0600)] 
One more round of m4_foreach_w speedups.

* lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
is present.
(_m4_split): Avoid useless expansions inside definition.  Move
argument defaulting...
(m4_split): ...here.  Change alternate quote to something less
likely to appear in $1.  Also, special case space as regexp...
(m4_foreach_w): ...to avoid regexp on single-term list.
(m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
useless expansions inside definition.
* tests/m4sugar.at (m4@&t@_split): Add tests.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix previous commit.
Paolo Bonzini [Thu, 4 Oct 2007 15:15:21 +0000 (17:15 +0200)] 
Fix previous commit.

* lib/autotest/general.m4 (AT_LINE): Fix regex.

Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
17 years agoSpeed up building testsuites.
Eric Blake [Thu, 4 Oct 2007 13:13:50 +0000 (07:13 -0600)] 
Speed up building testsuites.

* lib/autotest/general.m4 (AT_LINE): Only use regex when file
changed since last time.  Use simpler regex.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoOptimize checking for identifiers.
Eric Blake [Wed, 3 Oct 2007 23:18:59 +0000 (17:18 -0600)] 
Optimize checking for identifiers.

* lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
macros, more efficient than regex on m4_re_word.
* lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
Rewrite in terms of new macro.  As a side-effect, AC_DEFINE can
now use @&t@.
* configure: Regenerate.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoRemove some XFAILs, and make AT_SETUP output line up.
Eric Blake [Wed, 26 Sep 2007 23:23:00 +0000 (17:23 -0600)] 
Remove some XFAILs, and make AT_SETUP output line up.

* lib/autotest/general.m4 (AT_SETUP): Only expand description
once; thereafter, use its expansion, properly quoted.
* tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
expansion with arguments, and check for aligned output.
(AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
Add a test for macros with parameters.
* NEWS: Document the semantics change.
* tests/base.at: Fix test titles containing commas.
* tests/compile.at: Likewise.
* tests/tools.at: Likewise.
* tests/torture.at: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAnother round of regex avoidance.
Eric Blake [Wed, 3 Oct 2007 21:26:51 +0000 (15:26 -0600)] 
Another round of regex avoidance.

* lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
(_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
(m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
(m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
character ranges useful in m4_translit.
(m4_toupper, m4_tolower): Optimize the constant portion of
definition.
* lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
creates $, and reject [] thanks to AS_TR_SH rewrite.
(AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
(AS_ESCAPE): Factor...
(_AS_ESCAPE): ...into new macro, with second argument required.
Avoid regex in common case.
(_AS_QUOTE): Use new macro.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoWhitespace cleanup.
Eric Blake [Wed, 3 Oct 2007 14:29:59 +0000 (08:29 -0600)] 
Whitespace cleanup.

* lib/autoconf/types.m4: Avoid space-tab.
* lib/m4sugar/m4sh.m4: Use tab consistently.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years ago* lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
Paul Eggert [Wed, 3 Oct 2007 20:06:08 +0000 (13:06 -0700)] 
* lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
(m4_shiftn): Remove no-longer-needed optimization.  Perhaps we
should remove m4_shiftn entirely?
(m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
Prefer m4_shift2 and m4_shift3 to m4_shiftn.
* lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
* lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
* tests/autotest.at (AT_CHECK_AT_TEST): Likewise.

17 years agoComment touchups.
Eric Blake [Wed, 3 Oct 2007 14:09:04 +0000 (08:09 -0600)] 
Comment touchups.

* lib/m4sugar/m4sugar.m4: Grammar fixes in comments.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoOptimize appending text.
Eric Blake [Wed, 3 Oct 2007 02:23:03 +0000 (20:23 -0600)] 
Optimize appending text.

* lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
expressions.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoOptimize recursion.
Eric Blake [Tue, 2 Oct 2007 21:26:34 +0000 (15:26 -0600)] 
Optimize recursion.

* lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
lot of hot spots; optimize it for 2 and 3 shifts.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoOptimize AC_PREREQ and other m4sugar numerics.
Eric Blake [Tue, 2 Oct 2007 13:04:11 +0000 (07:04 -0600)] 
Optimize AC_PREREQ and other m4sugar numerics.

* lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
(m4_cmp): Compare arbitrary expressions, without overflow.
(m4_version_unletter): Also recognize capital letters.
(m4_version_compare): Avoid regex when splitting version number
string.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoOnce again, reject IRIX m4.
Eric Blake [Mon, 1 Oct 2007 22:22:54 +0000 (16:22 -0600)] 
Once again, reject IRIX m4.

* m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
implementations that ignore --trace.
* configure: Regenerate.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix regression in AC_DEFINE([macro(with_arg)]).
Eric Blake [Mon, 1 Oct 2007 16:10:42 +0000 (10:10 -0600)] 
Fix regression in AC_DEFINE([macro(with_arg)]).

* lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
quotes with a careless m4_substr.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAllow nameless iteration.
Eric Blake [Sun, 30 Sep 2007 12:27:46 +0000 (06:27 -0600)] 
Allow nameless iteration.

* lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
indirectly.
* tests/m4sugar.at (myvar): Test this.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoSpeed optimization: avoid m4 regex when other algorithms work.
Eric Blake [Sun, 30 Sep 2007 03:44:10 +0000 (21:44 -0600)] 
Speed optimization: avoid m4 regex when other algorithms work.

* lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
(_AS_QUOTE_IFELSE): Likewise.
* lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
(m4_bpatsubsts): Split...
(_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
regex.
(_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
(m4_qlen): Optimize on short strings, to avoid regex.
(m4_sign): Avoid regex, and fix bug with `01' and `-0'.
* lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
(AC_DEFINE_TRACE): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoOops - my earlier 'optimization' caused a regression.
Eric Blake [Fri, 28 Sep 2007 12:14:11 +0000 (06:14 -0600)] 
Oops - my earlier 'optimization' caused a regression.

* tests/local.at (AT_CHECK_M4): Fix typo.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoCatch even more common AC_CACHE_VAL mistakes.
Ralf Wildenhues [Fri, 28 Sep 2007 04:14:06 +0000 (22:14 -0600)] 
Catch even more common AC_CACHE_VAL mistakes.

* lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
lacks '_cv_', or if AC_SUBST appears in body.
* tests/base.at (AC_CACHE_CHECK): Test this change.

17 years agoAutotest no longer caters to Ultrix redirection limitation.
Stepan Kasal [Fri, 28 Sep 2007 03:09:18 +0000 (21:09 -0600)] 
Autotest no longer caters to Ultrix redirection limitation.

* doc/autoconf.texi (Writing testsuite.at): Remove the
limitation that the first parameter of AT_CHECK cannot
contain redirection.
(File Descriptors): Mention that Ultrix limitation is no longer a
show-stopper in modern code.
* tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
parameter is `stderr' or `experr'.  Optimize if it was `ignore'.
* lib/autotest/general.m4 (AT_CHECK): Update comment.

17 years agoSquelch changeword in m4sugar.
Eric Blake [Fri, 28 Sep 2007 01:55:38 +0000 (19:55 -0600)] 
Squelch changeword in m4sugar.

* lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
feature of m4 1.4.x.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoConfigure whitespace touchups.
Eric Blake [Fri, 28 Sep 2007 01:35:55 +0000 (19:35 -0600)] 
Configure whitespace touchups.

* lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
installation directories, and avoid TAB, in configure --help
output.
* configure.ac: Avoid extra trailing newline.
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
config.status --help output.
* configure: Regenerate.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix underquotation in AS_HELP_STRING.
Eric Blake [Fri, 28 Sep 2007 01:16:51 +0000 (19:16 -0600)] 
Fix underquotation in AS_HELP_STRING.

* lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
argument.
* lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
first-prefix argument.
* tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
* NEWS: Document AS_HELP_STRING fix.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAutotest formatting touchups.
Eric Blake [Thu, 27 Sep 2007 15:17:14 +0000 (09:17 -0600)] 
Autotest formatting touchups.

* lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
output.
(PATH): Simplify computation of new PATH.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix testsuite breakage in last patch.
Eric Blake [Wed, 26 Sep 2007 17:13:08 +0000 (11:13 -0600)] 
Fix testsuite breakage in last patch.

* tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
font-lock fix.
* tests/torture.at (@%:@define header templates): Rename, so that
output lines up correctly.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoMore font-lock happiness.
Eric Blake [Wed, 26 Sep 2007 12:14:09 +0000 (06:14 -0600)] 
More font-lock happiness.

* tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
confusion.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoTypo fixes.
Eric Blake [Tue, 25 Sep 2007 23:02:44 +0000 (17:02 -0600)] 
Typo fixes.

* lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
* lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoImprove documentation of M4 parameter expansion.
Eric Blake [Tue, 25 Sep 2007 17:58:50 +0000 (11:58 -0600)] 
Improve documentation of M4 parameter expansion.

* doc/autoconf.texi (Quoting and Parameters): New section.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAvoid committing editor backup files.
Eric Blake [Tue, 25 Sep 2007 12:31:17 +0000 (06:31 -0600)] 
Avoid committing editor backup files.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoImprove C99 detection.
Eric Blake [Tue, 25 Sep 2007 12:23:03 +0000 (06:23 -0600)] 
Improve C99 detection.

* lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
avoid deprecation warning with icc.
* THANKS: Update.
Reported by Ted Bullock.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoWhenever possible, use the vertical bar as sed delimiter.
Jim Meyering [Sat, 22 Sep 2007 12:04:51 +0000 (14:04 +0200)] 
Whenever possible, use the vertical bar as sed delimiter.

* lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
Use "|", not "!".
* lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
[ac_dir_suffix]: Use "|", not "," as sed delimiter.
* tests/mktests.sh (as_me): Likewise.
* lib/freeze.mk (check-forbidden-patterns): Likewise.
* lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
* configure: Regenerate.
* doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
* lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.  This is fine,
as long as $PATH_SEPARATOR doesn't contain "|".

17 years agoAdd a comment.
Jim Meyering [Sat, 22 Sep 2007 12:19:03 +0000 (14:19 +0200)] 
Add a comment.

* lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
2004-05-31 change also with a comment in the code.

17 years agoMore contribution housekeeping.
Eric Blake [Thu, 20 Sep 2007 15:51:48 +0000 (09:51 -0600)] 
More contribution housekeeping.

* THANKS: Sort.
* AUTHORS: Sort, reflect recent assignment from Helge Deller.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoIgnore additional files, when copying cross-repository.
Eric Blake [Thu, 20 Sep 2007 15:00:04 +0000 (09:00 -0600)] 
Ignore additional files, when copying cross-repository.

* .gitignore: Ignore CVS directories, emacs edits.
* .cvsignore: Ignore .git directory, emacs edits.

17 years agoProvide AC_VERSION, not m4_AUTOCONF_VERSION.
Eric Blake [Sat, 15 Sep 2007 12:41:08 +0000 (12:41 +0000)] 
Provide AC_VERSION, not m4_AUTOCONF_VERSION.
* doc/autoconf.texi (Text processing Macros): Remove mention of
m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
once again.
(Notices): Move AC_PREREQ...
(Versioning): ...to this new section, alongside the new AC_VERSION
alias for the undocumented m4_PACKAGE_VERSION.
* lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
* lib/autoconf/general.m4 (AC_VERSION): New macro.
* NEWS: Update to match this rename.
* tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
m4_PACKAGE_VERSION.
* tests/tools.at (autoconf: AC_VERSION): New test.
Suggested by Paolo Bonzini and Benoit Sigoure.

17 years agoPrepare for conversion to git.
Eric Blake [Fri, 14 Sep 2007 22:25:56 +0000 (22:25 +0000)] 
Prepare for conversion to git.
* doc/.cvsignore: Avoid multiple listings on one line.
* bin/.cvsignore: Likewise.
* .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
lib/autoscan/.gitignore, lib/autotest/.gitignore,
lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
tests/.gitignore: New files, identical to .cvsignore counterpart.

17 years agoAvoid parallel 'make check' issue.
Eric Blake [Fri, 14 Sep 2007 17:50:37 +0000 (17:50 +0000)] 
Avoid parallel 'make check' issue.
* tests/.cvsignore (mktests.stamp): Ignore the witness.

17 years agoEditing eye-candy.
Eric Blake [Thu, 13 Sep 2007 23:39:07 +0000 (23:39 +0000)] 
Editing eye-candy.
* lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.

17 years agoEditing eye-candy.
Eric Blake [Thu, 13 Sep 2007 21:51:19 +0000 (21:51 +0000)] 
Editing eye-candy.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
font-lock balance.
* lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
* configure: Regenerate.

17 years agoClean up 'make dist' of previous patch.
Eric Blake [Thu, 13 Sep 2007 20:39:33 +0000 (20:39 +0000)] 
Clean up 'make dist' of previous patch.
* tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
(CLEANFILES): Don't clean the stamp, since we distribute the
generated files pre-built.
(MAINTAINERCLEANFILES): Clean it here instead.
* tests/Makefile.in: Regenerate.

17 years agoAvoid parallel 'make check' issue.
Eric Blake [Thu, 13 Sep 2007 19:59:18 +0000 (19:59 +0000)] 
Avoid parallel 'make check' issue.
* tests/Makefile.am (mktests.stamp): New witness.
(TESTSUITE_GENERATED_AT): Use it.
(CLEANFILES): Clean the witness.
* tests/.cvsignore (mktests.stamp): Ignore the witness.

17 years agoDocument another awk pitfall.
Eric Blake [Thu, 13 Sep 2007 16:50:38 +0000 (16:50 +0000)] 
Document another awk pitfall.
* doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
limitation of field variables in END.
Reported by Gary V. Vaughan.

17 years ago* AUTHORS: Add missing entries.
Eric Blake [Thu, 13 Sep 2007 14:13:13 +0000 (14:13 +0000)] 
* AUTHORS: Add missing entries.

17 years agoPublish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
Eric Blake [Thu, 13 Sep 2007 03:21:18 +0000 (03:21 +0000)] 
Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
* doc/autoconf.texi (Text processing Macros): Document
m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
(Redefined M4 Macros): Document m4_ifndef.
* lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
used it while it was undocumented.
* NEWS: Document this change.
* lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
* lib/m4sugar/Makefile.in: Regenerate.
* tests/m4sugar.at (m4@&t@_version_compare): New test.
Reported by Bruno Haible.

17 years ago* doc/autoconf.texi (Generic Compiler Characteristics): Add
Eric Blake [Thu, 13 Sep 2007 02:35:41 +0000 (02:35 +0000)] 
* doc/autoconf.texi (Generic Compiler Characteristics): Add
missing index entries.

17 years agoCentralize all system extensions checks.
Eric Blake [Tue, 11 Sep 2007 17:13:13 +0000 (17:13 +0000)] 
Centralize all system extensions checks.
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
(AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
AC_USE_SYSTEM_EXTENSIONS.
(AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
(AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
* doc/autoconf.texi (Posix Variants): Reword this section,
emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
rather than a series of system-specific checks.
(Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
AC_MINIX.
* NEWS: Document this change.
* THANKS: Update.
Reported by Martin Koeppe.

17 years agoClean up obsolete macros references.
Eric Blake [Sat, 8 Sep 2007 21:47:37 +0000 (21:47 +0000)] 
Clean up obsolete macros references.
* doc/autoconf.texi: Add anchors to support better
cross-referencing.
(Particular Structures): Move obsolete macros descriptions...
(External Software): Likewise.
(Package Options): Likewise.
(Obsolete Macros): ...to here.  Add cross-references to
documentation on replacements.
* NEWS: Mention that these macros have been obsolete for a while
now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.

17 years agoImprove M4 path searching during configure.
Eric Blake [Sat, 8 Sep 2007 14:48:49 +0000 (14:48 +0000)] 
Improve M4 path searching during configure.
* lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
macro.
(_AC_PATH_PROG_FEATURE_CHECK): Rename...
(_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
parameter, and kill side effects.
(_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
(_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
* m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
is found.
(AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
allow bootstrapping with autoconf 2.61.
* configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
* configure: Regenerate.
* doc/autoconf.texi (Generic Programs): Document new macro.
* tests/mktests.sh (au_exclude_script): Exclude auto-testing new
macro.
* tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
* NEWS: Document the change.
* THANKS: Update.
Reported by Hans Aberg.

17 years ago* doc/autoconf.texi (Generic Programs): Fix typo.
Eric Blake [Sat, 8 Sep 2007 14:16:58 +0000 (14:16 +0000)] 
* doc/autoconf.texi (Generic Programs): Fix typo.

17 years ago* doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
Eric Blake [Thu, 6 Sep 2007 23:21:45 +0000 (23:21 +0000)] 
* doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
:, and make it clear that optional @var{path} defaults to $PATH.
(Erlang Compiler and Interpreter): Likewise.

17 years agoTexinfo cleanup.
Eric Blake [Thu, 6 Sep 2007 15:43:58 +0000 (15:43 +0000)] 
Texinfo cleanup.
* doc/autoconf.texi: Avoid lines > 80 columns when possible.
Reword some paragraphs to avoid overfull, underfull hbox
warnings.  Add index entries to avoid overfull vbox warnings.

17 years ago* NEWS: Adjust wording for AC_CONFIG_LINKS.
Eric Blake [Wed, 5 Sep 2007 21:46:29 +0000 (21:46 +0000)] 
* NEWS: Adjust wording for AC_CONFIG_LINKS.
Reported by Ralf Wildenhues.

17 years ago* NEWS: Document fixes that have been applied since 2.61a.
Eric Blake [Mon, 3 Sep 2007 22:16:12 +0000 (22:16 +0000)] 
* NEWS: Document fixes that have been applied since 2.61a.

17 years agoHousekeeping.
Eric Blake [Mon, 3 Sep 2007 21:49:28 +0000 (21:49 +0000)] 
Housekeeping.
* THANKS: Update, and convert to UTF-8 encoding.
* AUTHORS: Likewise.

17 years ago* lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
Ralf Wildenhues [Thu, 23 Aug 2007 18:36:06 +0000 (18:36 +0000)] 
* lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
names beginning with `-' again.

17 years ago* doc/autoconf.texi (Defining Directories): Mention
Ralf Wildenhues [Wed, 22 Aug 2007 05:00:47 +0000 (05:00 +0000)] 
* doc/autoconf.texi (Defining Directories): Mention
AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.

17 years ago* lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
Ralf Wildenhues [Tue, 21 Aug 2007 20:23:16 +0000 (20:23 +0000)] 
* lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
* tests/base.at (configure arguments): New test.
* THANKS: Update.
Report by Olaf Lenz.

17 years ago* lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
Ralf Wildenhues [Tue, 21 Aug 2007 17:32:39 +0000 (17:32 +0000)] 
* lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
arguments in comment.
Report by Vincent Torri <vtorri at univ minus evry dot fr>.

17 years ago* doc/autoconf.texi (File System Conventions): Index the proper
Ralf Wildenhues [Mon, 20 Aug 2007 21:29:36 +0000 (21:29 +0000)] 
* doc/autoconf.texi (File System Conventions): Index the proper
way of detecting absolute file names.

17 years ago* build-aux/config.guess, build-aux/config.sub,
Ralf Wildenhues [Mon, 20 Aug 2007 21:23:37 +0000 (21:23 +0000)] 
* build-aux/config.guess, build-aux/config.sub,
build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
* doc/autoconf.texi (GNU Free Documentation License): Adjust for
sectioning change in fdl.texi.

17 years ago* bin/autoconf.as: Update --version output to match current GCS.
Ralf Wildenhues [Mon, 20 Aug 2007 21:12:33 +0000 (21:12 +0000)] 
* bin/autoconf.as: Update --version output to match current GCS.
* bin/autoheader.in: Likewise.
* bin/autom4te.in: Likewise.
* bin/autoreconf.in: Likewise.
* bin/autoscan.in: Likewise.
* bin/autoupdate.in: Likewise.
* bin/ifnames.in: Likewise.

17 years ago* lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
Ralf Wildenhues [Sat, 18 Aug 2007 09:07:20 +0000 (09:07 +0000)] 
* lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
file to itself if source and build trees coincide.
* tests/torture.at (AC_CONFIG_LINKS and identical files): New
test.
Report by Sebastian Freundt <hroptatyr@gna.org>.

18 years agoReword the copyright notices to match what's suggested in GPLv3.
Paul Eggert [Fri, 20 Jul 2007 23:11:49 +0000 (23:11 +0000)] 
Reword the copyright notices to match what's suggested in GPLv3.

18 years agoGrant more permissions to copying, as per the usual GNU standard these
Paul Eggert [Fri, 20 Jul 2007 23:11:23 +0000 (23:11 +0000)] 
Grant more permissions to copying, as per the usual GNU standard these
days for ChangeLog files.

18 years ago* doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
Paul Eggert [Fri, 13 Jul 2007 17:38:13 +0000 (17:38 +0000)] 
* doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
limitation reported by Leo Moisio in
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.

18 years agoUpdate to GPLv3.
Paul Eggert [Tue, 3 Jul 2007 20:28:58 +0000 (20:28 +0000)] 
Update to GPLv3.

18 years ago* doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
Paul Eggert [Tue, 26 Jun 2007 17:42:27 +0000 (17:42 +0000)] 
* doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
fails on AIX 5.3.

18 years ago* lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
Noah Misch [Tue, 19 Jun 2007 19:49:05 +0000 (19:49 +0000)] 
* lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
* tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
`srcdir' as subdirectory of `builddir'.

18 years ago* lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
Noah Misch [Thu, 14 Jun 2007 01:32:28 +0000 (01:32 +0000)] 
* lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
* tests/autotest.at (srcdir propagation): New test.
* THANKS: Update.
Reported by Mike Frysinger.

18 years agoRegenerate.
Paul Eggert [Wed, 13 Jun 2007 17:32:36 +0000 (17:32 +0000)] 
Regenerate.

18 years ago* lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
Paul Eggert [Wed, 13 Jun 2007 16:52:24 +0000 (16:52 +0000)] 
* lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
Problem reported by Fred Kreek in
<http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
* doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
(Macro Names, Defining Directories): Don't mention PATH as a name
for a fully qualified file name, as this usage violates the GNU
coding standards and we shouldn't recommend it.

* lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
string and then assume shell builtins like "test" will work.

18 years ago* lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
Noah Misch [Tue, 12 Jun 2007 11:36:56 +0000 (11:36 +0000)] 
* lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
not a valid shell variable name.
* tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
* tests/torture.at (AC_SUBST: variable name validation): New test.
Reported by Andreas Schwab.

18 years ago* doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
Noah Misch [Mon, 4 Jun 2007 22:49:41 +0000 (22:49 +0000)] 
* doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
works with both C and C++.

18 years ago* lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
Noah Misch [Mon, 4 Jun 2007 03:16:36 +0000 (03:16 +0000)] 
* lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
brand tests.

18 years agoFix typo in previous checkin.
Paul Eggert [Thu, 31 May 2007 19:36:57 +0000 (19:36 +0000)] 
Fix typo in previous checkin.

18 years ago* doc/autoconf.texi (Particular Types): Give example of use for
Paul Eggert [Thu, 31 May 2007 19:35:45 +0000 (19:35 +0000)] 
* doc/autoconf.texi (Particular Types): Give example of use for
AC_TYPE_UINT8_T.

18 years ago* lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
Stepan Kasal [Tue, 29 May 2007 11:46:29 +0000 (11:46 +0000)] 
* lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.

18 years ago* doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
Paul Eggert [Tue, 29 May 2007 05:36:28 +0000 (05:36 +0000)] 
* doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
define HAVE_INT8_T, and likewise for similar macros.
Problem reported by Patrick Welche in
<http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.

18 years agoRegenerate.
Paul Eggert [Sun, 27 May 2007 23:21:06 +0000 (23:21 +0000)] 
Regenerate.

18 years ago* bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
Paul Eggert [Fri, 25 May 2007 22:52:12 +0000 (22:52 +0000)] 
* bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.

18 years ago* lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
Paul Eggert [Mon, 21 May 2007 23:10:09 +0000 (23:10 +0000)] 
* lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
choice, since that's what we do with --enable-largefile etc.
Redo indenting and assignments to simplify things a bit, and make
the parens work with Emacs.

18 years ago* doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
Paul Eggert [Mon, 21 May 2007 22:42:12 +0000 (22:42 +0000)] 
* doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
in my previous change: AC_C_OPENMP -> AC_OPENMP.  Reported by Bruno
Haible.

18 years ago* lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
Noah Misch [Mon, 21 May 2007 22:31:18 +0000 (22:31 +0000)] 
* lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
* tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.

18 years ago* NEWS: Rename AC_C_OPENMP to AC_OPENMP.
Paul Eggert [Mon, 21 May 2007 17:50:57 +0000 (17:50 +0000)] 
* NEWS: Rename AC_C_OPENMP to AC_OPENMP.
* lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
* doc/autoconf.texi (Generic Compiler Characteristics): Move
renamed AC_OPENMP documentation here, from "C compiler".
Mention C++ and Fortran.

* NEWS: Mention AC_C_OPENMP.

18 years ago* doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
Paul Eggert [Mon, 21 May 2007 17:39:09 +0000 (17:39 +0000)] 
* doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.

2007-05-21  Bruno Haible  <bruno@clisp.org>

* lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
* doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
* NEWS: Mention AC_C_OPENMP.

18 years ago* bin/autom4te.in: Fix typos.
Ralf Wildenhues [Thu, 17 May 2007 08:20:31 +0000 (08:20 +0000)] 
* bin/autom4te.in: Fix typos.

18 years ago* bin/autoconf.as: Handle `-' just like other input files.
Noah Misch [Thu, 17 May 2007 02:43:12 +0000 (02:43 +0000)] 
* bin/autoconf.as: Handle `-' just like other input files.
* bin/autom4te.in (parse_args): Pass `-' through.
(handle_output): Skip the forbidden token search if we read from stdin.
(up_to_date): Always treat stdin as out of date.
* tests/tools.at (autoconf: input from stdin): New test.
(autoconf: forbidden tokens, basic): Check a second `autoconf' run.

18 years ago* tests/foreign.at tests/semantics.at, tests/tools.at: Remove
Stepan Kasal [Wed, 16 May 2007 09:42:25 +0000 (09:42 +0000)] 
* tests/foreign.at tests/semantics.at, tests/tools.at: Remove
parameters for AT_CLEANUP.
* tests/local.at (AT_CHECK_AU_MACRO): Likewise.

18 years ago* NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
Paul Eggert [Mon, 14 May 2007 16:54:55 +0000 (16:54 +0000)] 
* NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
* doc/autoconf.texi (C Compiler): Likewise.

2007-05-14  Noah Misch  <noah@cs.caltech.edu>

* lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.

* doc/autoconf.texi (Caching Results): The CACHE-ID variable

18 years ago* doc/autoconf.texi: Direntry for "autoconf Invocation"
Stepan Kasal [Wed, 9 May 2007 11:40:27 +0000 (11:40 +0000)] 
* doc/autoconf.texi: Direntry for "autoconf Invocation"
renamed to "autoconf-invocation"

18 years ago* doc/autoconf.texi (Caching Results): The CACHE-ID variable
Stepan Kasal [Wed, 9 May 2007 10:38:23 +0000 (10:38 +0000)] 
* doc/autoconf.texi (Caching Results): The CACHE-ID variable
in the examples should not use the internal "ac_" prefix.

18 years ago* lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
Noah Misch [Mon, 7 May 2007 19:56:56 +0000 (19:56 +0000)] 
* lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
* doc/autoconf.texi ($@, case): Document Zsh limitations.

18 years ago* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
Paul Eggert [Thu, 3 May 2007 17:23:39 +0000 (17:23 +0000)] 
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
Reorganize the comments before and in the macro.

18 years ago* lib/autoconf/lang.m4, lib/autoconf/c.m4,
Stepan Kasal [Thu, 3 May 2007 14:47:12 +0000 (14:47 +0000)] 
* lib/autoconf/lang.m4, lib/autoconf/c.m4,
lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
section titles and other comments; no code change.

18 years ago* doc/autoconf.texi (Particular Programs): Typo
Paul Eggert [Wed, 2 May 2007 02:21:23 +0000 (02:21 +0000)] 
* doc/autoconf.texi (Particular Programs): Typo
@acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.

18 years agoFix typo in previous message.
Paul Eggert [Mon, 30 Apr 2007 17:11:50 +0000 (17:11 +0000)] 
Fix typo in previous message.

18 years ago* lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
Paul Eggert [Mon, 30 Apr 2007 17:08:07 +0000 (17:08 +0000)] 
* lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
'configure' will fail if the shell lacks proper support for shell
functions.  Suggested by RMS.

18 years ago* doc/autoconf.texi (Limitations of Builtins): Correct the warning
Paul Eggert [Sun, 29 Apr 2007 08:22:04 +0000 (08:22 +0000)] 
* doc/autoconf.texi (Limitations of Builtins): Correct the warning
about Solaris /bin/printf '%010000x' 123.  Problem reported by
Bruno Haible.

18 years ago* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
Paul Eggert [Sun, 29 Apr 2007 05:50:27 +0000 (05:50 +0000)] 
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
for a.* when searching for executables, as this prevents users
from having files like a.c.  Problem reported by Ralf Wildenhues in:
http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
This fixes a problem introduced on 2000-12-19.