Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: cbiesinger@google.com, gdb-patches@sourceware.org,
	"Christian Biesinger (Code Review)"
	<gerrit@gnutoolchain-gerrit.osci.io>
Subject: Re: [review] Simplify Python checks in configure.ac
Date: Thu, 24 Oct 2019 13:44:00 -0000	[thread overview]
Message-ID: <647f51cd-43d5-abb4-d23a-36e3760ffc63@simark.ca> (raw)
In-Reply-To: <gerrit.1571868251000.I07073870d9040c2bc8519882c8b3c1368edd4513@gnutoolchain-gerrit.osci.io>

On 2019-10-23 6:04 p.m., Christian Biesinger (Code Review) wrote:
> Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/241
> ......................................................................
> 
> 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.

This is a test comment in the commit message.

> diff --git a/gdb/configure.ac b/gdb/configure.ac
> index d929b89..f11dccd 100644
> --- a/gdb/configure.ac
> +++ b/gdb/configure.ac
> @@ -691,19 +691,17 @@
>  # --------------------- #
>  
>  dnl Utility to simplify finding libpython.
> -dnl $1 = pythonX.Y
> -dnl $2 = the shell variable to assign the result to
> +dnl $1 = the shell variable to assign the result to
>  dnl      If libpython is found we store $version here.
> -dnl $3 = additional flags to add to CPPFLAGS
> -dnl $4 = additional flags to add to LIBS
> +dnl $2 = additional flags to add to CPPFLAGS
> +dnl $3 = additional flags to add to LIBS
>  
>  AC_DEFUN([AC_TRY_LIBPYTHON],
>  [
> -  version=$1
> -  define([have_libpython_var],$2)
> -  new_CPPFLAGS=$3
> -  new_LIBS=$4
> -  AC_MSG_CHECKING([for ${version}])
> +  define([have_libpython_var],$1)
> +  new_CPPFLAGS=$2
> +  new_LIBS=$3
> +  AC_MSG_CHECKING([for python])

This is a test comment in configure.ac.

Simon


  reply	other threads:[~2019-10-24 13:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-23 22:04 Christian Biesinger (Code Review)
2019-10-24 13:44 ` Simon Marchi [this message]
2019-10-24 13:52 ` Simon Marchi (Code Review)
2019-10-24 13:54   ` Simon Marchi
2019-10-24 18:45 ` Tom Tromey (Code Review)
2019-10-24 18:48 ` [pushed] " Sourceware to Gerrit sync (Code Review)
2019-10-24 18:48 ` Sourceware to Gerrit sync (Code Review)
2019-10-24 18:50 ` [review v2] " Christian Biesinger (Code Review)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=647f51cd-43d5-abb4-d23a-36e3760ffc63@simark.ca \
    --to=simark@simark.ca \
    --cc=cbiesinger@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=gerrit@gnutoolchain-gerrit.osci.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox