Go to file
Eric Blake 4523f7c32b AC_CHECK_FUNCS_ONCE: honor current AC_LANG
Previously, AC_CHECK_FUNCS_ONCE collected a list of function names
to check, but ran the checks using the AC_LANG that was active
during the first encounter of the macro.  In practice, this is
usually the C language, and we haven't had actual reports of projects
attempting to use AC_CHECK_FUNCS_ONCE across multiple languages,
rather this was discovered by code inspection.

With this patch, the code now tracks a separate per-language list of
names to check.  Note, however, that it is only possible to check for
a given function name in one language; attempting to add a name again
under AC_CHECK_FUNCS_ONCE while a different language is active is a
no-op (this still makes sense because the side-effect of defining
the CPP macro HAVE_FUNC does not include a language prefix).

* lib/autoconf/functions.m4 (_AC_CHECK_FUNC_ONCE)
(_AC_FUNCS_EXPANSION):
* NEWS: Mention it.

Signed-off-by: Eric Blake <eblake@redhat.com>
2016-12-20 13:34:20 -06:00
bin autom4te: fix problem when tracing to '-' 2016-03-15 10:51:53 -07:00
build-aux make fetch 2016-02-06 17:17:49 -08:00
doc * doc/autoconf.texi (Using Autotest): Stop mentioning Free Recode. 2016-12-14 10:29:05 -08:00
lib AC_CHECK_FUNCS_ONCE: honor current AC_LANG 2016-12-20 13:34:20 -06:00
m4 maint: make update-copyright 2016-02-06 17:17:49 -08:00
man Move config.* man pages to its source tree 2016-02-06 17:17:50 -08:00
tests maint: make update-copyright 2016-02-06 17:17:49 -08:00
.gitattributes maint: don't sync elisp-comp or missing from gnulib 2012-06-27 16:59:21 -06:00
.gitignore build: remove refs to obsolescent 'mkinstalldir' script and variable 2013-05-06 12:53:41 +02:00
.prev-version maint: post-release administrivia 2012-04-24 21:06:32 -06:00
.x-update-copyright maint: document use of copyright ranges 2011-01-04 16:32:25 -07:00
AUTHORS maint: make update-copyright 2016-02-06 17:17:49 -08:00
BUGS maint: make update-copyright 2016-02-06 17:17:49 -08:00
cfg.mk maint: make update-copyright 2016-02-06 17:17:49 -08:00
ChangeLog.0
ChangeLog.1
ChangeLog.2 maint: fix typos in old ChangeLog files 2012-05-29 12:33:46 +02:00
ChangeLog.3 maint: fix typos in old ChangeLog files 2012-05-29 12:33:46 +02:00
configure.ac maint: make update-copyright 2016-02-06 17:17:49 -08:00
COPYING
COPYING.EXCEPTION
COPYINGv3
GNUmakefile make fetch 2016-02-06 17:17:49 -08:00
HACKING maint: make update-copyright 2016-02-06 17:17:49 -08:00
maint.mk make fetch 2016-02-06 17:17:49 -08:00
Makefile.am maint: make update-copyright 2016-02-06 17:17:49 -08:00
NEWS AC_CHECK_FUNCS_ONCE: honor current AC_LANG 2016-12-20 13:34:20 -06:00
README maint: make update-copyright 2016-02-06 17:17:49 -08:00
README-alpha maint: make update-copyright 2016-02-06 17:17:49 -08:00
README-hacking maint: make update-copyright 2016-02-06 17:17:49 -08:00
THANKS maint: make update-copyright 2016-02-06 17:17:49 -08:00
TODO maint: make update-copyright 2016-02-06 17:17:49 -08:00

-*- text -*-

Autoconf

Autoconf is an extensible package of M4 macros that produce shell
scripts to automatically configure software source code packages.
These scripts can adapt the packages to many kinds of UNIX-like
systems without manual user intervention.  Autoconf creates a
configuration script for a package from a template file that lists the
operating system features that the package can use, in the form of M4
macro calls.

Producing configuration scripts using Autoconf requires GNU M4 and
Perl.  You should install GNU M4 (version 1.4.6 or later is required;
1.4.14 or later is recommended) and Perl (5.006 or later) before
configuring Autoconf, so that Autoconf's configure script can find
them.  The configuration scripts produced by Autoconf are
self-contained, so their users do not need to have Autoconf (or GNU
M4, Perl, etc.).

You can get GNU M4 here:

ftp://ftp.gnu.org/gnu/m4/

The file INSTALL should be distributed with packages that use
Autoconf-generated configure scripts and Makefiles that conform to the
GNU coding standards.  The package's README can just give an overview
of the package, where to report bugs, and a pointer to INSTALL for
instructions on compilation and installation.  This removes the need
to maintain many similar sets of installation instructions.

Be sure to read BUGS and INSTALL.

Mail suggestions to autoconf@gnu.org, report bugs to
bug-autoconf@gnu.org, and submit patches to autoconf-patches@gnu.org.
All changes can be tracked at the read-only autoconf-commit@gnu.org.
Always include the Autoconf version number, which you can get by
running `autoconf --version'.  Archives of bug-autoconf@gnu.org can be
found in <http://lists.gnu.org/archive/html/bug-autoconf/>, and
similarly for the other mailing lists.

Licensing

Autoconf is released under the General Public License version 3 (GPLv3+).
Additionally, Autoconf includes a licensing exception in some of its
source files; see the respective copyright notices for how your
project is impacted by including scripts generated by Autoconf, and the
COPYING.EXCEPTION file for the exception in terms of the Additional
Permissions as described in section 7 of GPLv3.

For more licensing information, see
<http://www.gnu.org/licenses/gpl-faq.html> and
<http://www.gnu.org/licenses/exceptions.html>.

For any copyright year range specified as YYYY-ZZZZ in this package
note that the range specifies every single year in that closed interval.

-----

Copyright (C) 1992-1994, 1998, 2000-2016 Free Software Foundation, Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.  This file is offered as-is,
without warranty of any kind.