This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC][patch 1/9] initial Python support
On Mon, 2008-05-05 at 09:10 -0400, Daniel Jacobowitz wrote:
> On Mon, May 05, 2008 at 01:50:38AM -0300, Thiago Jung Bauermann wrote:
> > % ../configure --with-libpython2.5-prefix=/blah
> > configure: error: invalid package name: libpython2.5-prefix
>
> Do we even want this option?
I don't care much about it...
> Maybe we just want
> --with-python, --without-python, and --with-python=/path.
The last one isn't implemented by the AC_ARG_WITH option, IIUC. I'd have
to explicitly implement it. Would it work work just like
--with-libpython2.5-prefix? Why would it be less problematic and less
complicated?
> BTW, could you do me a favor... make GDB fail to build if
> --with-python is specified on the command line but Python could not be
> found.
That's how I made it.
> IMO the default should be "use python if
> we find it", but with --with-python it should be "use python or go
> boom".
% ../src/configure --with-python
[big snip]
checking whether to use python... yes
checking for libpython2.5... no
checking for libpython2.4... no
configure: error: python is missing or unusable
make[1]: *** [configure-gdb] Error 1
make[1]: Leaving directory `/tmp/master-build'
make: *** [all] Error 2
Boom.
--
[]'s
Thiago Jung Bauermann
Software Engineer
IBM Linux Technology Center