After speaking to Curt on IRC, yesterday, and finding out that he had platform-config problems with docweb, I came up with the following:
http://www.phpdoc.info/docweb_autoconf.patch
I've never authored autoconf scripts before, so if I'm way out in left field, here, be sure to let me know.
Otherwise, I think this is useful.
I'll also generate the /configure/ script and commit that, but you should be able to generate your own with autoconf and configure.in in the mean time.
Let me know what you think
Since the complicated parts seem to be originating from phpdoc, it seems to be right. It works there :)
Goba