diff -p -up gst-python-0.10.17/acinclude.m4.fix-python-detection gst-python-0.10.17/acinclude.m4
--- gst-python-0.10.17/acinclude.m4.fix-python-detection	2009-04-15 22:16:30.000000000 +0200
+++ gst-python-0.10.17/acinclude.m4	2009-10-29 00:44:36.000000000 +0100
@@ -73,8 +73,8 @@ AC_DEFUN([AM_CHECK_PYTHON_LIBS],
 AC_MSG_CHECKING(for libraries required to embed python)
 dnl deduce PYTHON_LIBS
 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
-PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
-PYTHON_LIB_LOC="${py_prefix}/lib" 
+PYTHON_LIBS="-L${libdir} -lpython${PYTHON_VERSION}"
+PYTHON_LIB_LOC="${libdir}" 
 AC_SUBST(PYTHON_LIBS)
 AC_SUBST(PYTHON_LIB_LOC)
 dnl check if the headers exist:
diff -p -up gst-python-0.10.17/plugin/gstpythonplugin.c.fix-python-detection gst-python-0.10.17/plugin/gstpythonplugin.c
--- gst-python-0.10.17/plugin/gstpythonplugin.c.fix-python-detection	2009-07-14 16:45:36.000000000 +0200
+++ gst-python-0.10.17/plugin/gstpythonplugin.c	2009-10-29 00:44:10.000000000 +0100
@@ -337,7 +337,7 @@ plugin_init (GstPlugin * plugin)
     GST_LOG ("loading libpython");
     libpython =
         g_module_open (PY_LIB_LOC "/libpython" PYTHON_VERSION "."
-        G_MODULE_SUFFIX, 0);
+        G_MODULE_SUFFIX ".1.0" , 0);
     if (!libpython) {
       GST_WARNING ("Couldn't g_module_open libpython. Reason: %s",
           g_module_error ());
