autoconf-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Autoconf source repository branch, master, updated. v2.63b-51-


From: Eric Blake
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.63b-51-g5f19cfb
Date: Tue, 26 May 2009 12:51:05 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=5f19cfb87838c2c04951b05ee4a33aa18db5ccd2

The branch, master has been updated
       via  5f19cfb87838c2c04951b05ee4a33aa18db5ccd2 (commit)
      from  35e67f5c0d5e002ce91ffed734bb6f8db1eceb45 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5f19cfb87838c2c04951b05ee4a33aa18db5ccd2
Author: Eric Blake <address@hidden>
Date:   Mon May 4 11:00:30 2009 -0600

    Sanitize more problematic environment variables.
    
    * doc/autoconf.texi (Environment Variable Index): Add more
    entries, particularly for precious variables and known culprit
    variables.  Needed to avoid overfull vbox.
    (Special Shell Variables) <CLICOLOR_FORCE, GREP_OPTIONS>: Add
    variables known to cause misbehavior.
    * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Unset variables
    known to cause problems.
    * THANKS: Update.
    Based on reports from Ilya Bobir and Joey Mingrone.
    
    Signed-off-by: Eric Blake <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog           |   13 +++++++++++
 THANKS              |    2 +
 doc/autoconf.texi   |   57 ++++++++++++++++++++++++++++++++++++++++++++++++--
 lib/m4sugar/m4sh.m4 |    3 ++
 4 files changed, 72 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 73fc483..e07b300 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2009-05-26  Eric Blake  <address@hidden>
+
+       Sanitize more problematic environment variables.
+       * doc/autoconf.texi (Environment Variable Index): Add more
+       entries, particularly for precious variables and known culprit
+       variables.  Needed to avoid overfull vbox.
+       (Special Shell Variables) <CLICOLOR_FORCE, GREP_OPTIONS>: Add
+       variables known to cause misbehavior.
+       * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Unset variables
+       known to cause problems.
+       * THANKS: Update.
+       Based on reports from Ilya Bobir and Joey Mingrone.
+
 2009-05-21  Ralf Wildenhues  <address@hidden>
 
        Document VPATH = $(variable) issue in VPATH chapter.
diff --git a/THANKS b/THANKS
index 8bf999a..3c2843b 100644
--- a/THANKS
+++ b/THANKS
@@ -153,6 +153,7 @@ Howard Chu                  address@hidden
 Ian Lance Taylor            address@hidden
 Ian Macdonald               address@hidden
 Ian Redfern                 address@hidden
+Ilya Bobir                  address@hidden
 Ilya Zakharevich            address@hidden
 Ineiev                      address@hidden
 Iohannes m zmoelnig         address@hidden
@@ -175,6 +176,7 @@ Jim Meyering                address@hidden
 Jiro Takabatake             address@hidden
 Jochen Friedrich            address@hidden
 Joel E. Denny               address@hidden
+Joey Mingrone               address@hidden
 Johan Danielsson            address@hidden
 John Calcote                address@hidden
 John David Anglin           address@hidden
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index a26b1b7..3ddecdf 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -2099,6 +2099,7 @@ but there is actually a hidden slave: 
@file{config.status}.
 results of @file{configure}.  The most typical task of
 @file{config.status} is to @emph{instantiate} files.
 
address@hidden@var{ITEMS}}
 This section describes the common behavior of the four standard
 instantiating macros: @code{AC_CONFIG_FILES}, @code{AC_CONFIG_HEADERS},
 @code{AC_CONFIG_COMMANDS} and @code{AC_CONFIG_LINKS}.  They all
@@ -2327,7 +2328,7 @@ Autoconf macros set additional output variables, which 
are mentioned in
 the descriptions for those macros.  @xref{Output Variable Index}, for a
 complete list of output variables.  @xref{Installation Directory
 Variables}, for the list of the preset ones related to installation
-directories.  Below are listed the other preset ones.  They all are
+directories.  Below are listed the other preset ones, many of which are
 precious variables (@pxref{Setting Output Variables},
 @code{AC_ARG_VAR}).
 
