If you want just a wap server you can configure apache to do this. It's so easy as adding a few mime-type definitions:
Code:
text/vnd.wap.wml .wml
image/vnd.wap.wbmp .wbmp
application/vnd.wap.wmlc .wmlc
text/vnd.wap.wmls .wmls
application/vnd.wap.wmlsc .wmlsc
Then create .wml pages and apache is ready to serve them (after you restart it of course).
As for the error you mention run "./configure --help" to see if you can define the location where you installed libxml2-dev for the ./configure script.
Regards