summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2017-03-28 15:25:26 (GMT)
committerGitHub <noreply@github.com>2017-03-28 15:25:26 (GMT)
commitf01de61a8efea8319c65365898982f929d59a895 (patch)
treec754007747a301b021e9d92d4fdf96e99f295d0f /configure
parent596506216104613591218c2896cdb49fa0b7e5bb (diff)
downloadcpython-f01de61a8efea8319c65365898982f929d59a895.zip
cpython-f01de61a8efea8319c65365898982f929d59a895.tar.gz
cpython-f01de61a8efea8319c65365898982f929d59a895.tar.bz2
bpo-29643: Fix check for --enable-optimizations (GH-869)
The presence of the ``--enable-optimizations`` flag is indicated by the value of ``$enableval``, but the configure script was checking ``$withval``, resulting in the ``--enable-optimizations`` flag being effectively ignored. (cherry picked from commit 8cea5929f52801b0ce5928b46ef836e99a24321a)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index abe1dc5..8bdb82b 100755
--- a/configure
+++ b/configure
@@ -6521,7 +6521,7 @@ $as_echo_n "checking for --enable-optimizations... " >&6; }
# Check whether --enable-optimizations was given.
if test "${enable_optimizations+set}" = set; then :
enableval=$enable_optimizations;
-if test "$withval" != no
+if test "$enableval" != no
then
Py_OPT='true'
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5