diff -urN a-3.4.x/configure.ac b-3.4.x/configure.ac --- a-3.4.x/configure.ac 2012-10-20 23:08:04.704775224 +0100 +++ b-3.4.x/configure.ac 2012-10-20 23:59:32.000000000 +0100 @@ -49,7 +49,7 @@ AC_MSG_ERROR([python$PACKAGE_VERSION interpreter not found]) fi AC_MSG_RESULT($interp) - PYTHON_FOR_BUILD="_PYTHON_PROJECT_BASE=$srcdir"' _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(srcdir)/Lib:$(srcdir)/Lib/plat-$(MACHDEP) '$interp + PYTHON_FOR_BUILD="_PYTHON_PROJECT_BASE=`pwd`"' _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(srcdir)/Lib:$(srcdir)/Lib/plat-$(MACHDEP) '$interp fi else PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' @@ -334,9 +334,9 @@ then # avoid using uname for cross builds if test "$cross_compiling" = yes; then - # ac_sys_system and ac_sys_release are only used for setting - # `define_xopen_source' in the case statement below. For the - # current supported cross builds, this macro is not adjusted. + # ac_sys_system and ac_sys_release are used for setting + # a lot of different things including 'define_xopen_source' + # in the case statement below. case "$host" in *-*-linux*) ac_sys_system=Linux diff -urN a-3.4.x/setup.py b-3.4.x/setup.py --- a-3.4.x/setup.py 2012-10-13 16:58:23.000000000 +0100 +++ b-3.4.x/setup.py 2012-10-20 23:08:04.910776625 +0100 @@ -520,6 +520,9 @@ '/lib', '/usr/lib', ] inc_dirs = self.compiler.include_dirs + ['/usr/include'] + else: + lib_dirs = [] + inc_dirs = [] exts = [] missing = []