Only search for Python-2 interpreters
Only search for Python-2 interpreters

Ganeti is not yet ready for Python 3. Therefore, at configure-time,
we effectively have two constraints for the version of Python to
use: ">=2.6" and "<3.0". As, unfortunuately, the AM_PYTHON_PATH
macro only supports minimal-version constraints, we afterwards verify
that we got an interpreter for Python 2. We also tune the search
heuristics to first check binaries that most likely are interpreters
for Python 2. To also work with older versions of the autotools, we
do the "<3.0" check manually and no rely on it already being supported
in the AM_PYTHON_CHECK_VERSION macro.

Signed-off-by: Klaus Aehlig <4ce51de36d9068cd7db2eec1151e0f3f95419008@google.com>
Reviewed-by: Petr Pudlak <9d19625f8ee825a2c398462ed335cbcf98f79c32@google.com>

ganeti/ganeti,mbakke/ganeti,yiannist/ganeti,ganeti/ganeti,leshchevds/ganeti,leshchevds/ganeti,mbakke/ganeti,andir/ganeti,onponomarev/ganeti,mbakke/ganeti,ganeti/ganeti,yiannist/ganeti,onponomarev/ganeti,andir/ganeti,leshchevds/ganeti,yiannist/ganeti,andir/ganeti