]> sourceware.org Git - libabigail.git/commitdiff
configure: Add option to disable abidb
authorDodji Seketeli <dodji@redhat.com>
Thu, 18 Apr 2024 10:13:00 +0000 (12:13 +0200)
committerDodji Seketeli <dodji@redhat.com>
Thu, 18 Apr 2024 10:15:51 +0000 (12:15 +0200)
While looking at packaging libabigail for EPEL8, it turned out abidb
requires python 3.9 for the type hints on function definitions.  Yet,
EPEL8 has an older python.

This patch adds a --disable-abidb option to configure to handle EPEL8.

* configure.ac: Add a --disable-abidb option to configure to
disable the abidb tool and related tests.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
configure.ac

index 4b115e6569ccce783d1b876bc312277d1a379ca4..d329490ca7bc09492d926b7b1ef72660eb16b7ac 100644 (file)
@@ -182,6 +182,12 @@ AC_ARG_ENABLE([fedabipkgdiff],
              ENABLE_FEDABIPKGDIFF=$enableval,
              ENABLE_FEDABIPKGDIFF=auto)
 
+AC_ARG_ENABLE(abidb,
+             AS_HELP_STRING([--enable-abidb=yes|no|auto],
+                            [enable the support of the abidb tool (default is auto)]),
+             ENABLE_ABIDB=$enableval,
+             ENABLE_ABIDB=auto)
+
 AC_ARG_ENABLE([python3],
              AS_HELP_STRING([--enable-python3=yes|no|auto],
                             [enable running abigail tools with python3 (default is auto)]),
@@ -817,8 +823,7 @@ except koji.ConfigurationError:
 fi
 
 dnl abidb checks
-ENABLE_ABIDB=no
-if test x$PYTHON3_INTERPRETER != xno; then
+if test x$PYTHON3_INTERPRETER != xno -a x$ENABLE_ABIDB != xno; then
   AX_CHECK_PYTHON_MODULES([git libarchive],
                          [$PYTHON],
                          [FOUND_ALL_PYTHON_MODULES=yes],
@@ -830,6 +835,8 @@ if test x$PYTHON3_INTERPRETER != xno; then
   else
     ENABLE_ABIDB=yes
   fi
+else
+    AC_MSG_NOTICE([disabling abidb])
 fi
 AM_CONDITIONAL(ENABLE_ABIDB, test x$ENABLE_ABIDB = xyes)
 
This page took 0.034785 seconds and 5 git commands to generate.