Honour --htmldir option configure script.

Hi!

I'm not very good at git but I hope this works as intended. Here is the pull request that will make the build system honour the --htmldir option.

Regards,
Karl