]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/aclocal.m4 (AT_STATE_SAVE): Don't even try to preserve
authorAkim Demaille <akim@epita.fr>
Wed, 6 Dec 2000 15:14:16 +0000 (15:14 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 6 Dec 2000 15:14:16 +0000 (15:14 +0000)
egrep error messages, AT_CHECK will find them.

ChangeLog
tests/aclocal.m4

index 7b4ee7e500500ab538d8f982516937035f512513..eef60299a20e80f2ef6e4b5a4b8826fe452c87f2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-12-06  Akim Demaille  <akim@epita.fr>
+
+       * tests/aclocal.m4 (AT_STATE_SAVE): Don't even try to preserve
+       egrep error messages, AT_CHECK will find them.
+
 2000-12-06  Akim Demaille  <akim@epita.fr>
 
        * doc/autoconf.texi (Limitations of Usual Tools) <awk>: `for' on
index c27fcc7dc73d45cc04bd10c81709fbff3921d400..b7977ed6087c310ffa7018e68ddfde623682813a 100644 (file)
 # - AWK|LEX|LEXLIB|LEX_OUTPUT_ROOT|LN_S|M4|RANLIB|SET_MAKE|YACC
 #   AC_PROGs from acspecific
 # - _|@|.[*#?].|LINENO|OLDPWD|PIPESTATUS|RANDOM|SECONDS
-#   Some variables some shells use and change
+#   Some variables some shells use and change.
+#   `.[*#?].' catches `$#' etc. which are displayed like this:
+#      | '!'=18186
+#      | '#'=0
+#      | '$'=6908
 # - POW_LIB
 #   From acfunctions.m4.
+#
+# Some `egrep' choke on such a big regex (e.g., SunOS 4.1.3).  In this
+# case just don't pay attention to the env.  It would be great
+# to keep the error message but we can't: that would break AT_CHECK.
 m4_defun([AC_STATE_SAVE],
 [(set) 2>&1 |
   egrep -v -e 'm4_join([|],
@@ -33,12 +41,10 @@ m4_defun([AC_STATE_SAVE],
       [^(f77_(case|underscore))=],
       [^(ALLOCA|GETLOADAVG_LIBS|KMEM_GROUP|NEED_SETGID|POW_LIB)=],
       [^(AWK|LEX|LEXLIB|LEX_OUTPUT_ROOT|LN_S|M4|RANLIB|SET_MAKE|YACC)=],
-      [^(_|@|.[*#?].|LINENO|OLDPWD|PIPESTATUS|RANDOM|SECONDS)=])' |
+      [^(_|@|.[*#?].|LINENO|OLDPWD|PIPESTATUS|RANDOM|SECONDS)=])' 2>/dev/null |
   # There maybe variables spread on several lines, eg IFS, remove the dead
   # lines.
   fgrep = >state-env.$1
-# Some `egrep' choke on such a big regex (e.g., SunOS 4.1.3).  In this
-# case just don't pay attention to the env.
 test $? = 0 || rm -f state-env.$1
 
 ls -1 | grep -v '^state' | sort >state-ls.$1