diff --git a/smartmontools/ChangeLog b/smartmontools/ChangeLog
index 4e5c365e16de293dc62c2911cfa80b4ea7f6d519..1f457d63a70c7b189f8c5bb41b2abbfc1d5c5a85 100644
--- a/smartmontools/ChangeLog
+++ b/smartmontools/ChangeLog
@@ -2,6 +2,8 @@ $Id$
 
 2022-03-04  Christian Franke  <franke@computer.org>
 
+	configure.ac: Add "pre-" also on man pages.
+
 	smartd.8.in: Attribute logs use local time since smartmontools 7.1.
 
 	smartctl.8.in, smartd.conf.5.in, update-smart-drivedb.8.in:
diff --git a/smartmontools/configure.ac b/smartmontools/configure.ac
index d8f5395362307434902ba69ebdee45d98e93b082..d70c30d3a557c170403117a9b7ea53119b699af0 100644
--- a/smartmontools/configure.ac
+++ b/smartmontools/configure.ac
@@ -16,6 +16,10 @@ smartmontools_release_time= # "16:33:40 UTC"
 if test -n "$smartmontools_release_date"; then
   AC_DEFINE_UNQUOTED(SMARTMONTOOLS_RELEASE_DATE, "$smartmontools_release_date",    [smartmontools Release Date])
   AC_DEFINE_UNQUOTED(SMARTMONTOOLS_RELEASE_TIME, "$smartmontools_release_time",    [smartmontools Release Time])
+  AC_SUBST(releaseversion, ['${PACKAGE}-${VERSION}'])
+else
+  # Add "pre-" also on man pages.
+  AC_SUBST(releaseversion, ['${PACKAGE}-pre-${VERSION}'])
 fi
 
 smartmontools_cvs_tag=`echo '$Id$'`
@@ -613,10 +617,6 @@ else
 fi
 AM_CONDITIONAL(NEED_REGEX, [test "$need_regex" = "yes"])
 
-AC_SUBST(releaseversion,['${PACKAGE}-${VERSION}'])
-AC_SUBST(smartmontools_release_date)
-AC_SUBST(smartmontools_release_time)
-
 # Set platform-specific modules and symbols
 os_libs=
 os_dltools='curl wget lynx svn'