default_pre_build &&
cd $SOURCE_DIRECTORY &&

# Python 2.4 has different mechanism of getting these data
sedit 's|PYTHON_SITE=`.*`|PYTHON_SITE=`$python_bin -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`|g' configure &&
# Python 2.4 was not included
sedit 's|2\.3 2\.2 2\.1|2\.4 2\.3 2\.2 2\.1|g' configure &&

# AMD64 in 64-bit mode was not included too
if [[ "${HOST%%-*}" == 'x86_64' ]]; then
  sedit 's|i\[34567\]86)|i\[34567\]86 \| x86_64-*)|g' config.sub
fi