@@ -2338,6 +2339,7 @@ precious variables (@pxref{Setting Output Variables},
 @c actress
 
 @defvar CFLAGS
address@hidden CFLAGS
 @ovindex CFLAGS
 Debugging and optimization options for the C compiler.  If it is not set
 in the environment when @command{configure} runs, the default value is set
@@ -2392,6 +2394,7 @@ needs to be processed by @command{configure} in order to 
be used.
 @end defvar
 
 @defvar CPPFLAGS
address@hidden CPPFLAGS
 @ovindex CPPFLAGS
 Preprocessor options for the C, C++, and Objective C preprocessors and
 compilers.  If
@@ -2416,6 +2419,7 @@ might run into.
 @end defvar
 
 @defvar CXXFLAGS
address@hidden CXXFLAGS
 @ovindex CXXFLAGS
 Debugging and optimization options for the C++ compiler.  It acts like
 @code{CFLAGS}, but for C++ instead of C.
@@ -2453,6 +2457,7 @@ want to use it.
 @end defvar
 
 @defvar ERLCFLAGS
address@hidden ERLCFLAGS
 @ovindex ERLCFLAGS
 Debugging and optimization options for the Erlang compiler.  If it is not set
 in the environment when @command{configure} runs, the default value is empty.
@@ -2461,6 +2466,7 @@ programs to test for Erlang features.
 @end defvar
 
 @defvar FCFLAGS
address@hidden FCFLAGS
 @ovindex FCFLAGS
 Debugging and optimization options for the Fortran compiler.  If it
 is not set in the environment when @command{configure} runs, the default
@@ -2470,6 +2476,7 @@ programs to test for Fortran features.
 @end defvar
 
 @defvar FFLAGS
address@hidden FFLAGS
 @ovindex FFLAGS
 Debugging and optimization options for the Fortran 77 compiler.  If it
 is not set in the environment when @command{configure} runs, the default
@@ -2479,6 +2486,7 @@ programs to test for Fortran 77 features.
 @end defvar
 
 @defvar LDFLAGS
address@hidden LDFLAGS
 @ovindex LDFLAGS
 Options for the linker.  If it is not set
 in the environment when @command{configure} runs, the default value is empty.
@@ -2495,6 +2503,7 @@ Don't use this variable to pass library names
 @end defvar
 
 @defvar LIBS
address@hidden LIBS
 @ovindex LIBS
 @option{-l} options to pass to the linker.  The default value is empty,
 but some Autoconf macros may prepend extra libraries to this variable if
@@ -2504,6 +2513,7 @@ programs to test for C, C++, and Fortran features.
 @end defvar
 
 @defvar OBJCFLAGS
address@hidden OBJCFLAGS
 @ovindex OBJCFLAGS
 Debugging and optimization options for the Objective C compiler.  It
 acts like @code{CFLAGS}, but for Objective C instead of C.
@@ -3996,6 +4006,8 @@ information about portability problems with Sed.
 
 @defmac AC_PROG_YACC
 @acindex{PROG_YACC}
address@hidden YACC
address@hidden YFLAGS
 @ovindex YACC
 If @code{bison} is found, set output variable @code{YACC} to @samp{bison
 -y}.  Otherwise, if @code{byacc} is found, set @code{YACC} to
@@ -6704,6 +6716,8 @@ makes this invalid.  That is why Autoconf stopped issuing
 
 @defmac AC_PROG_CC (@ovar{compiler-search-list})
 @acindex{PROG_CC}
address@hidden CC
address@hidden CFLAGS
 @ovindex CC
 @ovindex CFLAGS
 Determine a C compiler to use.  If @code{CC} is not already set in the
@@ -6764,6 +6778,7 @@ rule.
 
 @defmac AC_PROG_CPP
 @acindex{PROG_CPP}
address@hidden CPP
 @ovindex CPP
 Set output variable @code{CPP} to a command that runs the
 C preprocessor.  If @samp{$CC -E} doesn't work, @file{/lib/cpp} is used.
@@ -7095,6 +7110,8 @@ compiler fix the header files automatically when 
installed.
 
 @defmac AC_PROG_CXX (@ovar{compiler-search-list})
 @acindex{PROG_CXX}
address@hidden CXX
address@hidden CXXFLAGS
 @ovindex CXX
 @ovindex CXXFLAGS
 Determine a C++ compiler to use.  Check whether the environment variable
@@ -7126,6 +7143,7 @@ compilers.
 
 @defmac AC_PROG_CXXCPP
 @acindex{PROG_CXXCPP}
address@hidden CXXCPP
 @ovindex CXXCPP
 Set output variable @code{CXXCPP} to a command that runs the C++
 preprocessor.  If @samp{$CXX -E} doesn't work, @file{/lib/cpp} is used.
@@ -7154,6 +7172,8 @@ if it does not.
 
 @defmac AC_PROG_OBJC (@ovar{compiler-search-list})
 @acindex{PROG_OBJC}
address@hidden OBJC
address@hidden OBJCFLAGS
 @ovindex OBJC
 @ovindex OBJCFLAGS
 Determine an Objective C compiler to use.  If @code{OBJC} is not already
@@ -7180,6 +7200,7 @@ compiler (@option{-O2} on systems where @command{gcc} 
does not accept
 
 @defmac AC_PROG_OBJCPP
 @acindex{PROG_OBJCPP}
address@hidden OBJCPP
 @ovindex OBJCPP
 Set output variable @code{OBJCPP} to a command that runs the Objective C
 preprocessor.  If @samp{$OBJC -E} doesn't work, @file{/lib/cpp} is used.
@@ -7195,6 +7216,8 @@ Erlang/OTP programs:
 
 @defmac AC_ERLANG_PATH_ERLC (@ovar{value-if-not-found}, @dvar{path, $PATH})
 @acindex{ERLANG_PATH_ERLC}
address@hidden ERLC
address@hidden ERLCFLAGS
 @ovindex ERLC
 @ovindex ERLCFLAGS
 Determine an Erlang compiler to use.  If @code{ERLC} is not already set in the
@@ -7221,6 +7244,7 @@ program is not found.
 
 @defmac AC_ERLANG_PATH_ERL (@ovar{value-if-not-found}, @dvar{path, $PATH})
 @acindex{ERLANG_PATH_ERL}
address@hidden ERL
 @ovindex ERL
 Determine an Erlang interpreter to use.  If @code{ERL} is not already
 set in the
@@ -7266,6 +7290,8 @@ section.
 
 @defmac AC_PROG_F77 (@ovar{compiler-search-list})
 @acindex{PROG_F77}
address@hidden F77
address@hidden FFLAGS
 @ovindex F77
 @ovindex FFLAGS
 Determine a Fortran 77 compiler to use.  If @code{F77} is not already
@@ -7294,6 +7320,8 @@ where @code{g77} does not accept @option{-g}).  
Otherwise, set
 
 @defmac AC_PROG_FC (@ovar{compiler-search-list}, @ovar{dialect})
 @acindex{PROG_FC}
address@hidden FC
address@hidden FCFLAGS
 @ovindex FC
 @ovindex FCFLAGS
 Determine a Fortran compiler to use.  If @code{FC} is not already set in
@@ -14941,6 +14969,7 @@ $ @kbd{zsh -c 'false; $empty; echo $?'}
 @end example
 
 @item _
address@hidden _
 Many shells reserve @samp{$_} for various purposes, e.g., the name of
 the last command executed.
 
@@ -14975,6 +15004,14 @@ absolute or anchored at @samp{./}, as in @samp{abs=`cd 
./src && pwd`}.
 Configure scripts use M4sh, which automatically unsets @env{CDPATH} if
 possible, so you need not worry about this problem in those scripts.
 
address@hidden CLICOLOR_FORCE
address@hidden CLICOLOR_FORCE
+When this variable is set, some implementations of tools like
address@hidden attempt to add color to their output via terminal escape
+sequences, even when the output is not directed to a terminal, and can
+thus cause spurious failures in scripts.  Configure scripts use M4sh,
+which automatically unsets this variable.
+
 @item DUALCASE
 @evindex DUALCASE
 In the MKS shell, case statements and file name generation are
@@ -15013,12 +15050,21 @@ PS4='+ '
 see @pxref{unset, , Limitations of Shell Builtins}).
 
 @item FPATH
