From: Miroslav Lichvar Date: Thu, 24 Jan 2013 16:31:40 +0000 (+0100) Subject: Save compiler messages to config.log in configure X-Git-Tag: 1.27~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8893dda350ed6375da0e01a94a914e00fd00f0ea;p=thirdparty%2Fchrony.git Save compiler messages to config.log in configure --- diff --git a/configure b/configure index f7e0f832..1461997c 100755 --- a/configure +++ b/configure @@ -8,7 +8,7 @@ # # ======================================================================= -rm -f config.h +rm -f config.h config.log # This configure script determines the operating system type and version @@ -54,7 +54,13 @@ test_code () { echo "return 0; }" ) > docheck.c - $MYCC $MYCFLAGS $MYCPPFLAGS $cflags -o docheck docheck.c $ldflags $MYLDFLAGS >/dev/null 2>&1 + echo "docheck.c:" >> config.log + cat docheck.c >> config.log + echo $MYCC $MYCFLAGS $MYCPPFLAGS $cflags -o docheck docheck.c $ldflags \ + $MYLDFLAGS >> config.log + $MYCC $MYCFLAGS $MYCPPFLAGS $cflags -o docheck docheck.c $ldflags \ + $MYLDFLAGS >> config.log 2>&1 + if [ $? -eq 0 ] then printf "Yes\n" @@ -64,6 +70,7 @@ test_code () { result=1 fi rm -f docheck.c docheck + echo >> config.log return $result } #}}}