Details
Description
configure does not find zlib even if --with-zlib=/path... is provided because $zlib_prefix/lib does not exist on HP-UX but only $zlib_prefix/lib/hpux32. By using pkg-config this can actually easily solved.
See attached patch which fixes the issue by probing provided prefix, if not try pkg-config and builtin. The idea was borrowed from serf.m4.