--- dia-0.94/acinclude.m4.orig 2004-05-24 01:27:38 +0400 +++ dia-0.94/acinclude.m4 2005-07-01 17:02:15 +0400 @@ -233,9 +233,10 @@ py_localmodlibs=`sed -n -e 's/^LOCALMODLIBS=\(.*\)/\1/p' $py_makefile` py_basemodlibs=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' $py_makefile` py_other_libs=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $py_makefile` + py_libdir=`$PYTHON -c "import os; from distutils import sysconfig; print os.path.abspath(sysconfig.get_python_lib(0,1)+'/..');"` dnl now the actual libpython - if test -e "${py_config_dir}/libpython${PYTHON_VERSION}.a"; then + if test -e "${py_libdir}/libpython${PYTHON_VERSION}.a"; then PYTHON_LIBS="-L${py_config_dir} -lpython${PYTHON_VERSION} $py_localmodlibs $py_basemodlibs $py_other_libs" AC_MSG_RESULT(found) else