the .configure help suggests that --datadir can be used to modify where the docs are placed. This is the usual behaviour.
This does not work for cunit due to the doc/Makefile.am specifying
docdir = $(prefix)/doc/@PACKAGE@
Removing this line allows the expected behaviour of ./configure --datadir=<your location="">
Anonymous
An additional patch is needed for doc/headers. I’m attaching both.
Patch for doc/headers/Makefile.am
Thank you for submitting the patch. This has been applied. Please note that appropriate way is to use --docdir with configure and not --datadir