From 9c430e7c22b80cf98ac7bc802785e84af65fc4b6 Mon Sep 17 00:00:00 2001 From: midipix Date: Nov 11 2016 04:35:50 +0000 Subject: build system: use `grep -q` instead of `grep > /dev/null`. --- diff --git a/configure b/configure index bbb469d..250655e 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