summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorGreg Steuck <greg@nest.cx>2022-07-09 19:07:03 -0700
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-07-16 07:22:29 -0400
commit1bbff35d4ca991c040e5f675554175a06af1554b (patch)
tree75d8ab8af88224d2e3613f20b8ce22f06cb4c702 /m4
parent4ef1c65d76ef4aeb0fbd6a3667be628571c86f54 (diff)
downloadhaskell-1bbff35d4ca991c040e5f675554175a06af1554b.tar.gz
Suppress extra output from configure check for c++ libraries
Diffstat (limited to 'm4')
-rw-r--r--m4/fp_find_cxx_std_lib.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/fp_find_cxx_std_lib.m4 b/m4/fp_find_cxx_std_lib.m4
index d0bb3195c6..68ac0e617d 100644
--- a/m4/fp_find_cxx_std_lib.m4
+++ b/m4/fp_find_cxx_std_lib.m4
@@ -19,7 +19,7 @@ unknown
EOF
AC_MSG_CHECKING([C++ standard library flavour])
if "$CXX" -E actest.cpp -o actest.out; then
- if grep "libc++" actest.out; then
+ if grep "libc++" actest.out >/dev/null; then
CXX_STD_LIB_LIBS="c++ c++abi"
p="`"$CXX" --print-file-name libc++.so`"
d="`dirname "$p"`"
@@ -32,7 +32,7 @@ EOF
CXX_STD_LIB_LIB_DIRS="$d"
CXX_STD_LIB_DYN_LIB_DIRS="$d"
AC_MSG_RESULT([libc++])
- elif grep "libstdc++" actest.out; then
+ elif grep "libstdc++" actest.out >/dev/null; then
CXX_STD_LIB_LIBS="stdc++"
p="`"$CXX" --print-file-name libstdc++.so`"
d="`dirname "$p"`"