[build] Fix build breakage.

This commit is contained in:
Suresh Sundriyal 2023-08-03 01:09:42 -07:00
parent 7e9bdfbfcd
commit d4aa72aec2

View File

@ -298,13 +298,13 @@ AS_CASE(["$host_os"],
saved_location=$(pwd)
cd $srcdir
version=$(echo $(git describe --abbrev=7 --dirty --always --tags 2>/dev/null) | sed -e 's/^v//' 2>/dev/null)
cd $saved_location
AS_IF([test $? -eq 0],
[version=$(echo $version | tr -d '\n')
version=${version:-${PACKAGE_VERSION}}
AC_DEFINE_UNQUOTED([VCS_PACKAGE_STRING], ["$PACKAGE_NAME $version"],
[VCS package string])],
AC_DEFINE_UNQUOTED([VCS_PACKAGE_STRING], ["$PACKAGE_STRING"], [VCS package string]))
cd $saved_location
AM_CONDITIONAL(USE_INCLUDED_YAJL, test $HAVE_LOCAL_YAJL -eq 0)
AM_CONDITIONAL(HAVE_LIBCURL, test x"$LIBCURL" != x"")