address@hidden FPATH
 The Korn shell uses @env{FPATH} to find shell functions, so avoid
 @env{FPATH} in portable scripts.  @env{FPATH} is consulted after
 @env{PATH}, but you still need to be wary of tests that use @env{PATH}
 to find whether a command exists, since they might report the wrong
 result if @env{FPATH} is also set.
 
address@hidden GREP_OPTIONS
address@hidden GREP_OPTIONS
+When this variable is set, some implementations of @command{grep} honor
+these options, even if the options include direction to enable colored
+output via terminal escape sequences, and the result can cause spurious
+failures when the output is not directed to a terminal.  Configure
+scripts use M4sh, which automatically unsets this variable.
+
 @item IFS
 @evindex IFS
 Long ago, shell scripts inherited @env{IFS} from the environment,
@@ -15090,6 +15136,7 @@ are treated like their Posix brethren (@env{LC_COLLATE},
 etc.)@: as described above.
 
 @item LINENO
address@hidden LINENO
 Most modern shells provide the current line number in @code{LINENO}.
 Its value is the line number of the beginning of the current command.
 M4sh, and hence Autoconf, attempts to execute @command{configure} with
@@ -15258,6 +15305,7 @@ points to the wrong directory.  Use @samp{`pwd`} rather 
than
 @samp{$PWD}.
 
 @item RANDOM
