From: Sebastian Pop Date: Tue, 22 Jan 2019 19:05:53 +0000 (-0600) Subject: cleanup configure output for checking the compiler X-Git-Tag: 1.9.9-b1~539 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb8107659d5665156b64a65275e5bb10b9de71ce;p=thirdparty%2Fzlib-ng.git cleanup configure output for checking the compiler --- diff --git a/configure b/configure index 8f563256..005ad9cb 100755 --- a/configure +++ b/configure @@ -212,8 +212,8 @@ extern int getchar(); int main() {return getchar();} EOF -test -z "$CC" && echo Checking for ${CROSS_PREFIX}gcc... | tee -a configure.log cc=${CC-${CROSS_PREFIX}gcc} +echo -n "Checking for compiler... " | tee -a configure.log case "$cc" in *gcc*) gcc=1 ;; *clang*) gcc=1 ;; @@ -263,7 +263,7 @@ fi show $cc -c $test.c if test "$gcc" -eq 1 && ($cc $CFLAGS -c $test.c) >> configure.log 2>&1; then - echo ... using gcc >> configure.log + echo "$cc" | tee -a configure.log CC="$cc" CFLAGS="${CFLAGS} -std=c99" @@ -462,7 +462,7 @@ else # find system name and corresponding cc options CC=${CC-cc} gcc=0 - echo ... using $CC >> configure.log + echo "$CC" | tee -a configure.log if test -z "$uname"; then uname=`(uname -sr || echo unknown) 2>/dev/null` fi