version 1.5 | | version 1.6 |
---|
| | |
dir="" | | dir="" |
AC_CHECK_HEADERS([Python.h],[cf_have_python_h=yes]) | | AC_CHECK_HEADERS([Python.h],[cf_have_python_h=yes]) |
if test "x$cf_have_python_h" = "x" ; then | | if test "x$cf_have_python_h" = "x" ; then |
for dir in /usr{,/local}/include/python{,2.3,2.2,2.1,2.0} ; do | | for dir in /usr{,/local}/include/python{,2.4,2.3,2.2,2.1,2.0} ; do |
AC_CHECK_HEADERS(["$dir/Python.h"],[cf_have_python_h=yes]) | | AC_CHECK_HEADERS(["$dir/Python.h"],[cf_have_python_h=yes]) |
if test "x$cf_have_python_h" != "x" ; then | | if test "x$cf_have_python_h" != "x" ; then |
PY_INCLUDES="-I$dir" | | PY_INCLUDES="-I$dir" |
| | |
if test "x$cf_have_python_h" = "xyes" ; then | | if test "x$cf_have_python_h" = "xyes" ; then |
PYTHON_LIB="" | | PYTHON_LIB="" |
| | |
for lib in python{,2.3,2.2,2.1,2.0} ; do | | for lib in python{,2.4,2.3,2.2,2.1,2.0} ; do |
AC_CHECK_LIB($lib, PyArg_ParseTuple,[PYTHON_LIB="-l$lib"]) | | AC_CHECK_LIB($lib, PyArg_ParseTuple,[PYTHON_LIB="-l$lib"]) |
if test "x$PYTHON_LIB" != "x" ; then | | if test "x$PYTHON_LIB" != "x" ; then |
break | | break |