BUILDING DXPC
=============

To build dxpc, you need:
   1. the dxpc source
   2. the X11R4, X11R5, or X11R6 include files 
   3. a C++ compiler for each of the machines/operating systems on which
      you want to run the Client and/or Server Proxy.
   4. the LZO library source, available from 
      http://www.oberhumer.com/opensource/lzo/ (preferred) or
      http://www.vigor.nu/dxpc/

Once you have these things, here's how to compile and install dxpc:

   1. Build and install the LZO library.

      NB: if you do not have root access on the machine you are working on,
      you will have to use the --prefix option to LZO's configure script to
      specify a location for the installation.

      NB: if you are building for the Win32 platform using the Cygwin32
      environment, please see Cygwin notes below.

   2. Generate a Makefile

      To do this, go to the dxpc source directory and run:
         
	./configure

      This is a GNU autoconf configure script, so it likely will
      work on your system.  If it doesn't, please send the maintainer
      an email, including any error messages.

      NB: if you had to install LZO in some non-default location using the
      --prefix=DIR option (as described in step one), you should now
      specify the path to LZO by providing the --with-lzo-lib=DIR option
      to dxpc's configure script.

   3. Compile dxpc

      Just run:
         make

   4. Install dxpc

      Once you have compiled dxpc, you can install the dxpc executable
      and its manual page by running:

         make install
         make install.man

      (Since there is only one executable to install, you could
      also just copy it to your chosen bin directory manually, if
      you prefer.)

Cygwin notes:

For some odd reason, the Cygwin linker doesn't by default look in
/usr/local/lib. Since lzo installs here by default, I needed to use the
--with-lzo-=lib option to configure like so:

dxpc> ./configure --with-lzo-lib=/usr/local

You may obviously need to change the path given above if you installed lzo
in some non-default location.

On the final make, the linker complains about the -R option, but generates a
valid dxpc.exe anyway.
