You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.7 KiB

  1. --- a/src/modules/rlm_python3/configure
  2. +++ b/src/modules/rlm_python3/configure
  3. @@ -2928,15 +2928,15 @@ fi
  4. if test x$fail = x; then
  5. - PY_PREFIX=`${PYTHON3_BIN} -c 'import sys ; print(sys.prefix)'`
  6. + PY_PREFIX="$OPENWRTTARGET_PY3_PREFIX"
  7. { $as_echo "$as_me:${as_lineno-$LINENO}: Python sys.prefix \"${PY_PREFIX}\"" >&5
  8. $as_echo "$as_me: Python sys.prefix \"${PY_PREFIX}\"" >&6;}
  9. - PY_EXEC_PREFIX=`${PYTHON3_BIN} -c 'import sys ; print(sys.exec_prefix)'`
  10. + PY_EXEC_PREFIX="$OPENWRTTARGET_PY3_PREFIX"
  11. { $as_echo "$as_me:${as_lineno-$LINENO}: Python sys.exec_prefix \"${PY_EXEC_PREFIX}\"" >&5
  12. $as_echo "$as_me: Python sys.exec_prefix \"${PY_EXEC_PREFIX}\"" >&6;}
  13. - PY_SYS_VERSION=`${PYTHON3_BIN} -c 'import sys ; print(sys.version[0:3])'`
  14. + PY_SYS_VERSION="$OPENWRTTARGET_PY3_SYS_VERSION"
  15. { $as_echo "$as_me:${as_lineno-$LINENO}: Python sys.version \"${PY_SYS_VERSION}\"" >&5
  16. $as_echo "$as_me: Python sys.version \"${PY_SYS_VERSION}\"" >&6;}
  17. --- a/src/modules/rlm_python3/configure.ac
  18. +++ b/src/modules/rlm_python3/configure.ac
  19. @@ -65,13 +65,13 @@ if test x$with_[]modname != xno; then
  20. )
  21. if test x$fail = x; then
  22. - PY_PREFIX=`${PYTHON3_BIN} -c 'import sys ; print(sys.prefix)'`
  23. + PY_PREFIX="$OPENWRTTARGET_PY3_PREFIX"
  24. AC_MSG_NOTICE([Python sys.prefix \"${PY_PREFIX}\"])
  25. - PY_EXEC_PREFIX=`${PYTHON3_BIN} -c 'import sys ; print(sys.exec_prefix)'`
  26. + PY_EXEC_PREFIX="$OPENWRTTARGET_PY3_PREFIX"
  27. AC_MSG_NOTICE([Python sys.exec_prefix \"${PY_EXEC_PREFIX}\"])
  28. - PY_SYS_VERSION=`${PYTHON3_BIN} -c 'import sys ; print(sys.version[[0:3]])'`
  29. + PY_SYS_VERSION="$OPENWRTTARGET_PY3_SYS_VERSION"
  30. AC_MSG_NOTICE([Python sys.version \"${PY_SYS_VERSION}\"])
  31. if test "x$PY_LIB_DIR" = "x"; then