| jpff@codemist.co.uk writes:
> Could an option --with-64bit (or similar name) be added to the
> configuration stuff?
One way to do this is to rename csound.h to csound.h.in, and modify it
as follows:
$ diff -u csound.h.orig csound.h
--- csound.h.orig 2003-12-15 07:36:06.000000000 -0500
+++ csound.h 2003-12-15 07:42:40.000000000 -0500
@@ -44,17 +44,20 @@
#ifdef SWIG
%module csound
%{
-#include "sysdep.h"
-#include "cwindow.h"
#include "opcode.h"
#include
%}
#else
-#include "sysdep.h"
-#include "cwindow.h"
#include "opcode.h"
#include
#endif
+
+ /**
+ * Basic floating point type
+ */
+
+ typedef @MYFLT@ MYFLT;
+
/**
* ERROR DEFINITIONS
*/
$
With this approach, csound/cs.h would include csound.h, not the other
way around. This has the nice feature that clients of the Csound API
need only have access to csound.h and opcodes.h. There would no
longer be a need to install sysdep.h, cwindow.h, config.h, and
autoheader.h. The problem with this approach is that it would break
the non-GNU build system makefiles.
John |