]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Support running configure in non-dev-mode in a git-less dev environment
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 15 Jun 2010 08:52:04 +0000 (10:52 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 15 Jun 2010 08:52:04 +0000 (10:52 +0200)
configure.ac

index 59772e87818a713b5636c5834238c286f914fa77..bf71b9d813815a5844e4187e22823dbc14bcc63b 100644 (file)
@@ -294,6 +294,9 @@ 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
+    AC_MSG_WARN(unable to determine ccache version)
+    echo "const char CCACHE_VERSION@<:@@:>@ = \"unknown\";" >version.c
 fi
 
 mkdir -p .deps