[PATCH] configure script should honour --docdir option
The configure script should honour the --docdir option as this is the autotools standard. The build system currently overrides that the docdir variable with its own but that is not very clean. Honouring docdir gives a more standardized and flexible behaviour that the user can control.
I'm attaching a patch that fixes the issue.