1 --- beecrypt-3.0.0/python/Makefile.am.orig 2003-06-29 15:10:28.000000000 +0200
2 +++ beecrypt-3.0.0/python/Makefile.am 2003-06-29 15:12:10.000000000 +0200
9 +PYVER= @WITH_PYTHON_VERSION@
13 -pylibdir = $(shell python -c 'import sys; print sys.path[1]')
14 +pylibdir = $(prefix)/lib/python${PYVER}
15 pyincdir = $(prefix)/include/python${PYVER}
17 EXTRA_DIST = debug-py.c
18 --- beecrypt-3.0.0/python/test/Makefile.am.orig 2003-06-29 15:12:33.000000000 +0200
19 +++ beecrypt-3.0.0/python/test/Makefile.am 2003-06-29 15:13:45.000000000 +0200
22 AUTOMAKE_OPTIONS = 1.4 foreign
25 +PYVER= @WITH_PYTHON_VERSION@
27 -pylibdir = $(shell python -c 'import sys; print sys.path[1]')
29 +pylibdir = $(prefix)/lib/python${PYVER}
30 VALGRIND = # valgrind --verbose --leak-check=yes
33 --- beecrypt-3.0.0/configure.ac.orig 2003-06-29 15:32:40.000000000 +0200
34 +++ beecrypt-3.0.0/configure.ac 2003-06-29 15:32:47.000000000 +0200
39 -AC_ARG_WITH(python,[ --with-python creates the python bindings code [default=no]],[
40 - if test "$withval" = no; then
45 - ],[ac_with_python=no])
46 +AC_ARG_WITH(python,[ --with-python creates the python bindings code])
48 # Check for Unix variants
51 AC_DEFINE([JAVAGLUE],1)
55 +if test $withval = yes ; then
56 +AC_MSG_CHECKING(for python 2.2)
58 +#include <python2.2/Python.h>
60 + exit(strncmp("2.2", PY_VERSION, 3));
62 + withval=yes, withval=no, withval=yes)
63 + AC_MSG_RESULT($withval)
64 + if test $withval = yes ; then
65 + WITH_PYTHON_VERSION="2.2"
68 + AC_MSG_CHECKING(for python 1.5.2)
70 +#include <python1.5/Python.h>
72 + exit(strcmp("1.5.2", PY_VERSION));
74 + withval=yes, withval=no, withval=yes)
75 + AC_MSG_RESULT($withval)
76 + if test $withval = yes ; then
77 + WITH_PYTHON_VERSION="1.5"
79 + AC_MSG_CHECKING(for python 2.3)
81 + #include <python2.3/Python.h>
83 + exit(strncmp("2.3", PY_VERSION, 3));
85 + withval=yes, withval=no, withval=yes)
86 + AC_MSG_RESULT($withval)
87 + if test $withval = yes ; then
88 + WITH_PYTHON_VERSION="2.3"
95 +AC_SUBST(WITH_PYTHON_VERSION)
97 # Checks for entropy sources.
98 AS_MESSAGE(checking for specific entropy devices...)