Ticket #47833: patch-python3.diff
File patch-python3.diff, 2.2 KB (added by harciga, 9 years ago) |
---|
-
src/
old new 1310 1310 fi 1311 1311 1312 1312 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) 1314 1318 if test "X$vi_cv_path_python3" != "X"; then 1315 1319 1316 1320 dnl -- get its version number … … 1405 1409 dnl -- delete the lines from make about Entering/Leaving directory 1406 1410 eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 1407 1411 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`" 1410 1413 dnl remove -ltermcap, it can conflict with an earlier -lncurses 1411 1414 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` 1412 1415 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` … … 1421 1424 ]) 1422 1425 1423 1426 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}\"'" 1429 1428 PYTHON3_SRC="if_python3.c" 1430 1429 PYTHON3_OBJ="objects/if_python3.o" 1431 1430