After configuring with
--prefix=/usr --libdir=/usr/lib64, compilation failed in the last step about /usr/lib/liblzma.la not being found.
Checking the compilation command, I found -L/usr/lib near the -lpython2.7 and in config.log:
Python is installed in /usr/lib64. It also states so in python2.7.pc file. And python2-config reports the same. I have no idea where the /usr/lib comes from...
Maybe not directly related. The config.log file also states:
which doesn't sound right either.
I could finalize compilation explicitly defining:
PYTHON_LIBS=/usr/lib64/libpython2.7.so ./configure --prefix=/usr --libdir=/usr/lib64
Though I solved the problem, I would be interested in investigating where this problem originates.