The DESTDIR feature is orthogonal to the existing --prefix option
to configure, and the GNU make manual strongly recommends to support
the feature, so this patch implements it.
The feature works as follows. The content of the DESTDIR make variable
is prepended to each installed target file. It is not set at all in
the Makefile, so files are installed into their expected locations by
default. For example, with the patch applied, one may say
make DESTDIR=/tmp/stage install
to install in /tmp/stage/usr/local.
Other than that, specifying DESTDIR has no effect and the value is
not included in any file contents.