Ticket #47833: patch-python3.diff

File patch-python3.diff, 2.2 KB (added by harciga, 9 years ago)
  • src/

    old new  
    13101310  fi
    13111311
    13121312  dnl -- find the python3 executable
    1313   AC_PATH_PROGS(vi_cv_path_python3, python3 python)
     1313  AC_MSG_CHECKING(--with-python3 argument)
     1314  AC_ARG_WITH(python3, [  --with-python3=PATH       which python to use (default: python3)],
     1315        python_name="$withval"; AC_MSG_RESULT($python_name),
     1316        python_name="python3"; AC_MSG_RESULT(no))
     1317  AC_SUBST(vi_cv_path_python3, $python_name)
    13141318  if test "X$vi_cv_path_python3" != "X"; then
    13151319
    13161320    dnl -- get its version number
     
    14051409            dnl -- delete the lines from make about Entering/Leaving directory
    14061410            eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
    14071411            rm -f -- "${tmp_mkf}"
    1408             vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
    1409             vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
     1412            vi_cv_path_python3_plibs="`${vi_cv_path_python3}-config --ldflags`"
    14101413            dnl remove -ltermcap, it can conflict with an earlier -lncurses
    14111414            vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
    14121415            vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
     
    14211424        ])
    14221425
    14231426        PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
    1424         if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
    1425           PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
    1426         else
    1427           PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -I${vi_cv_path_python3_epfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
    1428         fi
     1427        PYTHON3_CFLAGS="`${vi_cv_path_python3}-config --includes` -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
    14291428        PYTHON3_SRC="if_python3.c"
    14301429        PYTHON3_OBJ="objects/if_python3.o"
    14311430