aboutsummaryrefslogtreecommitdiffstats
path: root/dists/autogen/m4
diff options
context:
space:
mode:
Diffstat (limited to 'dists/autogen/m4')
-rw-r--r--dists/autogen/m4/ax_extract_version.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/dists/autogen/m4/ax_extract_version.m4 b/dists/autogen/m4/ax_extract_version.m4
index e9501f69..c514e3c3 100644
--- a/dists/autogen/m4/ax_extract_version.m4
+++ b/dists/autogen/m4/ax_extract_version.m4
@@ -39,6 +39,10 @@ eof
# Note: Do NOT indent the eof-delimiter
# We use a here-document (<<< here-strings not POSIX compatible)
+ test -z $major && major=0
+ test -z $minor && minor=0
+ test -z $release && release=0
+
# strip preceding 0s and set unset version-parts to 0
[$1][_VERSION_MAJOR]=$(($major))
[$1][_VERSION_MINOR]=$(($minor))