# HG changeset patch # User "Yann E. MORIN" # Date 1263765962 -3600 # Node ID c57458bb354d6e255a99a7675b800b01f6fc2c65 # Parent 3dd3b62799855a024923537d926ddf6f3b996ccd configure: do not require hg when configuring in an hg clone When configuring in an hg clone, we need hg to compute the version string. It can happen that users do not have Mercurial (eg. if they got a snapshot rather that they did a full clone). In this case, we can still run, of course, so simply fill the version string with a sufficiently explicit value, that does not require hg. The date is a good candidate. diff -r 3dd3b6279985 -r c57458bb354d configure --- a/configure Sun Jan 17 11:57:53 2010 -0500 +++ b/configure Sun Jan 17 23:06:02 2010 +0100 @@ -383,11 +383,10 @@ # If this version is n hg clone, try to get the revision number # If we can't get the revision number, use date +printf "Computing version string... " case "${VERSION}" in *+hg|hg) - has_or_abort prog=hg - printf "Computing version string... " - REVISION="$( hg id -n 2>/dev/null )" + REVISION="$( hg id -n 2>/dev/null || true )" case "${REVISION}" in "") VERSION="${VERSION}_unknown@$( date +%Y%m%d.%H%M%S )";; @@ -400,7 +399,7 @@ VERSION="$( printf "${VERSION}\n" |"${sed}" -r -e 's|/+|_|g;' )" ;; esac -echo "${VERSION}" +printf "${VERSION}\n" #--------------------------------------------------------------------- # Compute and check install paths