forked from Mirror/frr
build: find all future minor versions of python3
This way we can find every python from 3.8 further Signed-off-by: Michal Ruprich <michalruprich@gmail.com>
This commit is contained in:
parent
4030687aab
commit
838cb35e08
|
@ -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`"
|
||||
|
|
Loading…
Reference in a new issue