configure: add --enable-rpm415 option

It's useful to be able to force the build system into avoiding the use
of rpm 4.15 version or higher.  That version of RPM is the one that
supports RPMs from Fedora 31 or higher.  Those RPMs use the zstd
compression scheme.  Prior to Fedora 31, RPM were not using the zstd
compression scheme.  So, systems with rpm version lower than 4.15
cannot deal with RPMs coming from Fedora 31 or higher.  So on those
systems, some regression tests of libabigail who use RPMs from Fedora
33 will fail.

With this patch, one can use the --disable-rpm415 option of the
configure script to prevent those tests from running on those pre 4.15
rpm systems.

	* configure: Introduce the --{en, dis}able-rpm415 option.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
diff --git a/configure.ac b/configure.ac
index 79eaa80..bd56cf0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,6 +59,12 @@
 	      ENABLE_RPM=$enableval,
 	      ENABLE_RPM=auto)
 
+AC_ARG_ENABLE(rpm415,
+	      AS_HELP_STRING([--enable-rpm415=yes|no|auto],
+			     [enable the support of rpm 4.15 or higher in abipkgdiff (default is auto)]),
+	      ENABLE_RPM415=$enableval,
+	      ENABLE_RPM415=auto)
+
 AC_ARG_ENABLE(deb,
 	      AS_HELP_STRING([--enable-deb=yes|no|auto],
 			     [enable the support of deb in abipkgdiff (default is auto)]),
@@ -274,12 +280,13 @@
   fi
 fi
 
-ENABLE_RPM415=no
-if test x$ENABLE_RPM = xyes; then
+if test x$ENABLE_RPM = xyes -a x$ENABLE_RPM415 = xauto; then
    rpmversion=$(rpm --version | sed "s/RPM version //")
    AC_MSG_NOTICE([detected rpm version: $rpmversion])
    if [[[ "$rpmversion" > "4.14.0" ]]]; then
-      ENABLE_RPM415=yes;
+      ENABLE_RPM415=yes
+   else
+      ENABLE_RPM415=no
    fi
 fi