Use --with-libzip and install libzip-dev as a dependancy.
checking libzip... no
checking for the location of zlib... /usr
configure: WARNING: ========================================================
configure: WARNING: Use of bundled libzip is deprecated and will be removed.
configure: WARNING: Some features such as encryption and bzip2 are not available.
configure: WARNING: Use system library and --with-libzip is recommended.
configure: WARNING: ========================================================
Use
--with-libzip
and installlibzip-dev
as a dependancy.