Simplify Python checks in configure.ac
authorChristian Biesinger <cbiesinger@google.com>
Wed, 23 Oct 2019 22:00:51 +0000 (17:00 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Thu, 24 Oct 2019 18:47:37 +0000 (13:47 -0500)
commit71737c435dc0cff19e86e9a60f08caa2865784e2
tree9df545ed5a2775848317fae42d279490b57b9abd
parent4ccdfbec5028a56b9847ec2687b9139e1769ffc5
Simplify Python checks in configure.ac

The version checking code is not necessary. It is only used to define
HAVE_LIBPYTHON2_6 or HAVE_LIBPYTHON2_7, which is not used anywhere.

If a version check is desired, the PY_{MAJOR,MINOR}_VERSION macro from
the Python headers can be (and is) used, which does not require updating
configure.ac whenever a new Python version is released.

gdb/ChangeLog:

2019-10-24  Christian Biesinger  <cbiesinger@google.com>

* config.in: Regenerate.
* configure: Regenerate.
* configure.ac: Remove the code that uses sed to get the python
version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.

Change-Id: I07073870d9040c2bc8519882c8b3c1368edd4513
gdb/ChangeLog
gdb/config.in
gdb/configure
gdb/configure.ac
This page took 0.02454 seconds and 4 git commands to generate.