configure: Use Python platform-dependent site-packages.
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 9 May 2011 15:30:30 +0000 (16:30 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 9 May 2011 15:30:30 +0000 (16:30 +0100)
This updates commit c446e6e26e317e105870b0ab25fb082887e23bf6.

configure.ac

index a746256..c8e5642 100644 (file)
@@ -558,7 +558,7 @@ AS_IF([test "x$enable_python" != "xno"],
                 AC_MSG_CHECKING([for Python site-packages path])
                 if test -z "$PYTHON_INSTALLDIR"; then
                     PYTHON_INSTALLDIR=`$PYTHON -c "import distutils.sysconfig; \
                 AC_MSG_CHECKING([for Python site-packages path])
                 if test -z "$PYTHON_INSTALLDIR"; then
                     PYTHON_INSTALLDIR=`$PYTHON -c "import distutils.sysconfig; \
-                                                   print (distutils.sysconfig.get_python_lib(0,0));"`
+                                                   print (distutils.sysconfig.get_python_lib(1,0));"`
                 fi
                 AC_MSG_RESULT([$PYTHON_INSTALLDIR])
             fi
                 fi
                 AC_MSG_RESULT([$PYTHON_INSTALLDIR])
             fi