]> git.lizzy.rs Git - rust.git/commitdiff
configure: quiet some greps.
authorGraydon Hoare <graydon@mozilla.com>
Wed, 29 Feb 2012 02:42:28 +0000 (18:42 -0800)
committerGraydon Hoare <graydon@mozilla.com>
Wed, 29 Feb 2012 06:39:44 +0000 (22:39 -0800)
configure

index 077723890acd8147f199eb2df948e1baee65b215..ac7d08a3832281d4bff6dcdb9261b8b65728baf1 100755 (executable)
--- a/configure
+++ b/configure
@@ -198,7 +198,7 @@ if [ $CFG_OSTYPE = Darwin -a $CFG_CPUTYPE = i386 ]
 then
     # Darwin's `uname -s` lies and always returns i386. We have to use sysctl
     # instead.
-    if sysctl hw.optional.x86_64 | grep ': 1'
+    if sysctl hw.optional.x86_64 | grep -q ': 1'
     then
         CFG_CPUTYPE=x86_64
     fi
@@ -391,7 +391,7 @@ fi
 
 if [ ! -z "$CFG_PERF" ]
 then
-    HAVE_PERF_LOGFD=`$CFG_PERF stat --log-fd 2>&1 | grep 'unknown option'`
+    HAVE_PERF_LOGFD=`$CFG_PERF stat --log-fd 2>&1 | grep -q 'unknown option'`
     if [ -z "$HAVE_PERF_LOGFD" ];
     then
         CFG_PERF_WITH_LOGFD=1