gdb: better static python detection in configure machinery
authorRomain Geissler <romain.geissler@amadeus.com>
Fri, 6 Nov 2020 17:47:21 +0000 (17:47 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 6 Nov 2020 18:01:47 +0000 (18:01 +0000)
commit3fed4c0b7adeae7b2bfd9aa59818bb8f3f381031
treefc2e22cedade6047b56e972929eff54105c46a68
parentac3d4064096ecd4b012e5db91b1530df5cb4a7cc
gdb: better static python detection in configure machinery

In python 3, itertools is a builtin module, so whether or not the
python you link against is a shared or a static one, importing it
works.

Change the import test to use ctypes which is a dynamic module in both
python 2 and 3.

gdb/ChangeLog:

PR python/26832
* configure: Regenerate.
* configure.ac: Check for python modules ctypes instead of
itertools.
gdb/ChangeLog
gdb/configure
gdb/configure.ac
This page took 0.025407 seconds and 4 git commands to generate.