drop -q flag when using grep
authorMike Frysinger <vapier@gentoo.org>
Wed, 24 Oct 2012 02:37:50 +0000 (22:37 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 24 Oct 2012 17:00:48 +0000 (13:00 -0400)
We don't currently want to rely on the -q option to grep.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
ChangeLog
configure
configure.in

index d0dd89d5a15a99dfa3591a52ccd1aa17ef163529..0b34621859d2953bbcc95c1e160716c844799f99 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-10-24  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
+       send the output to /dev/null.
+       (libc_cv_cc_with_libunwind): Likewise.
+       (libc_cv_as_noexecstack): Likewise.
+       * configure: Regenerate.
+
 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
 
        * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
index ed5df88829daf25593b59156421a612d3f5a5715..2592022260d99d631694d87d1c67b323e12c2449 100755 (executable)
--- a/configure
+++ b/configure
@@ -5384,7 +5384,7 @@ $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
 if ${libc_cv_gcc_static_libgcc+:} false; then :
   $as_echo_n "(cached) " >&6
 else
-  if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
+  if $CC -v -static-libgcc 2>&1 | grep 'unrecognized option.*static-libgcc' >/dev/null; then
   libc_cv_gcc_static_libgcc=
 else
   libc_cv_gcc_static_libgcc=-static-libgcc
@@ -6139,7 +6139,7 @@ else
 int main (void) { return 0; }
 EOF
   if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
-     conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
+     conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
     libc_cv_cc_with_libunwind=yes
   else
     libc_cv_cc_with_libunwind=no
@@ -6370,7 +6370,7 @@ if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
   ac_status=$?
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   test $ac_status = 0; }; } \
-   && grep -q .note.GNU-stack conftest.s \
+   && grep .note.GNU-stack conftest.s >/dev/null \
    && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
                      -c -o conftest.o conftest.s 1>&5'
   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
index 3af030a8562b1b7ed1d75e8a2965ab8efe06e7b3..b3fab3772b30fe3b6181b6728cfb4ef91f9d84d3 100644 (file)
@@ -1011,7 +1011,7 @@ AC_MSG_ERROR([
 fi
 
 AC_CACHE_CHECK(whether GCC supports -static-libgcc, libc_cv_gcc_static_libgcc, [dnl
-if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
+if $CC -v -static-libgcc 2>&1 | grep 'unrecognized option.*static-libgcc' >/dev/null; then
   libc_cv_gcc_static_libgcc=
 else
   libc_cv_gcc_static_libgcc=-static-libgcc
@@ -1376,7 +1376,7 @@ AC_CACHE_CHECK(for libunwind-support in compiler,
 int main (void) { return 0; }
 EOF
   if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
-     conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
+     conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
     libc_cv_cc_with_libunwind=yes
   else
     libc_cv_cc_with_libunwind=no
@@ -1526,7 +1526,7 @@ void foo (void) { }
 EOF
 if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS
                   -S -o conftest.s conftest.c 1>&AS_MESSAGE_LOG_FD]) \
-   && grep -q .note.GNU-stack conftest.s \
+   && grep .note.GNU-stack conftest.s >/dev/null \
    && AC_TRY_COMMAND([${CC-cc} $ASFLAGS -Wa,--noexecstack
                      -c -o conftest.o conftest.s 1>&AS_MESSAGE_LOG_FD])
 then