diff options
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 0af6e64..157c252 100644 --- a/configure.ac +++ b/configure.ac @@ -338,7 +338,9 @@ AM_COND_IF([ENABLE_LARGE_TILES], [ AS_IF([test -e "${srcdir}/.git"], [ AC_PATH_PROG([git_bin], [git]) AS_IF([test -n "$git_bin"], [ - srcversion_string="commit: $("$git_bin" -C "$srcdir" describe --tags --long --always --dirty --broken --abbrev=40)" + tmp="$("$git_bin" -C "$srcdir" describe --tags --long --always --dirty --broken --abbrev=40 2>/dev/null)" + test "$?" -eq 0 || tmp="failed to get commit" + srcversion_string="commit: $tmp" ], [ srcversion_string="custom after: AC_PACKAGE_VERSION" ]) |