[Xfce4-commits] <thunarx-python:master> Fix some issues that would cause configure issues with python 3

Adam Plumb noreply at xfce.org
Sat Mar 12 16:34:01 CET 2011


Updating branch refs/heads/master
         to 3ab6f8e284868c943e5e4ecc499a2f86dac05d25 (commit)
       from f468bb851fff4daee52c6adbe175c809958fd687 (commit)

commit 3ab6f8e284868c943e5e4ecc499a2f86dac05d25
Author: Adam Plumb <adamplumb at gmail.com>
Date:   Sat Mar 12 10:31:39 2011 -0500

    Fix some issues that would cause configure issues with python 3

 m4/python.m4 |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/m4/python.m4 b/m4/python.m4
index d193284..18685f1 100644
--- a/m4/python.m4
+++ b/m4/python.m4
@@ -1,7 +1,7 @@
 ## this one is commonly used with AM_PATH_PYTHONDIR ...
 dnl AM_CHECK_PYMOD(MODNAME [,SYMBOL [,ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]]])
 dnl Check if a module containing a given symbol is visible to python.
-AC_DEFUN(AM_CHECK_PYMOD, 
+AC_DEFUN(AM_CHECK_PYMOD,
 [AC_REQUIRE([AM_PATH_PYTHON])
 py_mod_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'`
 AC_MSG_CHECKING(for ifelse([$2],[],,[$2 in ])python module $1)
@@ -43,8 +43,8 @@ AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
 [AC_REQUIRE([AM_PATH_PYTHON])
 AC_MSG_CHECKING(for headers required to compile python extensions)
 dnl deduce PYTHON_INCLUDES
-py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
-py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
+py_prefix=`$PYTHON -c "import sys; print(sys.prefix)"`
+py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
 if test "$py_prefix" != "$py_exec_prefix"; then
   PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
@@ -112,14 +112,14 @@ AC_DEFUN([AM_CHECK_PYTHON_LIBS],
 [AC_REQUIRE([AM_CHECK_PYTHON_HEADERS])
 AC_MSG_CHECKING(for libraries required to embed python)
 dnl deduce PYTHON_LIBS
-py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
+py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
 AC_MULTILIB(yes)
 
-if test "x$PYTHON_LIBS" == x; then
+if test "x$PYTHON_LIBS" = x; then
 	PYTHON_LIBS="-L${py_prefix}/lib${libdirsuffix} -lpython${PYTHON_VERSION}"
 fi
 
-if test "x$PYTHON_LIB_LOC" == x; then
+if test "x$PYTHON_LIB_LOC" = x; then
 	PYTHON_LIB_LOC="${py_prefix}/lib${libdirsuffix}" 
 fi
 AC_SUBST(PYTHON_LIBS)



More information about the Xfce4-commits mailing list