From: Sebastian Pop Date: Mon, 1 Apr 2019 18:21:18 +0000 (-0500) Subject: fix configure output when compiler is clang X-Git-Tag: 1.9.9-b1~492 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a7f4cea9488498a0433c7ca42a3319ad97c37b5;p=thirdparty%2Fzlib-ng.git fix configure output when compiler is clang The patch cleans up the expected errors that clutter the output of configure: $ CC=clang ./configure Checking for compiler... clang-6.0 clang: error: unknown argument: '-print-multiarch' clang: error: no input files With this patch the last two lines disappear. --- diff --git a/configure b/configure index b37123ce..f57f8327 100755 --- a/configure +++ b/configure @@ -266,7 +266,7 @@ if test "$gcc" -eq 1 && ($cc $CFLAGS -c $test.c) >> configure.log 2>&1; then CFLAGS="${CFLAGS} -std=c99" # Re-check ARCH if the compiler is a cross-compiler. - if $CC -print-multiarch && test -n "$($CC -print-multiarch)" 1> /dev/null 2>&1; then + if $CC -print-multiarch 1> /dev/null 2>&1 && test -n "$($CC -print-multiarch)" 1> /dev/null 2>&1; then CC_ARCH=`$CC $CFLAGS -print-multiarch | sed 's/-.*//g'` else CC_ARCH=`$CC $CFLAGS -dumpmachine | sed 's/-.*//g'`