summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-05-29 15:50:32 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-05-29 15:50:32 +0000
commita85d0f84914971966b83429c8ea8574ce72010a1 (patch)
treed832f6e734b6175ff9634a5aa896a4a6343bf5b8 /dev-python/pythonmagick/files/pythonmagick-0.9.1-use_active_python_version.patch
parentDelete old patch. (diff)
downloadhistorical-a85d0f84914971966b83429c8ea8574ce72010a1.tar.gz
historical-a85d0f84914971966b83429c8ea8574ce72010a1.tar.bz2
historical-a85d0f84914971966b83429c8ea8574ce72010a1.zip
Set SUPPORT_PYTHON_ABIS.
Package-Manager: portage-HEAD/cvs/Linux x86_64
Diffstat (limited to 'dev-python/pythonmagick/files/pythonmagick-0.9.1-use_active_python_version.patch')
-rw-r--r--dev-python/pythonmagick/files/pythonmagick-0.9.1-use_active_python_version.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-python/pythonmagick/files/pythonmagick-0.9.1-use_active_python_version.patch b/dev-python/pythonmagick/files/pythonmagick-0.9.1-use_active_python_version.patch
new file mode 100644
index 000000000000..4293fc17df57
--- /dev/null
+++ b/dev-python/pythonmagick/files/pythonmagick-0.9.1-use_active_python_version.patch
@@ -0,0 +1,21 @@
+--- m4/ax_python.m4
++++ m4/ax_python.m4
+@@ -58,13 +58,14 @@
+ AC_DEFUN([AX_PYTHON],
+ [AC_MSG_CHECKING(for python build information)
+ AC_MSG_RESULT([])
+-for python in python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
++for python in python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1; do
+ AC_CHECK_PROGS(PYTHON_BIN, [$python])
+ ax_python_bin=$PYTHON_BIN
+ if test x$ax_python_bin != x; then
+- AC_CHECK_LIB($ax_python_bin, main, ax_python_lib=$ax_python_bin, ax_python_lib=no)
+- AC_CHECK_HEADER([$ax_python_bin/Python.h],
+- [[ax_python_header=`locate $ax_python_bin/Python.h | sed -e s,/Python.h,,`]],
++ [python_version=`$ax_python_bin -c 'import sys; print(".".join(str(x) for x in sys.version_info[:2]))'`]
++ AC_CHECK_LIB(python$python_version, main, ax_python_lib=python$python_version, ax_python_lib=no)
++ AC_CHECK_HEADER([python$python_version/Python.h],
++ [[ax_python_header=`locate python$python_version/Python.h | sed -e s,/Python.h,,`]],
+ ax_python_header=no)
+ if test $ax_python_lib != no; then
+ if test $ax_python_header != no; then