# Check for Unix variants
AC_AIX
-@@ -561,6 +555,49 @@
+@@ -561,6 +555,61 @@
AC_DEFINE([JAVAGLUE],1)
fi
+# CHECK for python
+if test $withval = yes ; then
-+AC_MSG_CHECKING(for python 2.2)
++AC_MSG_CHECKING(for python 2.4)
+AC_TRY_RUN([
-+#include <python2.2/Python.h>
++#include <python2.4/Python.h>
+main() {
-+ exit(strncmp("2.2", PY_VERSION, 3));
++ exit(strncmp("2.4", PY_VERSION, 3));
+} ],
+ withval=yes, withval=no, withval=yes)
+ AC_MSG_RESULT($withval)
+ if test $withval = yes ; then
-+ WITH_PYTHON_VERSION="2.2"
++ WITH_PYTHON_VERSION="2.4"
+ else
-+
-+ AC_MSG_CHECKING(for python 1.5.2)
++ AC_MSG_CHECKING(for python 2.2)
+ AC_TRY_RUN([
++#include <python2.2/Python.h>
++main() {
++ exit(strncmp("2.2", PY_VERSION, 3));
++} ],
++ withval=yes, withval=no, withval=yes)
++ AC_MSG_RESULT($withval)
++ if test $withval = yes ; then
++ WITH_PYTHON_VERSION="2.2"
++ else
++
++ AC_MSG_CHECKING(for python 1.5.2)
++ AC_TRY_RUN([
+#include <python1.5/Python.h>
+main() {
+ exit(strcmp("1.5.2", PY_VERSION));
+} ],
-+ withval=yes, withval=no, withval=yes)
-+ AC_MSG_RESULT($withval)
-+ if test $withval = yes ; then
-+ WITH_PYTHON_VERSION="1.5"
-+ else
-+ AC_MSG_CHECKING(for python 2.3)
-+ AC_TRY_RUN([
++ withval=yes, withval=no, withval=yes)
++ AC_MSG_RESULT($withval)
++ if test $withval = yes ; then
++ WITH_PYTHON_VERSION="1.5"
++ else
++ AC_MSG_CHECKING(for python 2.3)
++ AC_TRY_RUN([
+ #include <python2.3/Python.h>
+ main() {
+ exit(strncmp("2.3", PY_VERSION, 3));
+ } ],
-+ withval=yes, withval=no, withval=yes)
-+ AC_MSG_RESULT($withval)
-+ if test $withval = yes ; then
-+ WITH_PYTHON_VERSION="2.3"
-+ fi
++ withval=yes, withval=no, withval=yes)
++ AC_MSG_RESULT($withval)
++ if test $withval = yes ; then
++ WITH_PYTHON_VERSION="2.3"
++ fi
++ fi
+ fi
+ fi
+fi