From: Joel Rosdahl Date: Tue, 15 Jun 2010 08:52:04 +0000 (+0200) Subject: Support running configure in non-dev-mode in a git-less dev environment X-Git-Tag: v3.0~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=092541147578f17152314f26f71692c221e5aff6;p=thirdparty%2Fccache.git Support running configure in non-dev-mode in a git-less dev environment --- diff --git a/configure.ac b/configure.ac index 59772e878..bf71b9d81 100644 --- a/configure.ac +++ b/configure.ac @@ -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