Avoid non-C++-enabled babeltrace versions
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Wed, 27 Apr 2016 13:52:16 +0000 (15:52 +0200)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Wed, 27 Apr 2016 13:52:16 +0000 (15:52 +0200)
commit2d681be471cf8aff8f296cb7713c39e9aa4fc2bb
tree7d3817bade242ce1c6acd77e825e8f7418bdeb0a
parent52728a42a8c0a169537e55b74613146d9c67bac8
Avoid non-C++-enabled babeltrace versions

In some babeltrace versions before 1.2.0, the header file iterator.h
declares the enum values `BT_SEEK_*' within the struct declaration of
bt_iter_pos.  The enum values are supposed to be globally-scoped, which
works for C, but not for C++.  Later babeltrace versions declare the
enum outside the struct:

  https://lists.lttng.org/pipermail/lttng-dev/2013-September/021411.html

Now that GDB is compiled with C++, the GDB build fails on a system with
an affected babeltrace version: the compiler complains about a missing
declaration of BT_SEEK_BEGIN in ctf.c.

This patch enhances the configure check to recognize such babeltrace
versions as unusable for GDB.

gdb/ChangeLog:

* configure.ac: Enhance configure check for babeltrace to reject
non-C++-enabled versions.
* configure: Regenerate.
gdb/ChangeLog
gdb/configure
gdb/configure.ac
This page took 0.028564 seconds and 4 git commands to generate.