ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] including GPLv3 autoconf macro in Wireshark

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 18 May 2012 14:29:03 -0700
On May 18, 2012, at 11:55 AM, Jeff Morriss wrote:

> I found out recently that Wireshark needs the Z_BLOCK macro which is only in zlib 1.2.0.5 and later.  Rather than checking explicitly for the version (which seemed like it would be a pain) I thought I'd check for the macro.

You could use AC_TRY_COMPILE() with a test program such as

	#ifndef Z_BLOCK
	#error "Z_BLOCK isn't available"
	#endif

and with zlib.h being one of its includes.