Use grep instead of egrep, don't redirect stderr.
+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
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
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
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
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.
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
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
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
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
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
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
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
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
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