Attached is a patch for making out of source tree builds almost possible. Builds within the source tree are not affected by this patch.
These builds can be done by following commands:
mkdir build
mkdir build/gtk-gnutella
cd build/gtk-gnutella
../../gtk-gnutella/build.sh --prefix=/some/other/prefix
They have the large benefit to have different builds available to test the data with it.
The only thing that is not done is the mkdep script (which is being created by Configure with a 'sed' command). Please test this patch and try to fix it. I am out of ideas with 'sed'. :(
patch - fixed (only mkdep one)