--- configure.ac.orig 2015-04-29 15:17:26.000000000 -0700 +++ configure.ac 2015-04-29 15:19:53.000000000 -0700 @@ -35,6 +35,18 @@ # Checks for programs. AC_PROG_INSTALL AM_PATH_PYTHON($PYTHON_WANTVERSION) + +dnl Override standard python locations with MacPorts version specific ones + +AC_SUBST([PYTHON_PREFIX], [`$PYTHON -c 'import sys; print(sys.prefix);'`]) +AC_SUBST([PYTHON_EXEC_PREFIX], [`$PYTHON -c 'import sys; print(sys.exec_prefix)'`]) + +am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages +am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages + +AC_SUBST([pythondir], [$am_cv_python_pythondir]) +AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir]) + IT_PROG_INTLTOOL(0.35.0) AC_DEFUN([AC_PYTHON_MODULE],[