Better detect suitable libctf version
authorDodji Seketeli <dodji@redhat.com>
Mon, 9 Jan 2023 17:01:32 +0000 (18:01 +0100)
committerDodji Seketeli <dodji@redhat.com>
Mon, 9 Jan 2023 17:01:32 +0000 (18:01 +0100)
commit554fea5e879127a5de2960dd760e518119fb4408
tree7fb07ea7c7f0bd7c7e6ffdc0b838b8ac048ce645
parente6beace1094a789187dbd1e4ae4d674e9f0933c6
Better detect suitable libctf version

On some el9 distros, the version of libctf installed might not have
all the necessary features for the libabigail CTF reader, leading to
compilation errors due to missing types from the ctf-api.h header
file.  For instance, the ctf-api.h on some of those distros lacks the
definition of the type struct ctf_dict_t.

This patch adds a configure test for that struct and disables the CTF
support if that type is absent.

* configure.ac: If the "struct ctf_dict_t" type is not present in
the version of ctf-api.h that is present, then switch the support
of CTF off.

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