configure: Use -B switch only for Python versions which support it
commit52510f8b2c0486e6c2743b1d069b3584ef4524da
authorStefan Weil <sw@weilnetz.de>
Thu, 14 Nov 2013 18:07:03 +0000 (14 19:07 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 16 Nov 2013 20:29:15 +0000 (17 00:29 +0400)
tree6d39f73026240746fec54fb6a353123b67295824
parent485e741cd15655b4032b07b8a912aa5c7a4f2028
configure: Use -B switch only for Python versions which support it

Commit 1d984a67a95d88f3e708b077dab8adeb47c38c93 added the -B switch
unconditionally. This breaks Python versions before 2.6 which don't
support that switch.

Now configure adds -B only if it is accepted by the Python interpreter.

This modification introduces a small incompatibility because -B might now
also be added when configure was called with --python=PYTHON_INTERPRETER.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
configure