]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* aclang.m4 (_AC_PROG_CXX_GNU, _AC_PROG_CC_GNU, _AC_PROG_F77_GNU):
authorAkim Demaille <akim@epita.fr>
Tue, 1 Aug 2000 10:03:41 +0000 (10:03 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 1 Aug 2000 10:03:41 +0000 (10:03 +0000)
Use grep instead of egrep, don't redirect stderr.

ChangeLog
aclang.m4
doc/autoconf.texi
lib/autoconf/c.m4
lib/autoconf/fortran.m4
lib/autoconf/lang.m4

index d8272f8dc71372c7eab2f9b634a9aa58dc75d7fe..4f93921f15055178a4e34c576bb5086a6653e994 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-08-01  Akim Demaille  <akim@epita.fr>
+
+       * aclang.m4 (_AC_PROG_CXX_GNU, _AC_PROG_CC_GNU, _AC_PROG_F77_GNU):
+       Use grep instead of egrep, don't redirect stderr.
+
 2000-08-01  Akim Demaille  <akim@epita.fr>
 
        * acgeneral.m4 (_AC_INIT_NOTICE): Adjust so that there are no
index 73c3d675eaf6c421367ea6672f4598bb4a325e6e..7076fe8e8e2c75826d760d18d60e65c88d407b91 100644 (file)
--- a/aclang.m4
+++ b/aclang.m4
@@ -591,7 +591,7 @@ cat >conftest.$ac_ext <<_ACEOF
   yes;
 #endif
 _ACEOF
-if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
+if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | grep yes >/dev/null; then
   ac_cv_prog_gcc=yes
 else
   ac_cv_prog_gcc=no
@@ -783,7 +783,7 @@ cat >conftest.$ac_ext <<_ACEOF
   yes;
 #endif
 _ACEOF
-if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
+if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | grep yes >/dev/null; then
   ac_cv_prog_gxx=yes
 else
   ac_cv_prog_gxx=no
@@ -885,7 +885,7 @@ define([_AC_PROG_F77_GNU],
   yes
 #endif
 _ACEOF
-if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
+if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | grep yes >/dev/null; then
   ac_cv_prog_g77=yes
 else
   ac_cv_prog_g77=no
index 407bfc8e67a4e55825cdf55e07f7b23170962f50..6b5f94f44f77fbefed0235816d3df785aa2b75dd 100644 (file)
@@ -3985,15 +3985,16 @@ AC_PROG_CXX(cl KCC CC cxx cc++ xlC aCC c++ g++ egcs gcc)
 
 If using the @sc{gnu} C++ compiler, set shell variable @code{GXX} to
 @samp{yes}.  If output variable @code{CXXFLAGS} was not already set, set
-it to @option{-g -O2} for the @sc{gnu} C++ compiler (@option{-O2} on systems
-where G++ does not accept @option{-g}), or @option{-g} for other compilers.
+it to @option{-g -O2} for the @sc{gnu} C++ compiler (@option{-O2} on
+systems where G++ does not accept @option{-g}), or @option{-g} for other
+compilers.
 @end defmac
 
 @defmac AC_PROG_CXXCPP
 @maindex PROG_CXXCPP
 @ovindex CXXCPP
-Set output variable @code{CXXCPP} to a command that runs the
-C++ preprocessor.  If @samp{$CXX -E} doesn't work, it uses @file{/lib/cpp}.
+Set output variable @code{CXXCPP} to a command that runs the C++
+preprocessor.  If @samp{$CXX -E} doesn't work, it uses @file{/lib/cpp}.
 It is only portable to run @code{CXXCPP} on files with a @file{.c},
 @file{.C}, or @file{.cc} extension.
 
index 73c3d675eaf6c421367ea6672f4598bb4a325e6e..7076fe8e8e2c75826d760d18d60e65c88d407b91 100644 (file)
@@ -591,7 +591,7 @@ cat >conftest.$ac_ext <<_ACEOF
   yes;
 #endif
 _ACEOF
-if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
+if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | grep yes >/dev/null; then
   ac_cv_prog_gcc=yes
 else
   ac_cv_prog_gcc=no
@@ -783,7 +783,7 @@ cat >conftest.$ac_ext <<_ACEOF
   yes;
 #endif
 _ACEOF
-if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
+if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | grep yes >/dev/null; then
   ac_cv_prog_gxx=yes
 else
   ac_cv_prog_gxx=no
@@ -885,7 +885,7 @@ define([_AC_PROG_F77_GNU],
   yes
 #endif
 _ACEOF
-if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
+if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | grep yes >/dev/null; then
   ac_cv_prog_g77=yes
 else
   ac_cv_prog_g77=no
index 73c3d675eaf6c421367ea6672f4598bb4a325e6e..7076fe8e8e2c75826d760d18d60e65c88d407b91 100644 (file)
@@ -591,7 +591,7 @@ cat >conftest.$ac_ext <<_ACEOF
   yes;
 #endif
 _ACEOF
-if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
+if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | grep yes >/dev/null; then
   ac_cv_prog_gcc=yes
 else
   ac_cv_prog_gcc=no
@@ -783,7 +783,7 @@ cat >conftest.$ac_ext <<_ACEOF
   yes;
 #endif
 _ACEOF
-if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
+if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | grep yes >/dev/null; then
   ac_cv_prog_gxx=yes
 else
   ac_cv_prog_gxx=no
@@ -885,7 +885,7 @@ define([_AC_PROG_F77_GNU],
   yes
 #endif
 _ACEOF
-if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
+if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | grep yes >/dev/null; then
   ac_cv_prog_g77=yes
 else
   ac_cv_prog_g77=no
index 73c3d675eaf6c421367ea6672f4598bb4a325e6e..7076fe8e8e2c75826d760d18d60e65c88d407b91 100644 (file)
@@ -591,7 +591,7 @@ cat >conftest.$ac_ext <<_ACEOF
   yes;
 #endif
 _ACEOF
-if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
+if AC_TRY_COMMAND(${CC-cc} -E conftest.$ac_ext) | grep yes >/dev/null; then
   ac_cv_prog_gcc=yes
 else
   ac_cv_prog_gcc=no
@@ -783,7 +783,7 @@ cat >conftest.$ac_ext <<_ACEOF
   yes;
 #endif
 _ACEOF
-if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
+if AC_TRY_COMMAND(${CXX-g++} -E conftest.$ac_ext) | grep yes >/dev/null; then
   ac_cv_prog_gxx=yes
 else
   ac_cv_prog_gxx=no
@@ -885,7 +885,7 @@ define([_AC_PROG_F77_GNU],
   yes
 #endif
 _ACEOF
-if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | egrep yes >/dev/null 2>&1; then
+if AC_TRY_COMMAND($F77 -E conftest.$ac_ext) | grep yes >/dev/null; then
   ac_cv_prog_g77=yes
 else
   ac_cv_prog_g77=no