From: Joel Rosdahl Date: Thu, 15 Jul 2010 15:32:11 +0000 (+0200) Subject: Correctly determine ccache version when building in a separate directory X-Git-Tag: v3.0.1~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb0abeed29d56052a8252c96e4c191174575a789;p=thirdparty%2Fccache.git Correctly determine ccache version when building in a separate directory --- diff --git a/NEWS.txt b/NEWS.txt index 7f2cdb233..db6f63826 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -10,6 +10,7 @@ Bug fixes - The statistics counter ``called for link'' is now correctly updated when linking with a single object file. + - Fixed a problem with out-of-source builds. ccache 3.0 (2010-06-20) diff --git a/configure.ac b/configure.ac index bf71b9d81..95e89d21f 100644 --- a/configure.ac +++ b/configure.ac @@ -294,7 +294,7 @@ mv config.h.tmp config.h if test "x$ccache_dev" = "xyes"; then version=`(git describe --dirty 2>/dev/null || echo vunknown) | sed -e 's/v//' -e 's/-/+/' -e 's/-/_/g'` echo "const char CCACHE_VERSION@<:@@:>@ = \"$version\";" >version.c -elif test ! -f version.c; then +elif test ! -f $srcdir/version.c; then AC_MSG_WARN(unable to determine ccache version) echo "const char CCACHE_VERSION@<:@@:>@ = \"unknown\";" >version.c fi