Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ dnl Version Information imported from Version.config and Git
dnl ===========================================================================

AC_CHECK_PROG([GITCMD], [git —version], [yes], [no])
AC_CHECK_FILE([.git], [DOTGITDIR=yes], [DOTGITDIR=no])
# Note: AC_CHECK_FILE doesn't work when cross-compiling
if test -d .git; then
DOTGITDIR=yes
else
DOTGITDIR=no
fi
if test "x${GITCMD}" = "xyes" -a "x${DOTGITDIR}" = "xyes"; then
GIT_COMMIT_HASH=" $(git rev-parse --short HEAD)"
else
Expand Down