Go to file
Paul Eggert 1be64afa5b 'echo' has some portability problems, when given a first argument
with a leading '-', or when given any argument containing '\'.
Avoid using 'echo' in these cases.
* bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
* lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
* lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
argument might be unportable.
* lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
* lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
* lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
(_AC_FC_LIBRARY_LDFLAGS): Likewise.
* lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
(_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
(AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
* lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
* lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
(AC_PROG_MAKE_SET): Likewise.
* lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
(_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
* lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
(AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
(_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
(AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
* bin/autoconf.as: Redo verbose flag implementation, as the old
scheme wouldn't work with AS_ECHO.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
Don't use ECHO_T, since ECHO_N is now reliable.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
rather than using a here-document to put the script into a file.
(_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
use AS_ECHO.
* lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
* lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
AS_ECHO_N rather than ECHO_N and ECHO_C.  This doesn't fix any
bug, but we might as well stop using ECHO_N and ECHO_C internally.
* lib/autotest/general.m4 (AT_SETUP): Likewise.
* lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
(_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
operand, as AS_ECHO requires.  Avoid double file name expansion.
* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
Don't set as_nl, since _AS_ECHO_PREPARE does that now.
(_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
(AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
* tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
Double-quote strings that would otherwise contain M4 comments.
* tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
2006-11-17 21:04:54 +00:00
bin 'echo' has some portability problems, when given a first argument 2006-11-17 21:04:54 +00:00
build-aux Import upstream changes. 2006-11-17 00:00:31 +00:00
config Rework to use more-modern build style. 2006-08-24 22:56:47 +00:00
doc * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out 2006-11-17 00:16:27 +00:00
lib 'echo' has some portability problems, when given a first argument 2006-11-17 21:04:54 +00:00
m4 * m4/m4.m4: Change copyright. 2006-09-20 03:08:08 +00:00
man Regenerate. 2006-11-17 20:01:56 +00:00
tests 'echo' has some portability problems, when given a first argument 2006-11-17 21:04:54 +00:00
.cvsignore
.x-sc_prohibit_atoi_atof * doc/autoconf.texi: Remove unused words from word list. 2006-04-10 18:14:53 +00:00
.x-sc_space_tab Rework to use more-modern build style. 2006-08-24 22:56:47 +00:00
.x-sc_sun_os_names Rework to use more-modern build style. 2006-08-24 22:56:47 +00:00
.x-sc_trailing_blank Rework to use more-modern build style. 2006-08-24 22:56:47 +00:00
.x-sc_useless_cpp_parens Rework to use more-modern build style. 2006-08-24 22:56:47 +00:00
aclocal.m4 Regenerate. 2006-11-17 20:01:56 +00:00
AUTHORS
BUGS
ChangeLog 'echo' has some portability problems, when given a first argument 2006-11-17 21:04:54 +00:00
ChangeLog.0 * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when 2006-04-06 17:43:52 +00:00
ChangeLog.1
ChangeLog.2
configure Regenerate. 2006-11-17 20:01:56 +00:00
configure.ac * configure.ac (AC_INIT): Bump to 2.61a. 2006-11-17 20:01:04 +00:00
COPYING
GNUmakefile Import upstream changes. 2006-11-17 00:00:31 +00:00
HACKING
INSTALL Regenerate. 2006-06-14 03:42:11 +00:00
Makefile.am Rework to use more-modern build style. 2006-08-24 22:56:47 +00:00
Makefile.cfg Rework to use more-modern build style. 2006-08-24 22:56:47 +00:00
Makefile.in Regenerate. 2006-11-17 20:01:56 +00:00
Makefile.maint Rework to use more-modern build style. 2006-08-24 22:56:47 +00:00
NEWS * configure.ac (AC_INIT): Bump to 2.61a. 2006-11-17 20:01:04 +00:00
README * NEWS: Recommend M4 1.4.7 instead of 1.4.6. 2006-09-26 06:04:35 +00:00
README-alpha
THANKS * THANKS: Update. 2006-10-26 16:32:11 +00:00
TODO

-*- 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.7 or later) and Perl
(5.005_03 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 1.4.7 here:

ftp://ftp.gnu.org/gnu/m4/m4-1.4.7.tar.gz

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 (especially if this version is not an official
release) and INSTALL.

Mail suggestions to autoconf@gnu.org, report bugs to
bug-autoconf@gnu.org, and submit patches to autoconf-patches@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.

-----

Copyright (C) 1992, 1993, 1994, 1998, 2000, 2001, 2002, 2003, 2004,
2005, 2006 Free Software Foundation, Inc.

This file is part of GNU Autoconf.

GNU Autoconf is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

GNU Autoconf is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GNU Autoconf; see the file COPYING.  If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.