From a2b44dbc67d57638f57754b4035e0f919aa46e93 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Fri, 21 Sep 2001 12:23:03 +0200 Subject: [PATCH] patch::: 1.5.11.jcn1 1.5.11.jcn1 =========== * Add -p flag to package-diff.py's diff invocation, to show changed function. * Add configure checks for python headers. * Make midi module. 1.5.11 ====== --- CHANGES | 12 ++++++++++++ VERSION | 2 +- config.hh.in | 9 +++++++++ configure.in | 3 +++ modules/GNUmakefile | 2 +- modules/midi.c | 15 ++++++++++++++- stepmake/bin/package-diff.py | 4 ++-- 7 files changed, 42 insertions(+), 5 deletions(-) diff --git a/CHANGES b/CHANGES index 397f031cf4..a36a5782ce 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,15 @@ +1.5.11.jcn1 +=========== + +* Add -p flag to package-diff.py's diff invocation, to show changed function. + +* Add configure checks for python headers. + +* Make midi module. + +1.5.11 +====== + 1.5.10.jcn3 =========== diff --git a/VERSION b/VERSION index d13210fa9a..cd50e05bad 100644 --- a/VERSION +++ b/VERSION @@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond MAJOR_VERSION=1 MINOR_VERSION=5 PATCH_LEVEL=11 -MY_PATCH_LEVEL= +MY_PATCH_LEVEL=jcn1 # use the above to send patches: MY_PATCH_LEVEL is always empty for a # released version. diff --git a/config.hh.in b/config.hh.in index 04d22f741f..388eea7e3d 100644 --- a/config.hh.in +++ b/config.hh.in @@ -41,6 +41,15 @@ /* define if you have kpse_find_tfm */ #define HAVE_KPSE_FIND_TFM 0 +/* define if you have python2/Python.h header */ +#define HAVE_PYTHON2_PYTHON_H 0 + +/* define if you have python/Python.h header */ +#define HAVE_PYTHON_PYTHON_H 0 + +/* define if you have Python.h header */ +#define HAVE_PYTHON_H 0 + /* define if explicit instantiation is needed */ #undef NEED_EXPLICIT_INSTANTIATION diff --git a/configure.in b/configure.in index 4cf095deb8..1cca0ffe08 100644 --- a/configure.in +++ b/configure.in @@ -49,6 +49,9 @@ AC_STEPMAKE_MAKEINFO AC_PATH_PROG(PERL, perl, error) +AC_HAVE_HEADERS(python2/Python.h python/Python.h Python.h) + + AC_STEPMAKE_END test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc="" diff --git a/modules/GNUmakefile b/modules/GNUmakefile index bc69608d14..61cfea23e5 100644 --- a/modules/GNUmakefile +++ b/modules/GNUmakefile @@ -5,7 +5,7 @@ NAME=midi # compile fucks up on without autoconf -I flag. -STEPMAKE_TEMPLATES=c install # python-module +STEPMAKE_TEMPLATES=c install python-module INSTALLATION_FILES=$(outdir)/midi.so INSTALLATION_DIR=$(datadir)/python diff --git a/modules/midi.c b/modules/midi.c index 11fdd25d4f..729599c817 100644 --- a/modules/midi.c +++ b/modules/midi.c @@ -18,7 +18,20 @@ midi.parse (s) */ -#include +#include "config.h" + +/* urg */ +#if HAVE_PYTHON2_PYTHON_H +#include +#elif HAVE_PYTHON_PYTHON_H +#define assert(x) +#include +#elif HAVE_PYTHON_H +#define assert(x) +#include +#else +#error Need Python.h +#endif #if 0 int x = 0; diff --git a/stepmake/bin/package-diff.py b/stepmake/bin/package-diff.py index da16975bf0..e07dd3ade3 100644 --- a/stepmake/bin/package-diff.py +++ b/stepmake/bin/package-diff.py @@ -177,8 +177,8 @@ def makediff (fromdir, todir, patch_name): sys.stderr.write ('diffing to %s... ' % patch_name) os.system ('pwd') - print ('diff -urN %s . >> %s' % (fromdir, patch_name)) - os.system ('diff -urN %s . >> %s' % (fromdir, patch_name)) + print ('diff -purN %s . >> %s' % (fromdir, patch_name)) + os.system ('diff -purN %s . >> %s' % (fromdir, patch_name)) os.system ('gzip --quiet -9f %s' % patch_name) -- 2.39.5