From 1052ca3f744bdad473b6e4028999375fb11d220b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 29 Jun 2003 08:46:44 +0000 Subject: [PATCH] python support is gone --- m4/python.m4 | 68 ---------------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 m4/python.m4 diff --git a/m4/python.m4 b/m4/python.m4 deleted file mode 100644 index 49602977..00000000 --- a/m4/python.m4 +++ /dev/null @@ -1,68 +0,0 @@ -# PYTHON_DEVEL() -# -# Checks for Python and tries to get the include path to 'Python.h', and -# the libpython library. -# It provides the $(PYTHON_CFLAGS) $(PYTHON_LIBS) output -# variables. -AC_DEFUN([PYTHON_DEVEL], -[ - AC_REQUIRE([AM_PATH_PYTHON]) - - python_prefix=${PYTHON%/bin*} - - # Check for Python include path - AC_MSG_CHECKING([for python include path]) - for i in "$python_prefix/include/python$PYTHON_VERSION/" \ - "$python_prefix/include/python/" "$python_prefix/" - do - python_path=`find $i -type f -name Python.h -print 2> /dev/null` - test "$python_path" && break - done - for i in $python_path - do - python_path=${python_path%/Python.h} - break - done - if test "$python_path" - then - AC_MSG_RESULT([$python_path]) - else - AC_MSG_ERROR([cannot find python include path]) - fi - AC_SUBST([PYTHON_CFLAGS], [-I$python_path]) - - # Check for a Python library - AC_MSG_CHECKING([for python library]) - PYLIB="" - for i in "$python_prefix/lib" \ - "$python_prefix/lib/python$PYTHON_VERSION/config" \ - "$python_prefix/lib/python$PYTHON_VERSION/lib" \ - "$python_prefix/lib/python/lib" - do - if test -r "$i/libpython$PYTHON_VERSION.so"; then - PYLIB="$i/libpython$PYTHON_VERSION.so" - PYTHON_LIBS="-L$i -lpython$PYTHON_VERSION" - break - else - if test -r "$i/libpython$PYTHON_VERSION.a"; then - PYLIB="$i/libpython$PYTHON_VERSION.a" - PYTHON_LIBS="-L$i -lpython$PYTHON_VERSION -lpthread -ldl -lutil -lm" - break - else - # look for really old versions - if test -r "$i/libPython.a"; then - PYLIB="$i/libPython.a" - PYTHON_LIBS="-L$i -lModules -lPython -lObjects -lParser" - break - fi - fi - fi - done - if test "$PYLIB" - then - AC_MSG_RESULT([$PYLIB]) - else - AC_MSG_ERROR([cannot find python library]) - fi - AC_SUBST([PYTHON_LIBS]) -]) -- 2.45.2