From: Dave Hart Date: Wed, 6 Jan 2010 18:52:49 +0000 (+0000) Subject: [Bug 1453] Use $CC in config.cache filename in ./build script. X-Git-Tag: NTP_4_2_7P8~1^2~1^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d48e238e5abbdee40759b6c3516e30d5947106e;p=thirdparty%2Fntp.git [Bug 1453] Use $CC in config.cache filename in ./build script. bk: 4b44dc01j-ge0gjDXFtA1WkzanA6eg --- diff --git a/ChangeLog b/ChangeLog index a7f7d354c..523fcbb3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,10 @@ --- -* [Bug 1445] IRIX does not have -lcap or support linux capabilities. -* [Bug 1440] Update configure.ac to support kfreebsd. -* [Bug 1439] .texi generation must wait until after binary is linked. * [Bug 1127] Properly check the return of X590_verify() - missed one. +* [Bug 1439] .texi generation must wait until after binary is linked. +* [Bug 1440] Update configure.ac to support kfreebsd. +* [Bug 1445] IRIX does not have -lcap or support linux capabilities. +* [Bug 1453] Use $CC in config.cache filename in ./build script. --- (4.2.6p1-RC2) 2009/12/25 Released by Harlan Stenn diff --git a/build b/build index c4cc3b86f..33eb451e4 100755 --- a/build +++ b/build @@ -84,11 +84,12 @@ case "$CONFIG_ARGS" in ;; esac -CCSUF="" - case "$CC" in - '') ;; - *) CCSUF="-`echo $CC | sed -e 's: :_:g' -e's:/:+:g'`" + '') + CCSUF="" + ;; + *) + CCSUF="-`echo $CC | sed -e 's: :_:g' -e's:/:+:g'`" ;; esac @@ -103,38 +104,36 @@ cd $BDIR # # Make sure we have a nice that works. -# To disable use of nice make a dummy nice script such -# as the heredoc a few lines below and set BNICE to its -# path. -# +# To disable use of nice, setenv NO_NICE_BUILD=1 # -nice true && NICEB=nice -nice true || { - NICEB=./.nicebuild-$MYNAME-$SIG - cat > .nicebuild-$MYNAME-$SIG <<-HEREDOC +NICEB="" +[ "$NO_NICE_BUILD" != "1" ] && nice true && NICEB=nice +[ -z "$NICEB" ] && { + NICEB="./.nicebuild-$MYNAME-$SIG" + cat > $NICEB <<-HEREDOC #! /bin/sh shift \$* HEREDOC - chmod +x .nicebuild-$MYNAME-$SIG + chmod +x $NICEB } +CONFIGURE="../configure --cache-file=../config.cache-$IAM$CCSUF $CONFIG_ARGS" -( -[ -f config.status ] || $NICEB -7 ../configure \ - --cache-file=../config.cache-$IAM \ - $CONFIG_ARGS - -$NICEB -5 ./config.status - -case "$MAKE" in - '') $NICEB -14 make && $NICEB -10 make check - ;; - *) $NICEB -14 $MAKE && $NICEB -10 $MAKE check - ;; -esac +( # This sequence of commands is logged to make.log. + [ -f config.status ] || $NICEB -7 $CONFIGURE + $NICEB -5 ./config.status + $NICEB -14 ${MAKE-make} && $NICEB -10 ${MAKE-make} check ) > $LOGF 2>&1 +EXITCODE=$? # clean up if we made a dummy nice script -[ -f .nicebuild-$MYNAME-$SIG ] && rm .nicebuild-$MYNAME-$SIG +case "$NICEB" in + nice) + ;; + *) + rm $NICEB +esac + +exit $EXITCODE