configure --with-cdf --prefix=/data/local
as I put my own software in a directory called /data/local. Before doing that, however, I'd make a few
CPPFLAGS = -I../include
to CPPFLAGS = -I../include -I${includedir}
in src/Makefile, as I used the different prefix, and gstat requires a
file called "gd.h". If you don't have gd, then you'll need to get and install it yourself
first.
INSTALLDIR = /usr/local/bin
to INSTALLDIR = ${bindir}
in makefile, again because I don't have root privileges and so changed
the prefix.