On Apr 9, 2009, at 5:55 AM, Ralf S. Engelschall wrote:
On Tue, Apr 07, 2009, Michael Jennings wrote:
On Tuesday, 07 April 2009, at 18:03:43 (-0400),
Jeff Johnson wrote:
./configure: line 57086: .${ac_cv_lib_python2.5_Py_Initialize}: bad
substitution
checking whether to build with Python embedding library... /usr/
lib:/
usr/include/python2.5
++ executing failure action
configure: error: unable to find usable Python embedding library
Any hints? I can hardly see any difference between perl <-> python
other than the extra <with-arg-location> : <with-arg-location>
Could it be the '.' in "python2.5?"
Yes, that's the problem. The dot in the library name cannot be
directly
used as a part in a shell variable name. Hence the shell complains.
We have to convert the dots to underscores, for instance.
Here's a snippet from #rpm (pogma == Peter O'Gorman) that
likely explains how to solve the s/./_/ issue in RPM_CHECK_LIB() using
M4:
<pogma> jbj: Hi, AS_TR_SH should translate . to _ etc for configure.
http://www.gnu.org/software/autoconf/manual/autoconf.html#Programming-in-M4sh
hth
73 de Jeff
______________________________________________________________________
RPM Package Manager http://rpm5.org
Developer Communication List rpm-devel@rpm5.org