This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC][patch 1/9] initial Python support


On Mon, May 05, 2008 at 11:06:20AM -0300, Thiago Jung Bauermann wrote:
> > 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.

Right.

> Would it work work just like --with-libpython2.5-prefix? Why would
> it be less problematic and less complicated?

Take a look at config/lib-link.m4 and config/lib-prefix.m4.  Then
compare to --with-mpfr and --with-mpfr-lib in the top level
configure.ac.  Notice that they're about a hundredth of the size.
The top level also chose to use multiple options so maybe that's
wise after all.  But anyway that lets us have --with-python-lib
and --with-python-include, avoiding the version-specific options.

The versions in config handle all sorts of complicated extra
scenarios.  But they're pretty rare and there's others that aren't
handled.  One which adds -L${withval}/lib and -I${withval}/include
works 99% of the time, and the user can fiddle CFLAGS/LDFLAGS for
the other cases.

I may rip out the existing uses, though we'll have to keep the long
option names for compatibility.

> That's how I made it.

Thanks!

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]