Skip to content

Commit 2b4851e

Browse files
fix configure auto detection
1 parent 9df3e75 commit 2b4851e

File tree

2 files changed

+28
-16
lines changed

2 files changed

+28
-16
lines changed

configure

Lines changed: 14 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7004,12 +7004,12 @@ case "$ac_cv_computed_gotos" in yes*)
70047004
[Define if the C compiler supports computed gotos.])
70057005
esac
70067006

7007-
# Check for --with-tail-calling-interp
7008-
AC_MSG_CHECKING([for --with-tail-calling-interp])
7007+
# Check for --with-tail-call-interp
7008+
AC_MSG_CHECKING([for --with-tail-call-interp])
70097009
AC_ARG_WITH(
7010-
[tail-calling-interp],
7010+
[tail-call-interp],
70117011
[AS_HELP_STRING(
7012-
[--tail-calling-interp],
7012+
[--tail-call-interp],
70137013
[enable tail-calling interpreter in evaluation loop and rest of CPython (enabled by default on supported compilers)]
70147014
)],
70157015
[
@@ -7053,12 +7053,19 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[[
70537053
else
70547054
ac_cv_tail_call=no
70557055
fi]))
7056-
if $tier2_flags == ""; then
7056+
# Do not enable tail-calling interpreter if tier 2 is enabled.
7057+
AS_VAR_IF(
7058+
[tier2_flags],
7059+
[],
7060+
[
70577061
case "$ac_cv_tail_call" in yes*)
70587062
AC_DEFINE([Py_TAIL_CALL_INTERP], [1],
70597063
[Define if the C compiler supports efficient proper tail calls.])
7060-
esac
7061-
fi
7064+
esac
7065+
],
7066+
[]
7067+
)
7068+
70627069

70637070
case $ac_sys_system in
70647071
AIX*)

0 commit comments

Comments
 (0)