diff options
| author | Quentin Young <qlyoung@users.noreply.github.com> | 2020-07-14 15:35:02 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-14 15:35:02 -0400 |
| commit | 35d78b8b8686e4aba447b94cd9707094641718ea (patch) | |
| tree | 5a6519aef638d99eddfe91fe6b3dd2fc8d0d580f | |
| parent | 909a8a3fc254c15bc460ea83df2455b1ff1a2622 (diff) | |
| parent | 838cb35e08eb98acbc27637808162105ae2c4549 (diff) | |
Merge pull request #6598 from mruprich/python-3.8
build: find all future minor versions of python3
| -rw-r--r-- | m4/ax_python.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/ax_python.m4 b/m4/ax_python.m4 index 9f43ea0ab1..91d12b99b4 100644 --- a/m4/ax_python.m4 +++ b/m4/ax_python.m4 @@ -186,7 +186,8 @@ AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_MSG_RESULT([yes]) PYTHON_CFLAGS="`\"$pycfg\" --includes`" - if test x"${py_ver}" = x"3.8" || test x"{py_ver}" = x"3.9"; then + minor_ver=${py_ver#*\.} + if test $((minor_ver)) -gt 7; then PYTHON_LIBS="`\"$pycfg\" --ldflags --embed`" else PYTHON_LIBS="`\"$pycfg\" --ldflags`" |
