From 7a8ee419bf23dd5d84275e29cdd04bbb35d47b8d Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 27 May 2013 13:52:48 +0100 Subject: [PATCH] fix locating of pythonXX.so, with thanks to Ricardo --- configure.ac | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 07cda6f48..56dd35a75 100644 --- a/configure.ac +++ b/configure.ac @@ -1237,15 +1237,12 @@ AM_PATH_PYTHON([2.5], [ if test x"$HAVE_PYTHON" = xyes; then # libpython.so + PYTHON_SO_FILE_LOCATION=`python-config --ldflags|sed 's/-L//'|awk '{print $1}'` PYTHON_SO_FILE="libpython${PYTHON_VERSION}.so" found_libpython_so="no" - if test -f "$PYTHON_PREFIX/lib/$PYTHON_SO_FILE"; then + if test -f "$PYTHON_SO_FILE_LOCATION/$PYTHON_SO_FILE"; then found_libpython_so="yes" - PYTHON_SHARED_LIB=`python -c "import os,sys; print os.path.basename(os.path.realpath(\"$PYTHON_PREFIX/lib/$PYTHON_SO_FILE\"))"` - fi - if test -f "$PYTHON_PREFIX/lib64/$PYTHON_SO_FILE"; then - found_libpython_so="yes" - PYTHON_SHARED_LIB=`python -c "import os,sys; print os.path.basename(os.path.realpath(\"$PYTHON_PREFIX/lib64/$PYTHON_SO_FILE\"))"` + PYTHON_SHARED_LIB=`python -c "import os,sys; print os.path.basename(os.path.realpath(\"$PYTHON_SO_FILE_LOCATION/$PYTHON_SO_FILE\"))"` fi if test x"$found_libpython_so" != x"yes"; then AC_MSG_WARN(Could not find Python shared libary: $PYTHON_SO_FILE does not exist. Maybe you need to install development packages for Python.) -- 2.25.1