The actual error in the log you've uploaded appears to be:
/usr/bin/ld: cannot find -lXmu
collect2: ld returned 1 exit status
configure:28001: $? = 1
which indicates that another library, unrelated to zlib (it's part of
X11, I believe), is missing from your system rather than zlib.
** Changed in: zlib (Ubuntu)
Status: New => Invalid
--
Zlib not recognised by configure on 32 bit linux
https://bugs.launchpad.net/bugs/194737
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs