Simplify DoIt's build script.

Buildscr is still under the impression that we're building a generic
'listener' module into a set of related programs, and I accepted some
years ago that this never actually happened and DoIt is the only
program that this framework will ever be used for.

Accordingly, chop out all the generic stuff in the build script, which
will make it less painful to start modifying in other ways in a
moment.


git-svn-id: svn://svn.tartarus.org/sgt@10245 cda61777-01e9-0310-a592-d414129be87e
Add an autoconf-based build system for the Unix doitclient.

This is overdue anyway (doitdoc.txt contains some fiddly ad-hoc
instructions about defining HAVE_NO_READLINE and adding -lsocket on
different Unices), and will also make it easier for me to mess around
with the version numbering system in a moment.


git-svn-id: svn://svn.tartarus.org/sgt@10246 cda61777-01e9-0310-a592-d414129be87e
Set the version number centrally in the build script.

This commit removes all uses of svn keyword expansion, and instead
arranges for DoIt's version number to be invented in Buildscr and
passed into source files as a #define (via autoconf in the Unix source
archive, and directly for the Windows binary build).


git-svn-id: svn://svn.tartarus.org/sgt@10247 cda61777-01e9-0310-a592-d414129be87e
Fix some compiler warnings.

Two spurious extra arguments to fprintf, and an fread whose return
value I'd forgotten to check.


git-svn-id: svn://svn.tartarus.org/sgt@10248 cda61777-01e9-0310-a592-d414129be87e