configure.ac: fail if version script returns empty string

This commit is contained in:
rofl0r 2020-09-06 20:32:52 +01:00
parent 0d71223a1d
commit 3da66364de

View File

@ -9,6 +9,11 @@ AC_INIT([Tinyproxy], [tinyproxy_version],
[https://tinyproxy.github.io/], [https://tinyproxy.github.io/],
[tinyproxy]) [tinyproxy])
tpv=tinyproxy_version
if test "x$tpv" = "x" ; then
AC_MSG_ERROR([got empty result from version script!])
fi
AC_CANONICAL_TARGET AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([dist-bzip2 dist-xz]) AM_INIT_AUTOMAKE([dist-bzip2 dist-xz])
AC_CONFIG_HEADERS(config.h) AC_CONFIG_HEADERS(config.h)