From: Florian Weimer Date: Tue, 13 Jun 2017 20:09:59 +0000 (+0200) Subject: configure: Suppress expected compiler error message X-Git-Tag: glibc-2.26~359 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2528fef3b05bcffb1ac27c6c09cc3ff24b7f03f;p=thirdparty%2Fglibc.git configure: Suppress expected compiler error message --- diff --git a/ChangeLog b/ChangeLog index efc78b5110f..c86ab8781c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2017-06-13 Florian Weimer + + * configure.ac (find_cxx_header): Suppress compiler error message. + 2017-06-13 Florian Weimer * malloc/dynarray-skeleton.c: List begin/end as defined functions. diff --git a/configure b/configure index ceb53949baa..4c2922d882c 100755 --- a/configure +++ b/configure @@ -5337,7 +5337,8 @@ fi # copy of those headers in Makerules. if test -n "$CXX"; then find_cxx_header () { - echo "#include <$1>" | $CXX -M -MP -x c++ - | sed -n "\,$1:,{s/:\$//;p}" + echo "#include <$1>" | $CXX -M -MP -x c++ - 2>/dev/null \ + | sed -n "\,$1:,{s/:\$//;p}" } CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)" CXX_CMATH_HEADER="$(find_cxx_header cmath)" diff --git a/configure.ac b/configure.ac index d74bd4490c1..3f486d6df49 100644 --- a/configure.ac +++ b/configure.ac @@ -1187,7 +1187,8 @@ AC_SUBST(CXX_SYSINCLUDES) # copy of those headers in Makerules. if test -n "$CXX"; then find_cxx_header () { - echo "#include <$1>" | $CXX -M -MP -x c++ - | sed -n "\,$1:,{s/:\$//;p}" + echo "#include <$1>" | $CXX -M -MP -x c++ - 2>/dev/null \ + | sed -n "\,$1:,{s/:\$//;p}" } CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)" CXX_CMATH_HEADER="$(find_cxx_header cmath)"