From a3e7a4580e78e8d252b91b43ecb08d8d87dcefa6 Mon Sep 17 00:00:00 2001 From: James Michael DuPont Date: Wed, 12 Mar 2003 19:54:32 +0000 Subject: [PATCH] debian support git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4521 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/csharp/csharp.swg | 8 ++++++++ autogen-debian.sh | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 autogen-debian.sh diff --git a/Lib/csharp/csharp.swg b/Lib/csharp/csharp.swg index 7a411f947..a95563af0 100644 --- a/Lib/csharp/csharp.swg +++ b/Lib/csharp/csharp.swg @@ -11,7 +11,15 @@ #include #include + +#ifdef WIN32 #define DllExport __declspec( dllexport ) +#else +/* + This is not needed for unix +*/ +#define DllExport +#endif %} /* The jni, jtype and jstype typemaps work together and so there should be one of each. diff --git a/autogen-debian.sh b/autogen-debian.sh new file mode 100755 index 000000000..c633c574e --- /dev/null +++ b/autogen-debian.sh @@ -0,0 +1,16 @@ +#! /bin/sh + +# Bootstrap the development environment - add extra files needed to run configure. +# Note autoreconf should do what this file achieves, but it has a bug when working with automake! +# The latest config.guess and config.sub should be copied into Tools/config and checked into CVS +# when upgrading the autotools. Otherwise this script will ensure the latest is copied from +# your autotool installation. + +set -x +test -d Tools/config || mkdir Tools/config +aclocal-1.7 -I Tools/config +autoheader2.50 +automake-1.7 --add-missing --copy --force-missing +autoconf2.50 +(cd Tools; autoconf2.50) +