summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-06-25 15:41:49 -0400
committermidipix <writeonce@midipix.org>2016-09-21 19:45:54 -0400
commit40a65452bda385e41017ec095207a1ba02ea8982 (patch)
tree7523317c3baab0a28238c6577dbd4a586d04d410
parent041f2dacf3e5438bf1e7257a6474b88f82919929 (diff)
downloadbcparser-40a65452bda385e41017ec095207a1ba02ea8982.tar.bz2
bcparser-40a65452bda385e41017ec095207a1ba02ea8982.tar.xz
build system: use `grep -q` instead of `grep > /dev/null`.
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index 80c808f..0593de5 100755
--- a/configure
+++ b/configure
@@ -277,19 +277,19 @@ native_defaults()
fi
if [ -z "$mb_compiler" ]; then
- $mb_native_cc -dM -E - < /dev/null | grep '__clang__' > /dev/null && mb_compiler='clang'
+ $mb_native_cc -dM -E - < /dev/null | grep -q '__clang__' && mb_compiler='clang'
fi
if [ -z "$mb_compiler" ]; then
- $mb_native_cc -dM -E - < /dev/null | grep '__GCC' > /dev/null && mb_compiler='gcc'
+ $mb_native_cc -dM -E - < /dev/null | grep -q '__GCC' && mb_compiler='gcc'
fi
if [ -z "$mb_compiler" ]; then
- $mb_native_cc -dM -E - < /dev/null | grep "^gcc" > /dev/null && mb_compiler='gcc'
+ $mb_native_cc -dM -E - < /dev/null | grep -q "^gcc" && mb_compiler='gcc'
fi
if [ -z "$mb_compiler" ]; then
- $mb_native_cc -dM -E - < /dev/null | grep '__CPARSER__' > /dev/null && mb_compiler='cparser'
+ $mb_native_cc -dM -E - < /dev/null | grep -q '__CPARSER__' && mb_compiler='cparser'
fi
if [ -z "$mb_compiler" ]; then