summaryrefslogtreecommitdiffstats
path: root/dcoppython/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'dcoppython/configure.in.in')
-rw-r--r--dcoppython/configure.in.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/dcoppython/configure.in.in b/dcoppython/configure.in.in
index c4d84ea2..dddf4c64 100644
--- a/dcoppython/configure.in.in
+++ b/dcoppython/configure.in.in
@@ -10,3 +10,7 @@ AC_PATH_PROG([PYTHON],[python2])
if test -z "$PYTHON"; then
AC_PATH_PROG([PYTHON],[python])
fi
+if test -n "$PYTHON"; then
+ python_site=$($PYTHON -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())')
+ AC_SUBST(PYTHON_SITE, $python_site)
+fi