From 71737c435dc0cff19e86e9a60f08caa2865784e2 Mon Sep 17 00:00:00 2001 From: Christian Biesinger Date: Wed, 23 Oct 2019 17:00:51 -0500 Subject: 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 * 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/config.in | 6 ------ 1 file changed, 6 deletions(-) (limited to 'gdb/config.in') diff --git a/gdb/config.in b/gdb/config.in index da365a7..a76ac9f 100644 --- a/gdb/config.in +++ b/gdb/config.in @@ -246,12 +246,6 @@ /* Define if you have the mpfr library. */ #undef HAVE_LIBMPFR -/* Define if Python 2.6 is being used. */ -#undef HAVE_LIBPYTHON2_6 - -/* Define if Python 2.7 is being used. */ -#undef HAVE_LIBPYTHON2_7 - /* Define to 1 if you have the header file. */ #undef HAVE_LIBUNWIND_IA64_H -- cgit v1.1