address@hidden RANDOM
 Many shells provide @code{RANDOM}, a variable that returns a different
 integer each time it is used.  Most of the time, its value does not
 change when it is not used, but on @sc{irix} 6.5 the value changes all
@@ -15266,6 +15314,7 @@ practice to use @code{$RANDOM} as part of a file name, 
but code
 shouldn't rely on @code{$RANDOM} expanding to a nonempty string.
 
 @item status
address@hidden status
 This variable is an alias to @samp{$?} for @code{zsh} (at least 3.1.6),
 hence read-only.  Do not use it.
 @end table
@@ -22077,6 +22126,8 @@ The @code{LIBOBJDIR} feature is experimental.
 @c the anchor keeps the old node name, to try to avoid breaking links
 @anchor{AC_FOO_IFELSE vs AC_TRY_FOO}
 
address@hidden@var{ACT}_IFELSE}
address@hidden@var{ACT}}
 Since Autoconf 2.50, internal codes uses @code{AC_PREPROC_IFELSE},
 @code{AC_COMPILE_IFELSE}, @code{AC_LINK_IFELSE}, and
 @code{AC_RUN_IFELSE} on one hand and @code{AC_LANG_SOURCES},
@@ -23640,8 +23691,8 @@ have free time again.  I think.  Yeah, right.)
 @node Environment Variable Index
 @appendixsec Environment Variable Index
 
-This is an alphabetical list of the environment variables that Autoconf
-checks.
+This is an alphabetical list of the environment variables that might
+influence Autoconf checks.
 
 @printindex ev
 
diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4
index 3c05201..c7b0bff 100644
--- a/lib/m4sugar/m4sh.m4
+++ b/lib/m4sugar/m4sh.m4
@@ -274,6 +274,9 @@ shell if you do have one.], [$[]0: ], [], [62])")
 fi
 SHELL=${CONFIG_SHELL-/bin/sh}
 export SHELL
+# Unset more variables known to interfere with behavior of common tools.
+CLICOLOR_FORCE= GREP_OPTIONS=
+unset CLICOLOR_FORCE GREP_OPTIONS
 _m4_popdef([AS_EXIT])])# _AS_DETECT_BETTER_SHELL
 
 


hooks/post-receive
-- 
GNU Autoconf source repository




reply via email to

[Prev in Thread] Current Thread [Next in Thread]