--- configure.orig   2013-04-09 20:56:08.655600000 +0200
+++ configure  2013-04-09 21:59:51.732000000 +0200
@@ -15020,7 +15020,7 @@
   if test -x "$PYTHON_CONFIG"; then
     PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
   else
-    py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
+    py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)" | sed -e "s%\\\\\\%/%g" | cut -b3-  `
     py_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
     PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
     if test "$py_prefix" != "$py_exec_prefix"; then
@@ -15053,7 +15053,7 @@
 $as_echo_n "checking for libraries required to embed python... " >&6; }
 py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
 if test "x$PYTHON_LIBS" = x; then
-	PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
+	PYTHON_LIBS="-L${py_prefix}/libs -lpython27"
 fi
 if test "x$PYTHON_LIB_LOC" = x; then
   PYTHON_LIB_LOC="${py_prefix}/lib"
@@ -15118,7 +15118,7 @@
 $as_echo "$setwakeupfd_ok" >&6; }
 if test "x$setwakeupfd_ok" != xno; then
 
-$as_echo "#define HAVE_PYSIGNAL_SETWAKEUPFD 1" >>confdefs.h
+$as_echo "#undef HAVE_PYSIGNAL_SETWAKEUPFD" >>confdefs.h
 
 fi
 CPPFLAGS=$old_CPPFLAGS

--- Makefile.in.orig	2013-04-09 22:38:53.822400000 +0200
+++ Makefile.in	2013-04-09 22:39:03.775200000 +0200
@@ -309,7 +309,7 @@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 AUTOMAKE_OPTIONS = 1.7
-SUBDIRS = examples gi tests
+SUBDIRS = examples gi
 PLATFORM_VERSION = 3.0
 CLEANFILES =  	`find "$(builddir)" -type f -name "*.pyc" -print`

--- configure.orig	2013-04-10 10:43:14.361600000 +0200
+++ configure	2013-04-10 10:58:27.788400000 +0200
@@ -14759,8 +14759,8 @@
 if  false; then :
    "(cached) " >&6
 else
-  am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
-     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
+  am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null | sed -e "s%\\\\\\%/%g" ||
+     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages" `
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
 $as_echo "$am_cv_python_pythondir" >&6; }
@@ -14776,7 +14776,7 @@
 if ${am_cv_python_pyexecdir+:} false; then :
   $as_echo_n "(cached) " >&6
 else
-  am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
+  am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null | sed -e "s%\\\\\\%/%g" ||
      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5

