]> git.puffer.fish Git - matthieu/frr.git/commitdiff
build: find all future minor versions of python3
authorMichal Ruprich <michalruprich@gmail.com>
Wed, 17 Jun 2020 11:47:30 +0000 (13:47 +0200)
committerMichal Ruprich <michalruprich@gmail.com>
Thu, 9 Jul 2020 04:47:31 +0000 (06:47 +0200)
This way we can find every python from 3.8 further

Signed-off-by: Michal Ruprich <michalruprich@gmail.com>
m4/ax_python.m4

index 9f43ea0ab128aea2d03cb087bbf0ce8a50402ed2..91d12b99b430cf941e847ac3641ef69e56bac8e0 100644 (file)
@@ -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`"