honor ./configure -mandir

Fixes #1753