1 Use a simpler check for Python's libs that return an actual linker
2 invocation (e.g. -lpython2.6) instead of the .so file. This fixes the
3 case with forced as-needed where the .so gets re-ordered to the front
6 --- configure.in.~1~ 2010-04-02 03:26:27.000000000 +0200
7 +++ configure.in 2010-04-09 16:06:10.271092660 +0200
9 dnl enable_python=$enableval, enable_python=no)
11 AC_MSG_CHECKING(for Python)
12 -PYTHON_LIBS=[$(python -c "from distutils import sysconfig
14 -cfg=sysconfig.get_config_vars()
15 -lib = os.path.join(cfg['LIBDIR'], cfg['LDLIBRARY'])
16 -if os.path.exists(lib):
18 +PYTHON_LIBS=[$(python -c 'import sys; print("-lpython%s.%s" % sys.version_info[:2])')]
19 PYTHON_CFLAGS=[$(python -c "from distutils import sysconfig
20 print sysconfig.get_python_inc()")]
21 PYTHON_CFLAGS="-I$PYTHON_CFLAGS"