From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Tue, 6 Jul 2021 18:24:51 +0000 (+0100) Subject: Check that a git archive actually exists as well as the git app being installed. X-Git-Tag: 4.1-dev~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4a625cf9c0be2452c213d891c673cd042d0db5c;p=thirdparty%2Fshairport-sync.git Check that a git archive actually exists as well as the git app being installed. --- diff --git a/configure.ac b/configure.ac index 541ec999..5e4cf244 100644 --- a/configure.ac +++ b/configure.ac @@ -9,11 +9,10 @@ AC_CONFIG_HEADERS([config.h]) AC_PROG_RANLIB AC_CHECK_PROGS([GIT], [git]) -if test -n "$GIT"; then +if test -n "$GIT" && test -e ".git/index" ; then AC_DEFINE([CONFIG_USE_GIT_VERSION_STRING], 1, [Use the version string produced by running 'git describe --dirty'.]) fi -AM_CONDITIONAL([USE_GIT_VERSION], [test -n "$GIT"]) - +AM_CONDITIONAL([USE_GIT_VERSION], [test -n "$GIT" && test -e ".git/index" ]) # Derived from the Avahi configure.ac file # Specifying the OS type, defaulting to linux.