1 --- abiword-2.0.14/abiword-plugins/tools/gypsython/plugin.m4.orig 2004-12-23 14:01:57.074696040 +0100
2 +++ abiword-2.0.14/abiword-plugins/tools/gypsython/plugin.m4 2004-12-23 14:02:20.946626000 +0100
4 # Checks for libraries.
5 # Checks for header files.
7 -AC_ARG_WITH(python,[ --with-python=DIR Python 2.3 library in DIR],[
8 +AC_ARG_WITH(python,[ --with-python=DIR Python 2.4 library in DIR],[
9 if test "x$withval" = "xno"; then
10 ABI_PLUGIN_REPORT([gypsython: Python support disabled])
11 abi_plugin_disable=yes
12 elif test "x$withval" != "xyes"; then
13 - ABI_GYPSY_CPPFLAGS="-I$withval/include/python2.3"
14 + ABI_GYPSY_CPPFLAGS="-I$withval/include/python2.4 -I$withval/include/python2.3"
15 ABI_GYPSY_LDFLAGS="-L$withval/lib"
16 - CPPFLAGS="$CPPFLAGS -I$withval/include/python2.3"
17 + CPPFLAGS="$CPPFLAGS -I$withval/include/python2.4 -I$withval/include/python2.3"
18 LDFLAGS="$LDFLAGS -L$withval/lib"
20 - ABI_GYPSY_CPPFLAGS="-I/usr/include/python2.3"
21 - CPPFLAGS="$CPPFLAGS -I/usr/include/python2.3"
22 + ABI_GYPSY_CPPFLAGS="-I/usr/include/python2.4 -I/usr/include/python2.3"
23 + CPPFLAGS="$CPPFLAGS -I/usr/include/python2.4 -I/usr/include/python2.3"
25 -],[ ABI_GYPSY_CPPFLAGS="-I/usr/include/python2.3"
26 - CPPFLAGS="$CPPFLAGS -I/usr/include/python2.3"
27 +],[ ABI_GYPSY_CPPFLAGS="-I/usr/include/python2.4 -I/usr/include/python2.3"
28 + CPPFLAGS="$CPPFLAGS -I/usr/include/python2.4 -I/usr/include/python2.3"
31 if test $abi_plugin_disable != yes; then
32 AC_CHECK_HEADER(Python.h,[
33 - AC_CHECK_LIB(python2.3,Py_Initialize,[
34 - ABI_GYPSY_LDFLAGS="$ABI_GYPSY_LDFLAGS -lpython2.3"
35 + AC_CHECK_LIB(python,Py_Initialize,[
36 + ABI_GYPSY_LDFLAGS="$ABI_GYPSY_LDFLAGS -lpython"
37 ABI_PLUGIN_REPORT([gypsython: okay])
38 ],[ ABI_PLUGIN_REPORT([gypsython: error - Python library not found])
39 abi_plugin_disable=yes
40 --- abiword-2.0.14/abiword-plugins/tools/gypsython/xp/Gypsython.h.orig 2004-12-23 14:10:50.111645632 +0100
41 +++ abiword-2.0.14/abiword-plugins/tools/gypsython/xp/Gypsython.h 2004-12-23 14:11:02.641740768 +0100
43 #include "xap_Dlg_Language.h"
44 #include "xap_Frame.h"
46 -#include <python2.3/Python.h>