[ Compiling scatterchatmod.exe on Windows ]
    Last updated: January 29th, 2005


Prerequisites:  * MinGW, MSYS, msysDTK (http://www.mingw.org/)
                * libgpg-error, libgcrypt
                  (http://www.gnupg.org/(en)/related_software/libraries.html)


Once MinGW, MSYS, and msysDTK are installed properly, open up an MSYS
console window, and begin:

0.) Compiling libgpg-error:

$ tar xjf libgpg-error-1.0.tar.bz2
$ cd libgpg-error-1.0
$ ./configure && make && make install

1.) Compiling libgcrypt:

$ tar xjf libgcrypt-1.2.1.tar.bz2
$ cp scatterchat-module-0.90/docs/wincrypt.patch libgcrypt-1.2.1
$ cp scatterchat-module-0.90/docs/libgcrypt.def libgcrypt-1.2.1
$ cd libgcrypt-1.2.1
$ patch -p1 < wincrypt.patch
$ aclocal -I .
$ automake --add-missing --copy
$ autoconf
$ ./configure && make && make install
$ gcc -shared -o libgcrypt.dll libgcrypt.def \
/usr/local/lib/libgcrypt.a /usr/local/lib/libgpg-error.a
$ strip libgcrypt.dll
$ cp libgcrypt.dll /usr/local/lib
$ cp libgcrypt.dll /usr/local/bin
$ rm /usr/local/lib/libgcrypt.a

2.) Compiling scatterchatmod.exe:

$ ./configure CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" \
  --enable-executable
$ make && make install
