From: Matthias Klose <doko@ubuntu.com>
To: gdb-patches@sourceware.org
Subject: Re: [patch] use python-config if available
Date: Thu, 20 Dec 2012 15:43:00 -0000 [thread overview]
Message-ID: <50D3321C.5030902@ubuntu.com> (raw)
In-Reply-To: <50D331A6.5070102@ubuntu.com>
[-- Attachment #1: Type: text/plain, Size: 339 bytes --]
Am 20.12.2012 16:41, schrieb Matthias Klose:
> This patch does use the python-config, which comes shipped with the python
> interpreter, and falls back to the internal copy of python-config.py.
> AC_CHECK_TOOL is used to find a possible python-config for the host.
>
> Tested with 7.5 with a native and a cross build.
>
> Matthias
>
[-- Attachment #2: python-config.patch --]
[-- Type: text/x-diff, Size: 1729 bytes --]
Index: b/gdb/configure.ac
===================================================================
--- a/gdb/configure.ac 2012-12-20 15:19:47.620663038 +0000
+++ b/gdb/configure.ac 2012-12-20 15:32:59.604669244 +0000
@@ -840,29 +840,31 @@
esac
esac
+ python_config=
if test "${python_prog}" != missing; then
+ AC_CHECK_TOOL(python_config,[${python_prog}-config],[${python_prog} ${srcdir}/python/python-config.py])
# We have a python program to use, but it may be too old.
# Don't flag an error for --with-python=auto (the default).
have_python_config=yes
- python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
+ python_includes=`${python_config} --includes`
if test $? != 0; then
have_python_config=failed
if test "${with_python}" != auto; then
- AC_ERROR(failure running python-config --includes)
+ AC_ERROR(failure running ${python-config} --includes)
fi
fi
- python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
+ python_libs=`${python_config} --ldflags`
if test $? != 0; then
have_python_config=failed
if test "${with_python}" != auto; then
- AC_ERROR(failure running python-config --ldflags)
+ AC_ERROR(failure running ${python-config} --ldflags)
fi
fi
- python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
+ python_prefix=`${python_config} --exec-prefix`
if test $? != 0; then
have_python_config=failed
if test "${with_python}" != auto; then
- AC_ERROR(failure running python-config --exec-prefix)
+ AC_ERROR(failure running ${python-config} --exec-prefix)
fi
fi
else
next prev parent reply other threads:[~2012-12-20 15:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-20 15:41 Matthias Klose
2012-12-20 15:43 ` Matthias Klose [this message]
2012-12-20 15:53 ` Pierre Muller
2012-12-20 15:59 ` Joel Brobecker
2012-12-20 16:13 ` Matthias Klose
2012-12-21 7:57 ` Joel Brobecker
2012-12-21 17:31 ` Doug Evans
2012-12-21 17:51 ` Joel Brobecker
2012-12-22 19:33 ` Doug Evans
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=50D3321C.5030902@ubuntu.com \
--to=doko@ubuntu.com \
--cc=gdb-patches@sourceware.org \
/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