On Fri, May 21, 2010 at 9:25 AM, Tom Tromey wrote: >>>>>> "Doug" == Doug Evans writes: > > Doug> 2010-05-20  Doug Evans   > Doug>         * configure.ac: For non-canadian-cross builds (build == host), > Doug>         try to use python-config to get python include and lib parameters. > Doug>         * configure: Regenerate. > > It seems reasonable to me. I've learned that "python-config", which is a python script, can be pretty much used with any recent python version. I've also learned that it's not always spelled "python-config" when installed. This version of the patch provides our own copy in python/python-config.py. [NOTE: I didn't name it py-config.py on purpose. It doesn't violate the 8.3 file name rule, and since there already is python-internal.h spelled the way it is, I wanted to keep the spelling close to the public name.] This version runs python-config.py with the specified copy of python. Note that it can also work in a cross-compilation environment if the user provides his/her own script that mimics what `python python-config.py --includes|--ldflags' does. I will let it soak until tomorrow. 2010-05-24 Doug Evans * configure.ac: Try to use python's distutils to fetch compilation parameters. * configure: Regenerate. * python/python-config.py: New file.